@7jaylen/uniswap-v2-contract
v1.0.6
Published
## Sample Scripts ### Install dependencies ```bash yarn ```
Downloads
10
Readme
uniswap-v2-contract
Sample Scripts
Install dependencies
yarn
Compile contracts
yarn build
Hardhat test
yarn test
Hardhat solidity-coverage
yarn test:cov
SOP
environment
localhost
yarn localhost
$env:ENV_FILE='./envs/env.localhost'
$env:NETWORK_ID='localhost'
$env:WAIT_NUM=1
$env:GAS_PRICE=1
rinkeby
$env:ENV_FILE='./envs/env.rinkeby'
$env:NETWORK_ID=4
$env:WAIT_NUM=1
$env:GAS_PRICE=3
eth
$env:ENV_FILE='./envs/env.eth'
$env:NETWORK_ID=1
$env:WAIT_NUM=3
$env:GAS_PRICE=30
script
deploy script
yarn run env-cmd -f $env:ENV_FILE yarn run hardhat UniswapV2:deploy --gas-price $env:GAS_PRICE --wait-num $env:WAIT_NUM --network $env:NETWORK_ID
verify contract
yarn run env-cmd -f $env:ENV_FILE yarn run hardhat UniswapV2:verify --network $env:NETWORK_ID