You need Node.js 16+ to build. Use nvm to install it.
Clone this repository, install Node.js dependencies, and build the source code:
git clone [email protected]:tkspring/term-structure-contracts-diamond.git
npm i
npm run buildRun all the test cases:
- Create
.envfile based on.env.exampleand setMAINNET_RPC_URLfor mainnet fork testing
npm run test- Run hardhat node
npm run start- Deploy Term Structure protocol on local
npm run deploy:local-
Create
.envfile based on.env.exampleand set alldevnet/testnet/mainnet config -
Set network config in
hardhat.config.ts -
Deploy to devnet/testnet/mainnet
npm run deploy:devnet
npm run deploy:testnet
npm run deploy:mainnet