@riocrypto/common-server 1.0.2708 → 1.0.2710

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.
@@ -32,7 +32,7 @@ declare class ClusterClient {
32
32
  timeInForceEndsAt?: Date;
33
33
  }): Promise<Quote>;
34
34
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
35
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, }: {
35
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, isBinanceRFQOrder, }: {
36
36
  quoteId: string;
37
37
  userAddressId?: string;
38
38
  payoutBankAccountId?: string;
@@ -44,6 +44,7 @@ declare class ClusterClient {
44
44
  bulkCryptoPayoutId?: string;
45
45
  bulkBankPayoutId?: string;
46
46
  TWAPSessionId?: string;
47
+ isBinanceRFQOrder?: boolean;
47
48
  }): Promise<Order>;
48
49
  takeAxe({ axeId, userId, amount, crypto, userAddressId, payoutBankAccountId, deferredPaymentType, twoWaySettlementType, twoWaySettlementDateOffset, }: {
49
50
  axeId: string;
@@ -113,7 +113,7 @@ class ClusterClient {
113
113
  return response.data;
114
114
  });
115
115
  }
116
- createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, }) {
116
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, parentOrderId, notes, isAxeTaker, bulkCryptoPaymentId, bulkBankPaymentId, bulkCryptoPayoutId, bulkBankPayoutId, TWAPSessionId, isBinanceRFQOrder, }) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
119
119
  quoteId,
@@ -131,6 +131,7 @@ class ClusterClient {
131
131
  : undefined,
132
132
  bulkBankPaymentId: bulkBankPaymentId ? bulkBankPaymentId : undefined,
133
133
  TWAPSessionId: TWAPSessionId ? TWAPSessionId : undefined,
134
+ isBinanceRFQOrder: isBinanceRFQOrder ? isBinanceRFQOrder : undefined,
134
135
  }, {
135
136
  headers: {
136
137
  "x-cluster-api-key": this.clusterApiKey,
@@ -72,6 +72,11 @@ interface RioSettingsAttrs {
72
72
  dates: string[];
73
73
  };
74
74
  };
75
+ isMaintenanceModeActive?: {
76
+ [key in Country]?: {
77
+ [key in Side]?: boolean;
78
+ };
79
+ };
75
80
  defaultTWAPSettings: {
76
81
  [key in Country]?: {
77
82
  [key in Fiat]?: {
@@ -156,6 +161,11 @@ interface RioSettingsDoc extends mongoose.Document {
156
161
  dates: string[];
157
162
  };
158
163
  };
164
+ isMaintenanceModeActive?: {
165
+ [key in Country]?: {
166
+ [key in Side]?: boolean;
167
+ };
168
+ };
159
169
  defaultTWAPSettings: {
160
170
  [key in Country]?: {
161
171
  [key in Fiat]?: {
@@ -69,6 +69,9 @@ const buildRioSettings = (mongoose) => {
69
69
  defaultTWAPSettings: {
70
70
  type: Object,
71
71
  },
72
+ isMaintenanceModeActive: {
73
+ type: Object,
74
+ },
72
75
  }, {
73
76
  toJSON: {
74
77
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2708",
3
+ "version": "1.0.2710",
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.2504",
31
+ "@riocrypto/common": "^1.0.2509",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",