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.
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.