GithubHelp home page GithubHelp logo

kibagateaux / index-coop-smart-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indexcoop/index-coop-smart-contracts

0.0 1.0 0.0 1.92 MB

Repo housing contracts, deploys, and js library for Index Coop

License: Apache License 2.0

JavaScript 0.25% TypeScript 68.37% Solidity 31.38%

index-coop-smart-contracts's Introduction

Coverage Status

index

This repo houses the index-coop's Solidity 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

OR yarn test:clean if contracts have been typings need to be updated

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 @setprotocol/index-coop-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

TODO: Independent Audits

Code Coverage

All smart contracts are tested and have 100% line and branch coverage.

Vulnerability Disclosure Policy

The disclosure of security vulnerabilities helps us ensure the security of our users.

How to report a security vulnerability?

If you believe you’ve found a security vulnerability in one of our contracts or platforms, send it to us by emailing [email protected]. Please include the following details with your report:

  • A description of the location and potential impact of the vulnerability.

  • A detailed description of the steps required to reproduce the vulnerability.

Scope

Any vulnerability not previously disclosed by us or our independent auditors in their reports.

Guidelines

We require that all reporters:

  • Make every effort to avoid privacy violations, degradation of user experience, disruption to production systems, and destruction of data during security testing.

  • Use the identified communication channels to report vulnerability information to us.

  • Keep information about any vulnerabilities you’ve discovered confidential between yourself and Set until we’ve had 30 days to resolve the issue.

If you follow these guidelines when reporting an issue to us, we commit to:

  • Not pursue or support any legal action related to your findings.

  • Work with you to understand and resolve the issue quickly (including an initial confirmation of your report within 72 hours of submission).

  • Grant a monetary reward based on the OWASP risk assessment methodology.

index-coop-smart-contracts's People

Contributors

richardliang avatar cgewecke avatar justinkchen avatar bweick avatar ncitron avatar asoong avatar 0xmodene avatar felix2feng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.