cli

package
v0.0.0-dev Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEYRING_BACKEND = "test"
	OUTPUT_FORMAT   = "json"
	GAS             = "auto"
	GAS_ADJUSTMENT  = "1.3"
	GAS_PRICES      = "1ncheq"
)
View Source
const (
	GREEN  = "\033[32m"
	PURPLE = "\033[35m"
)
View Source
const CLI_BINARY_NAME = "canow-chain"

Variables

View Source
var CLI_QUERY_PARAMS = []string{
	"--chain-id", network.CHAIN_ID,
	"--output", OUTPUT_FORMAT,
}
View Source
var CLI_TX_PARAMS = []string{
	"--chain-id", network.CHAIN_ID,
	"--keyring-backend", KEYRING_BACKEND,
	"--output", OUTPUT_FORMAT,
	"--gas", GAS,
	"--gas-adjustment", GAS_ADJUSTMENT,
	"--gas-prices", GAS_PRICES,
	"--yes",
}

Functions

func CreateDidDoc

func CreateDidDoc(tmpDit string, payload types.MsgCreateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

func CreateResource

func CreateResource(tmpDir string, options resourcecli.CreateResourceOptions, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

func DeactivateDidDoc

func DeactivateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

func Exec

func Exec(args ...string) (string, error)

func Query

func Query(module, query string, queryArgs ...string) (string, error)

func QueryDidDoc

func QueryDidDoc(did string) (didtypes.QueryGetDidDocResponse, error)

func QueryGetBalances

func QueryGetBalances(address string) (banktypes.QueryAllBalancesResponse, error)

func QueryResource

func QueryResource(collectionId string, resourceId string) (resourcetypes.QueryGetResourceResponse, error)

func QueryResourceCollection

func QueryResourceCollection(collectionId string) (resourcetypes.QueryGetCollectionResourcesResponse, error)

func QueryResourceMetadata

func QueryResourceMetadata(collectionId string, resourceId string) (resourcetypes.QueryGetResourceMetadataResponse, error)

func TransferToken

func TransferToken(from string, to string, amount string) (sdk.TxResponse, error)

func Tx

func Tx(module, tx, from string, txArgs ...string) (sdk.TxResponse, error)

func UpdateDidDoc

func UpdateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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