-
create new and empty hardhat project
npx hardhat
-
set configuration in
hardhat.config.js
file -
create two erc20 contracts using openzeppelin in
contracts
folder -
write deploy scripts for both in
scripts
folder -
write ALCHEMY_API and PRIVATE_KEY in
.env
file -
deploy contracts using deploy scripts
-
create script for uniswap pool in
createUniswapPool.js
file -
create uniswap v2 pool
-
migerate uniswap v3 to v3
npx hardhat
npx hardhat compile
npx hardhat run scripts/deployABToken1.js --network goerli
npx hardhat run scripts/deployABToken2.js --network goerli
npx hardhat compile --force
npx hardhat verify --contract contracts/ABToken1.sol:ABToken1 0x516538D612a292C55042F340186ffF4AF3bDeba3 --network goerli
npx hardhat verify --contract contracts/ABToken2.sol:ABToken2 0x6fa292Ac5f300c84e007873bBaa052570b5390C4 --network goerli
npx hardhat verify --network goerli 0x516538D612a292C55042F340186ffF4AF3bDeba3
npx hardhat verify --network goerli 0x6fa292Ac5f300c84e007873bBaa052570b5390C4
-
AB Token 1 is deployed at: 0x516538D612a292C55042F340186ffF4AF3bDeba3
-
AB Token 2 is deployed at: 0x6fa292Ac5f300c84e007873bBaa052570b5390C4
UNISWAP_V3_FACTORY_ADDRESS = '0x1F98431c8aD98523631AE4a59f267346ea31F984'