We use the HardHat tool for local smart contract development, due to the versatile manner in which it can handle smart contracts built with different versions of Solidity.
After pulling from remote and cd'ing to directory:
yarn install
npx hardhat test
Set private key PRIV
infura API WEB3_APIand
variables in an .env
file, then:
npx hardhat --network mainnet deploy --write true
Set Etherscan key variable ETHERSCAN_API_KEY
in .env
and run:
npx hardhat verify --network mainnet <DEPLOYED_CONTRACT_ADDRESS> <OWNER_ADDRESS>