@riocrypto/common-server 1.0.2407 → 1.0.2409
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.
|
@@ -9,9 +9,6 @@ interface RioSettingsAttrs {
|
|
|
9
9
|
frozen: boolean;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
nextDaySettlementDateOffset: {
|
|
13
|
-
[key: string]: number;
|
|
14
|
-
};
|
|
15
12
|
buyOrderNextDaySettlementFee: number;
|
|
16
13
|
sellOrderNextDaySettlementFee: number;
|
|
17
14
|
buyOrderAfterHoursExchangeRateMarkup: {
|
|
@@ -65,6 +62,11 @@ interface RioSettingsAttrs {
|
|
|
65
62
|
};
|
|
66
63
|
};
|
|
67
64
|
};
|
|
65
|
+
holidays: {
|
|
66
|
+
[key in Country]: {
|
|
67
|
+
dates: string[];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
68
70
|
}
|
|
69
71
|
interface RioSettingsDoc extends mongoose.Document {
|
|
70
72
|
platformFee: number;
|
|
@@ -76,9 +78,6 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
76
78
|
frozen: boolean;
|
|
77
79
|
};
|
|
78
80
|
};
|
|
79
|
-
nextDaySettlementDateOffset: {
|
|
80
|
-
[key: string]: number;
|
|
81
|
-
};
|
|
82
81
|
buyOrderGeneralExchangeRateMarkup: {
|
|
83
82
|
[key in Fiat]: number;
|
|
84
83
|
};
|
|
@@ -130,6 +129,11 @@ interface RioSettingsDoc extends mongoose.Document {
|
|
|
130
129
|
};
|
|
131
130
|
};
|
|
132
131
|
};
|
|
132
|
+
holidays: {
|
|
133
|
+
[key in Country]: {
|
|
134
|
+
dates: string[];
|
|
135
|
+
};
|
|
136
|
+
};
|
|
133
137
|
}
|
|
134
138
|
interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
|
|
135
139
|
build(attrs: RioSettingsAttrs): RioSettingsDoc;
|
|
@@ -27,9 +27,6 @@ const buildRioSettings = (mongoose) => {
|
|
|
27
27
|
isAfterHours: {
|
|
28
28
|
type: Object,
|
|
29
29
|
},
|
|
30
|
-
nextDaySettlementDateOffset: {
|
|
31
|
-
type: Object,
|
|
32
|
-
},
|
|
33
30
|
buyOrderAfterHoursExchangeRateMarkup: {
|
|
34
31
|
type: Object,
|
|
35
32
|
},
|
|
@@ -69,6 +66,9 @@ const buildRioSettings = (mongoose) => {
|
|
|
69
66
|
defaultTwoWaySettlementOffsetFee: {
|
|
70
67
|
type: Object,
|
|
71
68
|
},
|
|
69
|
+
holidays: {
|
|
70
|
+
type: Object,
|
|
71
|
+
},
|
|
72
72
|
}, {
|
|
73
73
|
toJSON: {
|
|
74
74
|
transform(doc, ret) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2409",
|
|
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.2143",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|