@riocrypto/common 1.0.1085 → 1.0.1086
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.
|
@@ -115,7 +115,7 @@ export declare class RioAdminClient {
|
|
|
115
115
|
cancelChainedOrder(id?: string): Promise<void>;
|
|
116
116
|
getOrder(id: string): Promise<Order>;
|
|
117
117
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
118
|
-
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number): Promise<void>;
|
|
118
|
+
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: "coinbase" | "circle"): Promise<void>;
|
|
119
119
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
120
120
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
121
121
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
@@ -403,12 +403,13 @@ class RioAdminClient {
|
|
|
403
403
|
return response.data;
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
createInternalSwap(originCrypto, destinationCrypto, amount) {
|
|
406
|
+
createInternalSwap(originCrypto, destinationCrypto, amount, provider) {
|
|
407
407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
408
|
const response = yield this.axios.post(`/api/liquidity/swaps`, {
|
|
409
409
|
originCrypto,
|
|
410
410
|
destinationCrypto,
|
|
411
411
|
amount,
|
|
412
|
+
provider,
|
|
412
413
|
});
|
|
413
414
|
});
|
|
414
415
|
}
|