Skip to content

feat: Add contract verification automation #26

Description

@rafamiziara

Description

Implement automated contract verification on Polygonscan for deployed contracts to ensure transparency and enable public interaction.

Acceptance Criteria

  • Set up Etherscan/Polygonscan verification in Hardhat
  • Create verification scripts for all contracts
  • Add automated verification to deployment process
  • Handle constructor arguments properly
  • Add verification status checking
  • Create manual verification fallback
  • Document verification process

Technical Requirements

  • Use Hardhat Etherscan plugin
  • Configure for Polygon Amoy testnet
  • Support for proxy contract verification
  • Handle flattened contract source code
  • API key management for Polygonscan
  • Retry logic for failed verifications

Verification Features

  • Automatic post-deployment verification
  • Support for upgradeable proxy verification
  • Constructor argument encoding
  • Source code flattening when needed
  • Verification status reporting

Configuration

  • Polygonscan API key setup
  • Network-specific verification settings
  • Compiler version matching
  • Optimization settings alignment

Definition of Done

  • All deployed contracts are verified on Polygonscan
  • Verification process is automated in deployment
  • Manual verification scripts available as backup
  • Verification status is properly tracked and reported
  • Documentation for verification troubleshooting

Metadata

Metadata

Assignees

Labels

comp: contractsIssues related to the smart contracts in packages/contractscomp: infraIssues related to infrastructure, deployment, or CI/CD

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions