cli

package
v1.0.0-develop.9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 CreateDidDoc

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

func CreateResource

func CreateResource(collectionId, resourceId, resourceName, resourceVersion, resourceType, resourceFile string, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)

func DeactivateDidDoc

func DeactivateDidDoc(did 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 QueryDidDoc

func QueryDidDoc(did string) (didtypes.QueryGetDidDocResponse, 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 Tx

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

func UpdateDidDoc

func UpdateDidDoc(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