npm i
npm run build
npm run test
npm run coverage
Create a new .env
file in the root directory, and put your PRIVATE_KEY and ETHERSCAN_API_KEY in it.
If you do not have ETHERSCAN_API_KEY, go to https://etherscan.io/myapikey
and add one.
PRIVATE_KEY = <Your Private Key>
ETHERSCAN_API_KEY = <Your Etherscan Api Key>
And then run:
npm run deploy
npm run flatten
pm2 start
pm2 logs