cli

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 21 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"
	FlagMetadata = "metadata"
)
View Source
const (
	FlagCaller = "caller"
)

Variables

This section is empty.

Functions

func GetAccountCmd

func GetAccountCmd() *cobra.Command

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

func GetCmdAbi

func GetCmdAbi() *cobra.Command

GetCmdAbi returns the CVM code ABI query command.

func GetCmdAddressTranslate

func GetCmdAddressTranslate() *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() *cobra.Command

GetCmdCall returns the CVM contract call transaction command.

func GetCmdCode

func GetCmdCode() *cobra.Command

GetCmdCode returns the CVM code query command.

func GetCmdDeploy

func GetCmdDeploy() *cobra.Command

GetCmdDeploy returns the CVM contract deploy transaction command.

func GetCmdMeta

func GetCmdMeta() *cobra.Command

GetCmdMeta returns the CVM metadata query command.

func GetCmdStorage

func GetCmdStorage() *cobra.Command

GetCmdStorage returns the CVM storage query command.

func GetCmdView

func GetCmdView() *cobra.Command

GetCmdView returns the CVM contract view transaction command.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewTxCmd

func NewTxCmd() *cobra.Command

GetTxCmd returns the transaction commands for this module

Types

This section is empty.

Jump to

Keyboard shortcuts

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