cli

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
)
View Source
const (
	FlagCaller = "caller"
)

Variables

This section is empty.

Functions

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