Skip to main content

Namespace: asset

@shareledgerjs/client.asset

Interfaces

Type Aliases

AssetExtension

Ƭ AssetExtension: AssetQueryExtension & AssetTxExtension


AssetQueryExtension

Ƭ AssetQueryExtension: Object

Type declaration

NameType
get asset(){ asset: (id: string, height?: number) => Promise<Asset | undefined> }

AssetTxExtension

Ƭ AssetTxExtension: Object

Type declaration

NameType
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

NameType
Textends (...args: any[]) => BaseClient & AssetQueryExtension & AssetTxExtension

Parameters

NameType
constructorT

Returns

T


AssetQueryExtension

AssetQueryExtension<T>(constructor): T

Type parameters

NameType
Textends (...args: any[]) => BaseClient & AssetQueryExtension

Parameters

NameType
constructorT

Returns

T


AssetTxExtension

AssetTxExtension<T>(constructor): T

Type parameters

NameType
Textends (...args: any[]) => BaseClient & AssetTxExtension

Parameters

NameType
constructorT

Returns

T


createAssetActions

createAssetActions(): Record<string, string>

Returns

Record<string, string>


createAssetAminoConverters

createAssetAminoConverters(prefix): Record<string, AminoConverter | "not_supported_by_chain">

Parameters

NameType
prefixstring

Returns

Record<string, AminoConverter | "not_supported_by_chain">


createAssetTypes

createAssetTypes(): ReadonlyArray<[string, GeneratedType]>

Returns

ReadonlyArray<[string, GeneratedType]>


isMsgCreateAssetEncodeObject

isMsgCreateAssetEncodeObject(encodeObject): encodeObject is MsgCreateAssetEncodeObject

Parameters

NameType
encodeObjectEncodeObject

Returns

encodeObject is MsgCreateAssetEncodeObject


isMsgDeleteAssetEncodeObject

isMsgDeleteAssetEncodeObject(encodeObject): encodeObject is MsgDeleteAssetEncodeObject

Parameters

NameType
encodeObjectEncodeObject

Returns

encodeObject is MsgDeleteAssetEncodeObject


isMsgUpdateAssetEncodeObject

isMsgUpdateAssetEncodeObject(encodeObject): encodeObject is MsgUpdateAssetEncodeObject

Parameters

NameType
encodeObjectEncodeObject

Returns

encodeObject is MsgUpdateAssetEncodeObject