Perpetual futures exchange on Avalanche.
Follow this to intall foundry
forge install foundry-rs/forge-std
npm run compile
npm t
forge test -vvv
forge test -vvv --watch // for watch mode
# starts node on `http://127.0.0.1:8545/` with 10K ETH in 20 accounts generated from mnemonic: `test test test test test test test test test test test junk`
npx hardhat node
npx hardhat run scripts/deploy-local.js --network local
- Add the rpc in hardhat.config.js after starting a subnet node
- Expects some gas token in the first 3 accounts generated from mnemonic:
test test test test test test test test test test test junk
- Deploy contracts
npx hardhat run scripts/deploy/local.js --network subnet
npx hardhat run scripts/deploy-fuji.js --network fuji
npx hardhat docgen
Open ./docgen/index.html
in a browser.
npx hardhat coverage
Open ./coverage/index.html
in a browser.
npm run gas-reporter