@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 +19 -5
- package/dist/index.js +11 -5
- package/dist/types.d.ts +0 -3
- 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;
|
|
@@ -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.
|
|
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