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

Sourcify support #1822

Closed
jjhesk opened this issue Jun 2, 2022 · 5 comments · Fixed by #2748
Closed

Sourcify support #1822

jjhesk opened this issue Jun 2, 2022 · 5 comments · Fixed by #2748
Labels
C-forge Command: forge Cmd-forge-verify Command: forge verify-contract/check T-feature Type: feature

Comments

@jjhesk
Copy link

jjhesk commented Jun 2, 2022

Component

Forge

Describe the feature you would like

I have checked a several ways to verify codes for blockscout v4.1.3 or above. There is no api-key needed for verification. Currently there is a way to upload the standard json for the process however the json that created from the regular forge does not work.

It should be nice to have blockscout specific solution for source verifications with this flag --blockscout

for example:

forge create --rpc-url "https://rpc1.oasischain.io" \
  --private-key "...." vault/stakingpoolv3/Woac.sol:Woac \
  --verify --legacy --blockscout

Additional context

No response

@jjhesk jjhesk added the T-feature Type: feature label Jun 2, 2022
@onbjerg onbjerg added this to Foundry Jun 2, 2022
@onbjerg onbjerg moved this to Todo in Foundry Jun 2, 2022
@onbjerg
Copy link
Collaborator

onbjerg commented Jun 2, 2022

Blockscout uses Sourcify, so we should just support that

@onbjerg onbjerg changed the title blockscout support Sourcify support Jun 2, 2022
@onbjerg onbjerg added C-forge Command: forge Cmd-forge-verify Command: forge verify-contract/check labels Jun 2, 2022
@gakonst
Copy link
Member

gakonst commented Jun 6, 2022

@robertabbott check this out

@douglasqian
Copy link

+1

@onbjerg onbjerg moved this from Todo to In Progress in Foundry Jul 1, 2022
@rkrasiuk
Copy link
Collaborator

@onbjerg blockscout exposes etherscan like api, so current verification flow should work. see the description of gakonst/ethers-rs#1343

Repository owner moved this from In Progress to Done in Foundry Aug 13, 2022
@jerydam
Copy link

jerydam commented Sep 15, 2023

did i have to install anything to make blockscout work with foundry,
this is the error that I'm seeing

error: unexpected argument '--blockscout' found

tip: to pass '--blockscout' as a value, use '-- --blockscout'

Usage: forge create --constructor-args ... --verify <--rpc-url |--flashbots|--jwt-secret <JWT_SECRET>> <--interactive|--private-key <RAW_PRIVATE_KEY>|--mnemonic |--mnemonic-passphrase |--mnemonic-derivation-path |--mnemonic-index > <--gas-limit <GAS_LIMIT>|--gas-price |--priority-gas-price |--value |--nonce |--legacy>

For more information, try '--help'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-verify Command: forge verify-contract/check T-feature Type: feature
Projects
Archived in project
6 participants