Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
1895deb
wip: initial voting scripts
eddort Aug 8, 2025
dc69058
wip: and todos from madlabman
eddort Aug 8, 2025
5986074
Fix old addresses mainnet
hweawer Sep 11, 2025
a288c42
Remove redundant vote
hweawer Sep 15, 2025
0bc1a74
Allign with vote template
hweawer Sep 15, 2025
c275e5e
Remove redundant function from the vote
hweawer Sep 15, 2025
28e9885
Update voting tests structure
hweawer Sep 15, 2025
d9ce3d3
feat: addresses for voting. regression, acceptance tests for CSM
vgorkavenko Jul 14, 2025
aa7ddb5
Nethermind voting
hweawer Sep 18, 2025
1e4c70a
dg_proposal_calls in tests
hweawer Sep 18, 2025
cc4149e
Fix prevoting checks
hweawer Sep 18, 2025
ba439c8
Fix: voting changes verification, dg event submition
hweawer Sep 18, 2025
fd2845f
Rearrange validations
hweawer Sep 18, 2025
19ae128
Merge branch 'feat/next-vote' into feat/mainnet-tw-and-csmv2
hweawer Sep 18, 2025
8db95bd
feat: CSM Set Vetted Gate Tree address
vgorkavenko Sep 18, 2025
a0c1ca8
Fix tests
hweawer Sep 18, 2025
4d41b32
Merge branch 'feat/mainnet-tw-and-csmv2' of https://github.com/lidofi…
hweawer Sep 18, 2025
1386702
Update Kiln address
hweawer Sep 19, 2025
af47df4
Merge pull request #465 from lidofinance/feat/mainnet-tw-and-csmv2
iamnp Sep 19, 2025
03ef563
fix: remove yarn deps
eddort Sep 19, 2025
a50c455
refactor: remove mainnet scripts and tests
eddort Sep 19, 2025
48f0db5
refactor: return mainnet scripts and tests
eddort Sep 19, 2025
62f37ec
refactor: return prepare_env script
eddort Sep 19, 2025
6173ca2
Merge branch 'feat/next-vote-tw-testnet-only' of github.com:lidofinan…
eddort Sep 19, 2025
da92c0c
Merge pull request #478 from lidofinance/feat/next-vote-tw
iamnp Sep 19, 2025
c3bb45e
fix: naming
Sep 19, 2025
29568a6
fix: yarn lock
Sep 19, 2025
2ae0b43
fix: yarn lock
Sep 19, 2025
6f7cde4
fix: yarn lock
Sep 19, 2025
6acaddf
Merge branch 'feat/next-vote-tw-testnet-only' into feat/next-vote
Sep 19, 2025
33e5c10
Merge branch 'revert-458-revert-455-feat/tw-and-csmv2-restore' of git…
eddort Sep 20, 2025
1597df2
Merge branch 'revert-458-revert-455-feat/tw-and-csmv2-restore' of git…
eddort Sep 20, 2025
f7b7196
Merge branch 'revert-458-revert-455-feat/tw-and-csmv2-restore-master'…
eddort Sep 20, 2025
493c537
Merge pull request #489 from lidofinance/feat/next-vote-move-files-fr…
iamnp Sep 20, 2025
edb8c10
feat: time constraints for tw + csmv2 voting
eddort Sep 20, 2025
d06137c
Merge pull request #491 from lidofinance/feat/tw-time-constraints
eddort Sep 20, 2025
72fb378
fix: descs
Sep 20, 2025
446a1f9
fix: descs
Sep 20, 2025
3f81a33
fix: descs
Sep 20, 2025
c720fba
fix: descs
Sep 20, 2025
f8ef0bc
fix: descs
Sep 20, 2025
fd81ba5
fix: move constants and fix test
eddort Sep 20, 2025
a7c4b7e
Remove import contracts from voting script
hweawer Sep 20, 2025
fb19b40
Remove import contracts from the test
hweawer Sep 20, 2025
a1c511b
clean import
hweawer Sep 20, 2025
5af2faa
Revert renaming
hweawer Sep 20, 2025
3f0ce63
Merge pull request #492 from lidofinance/fix/move-constants
iamnp Sep 20, 2025
f7fc969
refactor: update pre-voting asserts
eddort Sep 20, 2025
c235eb7
fix: evens check memory leak
Sep 20, 2025
020c89d
Merge pull request #493 from lidofinance/fix/next-vote-hh
iamnp Sep 20, 2025
88a3977
fix: CSM share limit values
Sep 20, 2025
fe2e7ba
fix: steps numbering
Sep 20, 2025
9d514ba
fix: easy track address
Sep 21, 2025
23c1427
fix: easy track address (ii)
Sep 21, 2025
4acb357
fix: voting items desc (i)
Sep 21, 2025
049a759
fix: voting items desc (ii)
Sep 21, 2025
ea7be8a
fix: voting items desc (iii)
Sep 21, 2025
48fe56e
fix: voting items desc (iV)
Sep 21, 2025
ec46c28
fix: voting items desc (V)
Sep 21, 2025
012eb38
fix: voting items desc (vi)
Sep 21, 2025
8d2aa61
fix: voting items desc (vii)
Sep 21, 2025
a642ffb
fix: improve readability and fix some values
F4ever Sep 22, 2025
5627987
fix: descs
Sep 22, 2025
ae187b8
chore: Param name
dgusakov Sep 22, 2025
dcda47f
Merge pull request #495 from lidofinance/csm-and-tw-fixes
iamnp Sep 22, 2025
5ea1ed2
feat: remove fixmes
F4ever Sep 22, 2025
8b567c7
fix: `FIXME`s for CSM voting items in tests
vgorkavenko Sep 22, 2025
e924423
Merge pull request #494 from lidofinance/feat/tw-vote-fix-values
iamnp Sep 22, 2025
bb03feb
Merge pull request #496 from lidofinance/fix/todos-in-csm-voting-test
iamnp Sep 22, 2025
323d429
fix: update constants in voting test
eddort Sep 22, 2025
2a07b0e
Merge pull request #497 from lidofinance/feat/tw-vote-fix-values
eddort Sep 22, 2025
26a57e1
fix: item 1.10 desc
Sep 22, 2025
c830453
Acceptance and regression tests for TW and CSM v2 (#485)
hweawer Sep 22, 2025
1ec0e65
Rename FORK_RPC_URL
hweawer Sep 22, 2025
2b98b85
Merge pull request #499 from lidofinance/fix/change-env-name
F4ever Sep 22, 2025
ba6dcd9
Remove get_ea_member (#500)
hweawer Sep 22, 2025
063544a
TW easy tracks regression tests (#501)
hweawer Sep 22, 2025
4f11990
feat: easy track and strikes tests
vgorkavenko Sep 22, 2025
bda3db5
fix: assure_depositable_keys
vgorkavenko Sep 22, 2025
fcc2d9d
refactor: improve time window handling and remove test for stuck oper…
eddort Sep 22, 2025
599c820
Merge pull request #503 from lidofinance/fix/regression-nor-sdvt
F4ever Sep 22, 2025
112c53a
Merge pull request #502 from lidofinance/feat/extra-csm-regression-ac…
Psirex Sep 22, 2025
8db0827
Add limit tests (#504)
hweawer Sep 22, 2025
9f6879d
feat: replace infura input with generic rpc_url in CI workflows
eddort Sep 22, 2025
9f19747
Merge pull request #506 from lidofinance/feat/custom-rpc-ci
F4ever Sep 22, 2025
42c7d4b
fix: update ETH_RPC_URL to use in CI workflows
eddort Sep 22, 2025
b427ed9
Merge pull request #507 from lidofinance/feat/custom-rpc-ci
iamnp Sep 22, 2025
921f61e
fix: snapshot tests
F4ever Sep 22, 2025
4d4ef9d
fix: item 1.10 desc (ii)
Sep 22, 2025
d130dd6
fix: review
F4ever Sep 23, 2025
a784f19
fix: review
F4ever Sep 23, 2025
36630ad
fix: review
F4ever Sep 23, 2025
1e445de
revert: tests with stuck keys
F4ever Sep 23, 2025
2e0f22e
fix: unchanged module state and curve adding event validation
vgorkavenko Sep 23, 2025
a1858f6
fix: update test steps for CSM bond curve validation
skhomuti Sep 23, 2025
b1012da
fix: CSM constants usage
vgorkavenko Sep 23, 2025
ecb8ba4
fix: 1.23 item desc
Sep 23, 2025
6a40719
fix: 1.26 item desc
Sep 23, 2025
35e85ef
fix: add validate_events_chain to all validate_ methods
eddort Sep 23, 2025
d4e04ad
fix: comment
F4ever Sep 23, 2025
a417e9b
fix: add validate_bond_curve_added_on_init_v2_events
vgorkavenko Sep 23, 2025
77f64c6
Merge pull request #508 from lidofinance/feat/fix-snapshot-tests
F4ever Sep 23, 2025
e1c3673
Merge pull request #511 from lidofinance/fix/tw-add-validate_events_c…
F4ever Sep 23, 2025
0fbd962
Merge branch 'feat/next-vote' into fix-reviews-skh
F4ever Sep 23, 2025
cb2d496
Merge pull request #509 from lidofinance/fix-reviews-skh
F4ever Sep 23, 2025
a280d57
Merge branch 'feat/next-vote' into fix/csm-events-in-tests
vgorkavenko Sep 23, 2025
38a9956
Merge pull request #510 from lidofinance/fix/csm-events-in-tests
F4ever Sep 23, 2025
8815aba
Rewrite stuck tests to exited
hweawer Sep 23, 2025
1e6821c
Merge pull request #512 from lidofinance/fix/accounting-oracle-stuck
F4ever Sep 23, 2025
7ee6130
fix node operators snapshot
bulbozaur Sep 23, 2025
d4c7043
fix: snapshot lido tests
F4ever Sep 23, 2025
e5458e1
fix: no tests
F4ever Sep 23, 2025
613c350
Merge pull request #513 from lidofinance/feat/fix-snapshot-tests
F4ever Sep 23, 2025
5164db5
chore: add fixmes
madlabman Sep 23, 2025
22c5ef5
fix: IPFS desc & fixme
Sep 23, 2025
b19804a
Merge pull request #514 from lidofinance/add-fixmes
iamnp Sep 23, 2025
ac6094d
fix: descs for items 3 and 4
Sep 23, 2025
0f4e064
feat: enhance CSM report preparation and update deposit tests
skhomuti Sep 23, 2025
c06f218
Merge pull request #515 from lidofinance/csm-regression-skh
F4ever Sep 25, 2025
96d0d14
chore: move vote 192 to archive
madlabman Sep 28, 2025
f299c1f
Merge pull request #516 from lidofinance/move-to-archive
iamnp Sep 28, 2025
c0cb3dd
chore: rollback snapshot tests
F4ever Oct 2, 2025
7406efe
Fix deposits tests
hweawer Oct 2, 2025
5658f0f
fix: add contract to prefetch
vgorkavenko Oct 2, 2025
b6770fc
fix: testing csm only
vgorkavenko Oct 2, 2025
628c676
Increase coefficients
hweawer Oct 2, 2025
b4dcda2
fix: force prefetch for csm tests
vgorkavenko Oct 2, 2025
2b61be2
Revert "fix: testing csm only"
vgorkavenko Oct 2, 2025
fade055
Merge pull request #519 from lidofinance/fix/etherscan-abi-loading-fo…
iamnp Oct 2, 2025
193004a
Remove +12
hweawer Oct 2, 2025
c562e06
Merge pull request #518 from lidofinance/fix/fix-deposits-tests
iamnp Oct 2, 2025
e257a80
Move tests to archieve
hweawer Oct 2, 2025
cd9c398
Remove timewindow shift
hweawer Oct 2, 2025
20df523
Merge pull request #517 from lidofinance/feat/archive-next-vote
iamnp Oct 3, 2025
e2aa119
- fix incorrect queue ics
skhomuti Oct 3, 2025
692033e
fix: use params registry
vgorkavenko Oct 3, 2025
4602db1
Merge pull request #520 from lidofinance/fix-csm-tests
iamnp Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/actions/brownie_fork_tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ inputs:
description: "vote type: normal or large"
required: false
default: "normal"
infura:
description: "infura JSON-RPC provider"
rpc_url:
description: "Ethereum RPC URL (any provider: Infura, Alchemy, custom)"
required: true
default: ""
etherscan:
Expand Down Expand Up @@ -74,6 +74,5 @@ runs:
run: >
${{ inputs.command }}
env:
WEB3_INFURA_PROJECT_ID: ${{ inputs.infura }}
ETHERSCAN_TOKEN: ${{ inputs.etherscan }}
ETH_RPC_URL: "https://mainnet.infura.io/v3/${{ inputs.infura }}"
ETH_RPC_URL: ${{ inputs.rpc_url }}
4 changes: 2 additions & 2 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Run init script
run: docker exec -e CORE_BRANCH tests-runner bash -c 'make init'
env:
CORE_BRANCH: master
CORE_BRANCH: develop

- name: Run node
run: docker exec -e ETH_RPC_URL --detach tests-runner bash -c 'NODE_PORT=8546 make node'
env:
ETH_RPC_URL: "https://mainnet.infura.io/v3/${{ secrets.WEB3_INFURA_PROJECT_ID }}"
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}

- name: Check that the fork is ready
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dual_governance_regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
- name: Start Hardhat node
shell: bash
run: |
npx hardhat node --fork https://mainnet.infura.io/v3/${{ secrets.WEB3_INFURA_PROJECT_ID }} &
npx hardhat node --fork ${{ secrets.ETH_RPC_URL }} &
for i in {1..30}; do
if curl -sf ${{ env.HARDHAT_NODE_URL }} ${{ env.CURL_PARAMS }} | grep -q '"result"'; then
echo "Hardhat node is ready"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/large_vote_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: ./.github/actions/brownie_fork_tests
with:
vote: "large"
infura: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
rpc_url: ${{ secrets.ETH_RPC_URL }}
etherscan: ${{ secrets.ETHERSCAN_TOKEN }}
command: "make test-1/2"

Expand All @@ -60,6 +60,6 @@ jobs:
uses: ./.github/actions/brownie_fork_tests
with:
vote: "large"
infura: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
rpc_url: ${{ secrets.ETH_RPC_URL }}
etherscan: ${{ secrets.ETHERSCAN_TOKEN }}
command: "make test-2/2"
4 changes: 2 additions & 2 deletions .github/workflows/normal_vote_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: ./.github/actions/brownie_fork_tests
with:
vote: "normal"
infura: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
rpc_url: ${{ secrets.ETH_RPC_URL }}
etherscan: ${{ secrets.ETHERSCAN_TOKEN }}
command: "make test-1/2"

Expand All @@ -36,6 +36,6 @@ jobs:
uses: ./.github/actions/brownie_fork_tests
with:
vote: "normal"
infura: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
rpc_url: ${{ secrets.ETH_RPC_URL }}
etherscan: ${{ secrets.ETHERSCAN_TOKEN }}
command: "make test-2/2"
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif
# Must be different from 8545 because core tests by default run its own fork on 8545
CORE_TESTS_TARGET_RPC_URL ?= http://127.0.0.1:8547
CORE_DIR ?= lido-core
CORE_BRANCH ?= master
CORE_BRANCH ?= develop
NODE_PORT ?= 8545
SECONDARY_NETWORK ?= mfh-2

Expand Down Expand Up @@ -80,6 +80,7 @@ node3:
test-core:
cd $(CORE_DIR) && \
FORK_RPC_URL=$(CORE_TESTS_TARGET_RPC_URL) \
RPC_URL=$(CORE_TESTS_TARGET_RPC_URL) \
yarn test:integration

slots:
Expand Down
910 changes: 910 additions & 0 deletions archive/scripts/upgrade_tw_csm2.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,6 @@ def build_extra_data_item(
module_id.to_bytes(FIELDS_WIDTH.MODULE_ID, **opts),
len(nos_ids).to_bytes(FIELDS_WIDTH.NODE_OPS_COUNT, **opts),
b"".join(i.to_bytes(FIELDS_WIDTH.NODE_OPERATOR_IDS, **opts) for i in nos_ids),
b"".join(i.to_bytes(FIELDS_WIDTH.STUCK_OR_EXITED_VALS_COUNT, **opts) for i in vals_count),
b"".join(i.to_bytes(FIELDS_WIDTH.EXITED_VALS_COUNT, **opts) for i in vals_count),
)
)
Loading
Loading