mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
10ccf1840f
Co-authored-by: Lizhang <lizhang@polymerlabs.org>
36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package lightclient
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
|
|
)
|
|
|
|
type LightClientBootstrapResponse struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientBootstrap `json:"data"`
|
|
}
|
|
|
|
type LightClientBootstrap struct {
|
|
Header *shared.BeaconBlockHeader `json:"header"`
|
|
CurrentSyncCommittee *shared.SyncCommittee `json:"current_sync_committee"`
|
|
CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"`
|
|
}
|
|
|
|
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 struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientUpdate `json:"data"`
|
|
}
|
|
|
|
type LightClientUpdatesByRangeResponse struct {
|
|
Updates []*LightClientUpdateWithVersion `json:"updates"`
|
|
}
|