shazow / whatsabi

Extract the ABI (and resolve proxies, and get other metadata) from Ethereum bytecode, even without source code.
https://shazow.github.io/whatsabi/
MIT License
1.04k stars 71 forks source link

loaders: Add retry/throttling? #109

Open shazow opened 1 month ago

shazow commented 1 month ago

Etherscan has fairly tight API limits these days (5 reqs per second), and tests often fail because of it.

Would be nice to have retries and throttling for the fetch, but also not excited about implementing/maintaining this yet again.

But it would need to have a fairly small impact on the bundle size (currently ~14kb, so ideally not more than a couple kb?).

Perhaps use https://github.com/sindresorhus/ky?

Another option is to pull in a part of viem/ethers who might have respective helpers.