@indexcoop/index-coop-smart-contracts
TypeScript icon, indicating that this package has built-in type declarations

0.32.0 • Public • Published

CircleCI

Coverage Status

Index Cooperative Smart Contracts

This repo houses the index-coop's Solidity smart contracts which are built on Set Protocol V2. There is a separate repository for Index Protocol, a good-fath fork of Set V2 that Index Coop will continue to develop. Head over to that repo to find our newer smart contracts.

Install (for development)

yarn

Run Hardhat EVM

yarn chain

Build Contracts

yarn compile

Generate TypeChain Typings

yarn build

Run Contract Tests

yarn test to run compiled contracts (executes on network localhost, you need to have yarn chain running)

OR yarn test:clean if contract typings need to be updated

Run Integration Tests

yarn chain:fork:ethereum in one terminal to run chain fork. replace ethereum with polygon if needed, see package.json

yarn test:integration:ethereum in another terminal, replace chain again as needed

To run an individual test on e.g. a later block, use (replace path): LATESTBLOCK=15508111 INTEGRATIONTEST=true VERBOSE=true npx hardhat test ./test/integration/ethereum/flashMintWrappedIntegration.spec.ts --network localhost

Run Coverage Report for Tests

yarn coverage

Installing from npm

index-coop publishes its contracts as well as hardhat and typechain compilation artifacts to npm.

The distribution comes with fixtures for mocking and testing interactions with other protocols including Uniswap and Compound. To use these you'll need to install the peer dependencies listed in package.json.

npm install @indexcoop/index-coop-smart-contracts

Contributing

We highly encourage participation from the community to help shape the development of Index-Coop. If you are interested in developing on index-coop or have any questions, please ping us on Discord.

Security Audits

Set Protocol V2 has undergone multiple audits. For more information see https://index-coop.gitbook.io/index-coop-community-handbook/protocols/security-and-audits

Vulnerability Reporting

If you believe you’ve found a security vulnerability in one of our contracts or platforms, we encourage you to submit it through our ImmuneFi Bug Bounty program.

Readme

Keywords

none

Package Sidebar

Install

npm i @indexcoop/index-coop-smart-contracts

Weekly Downloads

1

Version

0.32.0

License

MIT

Unpacked Size

85.5 MB

Total Files

2849

Last publish

Collaborators

  • 0xonramp
  • jdindex
  • pblivin
  • christn
  • edwardkim