@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
|
|
77
|
-
[key in
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
|
159
|
-
[key in
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
};
|
package/build/models/user.d.ts
CHANGED
|
@@ -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 };
|
package/build/models/user.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
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",
|