@riocrypto/common-server 1.0.2521 → 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;
|
|
@@ -27,8 +29,6 @@ interface TWAPSessionAttrs {
|
|
|
27
29
|
settlement: {
|
|
28
30
|
amountReceived: number;
|
|
29
31
|
amountSent: number;
|
|
30
|
-
executedTWAPSettlementIds: string[];
|
|
31
|
-
activeTWAPSettlementId?: string;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
interface TWAPSessionModel extends Model<TWAPSessionDoc> {
|
|
@@ -48,6 +48,8 @@ interface TWAPSessionDoc extends Document {
|
|
|
48
48
|
maxDestinationAmount?: number;
|
|
49
49
|
maxOriginAmount?: number;
|
|
50
50
|
tradeCurrency: Fiat | Crypto;
|
|
51
|
+
executedTWAPSettlementIds: string[];
|
|
52
|
+
activeTWAPSettlementId?: string;
|
|
51
53
|
spread: number;
|
|
52
54
|
clipSize: number;
|
|
53
55
|
interval: number;
|
|
@@ -62,8 +64,6 @@ interface TWAPSessionDoc extends Document {
|
|
|
62
64
|
settlement: {
|
|
63
65
|
amountReceived: number;
|
|
64
66
|
amountSent: number;
|
|
65
|
-
executedTWAPSettlementIds: string[];
|
|
66
|
-
activeTWAPSettlementId?: string;
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
declare const buildTWAPSession: (mongoose: Mongoose) => TWAPSessionModel;
|
|
@@ -94,6 +94,12 @@ const buildTWAPSession = (mongoose) => {
|
|
|
94
94
|
type: Number,
|
|
95
95
|
required: true,
|
|
96
96
|
},
|
|
97
|
+
executedTWAPSettlementIds: {
|
|
98
|
+
type: [String],
|
|
99
|
+
},
|
|
100
|
+
activeTWAPSettlementId: {
|
|
101
|
+
type: String,
|
|
102
|
+
},
|
|
97
103
|
settlement: {
|
|
98
104
|
amountReceived: {
|
|
99
105
|
type: Number,
|
|
@@ -101,12 +107,6 @@ const buildTWAPSession = (mongoose) => {
|
|
|
101
107
|
amountSent: {
|
|
102
108
|
type: Number,
|
|
103
109
|
},
|
|
104
|
-
executedTWAPSettlementIds: {
|
|
105
|
-
type: [String],
|
|
106
|
-
},
|
|
107
|
-
activeTWAPSettlementId: {
|
|
108
|
-
type: String,
|
|
109
|
-
},
|
|
110
110
|
},
|
|
111
111
|
}, {
|
|
112
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",
|