@riocrypto/common-server 1.0.2675 → 1.0.2677
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.
- package/build/helpers/sanitize-order-doc.js +2 -0
- package/build/models/liquidity-sourcing-plan.d.ts +1 -0
- package/build/models/liquidity-sourcing-plan.js +1 -0
- package/build/models/order.d.ts +4 -0
- package/build/models/order.js +6 -0
- package/build/models/quote.d.ts +2 -0
- package/build/models/quote.js +3 -0
- package/package.json +2 -2
|
@@ -17,6 +17,8 @@ const sanitizeOrderDoc = (doc) => {
|
|
|
17
17
|
delete obj.discount;
|
|
18
18
|
delete obj.markup;
|
|
19
19
|
delete obj.rioPayoutFireblocksVaultId;
|
|
20
|
+
delete obj.assetPriceInUSD;
|
|
21
|
+
delete obj.actualAssetPriceInUSD;
|
|
20
22
|
delete obj.previousActiveStatus;
|
|
21
23
|
if (((_a = obj.payoutsSent) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
22
24
|
obj.payoutsSent = obj.payoutsSent.map((payout) => {
|
|
@@ -13,6 +13,7 @@ interface LiquiditySourcingPlanAttrs {
|
|
|
13
13
|
currentStepIndex: number;
|
|
14
14
|
steps: LiquiditySourcingStep[];
|
|
15
15
|
amountSourced?: number;
|
|
16
|
+
isCronProcessing?: boolean;
|
|
16
17
|
}
|
|
17
18
|
interface LiquiditySourcingPlanDoc extends mongoose.Document, Omit<LiquiditySourcingPlan, "id"> {
|
|
18
19
|
id: string;
|
|
@@ -52,6 +52,7 @@ const LiquiditySourcingPlanSchema = new mongoose_1.default.Schema({
|
|
|
52
52
|
currentStepIndex: { type: Number, required: true },
|
|
53
53
|
steps: { type: [StepSchema], required: true },
|
|
54
54
|
amountSourced: { type: Number },
|
|
55
|
+
isCronProcessing: { type: Boolean, default: false },
|
|
55
56
|
}, {
|
|
56
57
|
toJSON: {
|
|
57
58
|
transform(doc, ret) {
|
package/build/models/order.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ interface OrderAttrs {
|
|
|
26
26
|
wireMessage?: string;
|
|
27
27
|
parentOrderId?: string;
|
|
28
28
|
marketPrice: number;
|
|
29
|
+
assetPriceInUSD: number;
|
|
30
|
+
actualAssetPriceInUSD?: number;
|
|
29
31
|
price?: number;
|
|
30
32
|
depositAddress?: string;
|
|
31
33
|
depositTxId?: string;
|
|
@@ -166,6 +168,8 @@ interface OrderDoc extends Document {
|
|
|
166
168
|
fees: Fees;
|
|
167
169
|
actualFees?: Fees;
|
|
168
170
|
marketPrice: number;
|
|
171
|
+
assetPriceInUSD: number;
|
|
172
|
+
actualAssetPriceInUSD?: number;
|
|
169
173
|
price?: number;
|
|
170
174
|
depositAddress?: string;
|
|
171
175
|
depositTxId?: string;
|
package/build/models/order.js
CHANGED
package/build/models/quote.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface QuoteAttrs {
|
|
|
17
17
|
processor: Processor;
|
|
18
18
|
fees: Fees;
|
|
19
19
|
assetPriceInUSD: number;
|
|
20
|
+
actualAssetPriceInUSD?: number;
|
|
20
21
|
price?: number;
|
|
21
22
|
marketPrice: number;
|
|
22
23
|
createdAt: Date;
|
|
@@ -65,6 +66,7 @@ interface QuoteDoc extends Document {
|
|
|
65
66
|
price?: number;
|
|
66
67
|
marketPrice: number;
|
|
67
68
|
assetPriceInUSD: number;
|
|
69
|
+
actualAssetPriceInUSD?: number;
|
|
68
70
|
quoteInCrypto: boolean;
|
|
69
71
|
noMarkups: boolean;
|
|
70
72
|
reissueAfterExpiration: boolean;
|
package/build/models/quote.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.2677",
|
|
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.2472",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^1.7.4",
|
|
34
34
|
"crypto-js": "^4.2.0",
|