Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconEndpointFactory ¶
type BeaconEndpointFactory struct { }
BeaconEndpointFactory creates endpoints used for running beacon chain API calls through the API Middleware.
func (*BeaconEndpointFactory) Create ¶
func (_ *BeaconEndpointFactory) Create(path string) (*apimiddleware.Endpoint, error)
Create returns a new endpoint for the provided API path.
func (*BeaconEndpointFactory) IsNil ¶
func (f *BeaconEndpointFactory) IsNil() bool
func (*BeaconEndpointFactory) Paths ¶
func (_ *BeaconEndpointFactory) Paths() []string
Paths is a collection of all valid beacon chain API paths.
type EpochParticipation ¶
type EpochParticipation []string
EpochParticipation represents participation of validators in their duties.
func (*EpochParticipation) UnmarshalJSON ¶
func (p *EpochParticipation) UnmarshalJSON(b []byte) error
type WeakSubjectivityResponse ¶
type WeakSubjectivityResponse struct { Data *struct { Checkpoint *checkpointJson `json:"ws_checkpoint"` StateRoot string `json:"state_root" hex:"true"` } `json:"data"` }
WeakSubjectivityResponse is used to marshal/unmarshal the response for the /eth/v1/beacon/weak_subjectivity endpoint.
Click to show internal directories.
Click to hide internal directories.