chain

package
v0.2.4-0...-f8342f3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainCmd

type ChainCmd struct {
	*base.Base
	chain.Chains
	*ChainState
	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 ChainCopyCmd

type ChainCopyCmd struct {
	*base.Base
	Src  chain.ChainID `ask:"<source>" help:"The source, the chain to copy. Must exist."`
	Dest chain.ChainID `ask:"<dest>" help:"The destination, the name of the copy. Must not exist yet."`
}

func (*ChainCopyCmd) Help

func (c *ChainCopyCmd) Help() string

func (*ChainCopyCmd) Run

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

type ChainCreateCmd

type ChainCreateCmd struct {
	*base.Base
	chain.Chains
	*ChainState
	States    sdb.DB
	Name      chain.ChainID `ask:"<name>" help:"The name to give to the created chain. Must not exist yet."`
	StateRoot beacon.Root   `ask:"<state>" help:"The state to start from, retrieved from the states DB"`
}

func (*ChainCreateCmd) Help

func (c *ChainCreateCmd) Help() string

func (*ChainCreateCmd) Run

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

type ChainListCmd

type ChainListCmd struct {
	*base.Base

	chain.Chains
	*ChainState
}

func (*ChainListCmd) Help

func (c *ChainListCmd) Help() string

func (*ChainListCmd) Run

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

type ChainRemoveCmd

type ChainRemoveCmd struct {
	*base.Base
	chain.Chains
	Name chain.ChainID `ask:"<name>" help:"The name of the chain to remove. Must exist."`
}

func (*ChainRemoveCmd) Help

func (c *ChainRemoveCmd) Help() string

func (*ChainRemoveCmd) Run

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

type ChainState

type ChainState struct {
	CurrentChain chain.ChainID
}

type ChainSwitchCmd

type ChainSwitchCmd struct {
	*base.Base
	*ChainState
	To chain.ChainID `ask:"<to>" help:"The name of the chain to switch to. Must exist."`
}

func (*ChainSwitchCmd) Help

func (c *ChainSwitchCmd) Help() string

func (*ChainSwitchCmd) Run

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

type OnCmd

type OnCmd struct {
	*base.Base
	chain.Chains
	Blocks bdb.DB
	States sdb.DB
}

func (*OnCmd) Cmd

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

func (*OnCmd) Help

func (c *OnCmd) Help() string

func (*OnCmd) Routes

func (c *OnCmd) Routes() (out []string)

Directories

Path Synopsis
hot

Jump to

Keyboard shortcuts

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