chcmd

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationCmd

type AttestationCmd struct {
	*base.Base
	Root beacon.Root `ask:"<root>" help:"Root of the attestation (incl bitfield) to add to the chain"`
}

func (*AttestationCmd) Help

func (c *AttestationCmd) Help() string

func (*AttestationCmd) Run

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

type BlockCmd

type BlockCmd struct {
	*base.Base
	Blocks bdb.DB
	Chain  chain.FullChain
	Root   beacon.Root `ask:"<root>" help:"Root of the block to add to the chain"`
}

func (*BlockCmd) Help

func (c *BlockCmd) Help() string

func (*BlockCmd) Run

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

type ChainCmd

type ChainCmd struct {
	*base.Base
	Chain  chain.FullChain
	Blocks bdb.DB
	States sdb.DB
}

func (*ChainCmd) Cmd

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

func (*ChainCmd) Help

func (c *ChainCmd) Help() string

func (*ChainCmd) Routes

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

type VotesCmd

type VotesCmd struct {
	*base.Base
}

func (*VotesCmd) Help

func (c *VotesCmd) Help() string

func (*VotesCmd) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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