Skip to content

Commit 9673839

Browse files
authored
Merge pull request #1637 from lidofinance/develop
Lido V3 (3.0.1)
2 parents d5d9226 + 89c32c3 commit 9673839

File tree

73 files changed

+2488
-623
lines changed

Some content is hidden

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

73 files changed

+2488
-623
lines changed

.github/workflows/linters.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ jobs:
5858
- name: Run format check
5959
run: yarn format
6060

61-
validate-configs:
62-
name: Validate Configs
63-
runs-on: ubuntu-latest
61+
# validate-configs:
62+
# name: Validate Configs
63+
# runs-on: ubuntu-latest
6464

65-
steps:
66-
- uses: actions/checkout@v4
65+
# steps:
66+
# - uses: actions/checkout@v4
6767

68-
- name: Common setup
69-
uses: ./.github/workflows/setup
68+
# - name: Common setup
69+
# uses: ./.github/workflows/setup
7070

71-
- name: Validate configurations
72-
run: yarn validate:configs
71+
# - name: Validate configurations
72+
# run: yarn validate:configs

.github/workflows/tests-integration-hoodi.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@ jobs:
2323
run: yarn test:integration
2424
env:
2525
RPC_URL: "${{ secrets.HOODI_RPC_URL }}"
26-
LOG_LEVEL: debug
2726
NETWORK_STATE_FILE: deployed-hoodi.json
28-
# TODO: enable csm integration tests later (CSM is deployed on hoodis)
29-
INTEGRATION_WITH_CSM: "off"

.github/workflows/tests-integration-mainnet.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,14 @@ jobs:
1313
SKIP_CONTRACT_SIZE: true
1414
SKIP_INTERFACES_CHECK: true
1515

16-
services:
17-
hardhat-node:
18-
image: ghcr.io/lidofinance/hardhat-node:2.26.0
19-
ports:
20-
- 8555:8545
21-
env:
22-
ETH_RPC_URL: "${{ secrets.ETH_RPC_URL }}"
23-
DONT_SET_CHAIN_ID: true
24-
HARDFORK: "prague"
25-
2616
steps:
2717
- uses: actions/checkout@v4
2818

2919
- name: Common setup
3020
uses: ./.github/workflows/setup
3121

32-
- name: Mock Aragon voting
33-
run: yarn upgrade:mock-voting
34-
env:
35-
RPC_URL: http://localhost:8555
36-
NETWORK_STATE_FILE: deployed-mainnet.json
37-
38-
- name: Workaround for not updated state error when forking a fork
39-
run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts
40-
env:
41-
RPC_URL: http://localhost:8555
42-
4322
- name: Run integration tests
4423
run: yarn test:integration
4524
env:
46-
RPC_URL: http://localhost:8555
47-
LOG_LEVEL: debug
25+
RPC_URL: "${{ secrets.ETH_RPC_URL }}"
4826
NETWORK_STATE_FILE: deployed-mainnet.json

