commands

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.2.8"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitteesCmd

type CommitteesCmd struct {
	Phase               string
	configs.SpecOptions `ask:"."`
	State               util.StateInput `ask:"<state>" help:"BeaconState, prefix with format, empty path for STDIN"`
}

func (*CommitteesCmd) Help

func (c *CommitteesCmd) Help() string

func (*CommitteesCmd) Run

func (c *CommitteesCmd) Run(ctx context.Context, args ...string) error

type ConvertCmd

type ConvertCmd struct{}

func (*ConvertCmd) Cmd

func (c *ConvertCmd) Cmd(route string) (cmd interface{}, err error)

func (*ConvertCmd) Help

func (c *ConvertCmd) Help() string

func (*ConvertCmd) Routes

func (c *ConvertCmd) Routes() []string

type ConvertObjCmd

type ConvertObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	Input               util.ObjInput  `ask:"<input>" help:"Input path, prefix with format, empty path for STDIN"`
	Output              util.ObjOutput `ask:"<output>" help:"Output path, prefix with format, empty path for STDOUT"`
}

func (*ConvertObjCmd) Run

func (c *ConvertObjCmd) Run(ctx context.Context, args ...string) error

type ConvertPhaseCmd

type ConvertPhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*ConvertPhaseCmd) Cmd

func (c *ConvertPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*ConvertPhaseCmd) Routes

func (c *ConvertPhaseCmd) Routes() []string

type DiffCmd

type DiffCmd struct{}

func (*DiffCmd) Cmd

func (c *DiffCmd) Cmd(route string) (cmd interface{}, err error)

func (*DiffCmd) Help

func (c *DiffCmd) Help() string

func (*DiffCmd) Routes

func (c *DiffCmd) Routes() []string

type DiffObjCmd

type DiffObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	InputA              util.ObjInput `ask:"<a>" help:"Input A, prefix with format, empty path for STDIN"`
	InputB              util.ObjInput `ask:"<b>" help:"Input B, prefix with format, empty path for STDIN"`
}

func (*DiffObjCmd) Run

func (c *DiffObjCmd) Run(ctx context.Context, args ...string) error

type DiffPhaseCmd

type DiffPhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*DiffPhaseCmd) Cmd

func (c *DiffPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*DiffPhaseCmd) Routes

func (c *DiffPhaseCmd) Routes() []string

type MetaCmd

type MetaCmd struct{}

func (*MetaCmd) Cmd

func (c *MetaCmd) Cmd(route string) (cmd interface{}, err error)

func (*MetaCmd) Help

func (c *MetaCmd) Help() string

func (*MetaCmd) Routes

func (c *MetaCmd) Routes() []string

type MetaPhaseCmd

type MetaPhaseCmd struct {
	Phase string
}

func (*MetaPhaseCmd) Cmd

func (c *MetaPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*MetaPhaseCmd) Help

func (c *MetaPhaseCmd) Help() string

func (*MetaPhaseCmd) Routes

func (c *MetaPhaseCmd) Routes() []string

type NoOpExecutionEngine

type NoOpExecutionEngine struct{}

func (*NoOpExecutionEngine) NewBlock

func (m *NoOpExecutionEngine) NewBlock(ctx context.Context, executionPayload *common.ExecutionPayload) (success bool, err error)

type PrettyCmd added in v0.2.2

type PrettyCmd struct{}

func (*PrettyCmd) Cmd added in v0.2.2

func (c *PrettyCmd) Cmd(route string) (cmd interface{}, err error)

func (*PrettyCmd) Help added in v0.2.2

func (c *PrettyCmd) Help() string

func (*PrettyCmd) Routes added in v0.2.2

func (c *PrettyCmd) Routes() []string

type PrettyObjCmd added in v0.2.2

type PrettyObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	Input               util.ObjInput `ask:"<input>" help:"Input path, prefix with format, empty path for STDIN"`
	Output              string        `ask:"[output]" help:"Output path, empty path for STDOUT"`
}

func (*PrettyObjCmd) Run added in v0.2.2

func (c *PrettyObjCmd) Run(ctx context.Context, args ...string) error

type PrettyPhaseCmd added in v0.2.2

type PrettyPhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*PrettyPhaseCmd) Cmd added in v0.2.2

func (c *PrettyPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*PrettyPhaseCmd) Routes added in v0.2.2

func (c *PrettyPhaseCmd) Routes() []string

type ProofCmd

type ProofCmd struct{}

func (*ProofCmd) Cmd

func (c *ProofCmd) Cmd(route string) (cmd interface{}, err error)

func (*ProofCmd) Help

func (c *ProofCmd) Help() string

func (*ProofCmd) Routes

func (c *ProofCmd) Routes() []string

type ProofObjCmd

type ProofObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	Input               util.ObjInput     `ask:"<input>" help:"Input, prefix with format, empty path for STDIN"`
	Gindices            util.GindicesFlag `ask:"--gindices" help:"Gindices of leaf values to put in multi-proof"`
}

func (*ProofObjCmd) Help

func (c *ProofObjCmd) Help() string

func (*ProofObjCmd) Run

func (c *ProofObjCmd) Run(ctx context.Context, args ...string) error

type ProofPhaseCmd

type ProofPhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*ProofPhaseCmd) Cmd

func (c *ProofPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*ProofPhaseCmd) Help

func (c *ProofPhaseCmd) Help() string

func (*ProofPhaseCmd) Routes

func (c *ProofPhaseCmd) Routes() []string

type ProposersCmd

type ProposersCmd struct {
	Phase               string
	configs.SpecOptions `ask:"."`
	State               util.StateInput `ask:"<state>" help:"BeaconState, prefix with format, empty path for STDIN"`
}

func (*ProposersCmd) Help

func (c *ProposersCmd) Help() string

func (*ProposersCmd) Run

func (c *ProposersCmd) Run(ctx context.Context, args ...string) error

type RootCmd

type RootCmd struct{}

func (*RootCmd) Cmd

func (c *RootCmd) Cmd(route string) (cmd interface{}, err error)

func (*RootCmd) Help

func (c *RootCmd) Help() string

func (*RootCmd) Routes

func (c *RootCmd) Routes() []string

type RootObjCmd

type RootObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	Input               util.ObjInput `ask:"<input>" help:"Input, prefix with format, empty path for STDIN"`
}

func (*RootObjCmd) Help

func (c *RootObjCmd) Help() string

func (*RootObjCmd) Run

func (c *RootObjCmd) Run(ctx context.Context, args ...string) error

type RootPhaseCmd

type RootPhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*RootPhaseCmd) Cmd

func (c *RootPhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*RootPhaseCmd) Help

func (c *RootPhaseCmd) Help() string

func (*RootPhaseCmd) Routes

func (c *RootPhaseCmd) Routes() []string

type SyncCommitteesCmd

type SyncCommitteesCmd struct {
	Phase               string
	configs.SpecOptions `ask:"."`
	State               util.StateInput `ask:"<state>" help:"BeaconState, prefix with format, empty path for STDIN"`
}

func (*SyncCommitteesCmd) Help

func (c *SyncCommitteesCmd) Help() string

func (*SyncCommitteesCmd) Run

func (c *SyncCommitteesCmd) Run(ctx context.Context, args ...string) error

type TransitionBlockSubCmd

type TransitionBlockSubCmd struct {
	PreFork             string
	Transition          string
	Timeout             time.Duration `ask:"--timeout" help:"Timeout, e.g. 100ms"`
	configs.SpecOptions `ask:"."`
	Pre                 util.StateInput  `ask:"--pre" help:"Pre-state"`
	Op                  util.ObjInput    `ask:"<op>" help:"Block operation input"`
	Post                util.StateOutput `ask:"--post" help:"Post-state"`
}

func (*TransitionBlockSubCmd) Help

func (c *TransitionBlockSubCmd) Help() string

func (*TransitionBlockSubCmd) Run

func (c *TransitionBlockSubCmd) Run(ctx context.Context, args ...string) error

type TransitionBlocksCmd

type TransitionBlocksCmd struct {
	PreFork             string
	VerifyStateRoot     bool          `ask:"--verify-state-root" help:"Verify the state root of each block"`
	Timeout             time.Duration `ask:"--timeout" help:"Timeout, e.g. 100ms"`
	configs.SpecOptions `ask:"."`
	Pre                 util.StateInput  `ask:"--pre" help:"Pre-state"`
	Post                util.StateOutput `ask:"--post" help:"Post-state"`
}

func (*TransitionBlocksCmd) Help

func (c *TransitionBlocksCmd) Help() string

func (*TransitionBlocksCmd) Run

func (c *TransitionBlocksCmd) Run(ctx context.Context, args ...string) error

type TransitionCmd

type TransitionCmd struct{}

func (*TransitionCmd) Cmd

func (c *TransitionCmd) Cmd(route string) (cmd interface{}, err error)

func (*TransitionCmd) Help

func (c *TransitionCmd) Help() string

func (*TransitionCmd) Routes

func (c *TransitionCmd) Routes() []string

type TransitionEpochSubCmd

type TransitionEpochSubCmd struct {
	PreFork             string
	Transition          string
	Timeout             time.Duration `ask:"--timeout" help:"Timeout, e.g. 100ms"`
	configs.SpecOptions `ask:"."`
	Pre                 util.StateInput  `ask:"--pre" help:"Pre-state"`
	Post                util.StateOutput `ask:"--post" help:"Post-state"`
}

func (*TransitionEpochSubCmd) Help

func (c *TransitionEpochSubCmd) Help() string

func (*TransitionEpochSubCmd) Run

func (c *TransitionEpochSubCmd) Run(ctx context.Context, args ...string) error

type TransitionSlotsCmd

type TransitionSlotsCmd struct {
	PreFork             string
	Slots               uint64        `ask:"<slots>" help:"Number of slots to process"`
	Timeout             time.Duration `ask:"--timeout" help:"Timeout, e.g. 100ms"`
	configs.SpecOptions `ask:"."`
	Pre                 util.StateInput  `ask:"--pre" help:"Pre-state"`
	Post                util.StateOutput `ask:"--post" help:"Post-state"`
}

func (*TransitionSlotsCmd) Help

func (c *TransitionSlotsCmd) Help() string

func (*TransitionSlotsCmd) Run

func (c *TransitionSlotsCmd) Run(ctx context.Context, args ...string) error

type TransitionSubCmd

type TransitionSubCmd struct {
	PreFork string
}

func (*TransitionSubCmd) Cmd

func (c *TransitionSubCmd) Cmd(route string) (cmd interface{}, err error)

func (*TransitionSubCmd) Help

func (c *TransitionSubCmd) Help() string

func (*TransitionSubCmd) Routes

func (c *TransitionSubCmd) Routes() []string

type TransitionSubRouterCmd

type TransitionSubRouterCmd struct {
	PreFork string
}

func (*TransitionSubRouterCmd) Cmd

func (c *TransitionSubRouterCmd) Cmd(route string) (cmd interface{}, err error)

func (*TransitionSubRouterCmd) Help

func (c *TransitionSubRouterCmd) Help() string

func (*TransitionSubRouterCmd) Routes added in v0.2.2

func (c *TransitionSubRouterCmd) Routes() []string

type TreeCmd

type TreeCmd struct{}

func (*TreeCmd) Cmd

func (c *TreeCmd) Cmd(route string) (cmd interface{}, err error)

func (*TreeCmd) Help

func (c *TreeCmd) Help() string

func (*TreeCmd) Routes

func (c *TreeCmd) Routes() []string

type TreeObjCmd

type TreeObjCmd struct {
	PhaseName           string
	TypeName            string
	Type                spec_types.SpecType
	configs.SpecOptions `ask:"."`
	Input               util.ObjInput `ask:"<input>" help:"Input, prefix with format, empty path for STDIN"`
}

func (*TreeObjCmd) Help

func (c *TreeObjCmd) Help() string

func (*TreeObjCmd) Run

func (c *TreeObjCmd) Run(ctx context.Context, args ...string) error

type TreePhaseCmd

type TreePhaseCmd struct {
	PhaseName string
	Types     map[string]spec_types.SpecType
}

func (*TreePhaseCmd) Cmd

func (c *TreePhaseCmd) Cmd(route string) (cmd interface{}, err error)

func (*TreePhaseCmd) Help

func (c *TreePhaseCmd) Help() string

func (*TreePhaseCmd) Routes

func (c *TreePhaseCmd) Routes() []string

type VersionCmd

type VersionCmd struct {
}

func (*VersionCmd) Help

func (c *VersionCmd) Help() string

func (*VersionCmd) Run

func (c *VersionCmd) Run(ctx context.Context, args ...string) error

Jump to

Keyboard shortcuts

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