Skip to content

Commit aaa4249

Browse files
authoredFeb 3, 2025··
Merge pull request #574 from lidofinance/feat/oracle-v5
[EPIC] Oracle V5 (Pectra Duck)
2 parents 6334d61 + 0dbc1d8 commit aaa4249

File tree

99 files changed

+4531
-3163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+4531
-3163
lines changed
 
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Mainnet Fork Tests
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- edited
10+
- closed
11+
branches:
12+
- main
13+
- develop
14+
paths:
15+
- "src/**"
16+
17+
permissions:
18+
contents: read
19+
security-events: write
20+
21+
jobs:
22+
tests:
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Set up Python 3.12
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: "3.12"
32+
33+
- name: Setup poetry
34+
run: >
35+
curl -sSL https://install.python-poetry.org | python - &&
36+
echo "$POETRY_HOME/bin" >> "$GITHUB_PATH"
37+
env:
38+
POETRY_HOME: "/opt/poetry"
39+
POETRY_VERSION: 1.3.2
40+
41+
- name: Install Python dependencies
42+
run: |
43+
poetry install --no-interaction --with=dev
44+
45+
- name: Install Foundry
46+
uses: foundry-rs/foundry-toolchain@v1
47+
48+
- name: Mainnet Fork Tests
49+
run: poetry run pytest -m 'fork' -n auto tests
50+
env:
51+
EXECUTION_CLIENT_URI: ${{ secrets.EXECUTION_CLIENT_URI }}
52+
CONSENSUS_CLIENT_URI: ${{ secrets.CONSENSUS_CLIENT_URI }}
53+
KEYS_API_URI: ${{ secrets.KEYS_API_URI }}
54+
LIDO_LOCATOR_ADDRESS: "0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb"
55+
CSM_MODULE_ADDRESS: "0xdA7dE2ECdDfccC6c3AF10108Db212ACBBf9EA83F"
56+

‎README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Only Oracle:
5858
- Memory - 8 GB
5959

6060
Oracle + KAPI:
61+
6162
- vCPU - 4
6263
- Memory - 16 GB
6364

@@ -79,13 +80,13 @@ Oracle needs two weeks of archived data.
7980

8081
Also, to calculate some metrics for bunker mode Oracle needs [archive](https://ethereum.org/en/developers/docs/nodes-and-clients/#archive-node) consensus node.
8182

82-
| Client | Tested | Notes |
83-
|---------------------------------------------------|:------:|-------------------------------------------------------------------------------------------------------------------------------------------------|
84-
| [Lighthouse](https://lighthouse.sigmaprime.io/) | 🟢 | Use `--reconstruct-historic-states` param |
85-
| [Lodestar](https://lodestar.chainsafe.io) | 🔴 | Not tested yet |
86-
| [Nimbus](https://nimbus.team) | 🔴 | Not tested yet |
87-
| [Prysm](https://github.com/prysmaticlabs/prysm) | 🟢 | Use <br> `--grpc-max-msg-size=104857600` <br> `--enable-historical-state-representation=true` <br> `--slots-per-archive-point=1024` <br> params |
88-
| [Teku](https://docs.teku.consensys.net) | 🟢 | Use <br> `--data-storage-mode=archive` <br>`--data-storage-archive-frequency=1024`<br> `--reconstruct-historic-states=true`<br> params |
83+
| Client | Tested | Notes |
84+
|-------------------------------------------------|:------:|-------------------------------------------------------------------------------------------------------------------------------------------------|
85+
| [Lighthouse](https://lighthouse.sigmaprime.io/) | 🟢 | Use `--reconstruct-historic-states` param |
86+
| [Lodestar](https://lodestar.chainsafe.io) | 🔴 | Not tested yet |
87+
| [Nimbus](https://nimbus.team) | 🔴 | Not tested yet |
88+
| [Prysm](https://github.com/prysmaticlabs/prysm) | 🟢 | Use <br> `--grpc-max-msg-size=104857600` <br> `--enable-historical-state-representation=true` <br> `--slots-per-archive-point=1024` <br> params |
89+
| [Teku](https://docs.teku.consensys.net) | 🟢 | Use <br> `--data-storage-mode=archive` <br>`--data-storage-archive-frequency=1024`<br> `--reconstruct-historic-states=true`<br> params |
8990

9091
### Keys API Service
9192

@@ -281,9 +282,12 @@ Special metrics for ejector oracle:
281282
282283
Special metrics for CSM oracle:
283284
284-
| Metric name | Description | Labels |
285-
|-----------------------------------|---------------------------------------------|--------|
286-
| TBD | TBD | |
285+
| Metric name | Description | Labels |
286+
|---------------------------------|----------------------------------------|--------|
287+
| csm_current_frame_range_l_epoch | Left epoch of the current frame range | |
288+
| csm_current_frame_range_r_epoch | Right epoch of the current frame range | |
289+
| csm_unprocessed_epochs_count | Unprocessed epochs count | |
290+
| csm_min_unprocessed_epoch | Minimum unprocessed epoch | |
287291
288292
# Development
289293

0 commit comments

Comments
 (0)
Please sign in to comment.