cli

package
v0.0.0-...-aa2a1f9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteAndBroadcastTxCLI

func CompleteAndBroadcastTxCLI(txBldr authtypes.TxBuilder, cliCtx context.CLIContext, msgs []sdk.Msg) (*sdk.TxResponse, error)

CompleteAndBroadcastTxCLI implements a utility function that facilitates sending a series of messages in a signed transaction given a TxBuilder and a QueryContext. It ensures that the account exists, has a proper number and sequence set. In addition, it builds and signs a transaction with the supplied messages. Finally, it broadcasts the signed transaction to a node and returns the response and/or error

func GenerateOrBroadcastMsgs

func GenerateOrBroadcastMsgs(cliCtx context.CLIContext, txBldr authtypes.TxBuilder, msgs []sdk.Msg) (*sdk.TxResponse, error)

GenerateOrBroadcastMsgs creates a StdTx given a series of messages. If the provided context has generate-only enabled, the tx will only be printed to STDOUT in a fully offline manner. Otherwise, the tx will be signed and broadcast.

func GetCmdBurnCoins

func GetCmdBurnCoins(cdc *codec.Codec) *cobra.Command

GetCmdBurnCoins is the CLI command for sending a BurnCoins transaction

func GetCmdFindToken

func GetCmdFindToken(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdFindToken queries information about a token through its unique symbol

func GetCmdFreezeCoins

func GetCmdFreezeCoins(cdc *codec.Codec) *cobra.Command

GetCmdFreezeCoins is the CLI command for sending a FreezeCoins transaction

func GetCmdIssueToken

func GetCmdIssueToken(cdc *codec.Codec) *cobra.Command

GetCmdIssueToken is the CLI command for sending a IssueToken transaction

func GetCmdMintCoins

func GetCmdMintCoins(cdc *codec.Codec) *cobra.Command

GetCmdMintCoins is the CLI command for sending a MintCoins transaction

func GetCmdSymbols

func GetCmdSymbols(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdSymbols queries a list of all symbols

func GetCmdUnfreezeCoins

func GetCmdUnfreezeCoins(cdc *codec.Codec) *cobra.Command

GetCmdUnfreezeCoins is the CLI command for sending a FreezeCoins transaction

func GetQueryCmd

func GetQueryCmd(storeKey string, cdc *codec.Codec) *cobra.Command

func GetTxCmd

func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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