prepare
npm run build
build
buidler compile
postbuild
yarn gen:contract-typings && tsc -b
clean
rimraf artifacts && rimraf typings/contracts && rimraf cache
pretest
yarn build
test
buidler test
test:truffle
tsc -b && truffle test --network ganache build/*.spec.js
precoverage
yarn build
coverage
NET_ID=1 buidler coverage
benchmark
BENCHMARK=true yarn test
gen:contract-typings
rimraf typings/contracts/* && yarn gen:contract-typings:ethers4 && yarn gen:contract-typings:ethers5
gen:contract-typings:ethers4
typechain --target ethers-v4 --outDir typings/contracts/ethers-v4 './artifacts/*.json'
gen:contract-typings:ethers5
typechain --target ethers-v5 --outDir typings/contracts/ethers-v5 './artifacts/*.json'
lint
yarn lint:ts && yarn lint:sol
lint:fix
yarn lint:ts:fix && yarn lint:sol:fix
lint:sol
solhint contracts/**/*.sol
lint:ts
tslint -c tslint.json -p .
lint:ts:fix
tslint -c tslint.json -p . --fix
console:ganache
truffle console --network ganache
console:rinkeby
truffle console --network rinkeby
ganache
ganache-cli --networkId ${npm_package_config_ganacheNetworkID} --port ${npm_package_config_ganachePort} --gasLimit ${npm_package_config_ganacheGasLimit} --gasPrice ${npm_package_config_ganacheGasPrice} --defaultBalanceEther ${npm_package_config_etherBalance} --deterministic --mnemonic "${npm_package_config_mnemonic}" ${npm_package_config_extra}
ganache:verbose
ganache-cli --networkId ${npm_package_config_ganacheNetworkID} --verbose --port ${npm_package_config_ganachePort} --gasLimit ${npm_package_config_ganacheGasLimit} --gasPrice ${npm_package_config_ganacheGasPrice} --defaultBalanceEther ${npm_package_config_etherBalance} --deterministic --mnemonic "${npm_package_config_mnemonic}" ${npm_package_config_extra}
ganache:stop
ps aux | grep ganache-cli | grep -v grep | awk '{print $2}' | xargs kill -9
deploy:ganache
buidler run --network ganache src/scripts/deploy-contracts.ts
deploy
buidler run src/scripts/deploy-contracts.ts --network