@riocrypto/common-server 1.0.2520 → 1.0.2522
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.
|
@@ -17,6 +17,8 @@ interface TWAPSessionAttrs {
|
|
|
17
17
|
clipSize: number;
|
|
18
18
|
interval: number;
|
|
19
19
|
isRunning: boolean;
|
|
20
|
+
executedTWAPSettlementIds: string[];
|
|
21
|
+
activeTWAPSettlementId?: string;
|
|
20
22
|
lastRanAt?: Date;
|
|
21
23
|
deferredPaymentType: DeferredPaymentType;
|
|
22
24
|
twoWaySettlementType: TwoWaySettlementType;
|
|
@@ -24,8 +26,10 @@ interface TWAPSessionAttrs {
|
|
|
24
26
|
userId: string;
|
|
25
27
|
country: Country;
|
|
26
28
|
averageNetPrice?: number;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
settlement: {
|
|
30
|
+
amountReceived: number;
|
|
31
|
+
amountSent: number;
|
|
32
|
+
};
|
|
29
33
|
}
|
|
30
34
|
interface TWAPSessionModel extends Model<TWAPSessionDoc> {
|
|
31
35
|
build(attrs: TWAPSessionAttrs): TWAPSessionDoc;
|
|
@@ -44,6 +48,8 @@ interface TWAPSessionDoc extends Document {
|
|
|
44
48
|
maxDestinationAmount?: number;
|
|
45
49
|
maxOriginAmount?: number;
|
|
46
50
|
tradeCurrency: Fiat | Crypto;
|
|
51
|
+
executedTWAPSettlementIds: string[];
|
|
52
|
+
activeTWAPSettlementId?: string;
|
|
47
53
|
spread: number;
|
|
48
54
|
clipSize: number;
|
|
49
55
|
interval: number;
|
|
@@ -55,8 +61,10 @@ interface TWAPSessionDoc extends Document {
|
|
|
55
61
|
userId: string;
|
|
56
62
|
country: Country;
|
|
57
63
|
averageNetPrice?: number;
|
|
58
|
-
|
|
59
|
-
|
|
64
|
+
settlement: {
|
|
65
|
+
amountReceived: number;
|
|
66
|
+
amountSent: number;
|
|
67
|
+
};
|
|
60
68
|
}
|
|
61
69
|
declare const buildTWAPSession: (mongoose: Mongoose) => TWAPSessionModel;
|
|
62
70
|
export { buildTWAPSession, TWAPSessionDoc, TWAPSessionAttrs };
|
|
@@ -94,12 +94,19 @@ const buildTWAPSession = (mongoose) => {
|
|
|
94
94
|
type: Number,
|
|
95
95
|
required: true,
|
|
96
96
|
},
|
|
97
|
+
executedTWAPSettlementIds: {
|
|
98
|
+
type: [String],
|
|
99
|
+
},
|
|
97
100
|
activeTWAPSettlementId: {
|
|
98
101
|
type: String,
|
|
99
102
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
settlement: {
|
|
104
|
+
amountReceived: {
|
|
105
|
+
type: Number,
|
|
106
|
+
},
|
|
107
|
+
amountSent: {
|
|
108
|
+
type: Number,
|
|
109
|
+
},
|
|
103
110
|
},
|
|
104
111
|
}, {
|
|
105
112
|
toJSON: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2522",
|
|
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.2305",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|