[!CAUTION] This repo comes with no guarantees This is not an archive of all contract versions. The current source code and what was deployed in the past may differ. This repo aims to centralize all smart contracts used in the THORSwap protocol, some import paths and dependencies have been adapted. Some contracts were audited, some were not audited, refer to
/audits
folder.
Install dependencies with yarn install
.
Compile contracts with npx hardhat compile
.
Simply npx hardhat test
Carefully set up ./scripts/deploy.ts
and run npx hardhat run --network mainnet ./scripts/deploy.ts
.
For Avax: copy this config: https://snowtrace.io/documentation/recipes/hardhat-verification
And run
npx hardhat verify --network NETWORK_NAME CONTRACT_ADRESS "CONSTRUCTOR_ARGUMENT_1" "CONSTRUCTOR_ARGUMENT_2"