Inspired by Codex Protocol | ERC 900 Contracts
For background on ERC-900 itself, view the issue in the EIP repo here: ethereum/EIPs#900
- 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.
-------------------------------|----------|----------|----------|----------|----------------|
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 | |
-------------------------------|----------|----------|----------|----------|----------------|
- uncomment relevant network sessions in truffle-config.js
- 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