index

package
v0.1.1-experimental.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 0

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

IndexesList returns a list of all indexes associated with the validatorsIndex.

Jump to

Keyboard shortcuts

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