cmd

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInputEmpty          = errors.New("input is empty")
	ErrInvalidArgs         = errors.New("invalid args")
	ErrMissingSubcommand   = errors.New("must specify a subcommand")
	ErrIndexOutOfRange     = errors.New("index out-of-range")
	ErrInsufficientBalance = errors.New("insufficient balance")
	ErrInvalidChoice       = errors.New("invalid choice")
	ErrNotMultiple         = errors.New("must be a multiple")
	ErrInsufficientSupply  = errors.New("insufficient supply")
	ErrMustFill            = errors.New("must fill")
	ErrExpiredTx           = errors.New("expireed tx")
	ErrDuplicate           = errors.New("duplicate")
	ErrNoKeys              = errors.New("no available keys")
	ErrNoChains            = errors.New("no available chains")
	ErrTxFailed            = errors.New("tx failed")
)

Functions

func Execute

func Execute() error

Types

type Controller added in v0.3.0

type Controller struct {
	// contains filtered or unexported fields
}

func NewController added in v0.3.0

func NewController(databasePath string) *Controller

func (*Controller) Address added in v0.3.0

func (*Controller) Address(pk ed25519.PublicKey) string

func (*Controller) DatabasePath added in v0.3.0

func (c *Controller) DatabasePath() string

func (*Controller) Decimals added in v0.3.0

func (*Controller) Decimals() uint8

func (*Controller) ParseAddress added in v0.3.0

func (*Controller) ParseAddress(address string) (ed25519.PublicKey, error)

func (*Controller) Symbol added in v0.3.0

func (*Controller) Symbol() string

type Handler added in v0.3.0

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler added in v0.3.0

func NewHandler(h *cli.Handler) *Handler

func (*Handler) DefaultActor added in v0.3.0

func (*Handler) GetAssetInfo added in v0.3.0

func (*Handler) GetAssetInfo(
	ctx context.Context,
	cli *trpc.JSONRPCClient,
	publicKey ed25519.PublicKey,
	assetID ids.ID,
	checkBalance bool,
) ([]byte, uint8, uint64, ids.ID, error)

func (*Handler) Root added in v0.3.0

func (h *Handler) Root() *cli.Handler

Jump to

Keyboard shortcuts

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