@alys-chain/verto-v2-periphery
v2.0.5
Published
Periphery Smart Contracts of Verto V2
Downloads
5
Readme
verto-v2-periphery
This project demonstrates a Verto-v2-Peripher project. It comes with router contracts, a test for those contracts, and a sample Hardhat Ignition module that deploys that contract.
# node: >= 18.16
# install:
yarn
# build
yarn build
# publish
npm login
npm publish --access public1. "typechain": generate ts files for each contract's instance.
`yarn typechain`
2. "compile": compile contracts with hardhat command,
`yarn run compile`
if you wanna swap or addLiquidity for given tokens; you may step into folder "scripts" and run the following script in terminal.
``` test
1. addLiquidity: ` npx hardhat --network talys run scripts/AddLiquidity.ts `
2. Deploy Router: ` npx hardhat --network talys run scripts/Deploy.ts `
3. swap tokens: ` npx hardhat --network talys run scripts/Swap.ts `Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts