lightclient

package
v4.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

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,omitempty"`
	FinalizedHeader         *shared.BeaconBlockHeader `json:"finalized_header,omitempty"`
	SyncAggregate           *shared.SyncAggregate     `json:"sync_aggregate"`
	NextSyncCommitteeBranch []string                  `json:"next_sync_committee_branch,omitempty"`
	FinalityBranch          []string                  `json:"finality_branch,omitempty"`
	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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL