Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationInfo ¶ added in v1.5.0
type BeaconBlock ¶ added in v1.5.0
type BeaconClientType ¶ added in v1.0.0
type BeaconClientType int
Beacon client type
const ( // This client is a traditional "split process" design, where the beacon // client and validator process are separate and run in different // containers SplitProcess BeaconClientType = iota // This client is a "single process" where the beacon client and // validator run in the same process (or run as separate processes // within the same docker container) SingleProcess )
type BeaconHead ¶
type Client ¶
type Client interface { GetClientType() BeaconClientType GetSyncStatus() (SyncStatus, error) GetEth2Config() (Eth2Config, error) GetEth2DepositContract() (Eth2DepositContract, error) GetBeaconBlock(blockId string) (BeaconBlock, bool, error) GetBeaconHead() (BeaconHead, error) GetValidatorStatusByIndex(index string, opts *ValidatorStatusOptions) (ValidatorStatus, error) GetValidatorStatus(pubkey types.ValidatorPubkey, opts *ValidatorStatusOptions) (ValidatorStatus, error) GetValidatorStatuses(pubkeys []types.ValidatorPubkey, opts *ValidatorStatusOptions) (map[types.ValidatorPubkey]ValidatorStatus, error) GetValidatorIndex(pubkey types.ValidatorPubkey) (uint64, error) GetValidatorSyncDuties(indices []uint64, epoch uint64) (map[uint64]bool, error) GetValidatorProposerDuties(indices []uint64, epoch uint64) (map[uint64]uint64, error) GetDomainData(domainType []byte, epoch uint64) ([]byte, error) ExitValidator(validatorIndex, epoch uint64, signature types.ValidatorSignature) error Close() error GetEth1DataForEth2Block(blockId string) (Eth1Data, bool, error) GetCommitteesForEpoch(epoch *uint64) ([]Committee, error) }
Beacon client interface
type Eth2Config ¶
type Eth2DepositContract ¶ added in v1.0.0
type ValidatorStatus ¶
type ValidatorStatusOptions ¶
API request options
Click to show internal directories.
Click to hide internal directories.