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

forge(verify): OKLink support #7915

Merged
merged 3 commits into from
May 14, 2024
Merged

forge(verify): OKLink support #7915

merged 3 commits into from
May 14, 2024

Conversation

bixia
Copy link
Contributor

@bixia bixia commented May 13, 2024

Motivation

To add support for the OKLink explorer contract verification. since the OKLink use almost the same API as the etherscan does for the contract verification part. the only difference is that the OKLink requires the Ok-Access-Key pass in the header, while etherscan requires the x-apiKey pass in the header.

Solution

To make the OKLink API more similar to the Etherscan API, the oklink backend decide to handle the API_KEY the same as etherscan does. so, we basically only add an entry point as blockscout does.

Reference

bixia and others added 2 commits May 13, 2024 17:56
remove the requirement
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, ty

@mattsse mattsse merged commit 12eaec8 into foundry-rs:master May 14, 2024
19 checks passed
@bixia
Copy link
Contributor Author

bixia commented May 16, 2024

forge verify-contract 0x230885033f14b1F7D8f879f086d2b86656dDB125 Counter --verifier oklink --verifier-url https://www.oklink.com/api/explorer/v1/contract/verify/async/api/ethsepolia  --api-key $OKLINK_API_KEY --chain sepolia --compiler-version 0.8.13

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.

Add support for OKLink verification
2 participants