Fork of Uniswap V2-Periphery containing a modified version of Uniswap V2-Core. In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
Hardhat docs can be found here
yarn
npx hardhat node
npx hardhat console --network localhost
npx hardhat run scripts/run.js --network localhost
Create an env file in the project root for each environment you wish to deploy in:
$ touch .env.ENV_NAME
.env files should contain the following values:
API_URL="GET_AN_API_KEY_FROM_ALCHEMY"
PRIVATE_KEY="YOUR_WALLET_PRIVATE_KEY_TO_DEPLOY_FROM"
WETH_ADDRESS="THE_WETH_CONTRACT_ADDRESS_ON_TARGET_CHAIN"
ETHERSCAN_API_KEY="GET_AN_ETHERSCAN_API_KEY_FROM_TARGET_BLOCK_EXPLORER"
Run deployment-related commends with the NODE_ENV set to target chain eg:
$ NODE_ENV=matic npx hardhat run scripts/deploy.js --network matic
The following assumes the use of node@>=10
.
yarn
yarn compile
yarn test
In-depth documentation on Uniswap V2 is available at uniswap.org.
The built contract artifacts can be browsed via unpkg.com.
The following assumes the use of node@>=10
.
yarn
yarn compile
yarn test