@riocrypto/common-server 1.0.2494 → 1.0.2496

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.
@@ -19,6 +19,7 @@ const sanitizeUserDoc = (doc) => {
19
19
  delete obj.onboarding.aipriseUserVerificationSessionId;
20
20
  delete obj.onboarding.bridgeCustomerId;
21
21
  delete obj.onboarding.bridgeKYCLinkId;
22
+ delete obj.TWAP;
22
23
  return obj;
23
24
  };
24
25
  exports.sanitizeUserDoc = sanitizeUserDoc;
@@ -73,12 +73,14 @@ interface RioSettingsAttrs {
73
73
  };
74
74
  };
75
75
  defaultTWAPSettings: {
76
- [key in Fiat]?: {
77
- [key in Side]: {
78
- isEnabled: boolean;
79
- spread: number;
80
- minClipSize: number;
81
- interval: number;
76
+ [key in Country]?: {
77
+ [key in Fiat]?: {
78
+ [key in Side]: {
79
+ isEnabled: boolean;
80
+ spread: number;
81
+ minClipSize: number;
82
+ interval: number;
83
+ };
82
84
  };
83
85
  };
84
86
  };
@@ -155,12 +157,14 @@ interface RioSettingsDoc extends mongoose.Document {
155
157
  };
156
158
  };
157
159
  defaultTWAPSettings: {
158
- [key in Fiat]?: {
159
- [key in Side]: {
160
- isEnabled: boolean;
161
- spread: number;
162
- minClipSize: number;
163
- interval: number;
160
+ [key in Country]?: {
161
+ [key in Fiat]?: {
162
+ [key in Side]: {
163
+ isEnabled: boolean;
164
+ spread: number;
165
+ minClipSize: number;
166
+ interval: number;
167
+ };
164
168
  };
165
169
  };
166
170
  };
@@ -108,6 +108,16 @@ interface UserAttrs {
108
108
  [side in Side]?: number;
109
109
  };
110
110
  };
111
+ TWAP?: {
112
+ [key in Country]?: {
113
+ [key in Fiat]?: {
114
+ [key in Side]?: {
115
+ minClipSize?: number;
116
+ interval?: number;
117
+ };
118
+ };
119
+ };
120
+ };
111
121
  }
112
122
  interface UserModel extends Model<UserDoc> {
113
123
  build(attrs: UserAttrs): UserDoc;
@@ -250,6 +260,16 @@ interface UserDoc extends Document {
250
260
  [side in Side]?: number;
251
261
  };
252
262
  };
263
+ TWAP?: {
264
+ [key in Country]?: {
265
+ [key in Fiat]?: {
266
+ [key in Side]?: {
267
+ minClipSize?: number;
268
+ interval?: number;
269
+ };
270
+ };
271
+ };
272
+ };
253
273
  }
254
274
  declare const buildUser: (mongoose: Mongoose) => UserModel;
255
275
  export { buildUser, UserDoc, UserAttrs };
@@ -325,6 +325,9 @@ const buildUser = (mongoose) => {
325
325
  },
326
326
  },
327
327
  },
328
+ TWAP: {
329
+ type: Object,
330
+ },
328
331
  }, {
329
332
  toJSON: {
330
333
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2494",
3
+ "version": "1.0.2496",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2260",
31
+ "@riocrypto/common": "^1.0.2263",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",