Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorsIndex ¶
type ValidatorsIndex struct { // Pubkey is a unique index mapping a validator's public key to their // numeric ID and vice versa. Pubkey *indexes.Unique[[]byte, uint64, *beacontypes.Validator] // EffectiveBalance is a multi-index mapping a validator's effective balance // to their numeric ID. EffectiveBalance *indexes.Multi[uint64, uint64, *beacontypes.Validator] }
ValidatorsIndex is a struct that holds a unique index for validators based on their public key.
func NewValidatorsIndex ¶
func NewValidatorsIndex(sb *sdkcollections.SchemaBuilder) ValidatorsIndex
NewValidatorsIndex creates a new validatorsIndex with a unique index for validator public keys.
func (ValidatorsIndex) IndexesList ¶
func (a ValidatorsIndex) IndexesList() []sdkcollections.Index[ uint64, *beacontypes.Validator, ]
IndexesList returns a list of all indexes associated with the validatorsIndex.
Click to show internal directories.
Click to hide internal directories.