-
Notifications
You must be signed in to change notification settings - Fork 2k
debt: use the single Etherscan V2 API endpoint for unified verification / query flow w/ single API key #9196
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
Comments
Has this been started or would taking a first PR pass be helpful? |
Hi @iainnash, this is definitely something we will want to do, just outside of the scope of our 1.0 milestone due to scope of the change (I expect we can simplify quite a lot of code and likely make breaking changes). We also have to be mindful that the Etherscan API V2 is still in beta. A first PR pass to explore this would be very useful, even if it is just a draft! |
Update, diff'd against Etherscan V1, V2 removes support for - other than that all changes have been additive:
These have all been deprecated, Blast Testnet being replaced by I think we are fine with moving ahead with the implementation |
Sounds good.
…On Thu, Dec 19, 2024 at 09:47 zerosnacks ***@***.***> wrote:
Update, diff'd against Etherscan V1, V2 removes support for:
23888 (Blast Testnet)
420 (Optimism Goerli Testnet)
5 (Goerli)
59140 (Linea Goerli)
These have all been deprecated, Blast Testnet being replaced by 168587773
I think we are fine with moving ahead with the implementation
—
Reply to this email directly, view it on GitHub
<#9196 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMCOGV6B5XVAB332AM3OL2GLMABAVCNFSM6AAAAABQS7FELGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJUGQYDAOJRGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Optimistically assigned this to you @iainnash, let me know if I misunderstood you or have any questions |
Yep thanks! None right now will try to get to this early next week.
|
It seems like the best place for this to be implemented is in block-explorers unless there is a desire to move this logic into foundry core such as how sourcify is done. |
Changes in the verification API endpoint (e.g. |
Submitted this PR to get the verification api endpoint updated to allow requesting with V2 endpoint. Next would be updating the forge-verify side of the code to support a new flag or adapter for V2. |
Follow up here: Would be great to get the prerequisite PR foundry-rs/block-explorers#73 reviewed to start on this |
* Fix existing verify integration tests * Add `standard-json-input` integration tests * Fix current single file test * Add v2 integration tests * Allow v2 setting on client with etherscan client This is a prerequisite PR for foundry-rs/foundry#9196 **Notes:** * Fantomscan test has no env var passed in and can be removed safely. * Gas estimates now do not fail with even 1 passed in, so skipping the failure test because I couldn't find a failure test. --------- Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
@iainnash block explorers PR is now merged. thanks! |
Great! Will now work on this side. |
Here is the PR: #10298 |
Hey all, would like to share that now that Etherscan is deprecating v1, this issue is more pressing. |
Working now on adding configuration options to the yml config. Perhaps could split up the PR into 2 as well. |
Component
Other (please describe)
Describe the feature you would like
We currently have a lot of code in place to handle multichain Etherscan verification due to the different endpoints and API keys associated with each.
With the release of Etherscan V2 there is now a single unified API endpoint: https://docs.etherscan.io/etherscan-v2 accessible with a single API key
Additional context
It is currently still in beta but worth exploring
Part of this ticket would be to double check if there are no breaking changes in the V2 API
Note: it requires passing a
?chainid=n
as a parameter wheren
is the chain id: https://docs.etherscan.io/etherscan-v2/getting-started/v2-quickstart#if-youre-coming-from-v1The text was updated successfully, but these errors were encountered: