api3dao / commons

Common utilities, modules and configurations used in API3 projects
MIT License
0 stars 2 forks source link

Extend validation schemas #63

Closed Siegrift closed 7 months ago

Siegrift commented 7 months ago

Closes https://github.com/api3dao/commons/issues/47

Rationale

I looked at Airnode, OevAuctioneer, Signed API and Airseeker v2 and extracted common utilities that might be useful across projects.

About parsing addresses. At first I wanted to lowercase them during validation, but it's actually more common for these to be checksummed. Because addresses are most often consumed via EVM library (viem, ethers...) which return checksummed addresses it makes sense to create the checksum version during validation as well.