into-the-fathom-swap-smart-contracts
v1.1.0
Published
FathomSwap Smart Contracts
Downloads
159
Keywords
Readme
FathomSwap Smart Contracts
Setup
# Install Node.js & npm
# Install local node dependencies:
$ npm install
# Set private key:
$ echo -n "YOUR_PRIVATE_KEY" > privateKey
# Compile contracts
$ npx hardhat compile
# Run tests:
$ npm run test
# Deploy to $network
$ npx hardhat run scripts/deploy.js --network $network
# Set fee receipient
$ npx hardhat run scripts/set-fee-receipient.js --network $network
# Set ownership (address that has permission to set fee receipient)
$ npx hardhat run scripts/set-ownership.js --network $network
# Deploy multicall (only 1 instance needed on network)
$ npx hardhat run scripts/deploy-multicall.js --network $network