@rabby-wallet/rabby-api 0.9.68-0 → 0.9.68-alpha.1
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 +5 -19
- package/dist/index.js +5 -11
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -177,25 +177,6 @@ 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
|
-
*/
|
|
199
180
|
listTxHisotry: (params: {
|
|
200
181
|
id?: string;
|
|
201
182
|
chain_id?: string;
|
|
@@ -982,6 +963,11 @@ export declare class OpenApiService {
|
|
|
982
963
|
history_list: BridgeHistory[];
|
|
983
964
|
total_cnt: number;
|
|
984
965
|
}>;
|
|
966
|
+
getBridgeHistoryListByTxIds: (params: {
|
|
967
|
+
from_tx_ids: string[];
|
|
968
|
+
}) => Promise<{
|
|
969
|
+
history_list: BridgeHistory[];
|
|
970
|
+
}>;
|
|
985
971
|
buildBridgeTx: (params: {
|
|
986
972
|
aggregator_id: string;
|
|
987
973
|
bridge_id: string;
|
package/dist/index.js
CHANGED
|
@@ -432,22 +432,12 @@ export class OpenApiService {
|
|
|
432
432
|
});
|
|
433
433
|
return data;
|
|
434
434
|
});
|
|
435
|
-
this.
|
|
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* () {
|
|
435
|
+
this.listTxHisotry = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
442
436
|
const { data } = yield this.request.get('/v1/user/history_list', {
|
|
443
437
|
params,
|
|
444
438
|
});
|
|
445
439
|
return data;
|
|
446
440
|
});
|
|
447
|
-
/**
|
|
448
|
-
* @deprecated Use `listTxHistory` instead.
|
|
449
|
-
*/
|
|
450
|
-
this.listTxHisotry = this.listTxHistory;
|
|
451
441
|
this.getAllTxHistory = (params, options) => __awaiter(this, void 0, void 0, function* () {
|
|
452
442
|
const data = yield this.asyncJob('/v1/user/history_all_list', Object.assign({ method: 'GET', params }, options));
|
|
453
443
|
return data;
|
|
@@ -1372,6 +1362,10 @@ export class OpenApiService {
|
|
|
1372
1362
|
});
|
|
1373
1363
|
return data;
|
|
1374
1364
|
});
|
|
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
|
+
});
|
|
1375
1369
|
this.buildBridgeTx = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1376
1370
|
const { data } = yield this.request.get('/v2/bridge/build_tx', {
|
|
1377
1371
|
params,
|
package/dist/types.d.ts
CHANGED