@riocrypto/common-server 1.0.904 → 1.0.906
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,6 +114,13 @@ declare class BridgeClient {
|
|
|
114
114
|
chain: "avalanche_c_c" | "ethereum" | "polygon";
|
|
115
115
|
external_account_id: string;
|
|
116
116
|
address: string;
|
|
117
|
+
}[]>;
|
|
118
|
+
getLiquidationAddress(bridgeCustomerId: string, bridgeLiquidationAddressId: string): Promise<{
|
|
119
|
+
id: string;
|
|
120
|
+
currency: "usdc";
|
|
121
|
+
chain: "avalanche_c_c" | "ethereum" | "polygon";
|
|
122
|
+
external_account_id: string;
|
|
123
|
+
address: string;
|
|
117
124
|
}>;
|
|
118
125
|
createPlaidLinkToken(bridgeCustomerId: string): Promise<{
|
|
119
126
|
link_token: string;
|
|
@@ -106,6 +106,16 @@ class BridgeClient {
|
|
|
106
106
|
return filteredAddresses || [];
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
+
getLiquidationAddress(bridgeCustomerId, bridgeLiquidationAddressId) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/liquidation_addresses/${bridgeLiquidationAddressId}`, {
|
|
112
|
+
headers: {
|
|
113
|
+
"Api-Key": this.apiKey,
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
return data;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
109
119
|
createPlaidLinkToken(bridgeCustomerId) {
|
|
110
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
121
|
const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/plaid_link_requests`, undefined, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.906",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
26
26
|
"@google-cloud/storage": "^6.9.5",
|
|
27
|
-
"@riocrypto/common": "^1.0.
|
|
27
|
+
"@riocrypto/common": "^1.0.775",
|
|
28
28
|
"@types/express": "^4.17.13",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"ccxt": "^3.0.30",
|