Versions in this module Expand all Collapse all v2 v2.0.1 Oct 5, 2021 Changes in this version + type BeaconState interface + Copy func() BeaconState + HashTreeRoot func(ctx context.Context) ([32]byte, error) + Version func() int + type BeaconStateAltair interface + AppendCurrentParticipationBits func(val byte) error + AppendInactivityScore func(s uint64) error + AppendPreviousParticipationBits func(val byte) error + CurrentEpochParticipation func() ([]byte, error) + CurrentSyncCommittee func() (*ethpb.SyncCommittee, error) + InactivityScores func() ([]uint64, error) + NextSyncCommittee func() (*ethpb.SyncCommittee, error) + PreviousEpochParticipation func() ([]byte, error) + SetCurrentParticipationBits func(val []byte) error + SetCurrentSyncCommittee func(val *ethpb.SyncCommittee) error + SetInactivityScores func(val []uint64) error + SetNextSyncCommittee func(val *ethpb.SyncCommittee) error + SetPreviousParticipationBits func(val []byte) error + type FutureForkStub interface + AppendCurrentParticipationBits func(val byte) error + AppendInactivityScore func(s uint64) error + AppendPreviousParticipationBits func(val byte) error + CurrentEpochParticipation func() ([]byte, error) + CurrentSyncCommittee func() (*ethpb.SyncCommittee, error) + InactivityScores func() ([]uint64, error) + NextSyncCommittee func() (*ethpb.SyncCommittee, error) + PreviousEpochParticipation func() ([]byte, error) + SetCurrentParticipationBits func(val []byte) error + SetCurrentSyncCommittee func(val *ethpb.SyncCommittee) error + SetInactivityScores func(val []uint64) error + SetNextSyncCommittee func(val *ethpb.SyncCommittee) error + SetPreviousParticipationBits func(val []byte) error + type ReadOnlyAttestations interface + CurrentEpochAttestations func() ([]*ethpb.PendingAttestation, error) + PreviousEpochAttestations func() ([]*ethpb.PendingAttestation, error) + type ReadOnlyBalances interface + BalanceAtIndex func(idx types.ValidatorIndex) (uint64, error) + Balances func() []uint64 + BalancesLength func() int + type ReadOnlyBeaconState interface + CloneInnerState func() interface{} + FieldReferencesCount func() map[string]uint64 + Fork func() *ethpb.Fork + GenesisTime func() uint64 + GenesisValidatorRoot func() []byte + HistoricalRoots func() [][]byte + InnerStateUnsafe func() interface{} + IsNil func() bool + LatestBlockHeader func() *ethpb.BeaconBlockHeader + MarshalSSZ func() ([]byte, error) + Slashings func() []uint64 + Slot func() types.Slot + type ReadOnlyBlockRoots interface + BlockRootAtIndex func(idx uint64) ([]byte, error) + BlockRoots func() [][]byte + type ReadOnlyCheckpoint interface + CurrentJustifiedCheckpoint func() *ethpb.Checkpoint + FinalizedCheckpoint func() *ethpb.Checkpoint + FinalizedCheckpointEpoch func() types.Epoch + JustificationBits func() bitfield.Bitvector4 + MatchCurrentJustifiedCheckpoint func(c *ethpb.Checkpoint) bool + MatchPreviousJustifiedCheckpoint func(c *ethpb.Checkpoint) bool + PreviousJustifiedCheckpoint func() *ethpb.Checkpoint + type ReadOnlyEth1Data interface + Eth1Data func() *ethpb.Eth1Data + Eth1DataVotes func() []*ethpb.Eth1Data + Eth1DepositIndex func() uint64 + type ReadOnlyRandaoMixes interface + RandaoMixAtIndex func(idx uint64) ([]byte, error) + RandaoMixes func() [][]byte + RandaoMixesLength func() int + type ReadOnlyStateRoots interface + StateRootAtIndex func(idx uint64) ([]byte, error) + StateRoots func() [][]byte + type ReadOnlyValidator interface + ActivationEligibilityEpoch func() types.Epoch + ActivationEpoch func() types.Epoch + EffectiveBalance func() uint64 + ExitEpoch func() types.Epoch + IsNil func() bool + PublicKey func() [48]byte + Slashed func() bool + WithdrawableEpoch func() types.Epoch + WithdrawalCredentials func() []byte + type ReadOnlyValidators interface + NumValidators func() int + PubkeyAtIndex func(idx types.ValidatorIndex) [48]byte + ReadFromEveryValidator func(f func(idx int, val ReadOnlyValidator) error) error + ValidatorAtIndex func(idx types.ValidatorIndex) (*ethpb.Validator, error) + ValidatorAtIndexReadOnly func(idx types.ValidatorIndex) (ReadOnlyValidator, error) + ValidatorIndexByPubkey func(key [48]byte) (types.ValidatorIndex, bool) + Validators func() []*ethpb.Validator + type WriteOnlyAttestations interface + AppendCurrentEpochAttestations func(val *ethpb.PendingAttestation) error + AppendPreviousEpochAttestations func(val *ethpb.PendingAttestation) error + RotateAttestations func() error + type WriteOnlyBalances interface + AppendBalance func(bal uint64) error + SetBalances func(val []uint64) error + UpdateBalancesAtIndex func(idx types.ValidatorIndex, val uint64) error + type WriteOnlyBeaconState interface + AppendHistoricalRoots func(root [32]byte) error + SetFork func(val *ethpb.Fork) error + SetGenesisTime func(val uint64) error + SetGenesisValidatorRoot func(val []byte) error + SetHistoricalRoots func(val [][]byte) error + SetLatestBlockHeader func(val *ethpb.BeaconBlockHeader) error + SetSlashings func(val []uint64) error + SetSlot func(val types.Slot) error + UpdateSlashingsAtIndex func(idx, val uint64) error + type WriteOnlyBlockRoots interface + SetBlockRoots func(val [][]byte) error + UpdateBlockRootAtIndex func(idx uint64, blockRoot [32]byte) error + type WriteOnlyCheckpoint interface + SetCurrentJustifiedCheckpoint func(val *ethpb.Checkpoint) error + SetFinalizedCheckpoint func(val *ethpb.Checkpoint) error + SetJustificationBits func(val bitfield.Bitvector4) error + SetPreviousJustifiedCheckpoint func(val *ethpb.Checkpoint) error + type WriteOnlyEth1Data interface + AppendEth1DataVotes func(val *ethpb.Eth1Data) error + SetEth1Data func(val *ethpb.Eth1Data) error + SetEth1DataVotes func(val []*ethpb.Eth1Data) error + SetEth1DepositIndex func(val uint64) error + type WriteOnlyRandaoMixes interface + SetRandaoMixes func(val [][]byte) error + UpdateRandaoMixesAtIndex func(idx uint64, val []byte) error + type WriteOnlyStateRoots interface + SetStateRoots func(val [][]byte) error + UpdateStateRootAtIndex func(idx uint64, stateRoot [32]byte) error + type WriteOnlyValidators interface + AppendValidator func(val *ethpb.Validator) error + ApplyToEveryValidator func(f func(idx int, val *ethpb.Validator) (bool, *ethpb.Validator, error)) error + SetValidators func(val []*ethpb.Validator) error + UpdateValidatorAtIndex func(idx types.ValidatorIndex, val *ethpb.Validator) error Other modules containing this package github.com/prysmaticlabs/prysm github.com/prysmaticlabs/prysm/v3 github.com/prysmaticlabs/prysm/v4 github.com/prysmaticlabs/prysm/v5