Giter Site home page Giter Site logo

cro-staking's Introduction

DeFi Swap | ERC 900 Contracts

Build Status

Inspired by Codex Protocol | ERC 900 Contracts

Background

For background on ERC-900 itself, view the issue in the EIP repo here: ethereum/EIPs#900

Contracts

  • ERC900.sol - ERC-900 interface
  • ERC900BasicStakeContract.sol and BasicStakingContract.sol- A basic implementation of the ERC-900 interface that allows staking of specified ERC20 token.

Code coverage

-------------------------------|----------|----------|----------|----------|----------------|
File                           |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-------------------------------|----------|----------|----------|----------|----------------|
 ERC900/                       |      100 |    83.33 |      100 |      100 |                |
  BasicStakingContract.sol     |      100 |      100 |      100 |      100 |                |
  ERC900.sol                   |      100 |      100 |      100 |      100 |                |
  ERC900BasicStakeContract.sol |      100 |    83.33 |      100 |      100 |                |
 library/                      |      100 |      100 |      100 |      100 |                |
  Debuggable.sol               |      100 |      100 |      100 |      100 |                |
-------------------------------|----------|----------|----------|----------|----------------|
All files                      |      100 |    83.33 |      100 |      100 |                |
-------------------------------|----------|----------|----------|----------|----------------|

Deploy contracts

  1. uncomment relevant network sessions in truffle-config.js
  2. Populate .env with INFURA_API_KEY and MNEMONIC
  • 3.1. if you are deploying from the start, run yarn deploy-on-ropsten ;
  • 3.2. or if you are only deploying delta, add files under our/cro-staking/migrations/* with next sequence number, and run ./node_modules/.bin/truffle migrate --network $network_name

cro-staking's People

Contributors

johnhforrest avatar cldh214 avatar landanhu 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.