0.23.2 • Published 18 days ago

@indexcoop/index-coop-smart-contracts v0.23.2

Weekly downloads
-
License
MIT
Repository
github
Last release
18 days ago

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.

0.23.2

18 days ago

0.23.1

19 days ago

0.23.0

19 days ago

0.22.0

2 months ago

0.21.0

3 months ago

0.20.0

4 months ago

0.19.0

7 months ago

0.15.0

9 months ago

0.16.0

9 months ago

0.17.0

8 months ago

0.18.0

7 months ago

0.13.2

1 year ago

0.12.0

1 year ago

0.13.0

1 year ago

0.13.1

1 year ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.6.0

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago