Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDidDoc(tmpDir string, payload cli.DIDDocument, signInputs []cli.SignInput, ...) (sdk.TxResponse, error)
- func CreateResource(tmpDir string, payload resourcetypes.MsgCreateResourcePayload, ...) (sdk.TxResponse, error)
- func DeactivateDidDoc(tmpDir string, payload types.MsgDeactivateDidDocPayload, ...) (sdk.TxResponse, error)
- func Exec(args ...string) (string, error)
- func GrantFees(granter, grantee string, feeParams []string) (sdk.TxResponse, error)
- func Query(module, query string, queryArgs ...string) (string, error)
- func QueryBalance(address, denom string) (sdk.Coin, error)
- func QueryDidDoc(did string) (didtypes.QueryDidDocResponse, error)
- func QueryGetBalances(address string) (banktypes.QueryAllBalancesResponse, error)
- func QueryParams(subspace, key string) (paramproposal.ParamChange, error)
- func QueryResource(collectionID string, resourceID string) (resourcetypes.QueryResourceResponse, error)
- func QueryResourceCollection(collectionID string) (resourcetypes.QueryCollectionResourcesResponse, error)
- func QueryResourceMetadata(collectionID string, resourceID string) (resourcetypes.QueryResourceMetadataResponse, error)
- func RevokeFeeGrant(granter, grantee string, feeParams []string) (sdk.TxResponse, error)
- func TransferToken(from string, to string, amount string, feeParams []string) (sdk.TxResponse, error)
- func Tx(module, tx, from string, feeParams []string, txArgs ...string) (sdk.TxResponse, error)
- func UpdateDidDoc(tmpDir string, payload cli.DIDDocument, signInputs []cli.SignInput, ...) (sdk.TxResponse, error)
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 GrantFees ¶ added in v0.2.1
func GrantFees(granter, grantee string, feeParams []string) (sdk.TxResponse, 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 UpdateDidDoc ¶
func UpdateDidDoc(tmpDir string, payload cli.DIDDocument, signInputs []cli.SignInput, versionID, from string, feeParams []string) (sdk.TxResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.