Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorInformation ¶
type OperatorInformation struct { PublicKey string `json:"publicKey"` Name string `json:"name"` OwnerAddress common.Address `json:"ownerAddress"` Index int64 `json:"index"` }
OperatorInformation the public data of an operator
type OperatorNodeLink ¶
OperatorNodeLink links a validator to an operator
type OperatorsCollection ¶
type OperatorsCollection interface { GetOperatorInformation(operatorPubKey string) (*OperatorInformation, error) SaveOperatorInformation(operatorInformation *OperatorInformation) error ListOperators(from int64, to int64) ([]OperatorInformation, error) }
OperatorsCollection is the interface for managing operators information
type Storage ¶
type Storage interface { eth1.SyncOffsetStorage OperatorsCollection ValidatorsCollection }
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, error) SaveValidatorInformation(validatorInformation *ValidatorInformation) error 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.