Documentation ¶
Index ¶
- Variables
- type AncestryProof
- type Attestation
- type AttestationData
- type AttesterSlashing
- type BLSToExecutionChange
- type BeaconBlock
- type BeaconCheckpoint
- type BeaconHeader
- type BeaconState
- type BlockRootProof
- type Body
- type BodyCapella
- type Checkpoint
- type CompactBeaconState
- type CompactExecutionHeader
- type Deposit
- type DepositData
- type Eth1Data
- type ExecutionPayloadHeaderCapella
- type ExecutionPayloadHeaderDeneb
- type HeaderUpdatePayload
- type IndexedAttestation
- type NextSyncCommitteeUpdatePayload
- type OptionAncestryProof
- type OptionNextSyncCommitteeUpdatePayload
- type ProofPayload
- type ProposerSlashing
- type SignedBLSToExecutionChange
- type SignedHeader
- type SignedVoluntaryExit
- type SyncAggregate
- type SyncCommittee
- type Update
- type UpdatePayload
- type VersionedExecutionPayloadHeader
- type VoluntaryExit
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEncodeVersionedExecutionPayloadHeader = errors.New("error scale encode VersionedExecutionPayloadHeader")
)
Functions ¶
This section is empty.
Types ¶
type AncestryProof ¶
type Attestation ¶
type Attestation struct { AggregationBits []byte Data AttestationData Signature []byte }
type AttestationData ¶
type AttestationData struct { Slot types.U64 Index types.U64 BeaconBlockRoot types.H256 Source Checkpoint Target Checkpoint }
type AttesterSlashing ¶
type AttesterSlashing struct { Attestation1 IndexedAttestation Attestation2 IndexedAttestation }
type BLSToExecutionChange ¶
type BeaconBlock ¶
type BeaconCheckpoint ¶
type BeaconCheckpoint struct { Header BeaconHeader CurrentSyncCommittee SyncCommittee CurrentSyncCommitteeBranch []types.H256 ValidatorsRoot types.H256 BlockRootsRoot types.H256 BlockRootsBranch []types.H256 }
func (BeaconCheckpoint) ToJSON ¶
func (p BeaconCheckpoint) ToJSON() json.CheckPoint
type BeaconHeader ¶
type BeaconHeader struct { Slot types.U64 ProposerIndex types.U64 ParentRoot types.H256 StateRoot types.H256 BodyRoot types.H256 }
func (*BeaconHeader) ToJSON ¶
func (b *BeaconHeader) ToJSON() json.BeaconHeader
func (*BeaconHeader) ToSSZ ¶
func (b *BeaconHeader) ToSSZ() *state.BeaconBlockHeader
type BeaconState ¶
type BeaconState struct { CompactBeaconState BlockRoot types.H256 }
type BlockRootProof ¶
type Body ¶
type Body struct { RandaoReveal []byte Eth1Data Eth1Data Graffiti types.H256 ProposerSlashings []ProposerSlashing AttesterSlashings []AttesterSlashing Attestations []Attestation Deposits []Deposit VoluntaryExits []SignedVoluntaryExit SyncAggregate SyncAggregate ExecutionPayload ExecutionPayloadHeaderCapella }
type BodyCapella ¶
type BodyCapella struct { RandaoReveal []byte Eth1Data Eth1Data Graffiti types.H256 ProposerSlashings []ProposerSlashing AttesterSlashings []AttesterSlashing Attestations []Attestation Deposits []Deposit VoluntaryExits []SignedVoluntaryExit SyncAggregate SyncAggregate ExecutionPayload ExecutionPayloadHeaderCapella BlsToExecutionChanges []*SignedBLSToExecutionChange }
type CompactBeaconState ¶
type CompactExecutionHeader ¶
type Deposit ¶
type Deposit struct { Proof []types.H256 Data DepositData }
type DepositData ¶
type ExecutionPayloadHeaderCapella ¶
type ExecutionPayloadHeaderCapella struct { ParentHash types.H256 FeeRecipient types.H160 StateRoot types.H256 ReceiptsRoot types.H256 LogsBloom []byte PrevRandao types.H256 BlockNumber types.U64 GasLimit types.U64 GasUsed types.U64 Timestamp types.U64 ExtraData []byte BaseFeePerGas types.U256 BlockHash types.H256 TransactionsRoot types.H256 WithdrawalsRoot types.H256 }
func (*ExecutionPayloadHeaderCapella) ToJSON ¶
func (e *ExecutionPayloadHeaderCapella) ToJSON() json.ExecutionPayloadHeaderCapella
type ExecutionPayloadHeaderDeneb ¶
type ExecutionPayloadHeaderDeneb struct { ParentHash types.H256 FeeRecipient types.H160 StateRoot types.H256 ReceiptsRoot types.H256 LogsBloom []byte PrevRandao types.H256 BlockNumber types.U64 GasLimit types.U64 GasUsed types.U64 Timestamp types.U64 ExtraData []byte BaseFeePerGas types.U256 BlockHash types.H256 TransactionsRoot types.H256 WithdrawalsRoot types.H256 BlobGasUsed types.U64 ExcessBlobGas types.U64 }
func (*ExecutionPayloadHeaderDeneb) ToJSON ¶
func (e *ExecutionPayloadHeaderDeneb) ToJSON() json.ExecutionPayloadHeaderDeneb
type HeaderUpdatePayload ¶
type HeaderUpdatePayload struct { Header BeaconHeader AncestryProof OptionAncestryProof ExecutionHeader VersionedExecutionPayloadHeader ExecutionBranch []types.H256 }
func (HeaderUpdatePayload) ToJSON ¶
func (h HeaderUpdatePayload) ToJSON() json.HeaderUpdate
type IndexedAttestation ¶
type IndexedAttestation struct { AttestingIndices []types.U64 Data AttestationData Signature []byte }
type NextSyncCommitteeUpdatePayload ¶
type NextSyncCommitteeUpdatePayload struct { NextSyncCommittee SyncCommittee NextSyncCommitteeBranch []types.H256 }
type OptionAncestryProof ¶
type OptionAncestryProof struct { HasValue bool Value AncestryProof }
type OptionNextSyncCommitteeUpdatePayload ¶
type OptionNextSyncCommitteeUpdatePayload struct { HasValue bool Value NextSyncCommitteeUpdatePayload }
type ProofPayload ¶
type ProofPayload struct { HeaderPayload HeaderUpdatePayload FinalizedPayload *Update }
type ProposerSlashing ¶
type ProposerSlashing struct { SignedHeader1 SignedHeader SignedHeader2 SignedHeader }
type SignedBLSToExecutionChange ¶
type SignedBLSToExecutionChange struct { Message *BLSToExecutionChange Signature []byte }
type SignedHeader ¶
type SignedHeader struct { Message BeaconHeader Signature []byte }
type SignedVoluntaryExit ¶
type SignedVoluntaryExit struct { Exit VoluntaryExit Signature []byte }
type SyncAggregate ¶
func (SyncAggregate) Encode ¶
func (s SyncAggregate) Encode(encoder scale.Encoder) error
Use a custom SCALE encoder to encode SyncCommitteeBits as fixed array
func (*SyncAggregate) ToJSON ¶
func (s *SyncAggregate) ToJSON() json.SyncAggregate
type SyncCommittee ¶
func (SyncCommittee) Encode ¶
func (s SyncCommittee) Encode(encoder scale.Encoder) error
Use a custom SCALE encoder to encode SyncCommitteeBits as fixed array
func (*SyncCommittee) ToJSON ¶
func (s *SyncCommittee) ToJSON() json.SyncCommittee
type Update ¶
type Update struct { Payload UpdatePayload FinalizedHeaderBlockRoot common.Hash BlockRootsTree *ssz.Node }
type UpdatePayload ¶
type UpdatePayload struct { AttestedHeader BeaconHeader SyncAggregate SyncAggregate SignatureSlot types.U64 NextSyncCommitteeUpdate OptionNextSyncCommitteeUpdatePayload FinalizedHeader BeaconHeader FinalityBranch []types.H256 BlockRootsRoot types.H256 BlockRootsBranch []types.H256 }
func (UpdatePayload) ToJSON ¶
func (p UpdatePayload) ToJSON() json.Update
type VersionedExecutionPayloadHeader ¶
type VersionedExecutionPayloadHeader struct { Capella *ExecutionPayloadHeaderCapella Deneb *ExecutionPayloadHeaderDeneb }
func (VersionedExecutionPayloadHeader) Encode ¶
func (v VersionedExecutionPayloadHeader) Encode(encoder scale.Encoder) error
func (*VersionedExecutionPayloadHeader) ToJSON ¶
func (v *VersionedExecutionPayloadHeader) ToJSON() json.VersionedExecutionPayloadHeader
Click to show internal directories.
Click to hide internal directories.