Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes: fetching implementation ABI for proxy contracts | rate limits … #56

Merged
merged 2 commits into from
Jul 21, 2024

Conversation

kakagri
Copy link
Contributor

@kakagri kakagri commented Jul 20, 2024

Two fixes added related to adding a contract:

Proxy contract ABI fix

handle_add_contract_command in rindexer/cli/src/commands/add.rs was not fetching the implementation ABI correctly -> it would repeatedly fetch the contract's ABI and not the implementation's once it knew it was a proxy.

As an example here's the error that you get when adding the Aave V3 Pool contract on Ethereum (0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2)
printing metadata generated in rindexer/cli/src/commands/add.rs:85 see the below gist:
https://gist.github.com/kakagri/419806f17d2f4634eebaec3d7ca95291

Verifier rate limits fix

Second is adding some timeouts when querying the ABI, this is necessary because trying to verify a proxy contract even with the above fix will yield some errors related to rate limits on the verifier's end.
As an example basescan and arbiscan have different rate limits and can lead to rate limit exceed error, see below when adding Aave V3 Pool on base and arbitrum.
Capture d’écran 2024-07-20 à 16 48 16

Copy link

vercel bot commented Jul 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rindexer-documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2024 3:04pm

Copy link
Owner

@joshstevens19 joshstevens19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made a few tidy ups but looks good approved

@joshstevens19 joshstevens19 merged commit a819d6f into joshstevens19:master Jul 21, 2024
2 of 6 checks passed
@joshstevens19
Copy link
Owner

#58 - rindexerup will get the latest one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants