util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GindicesFlag added in v0.2.0

type GindicesFlag []tree.Gindex64

func (*GindicesFlag) Set added in v0.2.0

func (p *GindicesFlag) Set(v string) error

func (*GindicesFlag) String added in v0.2.0

func (p *GindicesFlag) String() string

func (*GindicesFlag) Type added in v0.2.0

func (p *GindicesFlag) Type() string

type LegacyConfig added in v0.2.0

type LegacyConfig struct {
	CONFIG_NAME           string `yaml:"CONFIG_NAME"`
	common.Phase0Preset   `yaml:",inline"`
	common.AltairPreset   `yaml:",inline"`
	common.MergePreset    `yaml:",inline"`
	common.ShardingPreset `yaml:",inline"`
	common.Config         `yaml:",inline"`
}

type ObjInput added in v0.2.0

type ObjInput string

func (*ObjInput) Read added in v0.2.0

func (p *ObjInput) Read(dest interface{}) error

func (*ObjInput) Set added in v0.2.0

func (p *ObjInput) Set(v string) error

func (*ObjInput) String added in v0.2.0

func (p *ObjInput) String() string

func (*ObjInput) Type added in v0.2.0

func (p *ObjInput) Type() string

type ObjOutput added in v0.2.0

type ObjOutput string

func (*ObjOutput) Set added in v0.2.0

func (p *ObjOutput) Set(v string) error

func (*ObjOutput) String added in v0.2.0

func (p *ObjOutput) String() string

func (*ObjOutput) Type added in v0.2.0

func (p *ObjOutput) Type() string

func (*ObjOutput) Write added in v0.2.0

func (p *ObjOutput) Write(obj interface{}) error

type SpecOptions added in v0.2.0

type SpecOptions struct {
	LegacyConfig        string `ask:"--legacy-config" help:"Eth2 legacy configuration (combined config and presets), name or path to YAML"`
	LegacyConfigChanged bool   `changed:"legacy-config"`

	Config         string `ask:"--config" help:"Eth2 spec configuration, name or path to YAML"`
	Phase0Preset   string `ask:"--preset-phase0" help:"Eth2 phase0 spec preset, name or path to YAML"`
	AltairPreset   string `ask:"--preset-altair" help:"Eth2 altair spec preset, name or path to YAML"`
	MergePreset    string `ask:"--preset-merge" help:"Eth2 merge spec preset, name or path to YAML"`
	ShardingPreset string `ask:"--preset-sharding" help:"Eth2 sharding spec preset, name or path to YAML"`
}

func (*SpecOptions) Default added in v0.2.0

func (c *SpecOptions) Default()

func (*SpecOptions) Spec added in v0.2.0

func (c *SpecOptions) Spec() (*common.Spec, error)

type StateInput added in v0.2.0

type StateInput string

func (*StateInput) Read added in v0.2.0

func (p *StateInput) Read(spec *common.Spec, phase string) (common.BeaconState, error)

func (*StateInput) Set added in v0.2.0

func (p *StateInput) Set(v string) error

func (*StateInput) String added in v0.2.0

func (p *StateInput) String() string

func (*StateInput) Type added in v0.2.0

func (p *StateInput) Type() string

type StateOutput added in v0.2.0

type StateOutput string

func (*StateOutput) Set added in v0.2.0

func (p *StateOutput) Set(v string) error

func (*StateOutput) String added in v0.2.0

func (p *StateOutput) String() string

func (*StateOutput) Type added in v0.2.0

func (p *StateOutput) Type() string

func (*StateOutput) Write added in v0.2.0

func (p *StateOutput) Write(spec *common.Spec, obj common.BeaconState) error

Jump to

Keyboard shortcuts

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