Example repo to demonstrate bytecode verification review feature for contract upgrade proposals in OpenZeppelin Defender.
yarn deploy
- Deploy token contract, add to Defender Admin and verify bytecodeyarn upgrade
- Deploy token contract V2, verify bytecode and create Admin proposal for signers to review
- Write an upgradeable smart contract (or use wizard.openzeppelin.com to generate one) and save in /contracts
- Compile with
yarn hardhat compile
to generate build artifacts and ABI - Remove
artifacts
folder from .gitignore - Add the new files, commit and push to remote repository (
git add . && git commit -m "add build artifacts" && git push origin main
) - Copy URL of build artifact (ie
https://raw.githubusercontent.com/offgridauthor/verification-contracts/main/artifacts/build-info/1ca3e45b97b92b131128688d9d9faf68.json
) - Add ABI and URL to remote build artifact to
deploy-and-verify.js
script - Run
yarn deploy
- Add environment variables to Github Secrets
- Add ci.yml file to
/.github/workflows
, supplying proxy address and contract owner - Make changes to code and push to repo