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

[EPIC] Oracle V5 (Pectra Duck) #574

Open
wants to merge 137 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
9e6200f
Log env variables
hweawer Sep 23, 2024
175847c
sanitize KAPI keys to lowercase
hweawer Sep 23, 2024
0b6b332
MAX_CYCLE_LIFETIME_IN_SECONDS only for cycle logic
hweawer Sep 23, 2024
f06e0c8
Move variable to private
hweawer Oct 3, 2024
d248602
Increase gas value
F4ever Oct 11, 2024
770e7af
feat: EIP-7549 compatibility
madlabman Oct 31, 2024
a7c7e98
Merge branch 'develop' into timeout-out-of-loop
hweawer Nov 28, 2024
ed88f53
Log KAPI request-response
hweawer Nov 28, 2024
108074e
Move logging
hweawer Nov 28, 2024
258bdb2
Support compound WC
hweawer Dec 4, 2024
82064c8
Lint
hweawer Dec 6, 2024
d10b020
Update tests
hweawer Dec 9, 2024
9103f4b
Reformat
hweawer Dec 9, 2024
ab0d5f9
Revert "Log KAPI request-response"
hweawer Dec 9, 2024
b551c07
Revert "Move logging"
hweawer Dec 9, 2024
a038ba1
Log single request
hweawer Dec 9, 2024
baf6457
Revert kapi
hweawer Dec 9, 2024
0f548b4
Special metrics for CSM in README
hweawer Dec 10, 2024
dae170d
Add tests
hweawer Dec 11, 2024
a704b73
format
hweawer Dec 11, 2024
2e9e7b9
Merge pull request #570 from lidofinance/7251-support-compound-wc
F4ever Dec 11, 2024
9f35c42
Some oracle variables should be fetched on a latest slot
hweawer Dec 12, 2024
0b68296
feat: WithdrawalRequests web3py extension
madlabman Dec 13, 2024
bc028ba
Move variable
hweawer Dec 13, 2024
95ff3be
Merge pull request #521 from lidofinance/log-variables
hweawer Dec 13, 2024
5d3d2d2
feat: sweep computation with electra rules
madlabman Dec 13, 2024
e8f457b
Merge develop
F4ever Dec 15, 2024
c386e0d
Move log
hweawer Dec 16, 2024
b104ba3
test: add CSM attestation processing test
madlabman Dec 16, 2024
d1c8426
test: add more unit tests for attestation processing
madlabman Dec 16, 2024
ff4db10
fix: more strict rules for checking attestation version
madlabman Dec 16, 2024
46eebdb
refactor: slight refactor and more tests
madlabman Dec 16, 2024
29d4c45
test: drop fixture tests for processing attestations
madlabman Dec 16, 2024
28d6e05
chore: reformat
madlabman Dec 16, 2024
5343fa4
test: fix failing test
madlabman Dec 16, 2024
72a6171
fix: replace condition to a variable
madlabman Dec 17, 2024
b07dff5
Merge pull request #573 from lidofinance/csm-metrics-readme
hweawer Dec 17, 2024
15f5583
Update src/modules/submodules/oracle_module.py
hweawer Dec 17, 2024
3d00d10
test: extract BitListFactory
madlabman Dec 17, 2024
71fb853
Move exception handling
hweawer Dec 17, 2024
b1e8b7f
Fix format
hweawer Dec 17, 2024
e5d030f
Add testcases
hweawer Dec 17, 2024
85a0f80
Fix tests
hweawer Dec 17, 2024
fc95c02
Change log messages
hweawer Dec 17, 2024
e43e644
feat: drop the spec-like sweep computation
madlabman Dec 17, 2024
0e3a85f
feat: modified sweep computation
madlabman Dec 17, 2024
8e089b3
chore: drop WithdrawalRequests extension
madlabman Dec 18, 2024
76f12f0
chore: shrink BeaconStateView
madlabman Dec 18, 2024
41e6a6f
chore: drop get_state_view method
madlabman Dec 18, 2024
1b3acee
Fix exists calls in test
hweawer Dec 18, 2024
2782a6c
Add comment about voluntary exits
hweawer Dec 18, 2024
b0db544
Merge branch 'feat/oracle-v5' into key-lowercase
hweawer Dec 18, 2024
bf35343
Refactor
hweawer Dec 18, 2024
a8dd5f0
Linter
hweawer Dec 18, 2024
cf38f4f
Fix linter
hweawer Dec 19, 2024
2a13586
refactor: rename is_electra_attestation
madlabman Dec 20, 2024
1437532
fix: do not add 32 ether validators to withdrawable
madlabman Dec 20, 2024
e432ee6
Merge pull request #537 from lidofinance/feat/increase-balance-call
hweawer Dec 20, 2024
d876c73
chore: remove unused imports
madlabman Dec 20, 2024
9db71b5
feat: electra churn
madlabman Dec 18, 2024
34f29a5
refactor: get fork versions dynamically
madlabman Dec 20, 2024
a5d698d
test: more ejector-related tests
madlabman Dec 20, 2024
7afb0f6
test: small fixes
madlabman Dec 20, 2024
5ee8f87
test: post electra withdrawable epoch prediction
madlabman Dec 20, 2024
b9de2ea
refactor: no need in type "forward" declaration
madlabman Dec 21, 2024
e884a2a
refactor: rework types for block attestations
madlabman Dec 23, 2024
0449af9
Merge pull request #568 from lidofinance/log-kapi-req-res
F4ever Dec 24, 2024
e6e3a8d
Merge pull request #576 from lidofinance/some-oracle-variables-should…
F4ever Dec 24, 2024
93b0073
Remove too many branches
hweawer Jan 2, 2025
84710b1
Remove too many branches
hweawer Jan 2, 2025
f67c176
Remove too many branches
hweawer Jan 2, 2025
98ec563
Lido keys typing
hweawer Jan 2, 2025
ff6e232
Fix lint errors
hweawer Jan 2, 2025
7c70500
Disable member check
hweawer Jan 2, 2025
4cbc110
Disable member check
hweawer Jan 2, 2025
a902798
refactor: split sweep calc method in two
madlabman Jan 7, 2025
429a62d
chore: upd comment
madlabman Jan 7, 2025
4b16e60
feat: account pending deposits for AO state report
vgorkavenko Dec 4, 2024
18fc7e8
feat: account pending deposits for abnormal rebase calc
vgorkavenko Dec 5, 2024
6a97881
fix: type for constants
vgorkavenko Dec 20, 2024
175e800
fix: note for `calculate_pending_deposits_sum`
vgorkavenko Dec 20, 2024
d5656a4
fix: weak pubkey random in generated object for tests
vgorkavenko Dec 20, 2024
2743933
fix: review
vgorkavenko Jan 7, 2025
32ee2a1
fix: after rebase
vgorkavenko Jan 7, 2025
e31a4ff
fix: Prysm specific error text
vgorkavenko Jan 7, 2025
df56980
test: add test for missing Fork value exception
madlabman Jan 7, 2025
9f060a5
refactor: rename functions for churn limits
madlabman Jan 7, 2025
a04072a
refactor: use fork epoch instead of querying a fork version
madlabman Jan 8, 2025
820eb43
fix: after rebase
vgorkavenko Jan 9, 2025
349c624
tests: build validators using `LidoValidatorFactory`
vgorkavenko Jan 9, 2025
9c4e9d1
chore: remove unused endpoint
madlabman Jan 9, 2025
e28108d
Merge pull request #578 from lidofinance/voluntary-exits
hweawer Jan 9, 2025
b559bdc
Merge pull request #571 from lidofinance/feat/account-cl-pending-depo…
F4ever Jan 10, 2025
323c0e3
Merge pull request #582 from lidofinance/fix/prysm-specific-error
F4ever Jan 10, 2025
f8e99c4
refactor: get_consensus_version
madlabman Jan 10, 2025
91e5eba
chore: add doc for get_set_indices
madlabman Jan 10, 2025
2a1221c
Merge pull request #556 from lidofinance/feature/cs-269-eip-7549-comp…
F4ever Jan 10, 2025
40faa60
Fields
hweawer Jan 10, 2025
984f8be
Merge branch 'feat/oracle-v5' into electra-sweep
F4ever Jan 10, 2025
9edc9a7
Merge pull request #522 from lidofinance/key-lowercase
F4ever Jan 10, 2025
7d5c403
chore: fix linter
madlabman Jan 10, 2025
cca0661
Merge pull request #577 from lidofinance/electra-sweep
F4ever Jan 10, 2025
f80b86c
Merge remote-tracking branch 'origin/feat/oracle-v5' into electra-churn
madlabman Jan 10, 2025
7891e6e
Merge pull request #579 from lidofinance/electra-churn
F4ever Jan 10, 2025
0b2090f
Revert exception handling
hweawer Jan 10, 2025
97b7f8e
feat: changes in `get_validator_midterm_penalty` due to Pectra
vgorkavenko Dec 9, 2024
21b23b7
fix: tests
vgorkavenko Dec 9, 2024
4c87e38
feat: `MAX_EFFECTIVE_BALANCE` -> `MIN_ACTIVATION_BALANCE`
vgorkavenko Dec 12, 2024
8d26a93
fix: update link
vgorkavenko Dec 20, 2024
3a59dbe
fix: after rebase
vgorkavenko Jan 9, 2025
2230957
feat: calculate midterm by projected frame ref epoch for fork
vgorkavenko Jan 9, 2025
fc8a2b2
tests: adjust
vgorkavenko Jan 9, 2025
3706be2
fix: linter
vgorkavenko Jan 9, 2025
c25df44
tests: add mock
vgorkavenko Jan 9, 2025
47b02bb
fix: `cl_spec` is arg now
vgorkavenko Jan 10, 2025
36eb7d7
Merge pull request #523 from lidofinance/timeout-out-of-loop
F4ever Jan 10, 2025
ca2279e
fix: different consensus versions
vgorkavenko Jan 10, 2025
ead42fe
tests: add tests for different consensus versions
vgorkavenko Jan 10, 2025
25f41aa
fix: black
vgorkavenko Jan 10, 2025
2378f02
revert: arg name
vgorkavenko Jan 10, 2025
568b69d
Fix str convert in variable logs
hweawer Jan 13, 2025
057634c
str
hweawer Jan 13, 2025
a516d7e
revert
hweawer Jan 13, 2025
1ea9503
refactor: use `Web3Converter`
vgorkavenko Jan 13, 2025
d19dffb
refactor: use `if-else`
vgorkavenko Jan 13, 2025
b13b0ab
Merge pull request #584 from lidofinance/fix-str-convert
F4ever Jan 13, 2025
6d73642
Merge pull request #572 from lidofinance/feat/new-correlation-penalty
F4ever Jan 13, 2025
e1e8414
Increase consensus
hweawer Jan 13, 2025
1307325
Allow 3 version of consensus
hweawer Jan 13, 2025
1253544
else
hweawer Jan 13, 2025
47eecf4
import
hweawer Jan 13, 2025
cd10f49
Merge pull request #585 from lidofinance/increase-consensus
hweawer Jan 13, 2025
22a3f1d
fix: zero division errors
madlabman Jan 13, 2025
4444d82
Revert "Some oracle variables should be fetched on a latest slot"
hweawer Jan 14, 2025
2b33b5d
Merge pull request #587 from lidofinance/revert-576-some-oracle-varia…
F4ever Jan 14, 2025
2c763da
feat: add devnet docker-compose
eddort Jan 14, 2025
9b710d3
Revert "feat: add devnet docker-compose"
F4ever Jan 14, 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
Prev Previous commit
Next Next commit
Fix str convert in variable logs
  • Loading branch information
hweawer committed Jan 13, 2025
commit 568b69d7347fa790bab1580909b0c7e4cf4a40ac
4 changes: 2 additions & 2 deletions src/variables.py
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ def raise_from_errors(errors):


# All non-private env variables to the logs in main
PUBLIC_ENV_VARS = {
PUBLIC_ENV_VARS = {key: str(value) for key, value in {
'ACCOUNT': 'Dry' if ACCOUNT is None else ACCOUNT.address,
'LIDO_LOCATOR_ADDRESS': LIDO_LOCATOR_ADDRESS,
'CSM_MODULE_ADDRESS': CSM_MODULE_ADDRESS,
@@ -137,7 +137,7 @@ def raise_from_errors(errors):
'HEALTHCHECK_SERVER_PORT': HEALTHCHECK_SERVER_PORT,
'MAX_CYCLE_LIFETIME_IN_SECONDS': MAX_CYCLE_LIFETIME_IN_SECONDS,
'CACHE_PATH': CACHE_PATH,
}
}.items()}

PRIVATE_ENV_VARS = {
'EXECUTION_CLIENT_URI': EXECUTION_CLIENT_URI,
Loading