@riocrypto/common-server 1.0.1101 → 1.0.1104

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.
@@ -1,6 +1,7 @@
1
1
  import mongoose from "mongoose";
2
2
  interface FireblocksVaultAttrs {
3
3
  userId: string;
4
+ type: "transactional" | "managed";
4
5
  fireblocksVaultId: string;
5
6
  depositAddresses?: {
6
7
  [key: string]: string;
@@ -9,6 +10,7 @@ interface FireblocksVaultAttrs {
9
10
  }
10
11
  interface FireblocksVaultDoc extends mongoose.Document {
11
12
  userId: string;
13
+ type: "transactional" | "managed";
12
14
  fireblocksVaultId: string;
13
15
  depositAddresses?: {
14
16
  [key: string]: string;
@@ -11,6 +11,10 @@ const buildFireblocksVault = (mongoose) => {
11
11
  type: String,
12
12
  required: true,
13
13
  },
14
+ type: {
15
+ type: String,
16
+ required: true,
17
+ },
14
18
  fireblocksVaultId: {
15
19
  type: String,
16
20
  required: true,
@@ -35,6 +35,7 @@ interface OrderAttrs {
35
35
  externalAccountId?: string;
36
36
  partner?: Partner;
37
37
  imported?: boolean;
38
+ managedWallet?: boolean;
38
39
  }
39
40
  interface OrderDoc extends Document {
40
41
  quoteId: string;
@@ -71,6 +72,7 @@ interface OrderDoc extends Document {
71
72
  externalAccountId?: string;
72
73
  partner?: Partner;
73
74
  imported?: boolean;
75
+ managedWallet?: boolean;
74
76
  }
75
77
  interface OrderModel extends Model<OrderDoc> {
76
78
  build(attrs: OrderAttrs): OrderDoc;
@@ -148,6 +148,9 @@ const buildOrder = (mongoose) => {
148
148
  imported: {
149
149
  type: Boolean,
150
150
  },
151
+ managedWallet: {
152
+ type: Boolean,
153
+ },
151
154
  }, {
152
155
  toJSON: {
153
156
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1101",
3
+ "version": "1.0.1104",
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.940",
29
+ "@riocrypto/common": "^1.0.945",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",