@arbiwallet/contracts 1.0.231 → 1.0.232
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/gen/exchange_rates.ts +9 -2
- package/package.json +1 -1
- package/proto/exchange_rates.proto +19 -12
package/gen/exchange_rates.ts
CHANGED
|
@@ -216,9 +216,16 @@ export interface UpdateBybitRateProfitResponse {
|
|
|
216
216
|
error?: string | undefined;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
export interface AuthManagerContext {
|
|
220
|
+
managerId: string;
|
|
221
|
+
officeIds: string[];
|
|
222
|
+
canCrossOffice: boolean;
|
|
223
|
+
requestId?: string | undefined;
|
|
224
|
+
clientType?: string | undefined;
|
|
225
|
+
}
|
|
226
|
+
|
|
219
227
|
export interface CalculateExchangeRequest {
|
|
220
|
-
|
|
221
|
-
managerId?: string | undefined;
|
|
228
|
+
authManagerContext?: AuthManagerContext | undefined;
|
|
222
229
|
inputCurrency: string;
|
|
223
230
|
outputCurrency: string;
|
|
224
231
|
currencyForAmount: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.232",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -216,19 +216,26 @@ message UpdateBybitRateProfitResponse {
|
|
|
216
216
|
optional string error = 3;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
message
|
|
220
|
-
string
|
|
221
|
-
|
|
219
|
+
message AuthManagerContext {
|
|
220
|
+
string manager_id = 1;
|
|
221
|
+
repeated string office_ids = 2;
|
|
222
|
+
bool can_cross_office = 3;
|
|
223
|
+
optional string request_id = 4;
|
|
224
|
+
optional string client_type = 5;
|
|
225
|
+
}
|
|
222
226
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
optional
|
|
231
|
-
optional double
|
|
227
|
+
message CalculateExchangeRequest {
|
|
228
|
+
optional AuthManagerContext auth_manager_context = 1;
|
|
229
|
+
|
|
230
|
+
string input_currency = 2;
|
|
231
|
+
string output_currency = 3;
|
|
232
|
+
string currency_for_amount = 4;
|
|
233
|
+
double amount = 5;
|
|
234
|
+
optional double adjustment = 6;
|
|
235
|
+
optional double promo_discount = 7;
|
|
236
|
+
optional string customer_id = 8;
|
|
237
|
+
optional bool disable_rounding = 9;
|
|
238
|
+
optional double fixed_rate = 10;
|
|
232
239
|
}
|
|
233
240
|
|
|
234
241
|
message CalculateExchangeResult {
|