Skip to content

Commit

Permalink
Fetch cluster balance and burn rate from contract
Browse files Browse the repository at this point in the history
  • Loading branch information
mksh committed Sep 25, 2024
1 parent 9544464 commit 9044284
Show file tree
Hide file tree
Showing 7 changed files with 2,149 additions and 154 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pyyaml = "*"
furl = "*"
pydantic = "*"
pydantic-settings = "*"
web3 = "*"

[dev-packages]
pytest = "*"
Expand Down
994 changes: 901 additions & 93 deletions Pipfile.lock

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Dimensions:

----------

`ssv_cluster_network_fee_index` -- current [network fee index](https://docs.ssv.network/learn/protocol-overview/tokenomics/payments) of a cluster in SSV system
`ssv_cluster_burn_rate` -- current [burn rate](https://docs.ssv.network/learn/protocol-overview/tokenomics/liquidations#burn-rate) of a cluster in SSV system

Dimensions:
- `cluster_id` an unique 0x-prefixed hex identifier of the cluster in SSV system
Expand Down Expand Up @@ -60,10 +60,11 @@ Exporter accepts single positional parameter `config_file` which is a location
of YAML config file. The YAML file accepts following parameters:

- `interval_ms` -- interval in milliseconds of checking SSV API
- `clusters` -- list of clusters, every cluster should have `network` and `cluster_id` properties
- `owners` -- list of owner addresses, every owner should have `network` and `address` properties
- `ethereum_rpc` -- address of Ethereum JSON-RPC endpoint to use for calling contracts
- `network` -- this should be either `mainnet` or `holesky`
- `clusters` -- list of clusters, every cluster should have `cluster_id` properties
- `owners` -- list of owner addresses, every owner should have `address` properties

- `network` property should be one of `mainnet` or `holesky`
- `cluster_id` is an unique 0x-prefixed hex identifier of the cluster in SSV system
- `address` is 0x-prefixed 40 letters Ethereum address value

Expand Down
4 changes: 2 additions & 2 deletions config.example.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
interval_ms: 30000
network: holesky
ethereum_rpc: https://ethereum-holesky-rpc.publicnode.com
clusters:
- cluster_id: "0xde12c5ce1bc895c3ed8b81afcbbb55b3efff7ae9ebac5dbd2ebac3bd29474c09"
network: "holesky"
owners:
- address: "0xd4bb555d3b0d7ff17c606161b44e372689c14f4b"
network: "holesky"
Loading

0 comments on commit 9044284

Please sign in to comment.