- Install deps with
yarn
- Run tests with
yarn test
- Export the desired deployer private key to environment variable
MAINNET_PK
- To deploy to a new network, ensure there exists a separate hardhat config file
hardhat.config.${network}.ts
.- Ensure that the
network
andetherscan
configurations are populated as needed. - For existing configurations, ensure that you have the necessary environment variables set (RPC URLs, Etherscan API keys, etc)
- Ensure that the
- Deploy with
yarn hardhat --config hardhat.config.${network}.ts --network ${network} run scripts/deploy.ts