@rabby-wallet/rabby-api 0.9.68-alpha.1 → 0.9.68

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.
package/dist/index.d.ts CHANGED
@@ -177,6 +177,25 @@ export declare class OpenApiService {
177
177
  }) => Promise<{
178
178
  has_new_tx: boolean;
179
179
  }>;
180
+ getTxCount: (params: {
181
+ id: string;
182
+ from_ts: number;
183
+ to_ts: number;
184
+ }) => Promise<{
185
+ tx_count: number;
186
+ has_more: boolean;
187
+ }>;
188
+ listTxHistory: (params: {
189
+ id?: string;
190
+ chain_id?: string;
191
+ token_id?: string;
192
+ coin_id?: string;
193
+ start_time?: number;
194
+ page_count?: number;
195
+ }) => Promise<TxHistoryResult>;
196
+ /**
197
+ * @deprecated Use `listTxHistory` instead.
198
+ */
180
199
  listTxHisotry: (params: {
181
200
  id?: string;
182
201
  chain_id?: string;
@@ -963,11 +982,6 @@ export declare class OpenApiService {
963
982
  history_list: BridgeHistory[];
964
983
  total_cnt: number;
965
984
  }>;
966
- getBridgeHistoryListByTxIds: (params: {
967
- from_tx_ids: string[];
968
- }) => Promise<{
969
- history_list: BridgeHistory[];
970
- }>;
971
985
  buildBridgeTx: (params: {
972
986
  aggregator_id: string;
973
987
  bridge_id: string;
package/dist/index.js CHANGED
@@ -432,12 +432,22 @@ export class OpenApiService {
432
432
  });
433
433
  return data;
434
434
  });
435
- this.listTxHisotry = (params) => __awaiter(this, void 0, void 0, function* () {
435
+ this.getTxCount = (params) => __awaiter(this, void 0, void 0, function* () {
436
+ const { data } = yield this.request.get('/v1/user/tx_count', {
437
+ params,
438
+ });
439
+ return data;
440
+ });
441
+ this.listTxHistory = (params) => __awaiter(this, void 0, void 0, function* () {
436
442
  const { data } = yield this.request.get('/v1/user/history_list', {
437
443
  params,
438
444
  });
439
445
  return data;
440
446
  });
447
+ /**
448
+ * @deprecated Use `listTxHistory` instead.
449
+ */
450
+ this.listTxHisotry = this.listTxHistory;
441
451
  this.getAllTxHistory = (params, options) => __awaiter(this, void 0, void 0, function* () {
442
452
  const data = yield this.asyncJob('/v1/user/history_all_list', Object.assign({ method: 'GET', params }, options));
443
453
  return data;
@@ -1362,10 +1372,6 @@ export class OpenApiService {
1362
1372
  });
1363
1373
  return data;
1364
1374
  });
1365
- this.getBridgeHistoryListByTxIds = (params) => __awaiter(this, void 0, void 0, function* () {
1366
- const { data } = yield this.request.post('/v1/bridge/history_list_by_tx_ids', params);
1367
- return data;
1368
- });
1369
1375
  this.buildBridgeTx = (params) => __awaiter(this, void 0, void 0, function* () {
1370
1376
  const { data } = yield this.request.get('/v2/bridge/build_tx', {
1371
1377
  params,
package/dist/types.d.ts CHANGED
@@ -1507,9 +1507,6 @@ export interface BridgeHistory {
1507
1507
  create_at: number;
1508
1508
  from_tx: {
1509
1509
  tx_id: string;
1510
- chain_id: string;
1511
- status: 'pending' | 'success' | 'failed';
1512
- time_at: number;
1513
1510
  };
1514
1511
  to_tx: {
1515
1512
  tx_id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.68-alpha.1",
3
+ "version": "0.9.68",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [