Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.1.0 #220

Open
wants to merge 301 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 179 commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
c2666e0
fix: added tests on OneAtTime
Amuhar May 3, 2024
b15af05
fix: tests
Amuhar May 3, 2024
e8e65b5
fix: e2e spec
eddort May 5, 2024
8f7f217
Merge pull request #199 from lidofinance/feat/deposit-events-leveldb
eddort May 5, 2024
200923f
fix: dont send deposit messsage fi theft happened
Amuhar May 8, 2024
dfaf422
fix: test name
Amuhar May 8, 2024
5ce1a29
refactor: deposit service and integrity checker
eddort May 9, 2024
674436e
refactor: add jsdoc to integrity checker
eddort May 9, 2024
e61548e
refactor: deposit-tree
eddort May 9, 2024
70b0b2d
fix: deposit cache init validation
eddort May 9, 2024
513429f
fix: deposit event updating logging
eddort May 9, 2024
2f84560
refactor: integrity-checker
eddort May 9, 2024
10fc95d
spec: deposit-tree
eddort May 9, 2024
3ba90e4
refactor: integrity-checker import
eddort May 9, 2024
ab8ce0c
Merge pull request #202 from lidofinance/feat/deposit-events-verify-r…
eddort May 9, 2024
d2409fc
fix: review
Amuhar May 9, 2024
784f9b7
fix: locator env
Amuhar May 9, 2024
b940883
fix: doc for OneAtTime
Amuhar May 9, 2024
796ac04
refactor: e2e spec
eddort May 10, 2024
43bb7c6
fix: disable kafka in tests
eddort May 10, 2024
975e812
Merge pull request #203 from lidofinance/feat/deposit-events-verify-r…
eddort May 10, 2024
ebc02e0
fix: migrate to confluentinc in kafka tests
eddort May 10, 2024
8be5961
fix: docker-compose kafka
eddort May 10, 2024
3ef5a23
fix: reduced the execution time of Kafka tests
eddort May 10, 2024
bc0d7bb
spec: temporary shutdown of e2e tests
eddort May 10, 2024
fce662f
fix: kafka host
eddort May 10, 2024
f25bb00
fix: enable e2e tests
eddort May 10, 2024
be3237e
Merge pull request #204 from lidofinance/fix/kafka-e2e
eddort May 10, 2024
c947b29
Merge branch 'develop' of github.com:lidofinance/lido-council-daemon …
eddort May 10, 2024
743ec77
Merge branch 'feat/deposit-events-verify' of github.com:lidofinance/l…
eddort May 10, 2024
fa33748
fix: test
Amuhar May 19, 2024
f1481d1
fix: deposit cache spec
eddort May 23, 2024
8aeb981
fix: refactor to getFinalizedBlockNumber
eddort May 23, 2024
6788483
fix: return old logic with reorg handling
eddort May 23, 2024
c594264
refactor: remove version from events cache
eddort May 23, 2024
89d870f
refactor: code review
eddort May 23, 2024
c053b4e
fix: e2e spec
eddort May 23, 2024
3d72db5
fix: cache for signing key add events
Amuhar May 24, 2024
9eb1df1
fix: identification original key
Amuhar May 26, 2024
60d38c1
fix: review
Amuhar May 28, 2024
ecb101b
fix: locator_address -> locator_devnet_address
Amuhar May 29, 2024
0d8ea16
fix: timeout in OneAtTime
Amuhar May 29, 2024
c5a5270
Merge remote-tracking branch 'origin/fix/val-819-fix-validation-cache…
Amuhar May 29, 2024
4098698
spec: odd deposit count
eddort May 29, 2024
b507187
fix: add comments to deposit-tree module
eddort May 29, 2024
b8b3af5
fix: test impr
Amuhar May 29, 2024
0ab402a
fix: OneAtTime fix
Amuhar May 29, 2024
eff309c
fix: fix concurrent unvet
Amuhar May 29, 2024
618dcdd
fix: tests & guardianService refactoring
Amuhar May 29, 2024
31925de
Merge pull request #197 from lidofinance/feat/deposit-events-verify
eddort May 30, 2024
9e65eed
fix: docker build node gyp
eddort May 30, 2024
05d1b21
fix: guradian service refactoring
Amuhar May 30, 2024
82b7c25
fix: dockerfile fixed dependency versions
eddort May 30, 2024
c6b60c1
fix: test refactoring
Amuhar May 30, 2024
4e3dc2a
Merge pull request #207 from lidofinance/fix/docker-build-ci
eddort May 30, 2024
3e651a4
fix: added nesting of leveldb cache storage
eddort May 30, 2024
e157d8b
Merge pull request #208 from lidofinance/fix/leveldb-chache-dir
eddort May 30, 2024
ffcba6a
fix: remove todo
Amuhar May 30, 2024
6ab44b7
Merge branch 'develop' into fix/val-819-fix-validation-cache
Amuhar May 30, 2024
2949076
fix: removed manifest
Amuhar May 30, 2024
aefcff8
fix: lint
Amuhar May 30, 2024
de8982d
Merge remote-tracking branch 'origin/fix/val-819-fix-validation-cache…
Amuhar Jun 3, 2024
f1b96b2
fix: add-sign-keys cache name
Amuhar Jun 3, 2024
80df2d8
fix: simple refactoring
Amuhar Jun 3, 2024
f80deff
fix: delete cache if list of modules was changed
Amuhar Jun 3, 2024
8aa678c
fix: tests
Amuhar Jun 4, 2024
9699460
fix: temporary skip
Amuhar Jun 4, 2024
6cde1d8
fix: e2e tests
Amuhar Jun 4, 2024
0657f32
fix: handle duplicates with absent eevnts
Amuhar Jun 5, 2024
a2a2de8
fix: fetch dsm version and deposits pause status in block-guard servi…
Amuhar Jun 5, 2024
51535cc
fix: early exit refactoring in handleNewBlock
Amuhar Jun 5, 2024
bec7b39
fix: refactoring staking-router.service
Amuhar Jun 5, 2024
68d4f97
fix: remove unvetting from staking module guard
Amuhar Jun 5, 2024
f6c4de9
fix: cant deposit if there are unresolved duplicates
Amuhar Jun 6, 2024
d38ae10
fix: remove unnecessary TODO
Amuhar Jun 6, 2024
e123bcc
fix: unnecessary TODO
Amuhar Jun 6, 2024
9a8e306
fix: test for changing list of modules
Amuhar Jun 7, 2024
04764cc
fix: log
Amuhar Jun 7, 2024
a23afaa
fix: dimple refactoring
Amuhar Jun 10, 2024
ff4bede
fix: tests
Amuhar Jun 10, 2024
1a0dac7
fix: get version log level
eddort Jun 12, 2024
450bc3b
Merge pull request #209 from lidofinance/fix/val-769-duplicates-impro…
eddort Jun 12, 2024
797f3f4
fix: parallel call unvetSignKeysChunk
eddort Jun 17, 2024
10bfb42
Merge pull request #210 from lidofinance/fix/val-769-parallel-call
eddort Jun 18, 2024
5b23344
Merge pull request #206 from lidofinance/fix/val-769-duplicates-impro…
Amuhar Jun 19, 2024
b94e525
fix: bump versions
eddort Jun 20, 2024
0f00ccd
Merge pull request #211 from lidofinance/fix/update-versions
eddort Jun 20, 2024
a4cd045
Merge pull request #195 from lidofinance/fix/val-819-fix-validation-c…
eddort Jun 20, 2024
9e2d956
fix: backward compatibility with new pause in V3
infloop Jun 20, 2024
fa79d38
Merge pull request #212 from lidofinance/fix/new-pause
eddort Jun 20, 2024
32590cb
fix: v3 contract e2e tests; migrate on holesky; less mocks
Amuhar Jul 15, 2024
7e12077
fix: unvetting & pause v2
Amuhar Jul 19, 2024
48fd270
fix: historical frontrun test v2
Amuhar Jul 19, 2024
7a856c7
fix: docker-compose -> docker compose
Amuhar Aug 5, 2024
e18013c
Merge branch 'feat/val-1006-v3-e2e-tests' into fix/val-1076-unvetting…
Amuhar Aug 5, 2024
8becc76
fix: oneAtTime for module & refactoring
Amuhar Aug 5, 2024
330b50b
fix: lint
Amuhar Aug 6, 2024
19ae0d1
fix: key add event type
Amuhar Aug 7, 2024
5026443
fix: return exact type from fetchEventsFallOver in provider.service
Amuhar Aug 7, 2024
830f69d
fix: test& headers validation
Amuhar Aug 7, 2024
43294e6
fix: non-blocking pause handling
Amuhar Aug 9, 2024
784e0e9
fix: removed comments
Amuhar Aug 9, 2024
b72ead5
Merge pull request #217 from lidofinance/fix/val-1150-sign-keys-event…
Amuhar Aug 9, 2024
077008a
Merge pull request #216 from lidofinance/fix/val-1110-modules-delete
Amuhar Aug 9, 2024
ae96c0d
fix: review fix
Amuhar Aug 12, 2024
9833a59
Merge pull request #214 from lidofinance/fix/val-1076-unvetting-pause-v2
eddort Aug 13, 2024
23d9b4b
fix: return all Instances of keys with invalid signatures, including …
Amuhar Aug 13, 2024
e8c629e
Merge pull request #213 from lidofinance/feat/val-1006-v3-e2e-tests
eddort Aug 14, 2024
9a3d60d
fix: metrics
Amuhar Aug 14, 2024
013aacf
fix: add metrics collection
Amuhar Aug 14, 2024
38656d3
fix: tests
Amuhar Aug 15, 2024
bb6b38f
fix: error catch
Amuhar Aug 15, 2024
bcdfcc7
feat: check integrity only on deposit
eddort Aug 15, 2024
b5d65ea
fix: deposit tests
eddort Aug 15, 2024
60761ad
Merge pull request #222 from lidofinance/fix/state-cache
eddort Aug 15, 2024
6dd0b69
feat: send unvet transaction only if balance is above critical value
Amuhar Aug 15, 2024
af3f4db
fix: tests
Amuhar Aug 15, 2024
db5fe25
fix: thresholds values from config
Amuhar Aug 15, 2024
5ac6213
fix: delete unused code
Amuhar Aug 15, 2024
d0bb23f
fix: test
Amuhar Aug 15, 2024
a6001b4
Merge pull request #221 from lidofinance/fix/val-1175-metrics
Amuhar Aug 16, 2024
4e641a3
fix: exception changed
Amuhar Aug 16, 2024
07b3ec0
Merge branch 'develop' into feat/val-1092-check-guard-balance
Amuhar Aug 16, 2024
ef10ee0
fix: unvetting refactoring
Amuhar Aug 16, 2024
3cc0bbe
Merge pull request #223 from lidofinance/feat/deposit-integrity-check
Amuhar Aug 16, 2024
4035d88
Merge pull request #224 from lidofinance/feat/val-1092-check-guard-ba…
Amuhar Aug 16, 2024
69f5291
Merge pull request #219 from lidofinance/fix/val-1178-sign-validation…
eddort Aug 16, 2024
0376a17
Merge pull request #225 from lidofinance/fix/small-refactoring-unvett…
eddort Aug 16, 2024
77561ac
fix: use IStakingModule for keys events; fetch prefix in security ser…
Amuhar Aug 26, 2024
afef3c6
fix: impr naming and contexts
Amuhar Aug 27, 2024
8f77d7c
fix: lint
Amuhar Aug 27, 2024
ebe5eea
fix: lint
Amuhar Aug 27, 2024
e3b3eae
Merge branch 'fix/val-1200-keys-events-fetch-impr' into fix/val-1208-…
Amuhar Aug 27, 2024
2a114de
fix: lint
Amuhar Aug 27, 2024
90e76d6
fix: test
Amuhar Aug 27, 2024
437541d
fix: move transform ro wei logic in decorator
Amuhar Aug 28, 2024
8a86b32
fix: StakingModuleId -> OneAtTimeCallId
Amuhar Aug 28, 2024
1bb772f
fix: covent new methods with unit tests
Amuhar Aug 28, 2024
b109a76
fix: comment isSameContractsStates
Amuhar Aug 29, 2024
2e722e6
fix: front-run
Amuhar Aug 29, 2024
19b8b97
fix: refactoring historical front-run
Amuhar Aug 29, 2024
0aeb1a2
fix: fetch prefixes and staking modules by hash
Amuhar Aug 30, 2024
65bfff2
fix: test name
Amuhar Aug 30, 2024
3e89529
feat: deposit-registry wip
eddort Sep 1, 2024
9c33bc7
feat: deposit-tree tests
eddort Sep 1, 2024
ddc0018
feat: deposit-tree crypto refactoring
eddort Sep 1, 2024
8d93f63
feat: data cast tests
eddort Sep 1, 2024
6ea3268
feat: safe branch clone
eddort Sep 1, 2024
8a9300e
fix: duplicates algorithm
Amuhar Sep 1, 2024
a2b9a41
fix: tests
Amuhar Sep 1, 2024
097af72
fix: small refactoring block-guard service
Amuhar Sep 2, 2024
eb75294
feat: new deposit service
eddort Sep 2, 2024
8b7b4cb
refactor: deposit registry
eddort Sep 2, 2024
90ea139
refactor: rename deposit registry service
eddort Sep 2, 2024
ae4acd4
feat: add based module declaration
eddort Sep 2, 2024
053ccec
feat: add module declarations
eddort Sep 2, 2024
9abbf0f
refactor: file structure
eddort Sep 2, 2024
df13574
refactor: remove old module
eddort Sep 2, 2024
c8ebcdb
feat: use new module as deposit module replacement
eddort Sep 2, 2024
c7fd410
fix: minor changes in guardian service
Amuhar Sep 2, 2024
2961c71
fix: integrity checks
eddort Sep 2, 2024
347f38e
fix: remove unused check
eddort Sep 3, 2024
61c7940
fix: improve valdiation algorithm
Amuhar Sep 3, 2024
883017e
fix: deposits tests
eddort Sep 3, 2024
36091d2
fix: fresh events verifying
eddort Sep 3, 2024
cf62e6a
fix: e2e test
eddort Sep 3, 2024
75ae300
feat: update ethers & deposit indexing with finalized tag
eddort Sep 3, 2024
57d8f66
fix: use finalizedBlockNumber instead toBlock
eddort Sep 4, 2024
bdc538a
fix: ganache tests
eddort Sep 5, 2024
018d4b1
fix: e2e tests
eddort Sep 5, 2024
af7e974
fix: e2e tests
eddort Sep 5, 2024
6956e9c
feat: add logging to cannotDeposit
eddort Sep 6, 2024
ee0039c
fix: get unveetin keys status from keys api
Amuhar Sep 9, 2024
0ff89a2
feat: deposit tree refactor
eddort Sep 9, 2024
8d0d487
fix: ts-config bump target version to es2020
eddort Sep 9, 2024
7df5aea
fix: get rid of spread operator
Amuhar Sep 9, 2024
adde748
feat: log the last valid event for debugging purposes
eddort Sep 9, 2024
4ecb600
fix: default value for last valid event
eddort Sep 9, 2024
d8ebcec
fix: check sign validation return duplicates for unvetting too
Amuhar Sep 10, 2024
d361da1
Merge pull request #227 from lidofinance/fix/val-1208-naming
Amuhar Sep 10, 2024
115bb95
Merge pull request #228 from lidofinance/fix/val-1212-transform-decor…
Amuhar Sep 10, 2024
9561e29
Merge pull request #229 from lidofinance/fix/val-1206-one-at-time
Amuhar Sep 10, 2024
a4326ef
Merge pull request #230 from lidofinance/fix/val-1211-unit-tests-v3-dsm
Amuhar Sep 10, 2024
c3d9074
Merge pull request #231 from lidofinance/fix/val-1214-is-same-contrac…
Amuhar Sep 10, 2024
486ea53
fix: security tests
Amuhar Sep 10, 2024
05df948
fix: bump 3.0.0 -> 3.0.1
Amuhar Sep 10, 2024
c7ba7f6
Merge pull request #232 from lidofinance/fix/val-1219-historical-fron…
Amuhar Sep 10, 2024
635b978
fix: operators -> uniqueOperatorIdentifiers
Amuhar Sep 10, 2024
d358479
refactor: code review
eddort Sep 10, 2024
633b9ac
fix: depositDataRoot logging
eddort Sep 10, 2024
37d3db7
refactor: add comments to deposit-registry module
eddort Sep 10, 2024
2775d55
fix: use rangePromise for processing duplicates events
Amuhar Sep 10, 2024
d782a4b
refactor: code review
eddort Sep 10, 2024
8fb21a8
fix: add correct endBlock to getAllDepositedEvents invariant
eddort Sep 10, 2024
2d628a1
Merge pull request #234 from lidofinance/fix/val-1221-duplicates-inco…
Amuhar Sep 11, 2024
38f73c7
Merge pull request #235 from lidofinance/fix/val-1220-block-guard
Amuhar Sep 11, 2024
7b52227
refactor: comments in integrity checker
eddort Sep 11, 2024
013d0d5
Merge pull request #236 from lidofinance/fix/val-1216-gurdian-service…
Amuhar Sep 11, 2024
27c5e5e
refactor: code review
eddort Sep 11, 2024
cea7993
refactor: jsdoc comments
eddort Sep 11, 2024
641e216
Merge branch 'fix/val-1200-keys-events-fetch-impr' into fix/val-1213-…
Amuhar Sep 11, 2024
329f10e
fix: test extand
Amuhar Sep 11, 2024
d141299
Merge pull request #237 from lidofinance/fix/val-1213-signature-valid…
Amuhar Sep 11, 2024
8076b38
Merge branch 'fix/val-1200-keys-events-fetch-impr' of github.com:lido…
eddort Sep 11, 2024
97bf271
fix: e2e test
eddort Sep 11, 2024
25d8f77
Merge pull request #239 from lidofinance/feat/refactor-deposit-cache-…
eddort Sep 11, 2024
9c65e2c
Merge pull request #233 from lidofinance/feat/refactor-deposit-cache
eddort Sep 11, 2024
eacd4d2
fix: bump version
Amuhar Sep 12, 2024
fa55ae8
feat: add KEYS_API_URL configuration
eddort Sep 12, 2024
0d6b5ca
feat: config loader tests
eddort Sep 12, 2024
c94d24b
fix: dockerfile typechain error
Amuhar Sep 12, 2024
a078e15
fix: copy tsconfig before yarn install in DOckerfile
Amuhar Sep 12, 2024
9a204f3
Merge pull request #241 from lidofinance/fix-dockerfile
infloop Sep 12, 2024
57e0063
fix: correct block hash in block tag
eddort Sep 15, 2024
4c64ea7
refactor: block hash type
eddort Sep 15, 2024
e93b10e
feat: base signing keys registry structure
eddort Sep 16, 2024
3cfae41
feat: update loop signing keys registry
eddort Sep 16, 2024
90b69e0
feat: signing keys registry checks
eddort Sep 16, 2024
d3766d4
feat: remove old service
eddort Sep 16, 2024
d2c12d2
feat: connect new module
eddort Sep 16, 2024
3606de7
refactor: singing keys service tests
eddort Sep 16, 2024
b220284
feat: connect singing keys module via method
eddort Sep 16, 2024
8bb4567
fix: signing keys test
eddort Sep 16, 2024
b955dc8
fix: checkEventsBlockHash in signing keys
eddort Sep 16, 2024
d4b359b
fix: error handling
eddort Sep 16, 2024
3a47fd5
Merge branch 'fix/val-1200-keys-events-fetch-impr' into fix/val-1229-…
Amuhar Sep 16, 2024
5fc7e80
fix: lint
Amuhar Sep 16, 2024
a994b98
fix: change error handling logic in signing keys events registry
eddort Sep 17, 2024
06ea1be
feat: new deposit registry algorithm
eddort Sep 17, 2024
3646a9a
fix: increase kapi version up to 2.0.0 to support vetted status in key
Amuhar Sep 17, 2024
47a4276
feat: clearFromLastValidEvent tests
eddort Sep 17, 2024
e67083f
refactor: remove todo
eddort Sep 17, 2024
571dc75
feat: check deposit count while inserting node to deposit tree
eddort Sep 17, 2024
31addcd
fix: deposit tree tests
eddort Sep 17, 2024
15e3b4c
fix: deposit tree insertion
eddort Sep 17, 2024
351e5d7
fix: e2e
eddort Sep 17, 2024
b734f0e
refactor: naming in test
eddort Sep 17, 2024
505d905
fix: removed comments
Amuhar Sep 18, 2024
ce9f5a9
Merge pull request #240 from lidofinance/fix/kapi-url-config
Amuhar Sep 18, 2024
a4ca9cb
Merge pull request #243 from lidofinance/fix/blockhash-in-block-tag
Amuhar Sep 18, 2024
9c8dcd1
Merge pull request #244 from lidofinance/feat/signing-keys-registry
Amuhar Sep 18, 2024
48d93c1
Merge pull request #245 from lidofinance/feat/deposit-events-new-algo…
Amuhar Sep 18, 2024
dd0e4b0
Merge branch 'fix/val-1200-keys-events-fetch-impr' into fix/val-1229-…
Amuhar Sep 18, 2024
e54edd5
fix: comment
Amuhar Sep 18, 2024
91888ae
Merge pull request #238 from lidofinance/fix/val-1229-vetted-status
Amuhar Sep 18, 2024
9232ceb
Merge pull request #226 from lidofinance/fix/val-1200-keys-events-fet…
Amuhar Sep 18, 2024
359f11c
fix: update kapi version
Amuhar Sep 30, 2024
21e8810
Merge pull request #248 from lidofinance/feat/kapi-version
Amuhar Sep 30, 2024
1067630
fix: removed extra async
Amuhar Sep 30, 2024
7eec79e
Merge pull request #246 from lidofinance/prerelease-3.1.0
Amuhar Oct 1, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Run tests
run: yarn test
- name: Run e2e transports
run: docker-compose -f docker-compose.test.yml up -d
run: docker compose -f docker-compose.test.yml up -d
- name: Run e2e tests
run: yarn test:e2e
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ lerna-debug.log*

# Ansible
/ansible

leveldb-spec
leveldb-cache
2 changes: 1 addition & 1 deletion Dockerfile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current docker-compose.dev.yml file has outdated kapi version. Consider using :dev tag:

- image: lidofinance/lido-keys-api:0.10.1
+ image: lidofinance/lido-keys-api:dev

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:14.18.1-alpine3.13 as building

# needed for git dependencies
RUN apk update && apk upgrade && \
apk add --no-cache bash=5.1.16-r0 git=2.30.6-r0 openssh=8.4_p1-r4
apk add --no-cache bash=5.1.16-r0 git=2.30.6-r0 openssh=8.4_p1-r4 python3=3.8.15-r0 make=4.3-r0 g++=10.2.1_pre1-r3

RUN mkdir /council

Expand Down
26 changes: 19 additions & 7 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,34 @@ version: '3.7'

services:
zookeeper:
image: wurstmeister/zookeeper
image: confluentinc/cp-zookeeper
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ZOOKEEPER_INIT_LIMIT: 5
ZOOKEEPER_SYNC_LIMIT: 2
ZOOKEEPER_SERVERS: server.1=zookeeper:2888:3888

kafka:
image: wurstmeister/kafka:2.13-2.7.1
image: confluentinc/cp-kafka
hostname: localhost
container_name: kafka
ports:
- "9092:9092"
links:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://127.0.0.1:9092"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_MESSAGE_MAX_BYTES: 2000000
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
- zookeeper

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lido-council-daemon",
"version": "2.1.1",
"version": "3.0.0",
"description": "Lido Council Daemon",
"author": "Lido team",
"private": true,
Expand Down Expand Up @@ -51,6 +51,7 @@
"ethers": "^5.4.7",
"glob": "^7.1.2",
"kafkajs": "^1.15.0",
"level": "^8.0.1",
"lru-cache": "^9.1.1",
"nest-winston": "^1.6.1",
"node-abort-controller": "^3.0.1",
Expand Down Expand Up @@ -79,7 +80,7 @@
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"ganache": "7.7.5",
"ganache": "7.9.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"supertest": "^6.1.3",
Expand Down
227 changes: 227 additions & 0 deletions src/abi/IStakingModule.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeOperatorId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "trimmedKeysCount",
"type": "uint256"
}
],
"name": "UnusedValidatorsKeysTrimmed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "validatorsKeysNonce",
"type": "uint256"
}
],
"name": "ValidatorsKeysNonceChanged",
"type": "event"
},
{
"inputs": [],
"name": "finishUpdatingExitedValidatorsKeysCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getActiveNodeOperatorsCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nodeOperatorId",
"type": "uint256"
}
],
"name": "getNodeOperatorIsActive",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNodeOperatorsCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getType",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getValidatorsKeysNonce",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nodeOperatorId",
"type": "uint256"
}
],
"name": "getValidatorsKeysStats",
"outputs": [
{
"internalType": "uint256",
"name": "exitedValidatorsCount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeValidatorsKeysCount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "readyToDepositValidatorsKeysCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getValidatorsKeysStats",
"outputs": [
{
"internalType": "uint256",
"name": "exitedValidatorsCount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "activeValidatorsKeysCount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "readyToDepositValidatorsKeysCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_totalShares", "type": "uint256" }
],
"name": "handleRewardsMinted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "invalidateReadyToDepositKeys",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_keysCount", "type": "uint256" },
{ "internalType": "bytes", "name": "_calldata", "type": "bytes" }
],
"name": "requestValidatorsKeysForDeposits",
"outputs": [
{
"internalType": "uint256",
"name": "returnedKeysCount",
"type": "uint256"
},
{ "internalType": "bytes", "name": "publicKeys", "type": "bytes" },
{ "internalType": "bytes", "name": "signatures", "type": "bytes" }
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nodeOperatorId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_exitedValidatorsKeysCount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_stuckValidatorsKeysCount",
"type": "uint256"
}
],
"name": "unsafeUpdateValidatorsKeysCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nodeOperatorId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_exitedValidatorKeysCount",
"type": "uint256"
}
],
"name": "updateExitedValidatorsKeysCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nodeOperatorId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_stuckValidatorKeysCount",
"type": "uint256"
}
],
"name": "updateStuckValidatorsKeysCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading
Loading