- In helpers/token-pairs.json, helpers/pools.json, and helpers/intermediate-tokens.json, the list between test and production is separated.
yarn
yarn test
yarn test
In 1st terminal session
# start local node
yarn hardhat node
In 2nd terminal session
# deploy base contracts
yarn hardhat run scripts/deploy-ul-base.ts --network localhost
# deploy dex
yarn hardhat run scripts/deploy-dex.ts --network localhost
# input the following parameters
✔ Which dex do you want to deploy? (Ex: UniV3Dex, the contract name) …
✔ Which name do you want to represent the dex? (Ex: uniV3) …
# set fees
yarn hardhat run scripts/set-fees.ts --network localhost
# set pools
yarn hardhat run scripts/set-pools.ts --network localhost
# set token pairs
yarn hardhat run scripts/set-paths.ts --network localhost