cli

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package cli defines the CLI services for the cvm module.

Index

Constants

View Source
const (
	FlagValue    = "value"
	FlagArgs     = "args"
	FlagContract = "contract"
	FlagRaw      = "raw"
	FlagABI      = "abi"
	FlagEWASM    = "ewasm"
	FlagRuntime  = "runtime"
)
View Source
const (
	FlagCaller = "caller"
)

Variables

This section is empty.

Functions

func GetAccountCmd added in v1.1.0

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

GetAccountCmd returns a query account that will display the state of the account at a given address.

func GetCmdAbi

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

GetCmdAbi returns the CVM code ABI query command.

func GetCmdAddressTranslate

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

GetCmdAddressTranslate is a utility query to translate Bech32 addresses to hex and vice versa. It is a pure function and does not interact with the handler or keeper.

func GetCmdCall

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

GetCmdCall returns the CVM contract call transaction command.

func GetCmdCode

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

GetCmdCode returns the CVM code query command.

func GetCmdDeploy

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

GetCmdDeploy returns the CVM contract deploy transaction command.

func GetCmdMeta

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

GetCmdMeta returns the CVM metadata query command.

func GetCmdStorage

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

GetCmdStorage returns the CVM storage query command.

func GetCmdView

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

GetCmdView returns the CVM contract view transaction command.

func GetQueryCmd

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

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

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

GetTxCmd returns the transaction commands for this module

func QueryTxCmd

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

QueryTxCmd implements the default command for a tx query.

Types

This section is empty.

Jump to

Keyboard shortcuts

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