@riocrypto/common-server 1.0.1852 → 1.0.1854
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.
|
@@ -48,7 +48,7 @@ class ClusterClient {
|
|
|
48
48
|
if (newAmountCrypto && newAmountFiat) {
|
|
49
49
|
throw new common_1.GenericInternalError("Cannot specify both newAmountCrypto and newAmountFiat");
|
|
50
50
|
}
|
|
51
|
-
const response = yield this.axios.post(`${this.baseUrl}/api/quotes`, {
|
|
51
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/quotes/refresh`, {
|
|
52
52
|
orderId,
|
|
53
53
|
newAmountFiat,
|
|
54
54
|
newAmountCrypto,
|
package/build/models/order.d.ts
CHANGED
|
@@ -48,8 +48,14 @@ interface OrderAttrs {
|
|
|
48
48
|
requestedNetPrice?: number;
|
|
49
49
|
payoutAddressId?: string;
|
|
50
50
|
payoutBankAccountId?: string;
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
binancePayment?: {
|
|
52
|
+
binanceTransactionId: string;
|
|
53
|
+
amount: number;
|
|
54
|
+
};
|
|
55
|
+
binancePayout?: {
|
|
56
|
+
binanceTransactionId: string;
|
|
57
|
+
amount: number;
|
|
58
|
+
};
|
|
53
59
|
attributes?: OrderAttribute[];
|
|
54
60
|
settleBy?: Date;
|
|
55
61
|
originOfFunds?: {
|
|
@@ -115,8 +121,14 @@ interface OrderDoc extends Document {
|
|
|
115
121
|
requestedNetPrice?: number;
|
|
116
122
|
payoutAddressId?: string;
|
|
117
123
|
payoutBankAccountId?: string;
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
binancePayment?: {
|
|
125
|
+
binanceTransactionId: string;
|
|
126
|
+
amount: number;
|
|
127
|
+
};
|
|
128
|
+
binancePayout?: {
|
|
129
|
+
binanceTransactionId: string;
|
|
130
|
+
amount: number;
|
|
131
|
+
};
|
|
120
132
|
attributes?: OrderAttribute[];
|
|
121
133
|
settleBy?: Date;
|
|
122
134
|
originOfFunds?: {
|
package/build/models/order.js
CHANGED
|
@@ -217,11 +217,21 @@ const buildOrder = (mongoose) => {
|
|
|
217
217
|
payoutBankAccountId: {
|
|
218
218
|
type: String,
|
|
219
219
|
},
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
binancePayment: {
|
|
221
|
+
binanceTransactionId: {
|
|
222
|
+
type: String,
|
|
223
|
+
},
|
|
224
|
+
amount: {
|
|
225
|
+
type: Number,
|
|
226
|
+
},
|
|
222
227
|
},
|
|
223
|
-
|
|
224
|
-
|
|
228
|
+
binancePayout: {
|
|
229
|
+
binanceTransactionId: {
|
|
230
|
+
type: String,
|
|
231
|
+
},
|
|
232
|
+
amount: {
|
|
233
|
+
type: Number,
|
|
234
|
+
},
|
|
225
235
|
},
|
|
226
236
|
settleBy: {
|
|
227
237
|
type: mongoose.Schema.Types.Date,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1854",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
28
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1662",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|