@xelis/sdk 0.11.22 → 0.11.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,7 +26,7 @@ export declare class RPC extends HttpRPC {
|
|
|
26
26
|
getNonceAtTopoheight(params: types.GetNonceAtTopoheightParams): Promise<types.VersionedNonce>;
|
|
27
27
|
getAsset(params: types.GetAssetParams): Promise<types.AssetData>;
|
|
28
28
|
getAssetSupply(params: types.GetAssetParams): Promise<types.GetAssetSupplyResult>;
|
|
29
|
-
getAssets(params: types.GetAssetsParams): Promise<
|
|
29
|
+
getAssets(params: types.GetAssetsParams): Promise<types.AssetWithData[]>;
|
|
30
30
|
countAssets(): Promise<number>;
|
|
31
31
|
countTransactions(): Promise<number>;
|
|
32
32
|
countAccounts(): Promise<number>;
|
|
@@ -327,13 +327,31 @@ export interface DiskSize {
|
|
|
327
327
|
size_bytes: number;
|
|
328
328
|
size_formatted: string;
|
|
329
329
|
}
|
|
330
|
+
export interface MaxSupplyFixed {
|
|
331
|
+
fixed: number;
|
|
332
|
+
}
|
|
333
|
+
export interface MaxSupplyMintable {
|
|
334
|
+
mintable: number;
|
|
335
|
+
}
|
|
336
|
+
export interface AssetCreator {
|
|
337
|
+
contract: string;
|
|
338
|
+
id: number;
|
|
339
|
+
}
|
|
340
|
+
export interface AssetOwner {
|
|
341
|
+
origin: string;
|
|
342
|
+
origin_id: number;
|
|
343
|
+
owner: string;
|
|
344
|
+
}
|
|
330
345
|
export interface AssetData {
|
|
331
|
-
topoheight: number;
|
|
332
346
|
decimals: number;
|
|
347
|
+
name: string;
|
|
348
|
+
ticker: string;
|
|
349
|
+
max_supply: "none" | MaxSupplyFixed | MaxSupplyMintable;
|
|
350
|
+
owner: "none" | AssetCreator | AssetOwner;
|
|
351
|
+
topoheight: number;
|
|
333
352
|
}
|
|
334
|
-
export interface AssetWithData {
|
|
353
|
+
export interface AssetWithData extends AssetData {
|
|
335
354
|
asset: string;
|
|
336
|
-
data: AssetData;
|
|
337
355
|
}
|
|
338
356
|
export interface HasBalanceParams {
|
|
339
357
|
address: string;
|
package/package.json
CHANGED