@rabby-wallet/rabby-api 0.9.67 → 0.9.68-0
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 +19 -0
- package/dist/index.js +11 -1
- package/package.json +1 -1
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;
|
package/dist/index.js
CHANGED
|
@@ -432,12 +432,22 @@ export class OpenApiService {
|
|
|
432
432
|
});
|
|
433
433
|
return data;
|
|
434
434
|
});
|
|
435
|
-
this.
|
|
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;
|