Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorNodeLink ¶
OperatorNodeLink links a validator to an operator
type Storage ¶
type Storage interface {
eth1.SyncOffsetStorage
registrystorage.OperatorsCollection
ValidatorsCollection
eth12.RegistryStore
}
Storage represents the interface of exporter storage
type ValidatorInformation ¶
type ValidatorInformation struct {
Index int64 `json:"index"`
PublicKey string `json:"publicKey"`
Operators []OperatorNodeLink `json:"operators"`
}
ValidatorInformation represents a validator
type ValidatorsCollection ¶
type ValidatorsCollection interface {
GetValidatorInformation(validatorPubKey string) (*ValidatorInformation, bool, error)
SaveValidatorInformation(validatorInformation *ValidatorInformation) error
// ListValidators TODO: should use uint64 instead of int64
ListValidators(from int64, to int64) ([]ValidatorInformation, error)
}
ValidatorsCollection is the interface for managing validators information
Click to show internal directories.
Click to hide internal directories.