DMDcoin / diamond-contracts-core

DMD v4 testnet on-chain logic
Other
6 stars 9 forks source link

spec generation: also create a verify script for blockscout #229

Closed SurfingNerd closed 3 weeks ago

SurfingNerd commented 1 month ago

when we create the chainspec, we could also create a script for verifying the contracts on blockscout later, once blockscout becomes available, and store a file in a local directory.

after chain setup, once blockscout is running, we can then take this script and run it to get verified contracts on blockscout.

the output could as following:

npx hardhat verify --network alpha3  0x1000000000000000000000000000000000000000
npx hardhat verify --network alpha3 0x1000000000000000000000000000000000000001  0x1000000000000000000000000000000000000000 0xDA0da0da0Da0Da0Da0DA00DA0da0da0DA0DA0dA0 0x
SurfingNerd commented 1 month ago

script developed for verifying the contracts: but TransparentUpgradeableProxy still fails:

https://github.com/SurfingNerd/diamond-contracts-core/commit/c83385fb60e49a38cdb0be413481d961255432e3#commitcomment-144091149

SurfingNerd commented 1 month ago

script for blockscout verification will be stored in blockscout_verify.sh. Be aware: there is currently no automation developed to execute or store the script somewhere. Transparent Proxy still needs attention.