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

Consolidation, withdrawal & exit request creation tool #166

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

pk910
Copy link
Member

@pk910 pk910 commented Oct 31, 2024

This PR adds a submit consolidations and a submit withdrawals page, that can be used to create & submit consolidation, withdrawal & exit transactions.
These pages are intended to be available for testnets only. Therefore they are disabled by default and need to be enabled via the frontend.showSubmitElRequests setting if wanted.

Submit Consolidation Requests:
image

Submit Withdrawal/Exit Requests:
image

@pk910
Copy link
Member Author

pk910 commented Oct 31, 2024

Test instructions:

  1. Create .hack/devnet/custom-kurtosis.devnet.config.yaml with following content:
participants_matrix:
  el:
    - el_type: geth
      el_image: ethpandaops/geth:lightclient-prague-devnet-4-37035c5
    - el_type: reth
      el_image: ethpandaops/reth:onbjerg-devnet-4-8a40d5c
  cl:
    - cl_type: lighthouse
      cl_image: ethpandaops/lighthouse:pawan-electra-alpha7-0dd215c
    - cl_type: prysm
      cl_image: ethpandaops/prysm-beacon-chain:develop-4aa5410
      vc_image: ethpandaops/prysm-validator:develop-4aa5410
network_params:
  electra_fork_epoch: 1
  min_validator_withdrawability_delay: 1
  shard_committee_period: 1
  churn_limit_quotient: 16
  seconds_per_slot: 6
additional_services:
  - dora
  - assertoor
snooper_enabled: true
assertoor_params:
  image: "ethpandaops/assertoor:electra-support-456ffe4"
  run_stability_check: false
  run_block_proposal_check: false
  tests:
    - { file: "https://raw.githubusercontent.com/ethpandaops/assertoor/refs/heads/master/playbooks/dev/fund-wallet.yaml", config: { targetAddress: "0x332E43696A505EF45b9319973785F837ce5267b9" } }
    - { file: "https://raw.githubusercontent.com/ethpandaops/assertoor/refs/heads/electra-support/playbooks/pectra-dev/kurtosis/bls-changes.yaml", config: { targetAddress: "0x332E43696A505EF45b9319973785F837ce5267b9" } }

change the address (0x332E43696A505EF45b9319973785F837ce5267b9) in both assertoor tests to a test test wallet you control.

  1. Start devnet with make devnet-run

  2. Open dora & wait for epoch 1

  3. Navigate to Submit Consolidation page, connect your test wallet and try consolidating some validators :)

@pk910 pk910 changed the title WIP: consolidation request creation tool WIP: consolidation, withdrawal & exit request creation tool Oct 31, 2024
@pk910 pk910 changed the title WIP: consolidation, withdrawal & exit request creation tool Consolidation, withdrawal & exit request creation tool Nov 4, 2024
@pk910 pk910 marked this pull request as ready for review November 4, 2024 12:42
@pk910 pk910 added the build-docker-image Automatically build docker image for PR branch label Nov 4, 2024
// https://eips.ethereum.org/EIPS/eip-7251#fee-calculation
let i = 1n;
let output = 0n;
let numeratorAccum = 1n * 17n; // factor * denominator
Copy link
Member

Choose a reason for hiding this comment

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

Maybe worth to just create a const/var for this 17? It's from CONSOLIDATION_REQUEST_FEE_UPDATE_FRACTION right? Ideally we would probably read it from config, but it can get annoying passing that to the UI code.

// https://eips.ethereum.org/EIPS/eip-7002#fee-calculation
let i = 1n;
let output = 0n;
let numeratorAccum = 1n * 17n; // factor * denominator
Copy link
Member

Choose a reason for hiding this comment

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

Same as previous comment. 17 could be something hardcoded or from config as WITHDRAWAL_REQUEST_FEE_UPDATE_FRACTION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-docker-image Automatically build docker image for PR branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants