Swapping from token A to token B.
Clone this repository, then install the dependencies with npm install
, then compile contracts with npm run compile
.
npm run test
npm run coverage
npm run doc
or npx hardhat docgen
The document will be created in the docs folder.
Check about NatSpec to know how to describe your contract to docgen.
Script to deploy SimpleSwap in rinkeby.
create .env before.
npx hardhat run --network rinkeby scripts/deploySimpleSwap.ts