cli

package
v1.0.0-develop.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

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 CreateDid

func CreateDid(payload types.MsgCreateDidPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

func CreateResource

func CreateResource(collectionId, resourceId, resourceName, resourceType, resourceFile string, 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 QueryAllResourceVersions

func QueryAllResourceVersions(collectionId, resourceName, resourceType string) (resource_types.QueryGetAllResourceVersionsResponse, error)

func QueryDid

func QueryResource

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

func QueryResourceCollection

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

func Tx

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

func UpdateDid

func UpdateDid(payload types.MsgUpdateDidPayload, 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