Skip to content

Verification

After deploying contracts, verify the source code on the block explorer so users can inspect the contracts.

Robinhood Chain (Blockscout)

Rugdrome targets Robinhood Chain, which uses Blockscout. Verification requires an API key.

Set the API Key

Add to .env:

bash
ROBINHOOD_BLOCKSCOUT_API_KEY=your_api_key_here

Verify via Blockscout Script

bash
npx hardhat run scripts/verify/verifyBlockscout.js --network robinhood

Verify via Hardhat Verify

bash
./scripts/verify/verifyHardhat.sh

This wrapper runs npx hardhat verify for the main protocol contracts.

Standard JSON Verification

If automatic verification fails, use scripts/verify/verifyStandardJson.py to prepare Standard JSON input for manual submission on Blockscout.

bash
python3 scripts/verify/verifyStandardJson.py

Verification Checklist

  • [ ] ROBINHOOD_BLOCKSCOUT_API_KEY is exported or in .env.
  • [ ] The target network is configured in hardhat.config.js.
  • [ ] Compiler version matches the deployed contract.
  • [ ] Constructor arguments are correctly encoded.

TIP

The hardhat.config.js etherscan section uses process.env.ROBINHOOD_BLOCKSCOUT_API_KEY instead of a hardcoded key.

Released under the GNU AGPL v3 License.