@riocrypto/common-server 1.0.1606 → 1.0.1608

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.
@@ -313,6 +313,8 @@ class BitsoClient {
313
313
  const signedRequestConfig = this.signRequest(requestConfig);
314
314
  const res = yield (0, axios_1.default)(signedRequestConfig);
315
315
  const data = res.data;
316
+ console.log("Bitso data");
317
+ console.log(data);
316
318
  if (!data.success) {
317
319
  throw new Error("Error getting Bitso fees");
318
320
  }
@@ -6,6 +6,7 @@ interface InternalSwapAttrs {
6
6
  originCrypto: Crypto;
7
7
  destinationCrypto: Crypto;
8
8
  amount: number;
9
+ fee: number;
9
10
  exchange?: SwapProvider;
10
11
  status: "created" | "processing" | "firstLegComplete" | "complete" | "failed";
11
12
  }
@@ -15,6 +16,7 @@ interface InternalSwapDoc extends Document {
15
16
  originCrypto: Crypto;
16
17
  destinationCrypto: Crypto;
17
18
  amount: number;
19
+ fee: number;
18
20
  exchange?: SwapProvider;
19
21
  status: "created" | "processing" | "firstLegComplete" | "complete" | "failed";
20
22
  }
@@ -27,6 +27,9 @@ const buildInternalSwap = (mongoose) => {
27
27
  type: Number,
28
28
  required: true,
29
29
  },
30
+ fee: {
31
+ type: Number,
32
+ },
30
33
  exchange: {
31
34
  type: String,
32
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1606",
3
+ "version": "1.0.1608",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",