.github/workflows/tests-integration-upgrade-template.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/verify-state-hoodi.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/verify-state.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Verify State
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "main"
8+
- "develop"
9+
schedule:
10+
- cron: "0 0 * * *" # runs every day at midnight UTC
11+
12+
jobs:
13+
run_state_mate_hoodi:
14+
name: Hoodi State
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 120
17+
env:
18+
STATE_MATE_BRANCH: "main"
19+
HOODI_REMOTE_RPC_URL: "https://hoodi.drpc.org"
20+
21+
steps:
22+
- name: Checkout state-mate
23+
uses: actions/checkout@v4
24+
with:
25+
repository: lidofinance/state-mate
26+
ref: ${{ env.STATE_MATE_BRANCH }}
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: "20"
32+
33+
- name: Enable Corepack
34+
run: corepack enable
35+
36+
- name: Install dependencies
37+
run: yarn install
38+
39+
- name: Run state-mate (V3 Hoodi Testnet)
40+
run: yarn start configs/lidov3/hoodi/lidov3-testnet.yaml
41+
42+
- name: Run state-mate (V3 Hoodi Easy Track)
43+
run: yarn start configs/lidov3/hoodi/lidov3-et-testnet.yml
44+
45+
run_state_mate_mainnet:
46+
name: Mainnet State
47+
runs-on: ubuntu-latest
48+
timeout-minutes: 120
49+
env:
50+
STATE_MATE_BRANCH: "main"
51+
REMOTE_RPC_URL: "${{ secrets.ETH_RPC_URL }}"
52+
53+
steps:
54+
- name: Checkout state-mate
55+
uses: actions/checkout@v4
56+
with:
57+
repository: lidofinance/state-mate
58+
ref: ${{ env.STATE_MATE_BRANCH }}
59+
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v4
62+
with:
63+
node-version: "20"
64+
65+
- name: Enable Corepack
66+
run: corepack enable
67+
68+
- name: Install dependencies
69+
run: yarn install
70+
71+
- name: Run state-mate (V3 Mainnet)
72+
run: yarn start configs/lidov3/mainnet/lidov3-core-post-phase-2.yaml
73+
74+
- name: Run state-mate (V3 Mainnet Easy Track)
75+
run: yarn start configs/lidov3/mainnet/lidov3-et-post-vote-phase-2.yml

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
## Disclaimer!
2-
3-
This is the core repository of the Lido on Ethereum protocol. The entire codebase, excluding contracts, has undergone significant refactoring and tooling modernization. For historical context or legacy information, refer to the [last legacy commit](https://github.com/lidofinance/lido-dao/tree/de9e895879126b482effedd8fa1f2af3f7dc2dd4).
4-
5-
---
6-
71
<div>
8-
<img alt="Lido" src="https://img.shields.io/badge/v2.1-version?label=lido&labelColor=rgb(91%2C%20162%2C%20252)&color=white"/>
2+
<img alt="Lido" src="https://img.shields.io/badge/v3.0.1-version?label=lido&labelColor=rgb(91%2C%20162%2C%20252)&color=white"/>
93
<img alt="GitHub license" src="https://img.shields.io/github/license/lidofinance/lido-dao?labelColor=orange&color=white"/>
104
<img alt="Solidity" src="https://img.shields.io/badge/multiver-s?style=flat&label=solidity&labelColor=rgb(86%2C%2085%2C%20212)&color=white"/>
115
<img alt="Aragon OS" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Flidofinance%2Fcore%2Fmaster%2Fpackage.json&query=%24.dependencies%5B'%40aragon%2Fos'%5D&style=flat&label=aragon%2Fos&labelColor=rgb(70%2C%20100%2C%20246)&color=white"/>
@@ -63,6 +57,10 @@ Please refer to the [Lido Contribution Guide](/CONTRIBUTING.md).
6357

6458
Please refer to the [Lido Contributor Code of Conduct](/CODE_OF_CONDUCT.md).
6559

60+
## Disclaimer
61+
62+
This is the core repository of the Lido on Ethereum protocol. The codebase (excluding contracts) has undergone significant refactoring and tooling modernization, so older guides and references may not match the current layout. For historical context or legacy information, see the [last legacy commit](https://github.com/lidofinance/lido-dao/tree/de9e895879126b482effedd8fa1f2af3f7dc2dd4).
63+
6664
## License
6765

6866
2025 Lido <info@lido.fi>

contracts/0.8.25/vaults/predeposit_guarantee/PredepositGuarantee.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ contract PredepositGuarantee is IPredepositGuarantee, CLProofVerifier, PausableU
265265
* @param _withdrawalCredentials withdrawal credentials of the deposit message to verify
266266
* @dev reverts with `InvalidSignature` if the signature is invalid
267267
* @dev reverts with `InputHasInfinityPoints` if the input contains infinity points(zero values)
268+
* @dev reverts with `InvalidDepositAmount` if `_deposit.amount` is not gwei-aligned
268269
*/
269270
function verifyDepositMessage(
270271
IStakingVault.Deposit calldata _deposit,

0 commit comments

Comments
 (0)