Skip to content

Commit

Permalink
Add logic for getting and changing the epoch and private keys of vali…
Browse files Browse the repository at this point in the history
…dators
  • Loading branch information
Klyaus committed Sep 21, 2020
1 parent aa8fe00 commit acc58fb
Show file tree
Hide file tree
Showing 5 changed files with 2,974 additions and 6 deletions.
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,31 @@ Pythonic oracle daemon for DePool decentralized staking service. Periodically re

define the environment variables

```
export ETH1_NODE='http://127.0.0.1:8139'
export ETH2_NODE='http://127.0.0.1:8140'
export DEPOOL_CONTRACT='0xdeadbeef'
export REPORT_INTVL_EPOCHS=7200
```sh
export ETH1_NODE="http://localhost:8545"
export ETH2_NODE="http://localhost:5052"
export ORACLE_CONTRACT="0x2e25c8F88c5cCcbC9400e5bc86cF9C58C7604327"
export DEPOOL_CONTRACT="0x7a80f0b3848242281A5ae126596b54d4010C30FE"
export REPORT_INTVL_EPOCHS="7200"
export MANAGER_PRIV_KEY="0xa8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563"
export DEPOOL_ABI_FILE='./assets/IDePool.json'
export ORACLE_ABI_FILE='./assets/oracle.abi'
python3 oracle.py
```

## Test

WIP
WIP

## Helpers

### Referral counter

Parses submission events on PoW side and counts referral statistics

```sh
export ETH1_NODE='http://127.0.0.1:8545'
export DEPOOL_ABI='dePool.abi'
export DEPOOL_ADDR='0xfe18BCBeDD6f46e0DfbB3Aea02090F23ED1c4a28'
python3 count_referrals.py <start block> <end block>
```
Loading

0 comments on commit acc58fb

Please sign in to comment.