@riocrypto/common 1.0.1061 → 1.0.1062
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.
|
@@ -114,7 +114,7 @@ export declare class RioAdminClient {
|
|
|
114
114
|
getOrder(id: string): Promise<Order>;
|
|
115
115
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
116
116
|
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number): Promise<void>;
|
|
117
|
-
getInternalSwaps(): Promise<InternalSwap[]>;
|
|
117
|
+
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
118
118
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
119
119
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
120
120
|
createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
|
|
@@ -407,10 +407,15 @@ class RioAdminClient {
|
|
|
407
407
|
});
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
getInternalSwaps() {
|
|
410
|
+
getInternalSwaps(page, limit) {
|
|
411
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const { data } = yield this.axios.get(`/api/liquidity/swaps`, {
|
|
413
|
+
params: {
|
|
414
|
+
page,
|
|
415
|
+
limit,
|
|
416
|
+
},
|
|
417
|
+
});
|
|
418
|
+
return data;
|
|
414
419
|
});
|
|
415
420
|
}
|
|
416
421
|
getBankPayout(orderId) {
|