Add support for Blockscout - #1313
Conversation
|
Suggestion is to try and validate contracts through the Blockscout UI directly |
|
Noting that the Standard JSON Input for a contract build can be pulled out of Hardhat via: |
1daef28 to
f753f74
Compare
|
Testing for contract-level verification, using the dependency contract at
Was able to verify this contract, under the @area any idea why we're compiling for paris? I don't see that as an explicit setting in our hardhat config. |
064b8d4 to
f251da1
Compare
f251da1 to
307a0ef
Compare
062b714 to
5ebc8fa
Compare
|
Currently working on isolating the various contract subdirectories so we can iteratively compile and verify the contracts without hitting the file upload limit. The following subdirectories have been isolated (can compile repo without them):
|
5ebc8fa to
3ec85b0
Compare



Closes #1286
Instructions:
Starting Blockscout (1 tab)
blockscout/docker-composeand rundocker compose -f hardhat-network.yml up(-dto daemonize)Blockscout will start running on
localhost:80by defaultStarting Hardhat (2 tabs)
npx hardhat nodeas per usualnpx hardhat deploy --network developmentas per usualAt this point Blockscout will start picking up the transactions
Todo:
Currently, contract verification is not working. This is as far as I've gotten:
I've debugged enough to confirm that the API is live, but for some reason the 2nd step (verifying with the full solc input) returns an HTML response, which breaks the verifier.
Resources:
https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify
https://docs.blockscout.com/devs/verification/hardhat-verification-plugin
Blockscout's issue tracking proxy contract support