Deploy consists of two steps: contracts deployment and contracts verification on etherscan.
Make sure you complete all these steps and you'll successfully deploy and verify all the contracts.
- Make you have
.env
file withINFURA_KEY
,MNEMONIC
andETHERSCAN_KEY
. - Make sure your deployer address has enough ETH to deploy contracts. Full deploy requires 120-150M of gas.
npm run deploy:{network}
wherenetwork
is one ofrinkeby
,ropsten
,kovan
,main
,bsc-test
,bsc
andfork
(fork of the mainnet).npm run verify:{network}
to verify contracts after the last deploy.
-
When the deploy was interrupted, you can use
--incremental
key to continue the last deploy.Example:
npm run deploy:kovan -- --incremental
-
The key
--verify
can be specified for deloy call to perform verification after a successful deploy.Example:
npm run deploy:kovan -- --verify
-
Verify stores a list of verified contracts and can be executed incrementally / multiple times without re-verification.