types

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epoch

type Epoch = common.Epoch

type Genesis

type Genesis struct {
	GenesisTime           time.Time
	GenesisValidatorsRoot Root
	GenesisForkVersion    Version
}

func (*Genesis) MarshalJSON

func (c *Genesis) MarshalJSON() ([]byte, error)

func (*Genesis) UnmarshalJSON

func (c *Genesis) UnmarshalJSON(raw []byte) error

type Root

type Root = tree.Root

type StateFork

type StateFork struct {
	PreviousVersion Version
	CurrentVersion  Version
	Epoch           Epoch
}

func (*StateFork) MarshalJSON

func (c *StateFork) MarshalJSON() ([]byte, error)

func (*StateFork) UnmarshalJSON

func (c *StateFork) UnmarshalJSON(raw []byte) error

type StateForkJSON

type StateForkJSON struct {
	PreviousVersion string `json:"previous_version"`
	CurrentVersion  string `json:"current_version"`
	Epoch           string `json:"epoch"`
}

type Version

type Version = common.Version

Jump to

Keyboard shortcuts

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