cmd

package
v0.0.0-...-3f8a4bd Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: BSD-3-Clause Imports: 37 Imported by: 0

Documentation

Overview

"token-cli" implements tokenvm client operation interface.

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")
	ErrDuplicate           = errors.New("duplicate")
	ErrNoKeys              = errors.New("no available keys")
	ErrNoChains            = errors.New("no available chains")
	ErrTxFailed            = errors.New("tx failed")
)

Functions

func CloseDatabase

func CloseDatabase() error

func DeleteChains

func DeleteChains() ([]ids.ID, error)

func Execute

func Execute() error

func GetChain

func GetChain(chainID ids.ID) ([]string, error)

func GetChains

func GetChains() (map[ids.ID][]string, error)

func GetDefault

func GetDefault(key string) ([]byte, error)

func GetDefaultChain

func GetDefaultChain() (ids.ID, []string, error)

func GetDefaultKey

func GetDefaultKey() (crypto.PrivateKey, error)

func GetKey

func GetKey(publicKey crypto.PublicKey) (crypto.PrivateKey, error)

func GetKeys

func GetKeys() ([]crypto.PrivateKey, error)

func StoreChain

func StoreChain(chainID ids.ID, rpc string) error

func StoreDefault

func StoreDefault(key string, value []byte) error

func StoreKey

func StoreKey(privateKey crypto.PrivateKey) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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