From a290f94b160b0bc1d3482c525fcf1f91850b35a9 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..de4aab2 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_with_builders( + registrations: &[SignedValidatorRegistration], + ) -> Result<(), Error> { + Ok(()) + } }