@riocrypto/common-server 1.0.1188 → 1.0.1190
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.
|
@@ -26,7 +26,6 @@ class BitsoClient {
|
|
|
26
26
|
env === "production"
|
|
27
27
|
? "https://api.bitso.com"
|
|
28
28
|
: "https://stage.bitso.com";
|
|
29
|
-
console.log("This base url is: ", this.baseUrl);
|
|
30
29
|
}
|
|
31
30
|
createClabe() {
|
|
32
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -224,15 +223,12 @@ class BitsoClient {
|
|
|
224
223
|
};
|
|
225
224
|
const signedRequestConfig = this.signRequest(requestConfig);
|
|
226
225
|
const res = yield (0, axios_1.default)(signedRequestConfig);
|
|
227
|
-
console.log("res is", res);
|
|
228
226
|
const data = res.data;
|
|
229
227
|
if (!data.success) {
|
|
230
228
|
throw new Error("Error getting Bitso fees");
|
|
231
229
|
}
|
|
232
230
|
const fees = data.payload.fees;
|
|
233
|
-
console.log("fees", fees);
|
|
234
231
|
const book = fees.find((obj) => obj.book === `${crypto.toLocaleLowerCase()}_mxn`);
|
|
235
|
-
console.log("book", book);
|
|
236
232
|
if (!book) {
|
|
237
233
|
throw new Error("Unable to get fees");
|
|
238
234
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Mongoose, Model, Document } from "mongoose";
|
|
2
2
|
interface BitsoFXOrderAttrs {
|
|
3
3
|
createdAt: Date;
|
|
4
|
+
lastChecked: Date;
|
|
4
5
|
orderId: string;
|
|
5
6
|
bitsoOrderId: string;
|
|
6
7
|
status: "pending" | "completed" | "cancelled";
|
|
7
8
|
}
|
|
8
9
|
interface BitsoFXOrderDoc extends Document {
|
|
9
10
|
createdAt: Date;
|
|
11
|
+
lastChecked: Date;
|
|
10
12
|
orderId: string;
|
|
11
13
|
bitsoOrderId: string;
|
|
12
14
|
status: "pending" | "completed" | "cancelled";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1190",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1073",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|