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 build
Run all the test cases:
- Create
.env
file based on.env.example
and setMAINNET_RPC_URL
for mainnet fork testing
npm run test
- Run hardhat node
npm run start
- Deploy Term Structure protocol on local
npm run deploy:local
-
Create
.env
file based on.env.example
and 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