fulu

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: e8c94040aa87ac68c619e5102b1fdc2df5f269b1c0506d1948728610e2243563 Version: 0.1.3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconState

type BeaconState struct {
	GenesisTime                   uint64
	GenesisValidatorsRoot         phase0.Root `ssz-size:"32"`
	Slot                          phase0.Slot
	Fork                          *phase0.Fork
	LatestBlockHeader             *phase0.BeaconBlockHeader
	BlockRoots                    []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
	StateRoots                    []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
	HistoricalRoots               []phase0.Root `dynssz-max:"HISTORICAL_ROOTS_LIMIT"        ssz-max:"16777216" ssz-size:"?,32"`
	ETH1Data                      *phase0.ETH1Data
	ETH1DataVotes                 []*phase0.ETH1Data `dynssz-max:"EPOCHS_PER_ETH1_VOTING_PERIOD*SLOTS_PER_EPOCH" ssz-max:"2048"`
	ETH1DepositIndex              uint64
	Validators                    []*phase0.Validator         `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	Balances                      []phase0.Gwei               `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	RANDAOMixes                   []phase0.Root               `dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
	Slashings                     []phase0.Gwei               `dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR"     ssz-size:"8192"`
	PreviousEpochParticipation    []altair.ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	CurrentEpochParticipation     []altair.ParticipationFlags `dynssz-max:"VALIDATOR_REGISTRY_LIMIT"         ssz-max:"1099511627776"`
	JustificationBits             bitfield.Bitvector4         `ssz-size:"1"`
	PreviousJustifiedCheckpoint   *phase0.Checkpoint
	CurrentJustifiedCheckpoint    *phase0.Checkpoint
	FinalizedCheckpoint           *phase0.Checkpoint
	InactivityScores              []uint64 `dynssz-max:"VALIDATOR_REGISTRY_LIMIT" ssz-max:"1099511627776"`
	CurrentSyncCommittee          *altair.SyncCommittee
	NextSyncCommittee             *altair.SyncCommittee
	LatestExecutionPayloadHeader  *deneb.ExecutionPayloadHeader
	NextWithdrawalIndex           capella.WithdrawalIndex
	NextWithdrawalValidatorIndex  phase0.ValidatorIndex
	HistoricalSummaries           []*capella.HistoricalSummary `dynssz-max:"HISTORICAL_ROOTS_LIMIT" ssz-max:"16777216"`
	DepositRequestsStartIndex     uint64
	DepositBalanceToConsume       phase0.Gwei
	ExitBalanceToConsume          phase0.Gwei
	EarliestExitEpoch             phase0.Epoch
	ConsolidationBalanceToConsume phase0.Gwei
	EarliestConsolidationEpoch    phase0.Epoch
	PendingDeposits               []*electra.PendingDeposit           `dynssz-max:"PENDING_DEPOSITS_LIMIT"                  ssz-max:"134217728"`
	PendingPartialWithdrawals     []*electra.PendingPartialWithdrawal `dynssz-max:"PENDING_PARTIAL_WITHDRAWALS_LIMIT"       ssz-max:"134217728"`
	PendingConsolidations         []*electra.PendingConsolidation     `dynssz-max:"PENDING_CONSOLIDATIONS_LIMIT"            ssz-max:"262144"`
	ProposerLookahead             []phase0.ValidatorIndex             `dynssz-size:"(MIN_SEED_LOOKAHEAD+1)*SLOTS_PER_EPOCH" ssz-size:"64"`
}

BeaconState represents a beacon state.

func (*BeaconState) GetTree

func (b *BeaconState) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BeaconState object

func (*BeaconState) HashTreeRoot

func (b *BeaconState) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BeaconState object

func (*BeaconState) HashTreeRootWith

func (b *BeaconState) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BeaconState object with a hasher

func (*BeaconState) MarshalJSON

func (b *BeaconState) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*BeaconState) MarshalSSZ

func (b *BeaconState) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BeaconState object

func (*BeaconState) MarshalSSZTo

func (b *BeaconState) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BeaconState object to a target array

func (*BeaconState) MarshalYAML

func (b *BeaconState) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*BeaconState) SizeSSZ

func (b *BeaconState) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the BeaconState object

func (*BeaconState) String

func (b *BeaconState) String() string

String returns a string version of the structure.

func (*BeaconState) UnmarshalJSON

func (b *BeaconState) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*BeaconState) UnmarshalSSZ

func (b *BeaconState) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BeaconState object

func (*BeaconState) UnmarshalYAML

func (b *BeaconState) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

Jump to

Keyboard shortcuts

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