-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add support for OKLink verification #7724
Comments
Polygon is already supported, OKLink is not yet supported, see #7586 |
@CodeSandwich You can already use OKLink for Amoy testnet by passing |
Ohh, thank you and sorry for the noise, I somehow missed the For my own reference the default etherscan-like explorers' URLs are here: https://github.com/alloy-rs/chains/blob/351451bd14386ddfd6b43c6fff72fcf5820a0aef/src/named.rs#L767. Now it contains all Polygon flavors, including Amoy with OKLink. It's fairly difficult information to find, it could be useful to have it somehow documented in Foundry itself, but I'm not sure how. Maybe a new I'm fine with closing this issue, but I see that it's linked to the PR now, so I'll close it manually only in case the PR is rejected as unneeded. |
Use `amoy.polygonscan.com` as both explorer and verification endpoint ref foundry-rs/foundry#7922 ref foundry-rs/foundry#7724
Component
Other (please describe)
Describe the feature you would like
Polygon endorses polygonscan.com for their mainnet and https://www.oklink.com/amoy for their Amoy testnet as the block explorers. It would be great if they were supported by
cast verify-contract
and other tools likecast src
.There are so many block explorers, do they share the APIs? If yes then maybe generic support could be added where foundry commands would accept the URL of the explorer? It would be great because nowadays there are dozens of L2s and alt chains, and each of them has at least 1 scanner plus a scanner for their testnet.
Additional context
No response
The text was updated successfully, but these errors were encountered: