Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDidDoc(tmpDir string, payload types.MsgCreateDidDocPayload, ...) (sdk.TxResponse, error)
- func CreateResource(tmpDir string, options resourcecli.CreateResourceOptions, ...) (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.QueryGetDidDocResponse, error)
- func QueryParams(subspace, key string) (paramproposal.ParamChange, error)
- func QueryResource(collectionId string, resourceId string) (resourcetypes.QueryGetResourceResponse, error)
- func QueryResourceCollection(collectionId string) (resourcetypes.QueryGetCollectionResourcesResponse, error)
- func QueryResourceMetadata(collectionId string, resourceId string) (resourcetypes.QueryGetResourceMetadataResponse, error)
- func RevokeFeeGrant(granter, grantee string, feeParams []string) (sdk.TxResponse, error)
- func Tx(module, tx, from string, feeParams []string, txArgs ...string) (sdk.TxResponse, error)
- func UpdateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, ...) (sdk.TxResponse, error)
Constants ¶
View Source
const ( KEYRING_BACKEND = "test" OUTPUT_FORMAT = "json" GAS = "auto" GAS_ADJUSTMENT = "1.8" 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_GAS_PARAMS = []string{ "--gas", GAS, "--gas-adjustment", GAS_ADJUSTMENT, "--gas-prices", GAS_PRICES, }
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, "--yes", }
Functions ¶
func CreateDidDoc ¶
func CreateDidDoc(tmpDir string, payload types.MsgCreateDidDocPayload, signInputs []cli.SignInput, from string, feeParams []string) (sdk.TxResponse, error)
func CreateResource ¶
func CreateResource(tmpDir string, options resourcecli.CreateResourceOptions, signInputs []cli.SignInput, from string, feeParams []string) (sdk.TxResponse, error)
func DeactivateDidDoc ¶
func DeactivateDidDoc(tmpDir string, payload types.MsgDeactivateDidDocPayload, signInputs []cli.SignInput, from string, feeParams []string) (sdk.TxResponse, error)
func GrantFees ¶
func GrantFees(granter, grantee string, feeParams []string) (sdk.TxResponse, error)
func QueryDidDoc ¶
func QueryDidDoc(did string) (didtypes.QueryGetDidDocResponse, error)
func QueryParams ¶
func QueryParams(subspace, key string) (paramproposal.ParamChange, 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 RevokeFeeGrant ¶
func RevokeFeeGrant(granter, grantee string, feeParams []string) (sdk.TxResponse, error)
func UpdateDidDoc ¶
func UpdateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, signInputs []cli.SignInput, from string, feeParams []string) (sdk.TxResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.