Skip to content

33357/uniswap-v2-contract

Repository files navigation

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

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/env.eth'
export NETWORK_ID=1
export WAIT_NUM=3
export GAS_PRICE=30

script

deploy script

yarn run env-cmd -f $ENV_FILE yarn run hardhat UniswapV2:deploy --gas-price $GAS_PRICE --wait-num $WAIT_NUM --network $NETWORK_ID

verify contract

yarn run env-cmd -f $ENV_FILE yarn run hardhat UniswapV2:verify --network $NETWORK_ID

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published