From 562fc43350b5ab9ffaa3fe387f3e93222f4eb18f Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 6 May 2022 11:59:11 -0700 Subject: [PATCH] implement skeleton to support the builder API --- src/api_client.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/api_client.rs b/src/api_client.rs index 9b544a6..b45dde7 100644 --- a/src/api_client.rs +++ b/src/api_client.rs @@ -9,6 +9,7 @@ use ethereum_consensus::altair::mainnet::{ SignedContributionAndProof, SyncCommitteeContribution, SyncCommitteeMessage, }; use ethereum_consensus::bellatrix::mainnet::{BlindedBeaconBlock, SignedBlindedBeaconBlock}; +use ethereum_consensus::builder::SignedValidatorRegistration; use ethereum_consensus::networking::Multiaddr; use ethereum_consensus::phase0::mainnet::{ Attestation, AttestationData, AttesterSlashing, BeaconBlock, BeaconState, Fork, @@ -307,9 +308,16 @@ impl Client { Ok(()) } - pub async fn register_proposers( + pub async fn prepare_proposers( registrations: &[BeaconProposerRegistration], ) -> Result<(), Error> { Ok(()) } + + // endpoint for builder registrations + pub async fn register_validators( + registrations: &[SignedValidatorRegistration], + ) -> Result<(), Error> { + Ok(()) + } }