@xelis/sdk 0.11.23 → 0.11.24

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.
@@ -139,8 +139,8 @@ class RPC extends http_1.HttpRPC {
139
139
  getAccountHistory(params) {
140
140
  return this.request(types_1.RPCMethod.GetAccountHistory, params);
141
141
  }
142
- getAccountAssets(address) {
143
- return this.request(types_1.RPCMethod.GetAccountAssets, { address });
142
+ getAccountAssets(params) {
143
+ return this.request(types_1.RPCMethod.GetAccountAssets, params);
144
144
  }
145
145
  getAccounts(params) {
146
146
  return this.request(types_1.RPCMethod.GetAccounts, params);
@@ -152,8 +152,8 @@ class DaemonMethods {
152
152
  getAccountHistory(params) {
153
153
  return this.dataCall(types_1.RPCMethod.GetAccountHistory, params);
154
154
  }
155
- getAccountAssets(address) {
156
- return this.dataCall(types_1.RPCMethod.GetAccountAssets, { address });
155
+ getAccountAssets(params) {
156
+ return this.dataCall(types_1.RPCMethod.GetAccountAssets, params);
157
157
  }
158
158
  getAccounts(params) {
159
159
  return this.dataCall(types_1.RPCMethod.GetAccounts, params);
@@ -136,8 +136,8 @@ export class RPC extends HttpRPC {
136
136
  getAccountHistory(params) {
137
137
  return this.request(RPCMethod.GetAccountHistory, params);
138
138
  }
139
- getAccountAssets(address) {
140
- return this.request(RPCMethod.GetAccountAssets, { address });
139
+ getAccountAssets(params) {
140
+ return this.request(RPCMethod.GetAccountAssets, params);
141
141
  }
142
142
  getAccounts(params) {
143
143
  return this.request(RPCMethod.GetAccounts, params);
@@ -149,8 +149,8 @@ export class DaemonMethods {
149
149
  getAccountHistory(params) {
150
150
  return this.dataCall(RPCMethod.GetAccountHistory, params);
151
151
  }
152
- getAccountAssets(address) {
153
- return this.dataCall(RPCMethod.GetAccountAssets, { address });
152
+ getAccountAssets(params) {
153
+ return this.dataCall(RPCMethod.GetAccountAssets, params);
154
154
  }
155
155
  getAccounts(params) {
156
156
  return this.dataCall(RPCMethod.GetAccounts, params);
@@ -46,7 +46,7 @@ export declare class RPC extends HttpRPC {
46
46
  getBlocksRangeByTopoheight(params: types.TopoheightRangeParams): Promise<types.Block[]>;
47
47
  getBlocksRangeByHeight(params: types.HeightRangeParams): Promise<types.Block[]>;
48
48
  getAccountHistory(params: types.GetAccountHistoryParams): Promise<types.AccountHistory[]>;
49
- getAccountAssets(address: string): Promise<string[]>;
49
+ getAccountAssets(params: types.GetAccountAssetsParams): Promise<string[]>;
50
50
  getAccounts(params: types.GetAccountsParams): Promise<string[]>;
51
51
  isAccountRegistered(params: types.IsAccountRegisteredParams): Promise<boolean>;
52
52
  getAccountRegistrationTopoheight(address: String): Promise<number>;
@@ -259,6 +259,11 @@ export interface GetAccountsParams {
259
259
  minimum_topoheight?: number;
260
260
  maximum_topoheight?: number;
261
261
  }
262
+ export interface GetAccountAssetsParams {
263
+ address: string;
264
+ skip?: number;
265
+ maximum?: number;
266
+ }
262
267
  export interface GetBlockAtTopoheightParams {
263
268
  topoheight: number;
264
269
  include_txs?: boolean;
@@ -54,7 +54,7 @@ export declare class DaemonMethods {
54
54
  getNonceAtTopoheight(params: types.GetNonceAtTopoheightParams): Promise<types.VersionedNonce>;
55
55
  getAsset(params: types.GetAssetParams): Promise<types.AssetData>;
56
56
  getAssetSupply(params: types.GetAssetParams): Promise<types.GetAssetSupplyResult>;
57
- getAssets(params?: types.GetAssetsParams): Promise<string[]>;
57
+ getAssets(params?: types.GetAssetsParams): Promise<types.AssetWithData[]>;
58
58
  countAssets(): Promise<number>;
59
59
  countTransactions(): Promise<number>;
60
60
  countAccounts(): Promise<number>;
@@ -74,7 +74,7 @@ export declare class DaemonMethods {
74
74
  getBlocksRangeByTopoheight(params: types.TopoheightRangeParams): Promise<types.Block[]>;
75
75
  getBlocksRangeByHeight(params: types.HeightRangeParams): Promise<types.Block[]>;
76
76
  getAccountHistory(params: types.GetAccountHistoryParams): Promise<types.AccountHistory[]>;
77
- getAccountAssets(address: string): Promise<string[]>;
77
+ getAccountAssets(params: types.GetAccountAssetsParams): Promise<string[]>;
78
78
  getAccounts(params: types.GetAccountsParams): Promise<string[]>;
79
79
  isAccountRegistered(params: types.IsAccountRegisteredParams): Promise<boolean>;
80
80
  getAccountRegistrationTopoheight(address: String): Promise<number>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.23",
2
+ "version": "0.11.24",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {