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_hereVerify via Blockscout Script
bash
npx hardhat run scripts/verify/verifyBlockscout.js --network robinhoodVerify via Hardhat Verify
bash
./scripts/verify/verifyHardhat.shThis 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.pyVerification Checklist
- [ ]
ROBINHOOD_BLOCKSCOUT_API_KEYis 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.