cli

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyringBackend = "test"
	OutputFormat   = "json"
	Gas            = "auto"
	GasAdjustment  = "1.8"
	GasPrices      = "50ncheq"
)
View Source
const (
	Green  = "\033[32m"
	Purple = "\033[35m"
)
View Source
const CliBinaryName = "cheqd-noded"
View Source
const (
	FlagVersionID = "--version-id"
)

Variables

View Source
var CLIQueryParams = []string{
	"--chain-id", network.ChainID,
	"--output", OutputFormat,
}
View Source
var CLITxParams = []string{
	"--chain-id", network.ChainID,
	"--keyring-backend", KeyringBackend,
	"--output", OutputFormat,
	"--yes",
}
View Source
var CliGasParams = []string{
	"--gas", Gas,
	"--gas-adjustment", GasAdjustment,
	"--gas-prices", GasPrices,
}

Functions

func CreateDidDoc

func CreateDidDoc(tmpDir string, payload cli.DIDDocument, signInputs []cli.SignInput, versionID, from string, feeParams []string) (sdk.TxResponse, error)

func CreateResource

func CreateResource(tmpDir string, payload resourcetypes.MsgCreateResourcePayload, signInputs []cli.SignInput, dataFile, from string, feeParams []string) (sdk.TxResponse, error)

func DeactivateDidDoc

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

func Exec

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

func GrantFees

func GrantFees(granter, grantee string, feeParams []string) (sdk.TxResponse, error)

func Query

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

func QueryBalance

func QueryBalance(address, denom string) (sdk.Coin, error)

func QueryDidDoc

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

func QueryParams

func QueryParams(subspace, key string) (paramproposal.ParamChange, error)

func QueryResource

func QueryResource(collectionID string, resourceID string) (resourcetypes.QueryResourceResponse, error)

func QueryResourceCollection

func QueryResourceCollection(collectionID string) (resourcetypes.QueryCollectionResourcesResponse, error)

func QueryResourceMetadata

func QueryResourceMetadata(collectionID string, resourceID string) (resourcetypes.QueryResourceMetadataResponse, error)

func RevokeFeeGrant

func RevokeFeeGrant(granter, grantee string, feeParams []string) (sdk.TxResponse, error)

func Tx

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

func UpdateDidDoc

func UpdateDidDoc(tmpDir string, payload cli.DIDDocument, signInputs []cli.SignInput, versionID, from string, feeParams []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