This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
New deploy code and contract verification script (+misc) #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
_eth.
hardhat
package to latest version because it fixed something I don't really remember (but I checked to make sure no breaking changes from2.0.8
to2.8.0
hardhat/deployments/
andreact-app/src/contracts/
to gitignorenamespace
formumbai
network in react app constantsDeploying
Instead of a contract or script to handle everything manually, hardhat-deploy looks for deploy scripts in
hardhat/deploys/
. Multiple scripts can be added, actions taken pre/post deploy, etc. This PR adds 1 script here:00_deploy_all.js
.Notes:
yarn deploy:test
. This runsyarn deploy
and then the publish script that updates frontend's contracts directory.Verification
A new script
scripts/verify-contracts.js
does all the work of verifying all contracts on etherscan / polygon / mumbai.polygon / wherever. All you need to do is:node scripts/verify-contracts.js
Notes:
hardhat.config.js
(etherscan->apiKey
) and run the script, everything's taken care of.