validator

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconCommitteeSubscription

type BeaconCommitteeSubscription struct {
	ValidatorIndex   primitives.ValidatorIndex
	CommitteeIndex   primitives.CommitteeIndex
	CommitteesAtSlot uint64
	Slot             primitives.Slot
	IsAggregator     bool
}

type SyncCommitteeSubscription

type SyncCommitteeSubscription struct {
	ValidatorIndex       primitives.ValidatorIndex
	SyncCommitteeIndices []uint64
	UntilEpoch           primitives.Epoch
}

type Uint64

type Uint64 uint64

Uint64 custom uint64 to be unmarshallable

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(bs []byte) error

UnmarshalJSON custom unmarshal function for json

func (*Uint64) UnmarshalYAML

func (u *Uint64) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML custom unmarshal function for yaml

type ValidatorStatus

type ValidatorStatus int8
const (
	PendingInitialized ValidatorStatus = iota
	PendingQueued
	ActiveOngoing
	ActiveExiting
	ActiveSlashed
	ExitedUnslashed
	ExitedSlashed
	WithdrawalPossible
	WithdrawalDone
	Active
	Pending
	Exited
	Withdrawal
)

func ValidatorStatusFromString

func ValidatorStatusFromString(s string) (bool, ValidatorStatus)

func (ValidatorStatus) String

func (s ValidatorStatus) String() string

Jump to

Keyboard shortcuts

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