@riocrypto/common-server 1.0.1105 → 1.0.1107

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.
@@ -128,7 +128,7 @@ class FireblocksClient {
128
128
  }
129
129
  createVault(userId, name, type) {
130
130
  return __awaiter(this, void 0, void 0, function* () {
131
- const vault = yield this.fireblocks.createVaultAccount(`${name} - ${userId} - ${type}`, false, userId);
131
+ const vault = yield this.fireblocks.createVaultAccount(`${name} - ${userId} - ${type}`, false, userId, true);
132
132
  return vault.id;
133
133
  });
134
134
  }
@@ -36,6 +36,7 @@ interface OrderAttrs {
36
36
  partner?: Partner;
37
37
  imported?: boolean;
38
38
  managedWallet?: boolean;
39
+ sourceUserId?: string;
39
40
  }
40
41
  interface OrderDoc extends Document {
41
42
  quoteId: string;
@@ -73,6 +74,7 @@ interface OrderDoc extends Document {
73
74
  partner?: Partner;
74
75
  imported?: boolean;
75
76
  managedWallet?: boolean;
77
+ sourceUserId?: string;
76
78
  }
77
79
  interface OrderModel extends Model<OrderDoc> {
78
80
  build(attrs: OrderAttrs): OrderDoc;
@@ -151,6 +151,9 @@ const buildOrder = (mongoose) => {
151
151
  managedWallet: {
152
152
  type: Boolean,
153
153
  },
154
+ sourceUserId: {
155
+ type: String,
156
+ },
154
157
  }, {
155
158
  toJSON: {
156
159
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1105",
3
+ "version": "1.0.1107",
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.945",
29
+ "@riocrypto/common": "^1.0.947",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",