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

Native eigenlayer decoder and balances #7946

Merged
merged 6 commits into from
May 20, 2024

Conversation

LefterisJP
Copy link
Member

@LefterisJP LefterisJP commented May 17, 2024

Part of #7568

Not complete yet. Need to handle eigenpod delayed withdrawals, coming in the next few hours.

At the moment contains:

  • Eigenlayer's eigenpod deployment by the user
  • Detecting eigenpod's owned by tracked addresses thanks to event processing
  • Query eigenpod ETH balance and count it as ETH balance of the owner

Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 77.04918% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 80.48%. Comparing base (6644849) to head (8be3d85).

Files Patch % Lines
...lchen/chain/ethereum/modules/eigenlayer/decoder.py 70.83% 9 Missing and 12 partials ⚠️
...chen/chain/ethereum/modules/eigenlayer/balances.py 86.11% 2 Missing and 3 partials ⚠️
rotkehlchen/chain/evm/node_inquirer.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7946      +/-   ##
===========================================
- Coverage    80.98%   80.48%   -0.50%     
===========================================
  Files         1193     1181      -12     
  Lines       108253   108110     -143     
  Branches     12939    12897      -42     
===========================================
- Hits         87672    87017     -655     
- Misses       18358    18823     +465     
- Partials      2223     2270      +47     
Flag Coverage Δ
backend 80.82% <77.04%> (-0.59%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LefterisJP
Copy link
Member Author

Some screenshots

  1. Decoded event of deployment of eigenpod
    2024-05-17_13-12

  2. Seeing ~1.51 ETH as the safe's balance
    2024-05-17_13-14

  3. Actual etherscan safe balance is 1.056
    2024-05-17_13-14_1

4.4th screenshot is the eigenpod balance, which when added to the safe balane gives us the ~1.51 ETH
2024-05-17_13-15

Will not merge the PR though all is green. Will continue for the rest of the eigenlayer native restaking decoding events I know of.

Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
Automatically detect eigenpod balances via event processing and add them to the owner of
the eigenpod

Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
Signed-off-by: Lefteris Karapetsas <lefteris@refu.co>
@LefterisJP LefterisJP merged commit eaf6193 into rotki:develop May 20, 2024
13 checks passed
@rotkibot
Copy link

rotki/test-caching/tree/native_eigenlayer was successfully merged

@LefterisJP LefterisJP deleted the native_eigenlayer branch May 20, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants