This is the deployment folder of UniswapV2Router02 of uniswapV2 periphery.
- First I install hardhat in our folder, using run:
npm install --save-dev hardhat
- Then for the creation of hardhat files & folders & config file using:
npx hardhat
-
Some optimization according to my requirements.
-
Then install some libraries using:
npm i @uniswap/v2-core
npm i @uniswap/lib
- After installation, for compile the contracts, run:
npx hardhat compile
- After compile the contracts, for deploy on testnet(goerli), I run:
npx hardhat run --network goerli scripts/deploy.js
- 0x9f9ecb608777832fac1a8be464130c623d21f3ed4a4f3a5d22957166d25fdcfa
- 0x36b1f5c335311013011175d5fb5363bec0e2a54d