@riocrypto/common-server 1.0.558 → 1.0.559
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/build/clients/bitstamp-client.d.ts +1 -1
- package/build/clients/bitstamp-client.js +1 -1
- package/build/clients/fireblocks-client.d.ts +1 -1
- package/build/clients/fireblocks-client.js +1 -1
- package/build/clients/fixer-client.d.ts +1 -1
- package/build/clients/fixer-client.js +1 -1
- package/build/clients/gueno-client.d.ts +1 -1
- package/build/clients/gueno-client.js +1 -1
- package/build/clients/kushki-client.d.ts +1 -1
- package/build/clients/kushki-client.js +8 -1
- package/package.json +1 -1
|
@@ -81,7 +81,7 @@ class BitstampClient {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
exports.bitstampClient = (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
84
|
+
exports.bitstampClient = await (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
85
|
const BITSTAMP_API_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("BITSTAMP_API_KEY");
|
|
86
86
|
if (!BITSTAMP_API_KEY) {
|
|
87
87
|
throw new Error("Unable to get BITSTAMP_API_KEY");
|
|
@@ -13,5 +13,5 @@ declare class FireblocksClient {
|
|
|
13
13
|
getTransactions(crypto: Crypto): Promise<any>;
|
|
14
14
|
getDepositAddress(crypto: Crypto): Promise<string>;
|
|
15
15
|
}
|
|
16
|
-
export declare const fireblocksClient:
|
|
16
|
+
export declare const fireblocksClient: FireblocksClient;
|
|
17
17
|
export {};
|
|
@@ -143,7 +143,7 @@ class FireblocksClient {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
exports.fireblocksClient = (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
146
|
+
exports.fireblocksClient = await (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
147
147
|
const FIREBLOCKS_PRIVATE_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("FIREBLOCKS_PRIVATE_KEY");
|
|
148
148
|
if (!FIREBLOCKS_PRIVATE_KEY) {
|
|
149
149
|
throw new Error("Unable to get FIREBLOCKS_PRIVATE_KEY");
|
|
@@ -32,7 +32,7 @@ class FixerClient {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
exports.fixerClient = (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
exports.fixerClient = await (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
36
|
// Retrieve secret asynchronously
|
|
37
37
|
const FIXER_API_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("FIXER_API_KEY");
|
|
38
38
|
if (!FIXER_API_KEY) {
|
|
@@ -42,7 +42,7 @@ class GuenoClient {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
exports.guenoClient = (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
+
exports.guenoClient = await (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
46
|
// Retrieve secrets asynchronously
|
|
47
47
|
const GUENO_EMAIL = yield secret_manager_client_1.secretManagerClient.getSecretValue("GUENO_EMAIL");
|
|
48
48
|
if (!GUENO_EMAIL) {
|
|
@@ -8,5 +8,5 @@ declare class KushkiClient {
|
|
|
8
8
|
createBankPaymentToken(order: Order, user: User | BusinessUser): Promise<any>;
|
|
9
9
|
createBankPayment(order: Order, user: User | BusinessUser, token: string): Promise<any>;
|
|
10
10
|
}
|
|
11
|
-
export declare const kushkiClient:
|
|
11
|
+
export declare const kushkiClient: KushkiClient;
|
|
12
12
|
export {};
|
|
@@ -156,4 +156,11 @@ const createKushkiClient = () => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
156
156
|
const kushkiClient = new KushkiClient(KUSHKI_PRIVATE_MERCHANT_ID, process.env.KUSHKI_ENV);
|
|
157
157
|
return kushkiClient;
|
|
158
158
|
});
|
|
159
|
-
exports.kushkiClient =
|
|
159
|
+
exports.kushkiClient = await (() => __awaiter(void 0, void 0, void 0, function* () {
|
|
160
|
+
const KUSHKI_PRIVATE_MERCHANT_ID = yield secret_manager_client_1.secretManagerClient.getSecretValue("KUSHKI_PRIVATE_MERCHANT_ID");
|
|
161
|
+
if (!KUSHKI_PRIVATE_MERCHANT_ID) {
|
|
162
|
+
throw new Error("Unable to get KUSHKI_PRIVATE_MERCHANT_ID");
|
|
163
|
+
}
|
|
164
|
+
const kushkiClient = new KushkiClient(KUSHKI_PRIVATE_MERCHANT_ID, process.env.KUSHKI_ENV);
|
|
165
|
+
return kushkiClient;
|
|
166
|
+
}))();
|