hardhat-contract-example
v1.0.0
Published
## Sample Scripts ### Install dependencies ```bash yarn ```
Downloads
2
Readme
xenbox
Sample Scripts
Install dependencies
yarn
Compile contracts
yarn build
Hardhat test
yarn test
Hardhat solidity-coverage
yarn test:cov
SOP
environment
localhost
yarn localhost
export ENV_FILE='./envs/env.localhost'
export NETWORK='localhost'
export WAIT_NUM=1
export GAS_PRICE=1
rinkeby
export ENV_FILE='./envs/env.rinkeby'
export NETWORK_ID=4
export WAIT_NUM=1
export GAS_PRICE=3
eth
export ENV_FILE='./envs/eth.env'
export NETWORK_ID=1
export WAIT_NUM=1
export GAS_PRICE=30
script
deploy script
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:deploy --contract XenBox --gas-price $GAS_PRICE --args [] --network $NETWORK_ID --wait-num $WAIT_NUM
verify contract
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract XenBox --network $NETWORK_ID