Documentation ¶
Index ¶
- func NewLightClientBootstrapFromJSON(bootstrapJSON *LightClientBootstrap) (*v2.LightClientBootstrap, error)
- type LightClientBootstrap
- type LightClientBootstrapResponse
- type LightClientUpdate
- type LightClientUpdateWithVersion
- type LightClientUpdatesByRangeResponse
- type Server
- func (s *Server) GetLightClientBootstrap(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientFinalityUpdate(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientOptimisticUpdate(w http.ResponseWriter, req *http.Request)
- func (s *Server) GetLightClientUpdatesByRange(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLightClientBootstrapFromJSON ¶
func NewLightClientBootstrapFromJSON(bootstrapJSON *LightClientBootstrap) (*v2.LightClientBootstrap, error)
Types ¶
type LightClientBootstrap ¶
type LightClientBootstrap struct { Header *shared.BeaconBlockHeader `json:"header"` CurrentSyncCommittee *shared.SyncCommittee `json:"current_sync_committee"` CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"` }
type LightClientBootstrapResponse ¶
type LightClientBootstrapResponse struct { Version string `json:"version"` Data *LightClientBootstrap `json:"data"` }
type LightClientUpdate ¶
type LightClientUpdate struct { AttestedHeader *shared.BeaconBlockHeader `json:"attested_header"` NextSyncCommittee *shared.SyncCommittee `json:"next_sync_committee"` FinalizedHeader *shared.BeaconBlockHeader `json:"finalized_header"` SyncAggregate *shared.SyncAggregate `json:"sync_aggregate"` NextSyncCommitteeBranch []string `json:"next_sync_committee_branch"` FinalityBranch []string `json:"finality_branch"` SignatureSlot string `json:"signature_slot"` }
type LightClientUpdateWithVersion ¶
type LightClientUpdateWithVersion struct { Version string `json:"version"` Data *LightClientUpdate `json:"data"` }
type LightClientUpdatesByRangeResponse ¶
type LightClientUpdatesByRangeResponse struct {
Updates []*LightClientUpdateWithVersion `json:"updates"`
}
type Server ¶
type Server struct { Blocker lookup.Blocker Stater lookup.Stater HeadFetcher blockchain.HeadFetcher }
func (*Server) GetLightClientBootstrap ¶
func (s *Server) GetLightClientBootstrap(w http.ResponseWriter, req *http.Request)
GetLightClientBootstrap - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/bootstrap.yaml
func (*Server) GetLightClientFinalityUpdate ¶
func (s *Server) GetLightClientFinalityUpdate(w http.ResponseWriter, req *http.Request)
GetLightClientFinalityUpdate - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/finality_update.yaml
func (*Server) GetLightClientOptimisticUpdate ¶
func (s *Server) GetLightClientOptimisticUpdate(w http.ResponseWriter, req *http.Request)
GetLightClientOptimisticUpdate - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/optimistic_update.yaml
func (*Server) GetLightClientUpdatesByRange ¶
func (s *Server) GetLightClientUpdatesByRange(w http.ResponseWriter, req *http.Request)
GetLightClientUpdatesByRange - implements https://github.com/ethereum/beacon-APIs/blob/263f4ed6c263c967f13279c7a9f5629b51c5fc55/apis/beacon/light_client/updates.yaml