Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainInfo ¶
type ChainInfo struct { Version uint64 Validators []*ValidatorInfo GenesisValidatorsRoot phase0.Root Epoch phase0.Epoch GenesisForkVersion phase0.Version CurrentForkVersion phase0.Version BLSToExecutionChangeDomainType phase0.DomainType VoluntaryExitDomainType phase0.DomainType }
func ObtainChainInfoFromNode ¶
func ObtainChainInfoFromNode(ctx context.Context, consensusClient consensusclient.Service, chainTime chaintime.Service, ) ( *ChainInfo, error, )
ObtainChainInfoFromNode obtains the chain information from a node.
func (*ChainInfo) FetchValidatorInfo ¶
FetchValidatorInfo fetches validator info given a validator identifier.
func (*ChainInfo) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*ChainInfo) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type ValidatorInfo ¶
type ValidatorInfo struct { Index phase0.ValidatorIndex Pubkey phase0.BLSPubKey State apiv1.ValidatorState WithdrawalCredentials []byte }
func (*ValidatorInfo) MarshalJSON ¶
func (v *ValidatorInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ValidatorInfo) String ¶
func (v *ValidatorInfo) String() string
String implements the Stringer interface.
func (*ValidatorInfo) UnmarshalJSON ¶
func (v *ValidatorInfo) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.