types

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconBlockHeader

type BeaconBlockHeader struct {
	Root      beaconcommon.Root                    `json:"root"`
	Canonical bool                                 `json:"canonical"`
	Header    beaconcommon.SignedBeaconBlockHeader `json:"header"`
}

type Committee

type Committee struct {
	Slot       beaconcommon.Slot             `json:"slot"`
	Index      beaconcommon.CommitteeIndex   `json:"index"`
	Validators beaconcommon.CommitteeIndices `json:"validators"`
}

type Error

type Error struct {
	Code        int      `json:"code"`        // either a specific error code in case of invalid request or http status code
	Message     string   `json:"message"`     // message describing error
	StackTraces []string `json:"stacktraces"` // optional stacktraces, sent when node is in debug mode
}

func (Error) Error

func (err Error) Error() string

type Genesis

type Genesis struct {
	GenesisTime           beaconcommon.Timestamp `json:"genesis_time" yaml:"genesis_time"`
	GenesisValidatorsRoot beaconcommon.Root      `json:"genesis_validators_root" yaml:"genesis_validators_root"`
	GenesisForkVersion    beaconcommon.Version   `json:"genesis_fork_version" yaml:"genesis_fork_version"`
}

type StateFinalityCheckpoints

type StateFinalityCheckpoints struct {
	PreviousJustifiedCheckpoint beaconcommon.Checkpoint `json:"previous_justified"`
	CurrentJustifiedCheckpoint  beaconcommon.Checkpoint `json:"current_justified"`
	FinalizedCheckpoint         beaconcommon.Checkpoint `json:"finalized"`
}

type SyncCommittees

type SyncCommittees struct {
	Validators           beaconcommon.CommitteeIndices   `json:"validators"`
	ValidatorsAggregates []beaconcommon.CommitteeIndices `json:"validator_aggregates"`
}

type Validator

type Validator struct {
	Index     beaconcommon.ValidatorIndex `json:"index" yaml:"index"`
	Status    string                      `json:"status" yaml:"status"`
	Balance   beaconcommon.Gwei           `json:"balance" yaml:"balance"`
	Validator *beaconphase0.Validator     `json:"validator" yaml:"validator"`
}

func (Validator) MarshalCSV

func (val Validator) MarshalCSV() ([]string, error)

func (*Validator) UnmarshalCSV

func (val *Validator) UnmarshalCSV(record []string) error

type ValidatorBalance

type ValidatorBalance struct {
	Index   beaconcommon.ValidatorIndex `json:"index" yaml:"index"`
	Balance beaconcommon.Gwei           `json:"balance" yaml:"balance"`
}

Jump to

Keyboard shortcuts

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