通过交易所代付GAS实现cheapswap。
yarn test ./test/cheapMintNFT.test.ts
yarn test ./test/cheapSwapRouterV3.test.ts
yarn
yarn build
yarn test
yarn test:cov
export ENV_FILE='./envs/env.bscTest'
export NETWORK_ID=97
export WAIT_NUM=1
export GAS_PRICE=10
export ENV_FILE='./envs/env.bsc'
export NETWORK_ID=56
export WAIT_NUM=3
export GAS_PRICE=5
export ENV_FILE='./envs/env.rinkeby'
export NETWORK_ID=4
export WAIT_NUM=1
export GAS_PRICE=3
export ENV_FILE='./envs/env.ropsten'
export NETWORK_ID=3
export WAIT_NUM=1
export GAS_PRICE=3
export ENV_FILE='./envs/env.eth'
export NETWORK_ID=1
export WAIT_NUM=3
export GAS_PRICE=30
export ENV_FILE='./envs/env.ployTest'
export NETWORK_ID=80001
export WAIT_NUM=3
export GAS_PRICE=10
export ENV_FILE='./envs/env.ploy'
export NETWORK_ID=137
export WAIT_NUM=3
export GAS_PRICE=35
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:deploy --contract CheapSwapFactory --gas-price $GAS_PRICE --wait-num $WAIT_NUM --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:deploy --contract CheapMintNFT --gas-price $GAS_PRICE --wait-num $WAIT_NUM --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:deploy --contract ERC721_TEST --gas-price $GAS_PRICE --wait-num $WAIT_NUM --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:deploy --contract CheapSwapRouterV3 --gas-price $GAS_PRICE --wait-num $WAIT_NUM --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract CheapSwapFactory --args [] --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract CheapSwapAddress --args [\"\"] --address 0x --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract CheapMintNFT --args [] --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract ERC721_TEST --args [] --network $NETWORK_ID
yarn run env-cmd -f $ENV_FILE yarn run hardhat contract:verify --contract CheapSwapRouterV3 --args [] --network $NETWORK_ID