Skip to content

term-structure/TS-smart-contract

Repository files navigation

Term Structure Contracts Diamond

Get Started

Test

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:

  1. Create .env file based on .env.example and set MAINNET_RPC_URL for mainnet fork testing
npm run test

Deployment

Local

  1. Run hardhat node
npm run start
  1. Deploy Term Structure protocol on local
npm run deploy:local

Devnet/Testnet/Mainnet

  1. Create .env file based on .env.example and set all devnet/testnet/mainnet config

  2. Set network config in hardhat.config.ts

  3. Deploy to devnet/testnet/mainnet

npm run deploy:devnet
npm run deploy:testnet
npm run deploy:mainnet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published