CypherShares is a new index protocol that offers the most comprehensive and liquid index products in crypto. Our initial index will be the CypherShares DeFi Index (csDEFI) and will hold at least 100 tokens of the best DeFi projects. CypherShares will use a novel Threshold Farming strategy in order to incentivise index liquidity.
-
Controller: 0x2E0F1bA21146ff234B0A07E298c70490ff54ffaD
-
CSTokenCreator: 0xd268f4052E7bB0dA6724151CF20a196b8875D983
-
BasicIssuanceModule: 0x0f0eE18189FB5472226A7E54e0c7a3BB1155705D
-
NavIssuanceModule: 0xE4F09C87E5DC4e309f84729d525C681751496321
-
GovernanceModule: 0x31Dca181eF571FC86eCE79d85D311667d122F95a
-
StreamingFeeModule: 0x10974dC97962677f0d913E89ef6b93c2941B2332
-
SingleIndexModule: 0x83D850EA8592c4EFF8dbb4E4b5e419Bc999eF7F4
-
Example Index (csDEFI): 0xf9d50338Fb100B5a97e79615a8a912e10975b61c
- Hardhat: compile and run the smart contracts on a local development network
- TypeChain: generate TypeScript types for smart contracts
- Ethers: renowned Ethereum library and wallet implementation
- Waffle: tooling for writing comprehensive smart contract tests
- Solhint: linter
- Solcover code coverage
- Prettier Plugin Solidity: code formatter
Before running any command, make sure to install dependencies:
$ yarn install
Compile the smart contracts with Hardhat:
$ yarn compile
Compile the smart contracts and generate TypeChain artifacts:
$ yarn build
Lint the Solidity code:
$ yarn lint:sol
Lint the TypeScript code:
$ yarn lint:ts
Run the Mocha tests:
$ yarn test
Generate the code coverage report:
$ yarn coverage
Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
$ yarn clean