@riocrypto/common-server 1.0.2028 → 1.0.2030
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.
|
@@ -27,12 +27,12 @@ declare class BridgeClient {
|
|
|
27
27
|
}>;
|
|
28
28
|
createTransfer(bridgeCustomerId: string, amountInUSD: string, source: {
|
|
29
29
|
currency: "usdc" | "usdt" | "usd";
|
|
30
|
-
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
30
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon" | "solana";
|
|
31
31
|
external_account_id?: string;
|
|
32
32
|
from_address?: string;
|
|
33
33
|
}, destination: {
|
|
34
34
|
currency: "usdc" | "usdt" | "usd";
|
|
35
|
-
payment_rail: "ach" | "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
35
|
+
payment_rail: "ach" | "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon" | "solana";
|
|
36
36
|
external_account_id?: string;
|
|
37
37
|
to_address?: string;
|
|
38
38
|
wire_message?: string;
|
|
@@ -43,20 +43,20 @@ declare class BridgeClient {
|
|
|
43
43
|
developer_fee: string;
|
|
44
44
|
source: {
|
|
45
45
|
currency: "usdc" | "usdt" | "usd";
|
|
46
|
-
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
46
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon" | "solana";
|
|
47
47
|
external_account_id?: string;
|
|
48
48
|
from_address?: string;
|
|
49
49
|
};
|
|
50
50
|
destination: {
|
|
51
51
|
currency: "usdc" | "usdt" | "usd";
|
|
52
|
-
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
|
|
52
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_c" | "ethereum" | "polygon" | "solana";
|
|
53
53
|
external_account_id?: string;
|
|
54
54
|
to_address?: string;
|
|
55
55
|
wire_message?: string;
|
|
56
56
|
};
|
|
57
57
|
state: "awaiting_funds" | "funds_received" | "payment_submitted" | "payment_processed" | "canceled" | "error";
|
|
58
58
|
source_deposit_instructions: {
|
|
59
|
-
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
|
|
59
|
+
payment_rail: "ach_push" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon" | "solana";
|
|
60
60
|
amount: string;
|
|
61
61
|
currency: "usdc" | "usdt" | "usd";
|
|
62
62
|
from_address?: string;
|
|
@@ -40,6 +40,7 @@ declare class ClusterClient {
|
|
|
40
40
|
verifyCode(phoneNumber: string, code?: string, authenticatorCode?: string): Promise<void>;
|
|
41
41
|
sendVerificationEmail(userId: string, country?: Country): Promise<void>;
|
|
42
42
|
registerFXTrade(orderId: string, provider: FXProvider, amount: number, price: number): Promise<void>;
|
|
43
|
+
cancelFXTrade(fxTradeId: string): Promise<void>;
|
|
43
44
|
resetOrderFXData(orderId: string): Promise<void>;
|
|
44
45
|
deleteInvoice(id: string): Promise<void>;
|
|
45
46
|
deleteRecord(id: string): Promise<void>;
|
|
@@ -299,6 +299,15 @@ class ClusterClient {
|
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
+
cancelFXTrade(fxTradeId) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
yield this.axios.post(`${this.baseUrl}/api/fx/trades/${fxTradeId}/cancel`, {}, {
|
|
305
|
+
headers: {
|
|
306
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}
|
|
302
311
|
resetOrderFXData(orderId) {
|
|
303
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
304
313
|
yield this.axios.post(`${this.baseUrl}/api/orders/${orderId}/reset-fx`, {}, {
|