mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
package structs
|
|
|
|
type LightClientBootstrapResponse struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientBootstrap `json:"data"`
|
|
}
|
|
|
|
type LightClientBootstrap struct {
|
|
Header *BeaconBlockHeader `json:"header"`
|
|
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
|
|
CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"`
|
|
}
|
|
|
|
type LightClientUpdate struct {
|
|
AttestedHeader *BeaconBlockHeader `json:"attested_header"`
|
|
NextSyncCommittee *SyncCommittee `json:"next_sync_committee,omitempty"`
|
|
FinalizedHeader *BeaconBlockHeader `json:"finalized_header,omitempty"`
|
|
SyncAggregate *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 struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientUpdate `json:"data"`
|
|
}
|
|
|
|
type LightClientUpdatesByRangeResponse struct {
|
|
Updates []*LightClientUpdateWithVersion `json:"updates"`
|
|
}
|