cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyringBackend = "test"
	OutputFormat   = "json"
	Gas            = "auto"
	GasAdjustment  = "1.8"
	GasPrices      = "1zarx"
)
View Source
const (
	Green  = "\033[32m"
	Purple = "\033[35m"
)
View Source
const CliBinaryName = "canow-chain"
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 added in v0.2.1

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

func Query

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

func QueryBalance added in v0.2.1

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

func QueryDidDoc

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

func QueryGetBalances

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

func QueryParams added in v0.2.1

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 added in v0.2.1

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

func TransferToken

func TransferToken(from string, to string, amount 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