Namespace: asset
@shareledgerjs/client.asset
Interfaces
Type Aliases
AssetExtension
Ƭ AssetExtension: AssetQueryExtension
& AssetTxExtension
AssetQueryExtension
Ƭ AssetQueryExtension: Object
Type declaration
Name | Type |
---|---|
get asset() | { asset : (id : string , height? : number ) => Promise <Asset | undefined > } |
AssetTxExtension
Ƭ AssetTxExtension: Object
Type declaration
Name | Type |
---|---|
get asset() | { create : (uuid : string , hash : Uint8Array , status : boolean , rate : Long , creator : string ) => MsgCreateAssetEncodeObject ; delete : (uuid : string , owner : string ) => MsgDeleteAssetEncodeObject ; update : (uuid : string , hash : Uint8Array , status : boolean , rate : Long , creator : string ) => MsgUpdateAssetEncodeObject } |
Functions
AssetExtension
▸ AssetExtension<T
>(constructor
): T
Type parameters
Name | Type |
---|---|
T | extends (...args : any []) => BaseClient & AssetQueryExtension & AssetTxExtension |
Parameters
Name | Type |
---|---|
constructor | T |
Returns
T
AssetQueryExtension
▸ AssetQueryExtension<T
>(constructor
): T
Type parameters
Name | Type |
---|---|
T | extends (...args : any []) => BaseClient & AssetQueryExtension |
Parameters
Name | Type |
---|---|
constructor | T |
Returns
T
AssetTxExtension
▸ AssetTxExtension<T
>(constructor
): T
Type parameters
Name | Type |
---|---|
T | extends (...args : any []) => BaseClient & AssetTxExtension |
Parameters
Name | Type |
---|---|
constructor | T |
Returns
T
createAssetActions
▸ createAssetActions(): Record
<string
, string
>
Returns
Record
<string
, string
>
createAssetAminoConverters
▸ createAssetAminoConverters(prefix
): Record
<string
, AminoConverter
| "not_supported_by_chain"
>
Parameters
Name | Type |
---|---|
prefix | string |
Returns
Record
<string
, AminoConverter
| "not_supported_by_chain"
>
createAssetTypes
▸ createAssetTypes(): ReadonlyArray
<[string
, GeneratedType
]>
Returns
ReadonlyArray
<[string
, GeneratedType
]>
isMsgCreateAssetEncodeObject
▸ isMsgCreateAssetEncodeObject(encodeObject
): encodeObject is MsgCreateAssetEncodeObject
Parameters
Name | Type |
---|---|
encodeObject | EncodeObject |
Returns
encodeObject is MsgCreateAssetEncodeObject
isMsgDeleteAssetEncodeObject
▸ isMsgDeleteAssetEncodeObject(encodeObject
): encodeObject is MsgDeleteAssetEncodeObject
Parameters
Name | Type |
---|---|
encodeObject | EncodeObject |
Returns
encodeObject is MsgDeleteAssetEncodeObject
isMsgUpdateAssetEncodeObject
▸ isMsgUpdateAssetEncodeObject(encodeObject
): encodeObject is MsgUpdateAssetEncodeObject
Parameters
Name | Type |
---|---|
encodeObject | EncodeObject |
Returns
encodeObject is MsgUpdateAssetEncodeObject