Documentation ¶
Index ¶
- Constants
- Variables
- func CreateDidDoc(tmpDit string, payload types.MsgCreateDidDocPayload, ...) (sdk.TxResponse, error)
- func CreateResource(tmpDir string, options resourcecli.CreateResourceOptions, ...) (sdk.TxResponse, error)
- func DeactivateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, ...) (sdk.TxResponse, error)
- func Exec(args ...string) (string, error)
- func Query(module, query string, queryArgs ...string) (string, error)
- func QueryDidDoc(did string) (didtypes.QueryGetDidDocResponse, error)
- func QueryGetBalances(address string) (banktypes.QueryAllBalancesResponse, 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 TransferToken(from string, to string, amount string) (sdk.TxResponse, error)
- func Tx(module, tx, from 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.3" GAS_PRICES = "1ncheq" )
View Source
const ( GREEN = "\033[32m" PURPLE = "\033[35m" )
View Source
const CLI_BINARY_NAME = "canow-chain"
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(tmpDit string, payload types.MsgCreateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)
func CreateResource ¶
func CreateResource(tmpDir string, options resourcecli.CreateResourceOptions, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)
func DeactivateDidDoc ¶
func DeactivateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)
func QueryDidDoc ¶
func QueryDidDoc(did string) (didtypes.QueryGetDidDocResponse, error)
func QueryGetBalances ¶
func QueryGetBalances(address string) (banktypes.QueryAllBalancesResponse, 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 TransferToken ¶
func UpdateDidDoc ¶
func UpdateDidDoc(tmpDir string, payload types.MsgUpdateDidDocPayload, signInputs []cli.SignInput, from string) (sdk.TxResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.