@arbiwallet/contracts 1.0.231 → 1.0.233
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 +14 -2
- package/package.json +1 -1
- package/proto/exchange_rates.proto +38 -25
package/gen/exchange_rates.ts
CHANGED
|
@@ -32,6 +32,10 @@ export enum ExchangeCalculationAllowedAction {
|
|
|
32
32
|
export interface CurrencySetting {
|
|
33
33
|
id: string;
|
|
34
34
|
shortName: string;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
currencyType?: string | undefined;
|
|
37
|
+
currencyTypeId?: string | undefined;
|
|
38
|
+
symbol?: string | undefined;
|
|
35
39
|
priorityBuy?: number | undefined;
|
|
36
40
|
prioritySell?: number | undefined;
|
|
37
41
|
priceBuy?: string | undefined;
|
|
@@ -46,6 +50,7 @@ export interface CurrencySetting {
|
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
export interface GetCurrencySettingsRequest {
|
|
53
|
+
search?: string | undefined;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
export interface GetCurrencySettingsResponse {
|
|
@@ -216,9 +221,16 @@ export interface UpdateBybitRateProfitResponse {
|
|
|
216
221
|
error?: string | undefined;
|
|
217
222
|
}
|
|
218
223
|
|
|
224
|
+
export interface AuthManagerContext {
|
|
225
|
+
managerId: string;
|
|
226
|
+
officeIds: string[];
|
|
227
|
+
canCrossOffice: boolean;
|
|
228
|
+
requestId?: string | undefined;
|
|
229
|
+
clientType?: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
|
|
219
232
|
export interface CalculateExchangeRequest {
|
|
220
|
-
|
|
221
|
-
managerId?: string | undefined;
|
|
233
|
+
authManagerContext?: AuthManagerContext | undefined;
|
|
222
234
|
inputCurrency: string;
|
|
223
235
|
outputCurrency: string;
|
|
224
236
|
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.233",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -38,21 +38,27 @@ service ExchangeRatesService {
|
|
|
38
38
|
message CurrencySetting {
|
|
39
39
|
string id = 1;
|
|
40
40
|
string short_name = 2;
|
|
41
|
-
optional
|
|
42
|
-
optional
|
|
43
|
-
optional string
|
|
44
|
-
optional string
|
|
45
|
-
|
|
46
|
-
optional
|
|
47
|
-
optional string
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
optional string
|
|
51
|
-
optional
|
|
41
|
+
optional string name = 3;
|
|
42
|
+
optional string currency_type = 4;
|
|
43
|
+
optional string currency_type_id = 5;
|
|
44
|
+
optional string symbol = 6;
|
|
45
|
+
optional double priority_buy = 7;
|
|
46
|
+
optional double priority_sell = 8;
|
|
47
|
+
optional string price_buy = 9;
|
|
48
|
+
optional string price_sell = 10;
|
|
49
|
+
bool one_price_for_variations_buy = 11;
|
|
50
|
+
optional string one_price_buy_type_id = 12;
|
|
51
|
+
optional string one_price_buy_type = 13;
|
|
52
|
+
bool one_price_for_variations_sell = 14;
|
|
53
|
+
optional string one_price_sell_type_id = 15;
|
|
54
|
+
optional string one_price_sell_type = 16;
|
|
55
|
+
optional int32 output_rounding = 17;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message GetCurrencySettingsRequest {
|
|
59
|
+
optional string search = 1;
|
|
52
60
|
}
|
|
53
61
|
|
|
54
|
-
message GetCurrencySettingsRequest {}
|
|
55
|
-
|
|
56
62
|
message GetCurrencySettingsResponse {
|
|
57
63
|
bool exist = 1;
|
|
58
64
|
repeated CurrencySetting settings = 2;
|
|
@@ -216,19 +222,26 @@ message UpdateBybitRateProfitResponse {
|
|
|
216
222
|
optional string error = 3;
|
|
217
223
|
}
|
|
218
224
|
|
|
219
|
-
message
|
|
220
|
-
string
|
|
221
|
-
|
|
225
|
+
message AuthManagerContext {
|
|
226
|
+
string manager_id = 1;
|
|
227
|
+
repeated string office_ids = 2;
|
|
228
|
+
bool can_cross_office = 3;
|
|
229
|
+
optional string request_id = 4;
|
|
230
|
+
optional string client_type = 5;
|
|
231
|
+
}
|
|
222
232
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
optional
|
|
231
|
-
optional double
|
|
233
|
+
message CalculateExchangeRequest {
|
|
234
|
+
optional AuthManagerContext auth_manager_context = 1;
|
|
235
|
+
|
|
236
|
+
string input_currency = 2;
|
|
237
|
+
string output_currency = 3;
|
|
238
|
+
string currency_for_amount = 4;
|
|
239
|
+
double amount = 5;
|
|
240
|
+
optional double adjustment = 6;
|
|
241
|
+
optional double promo_discount = 7;
|
|
242
|
+
optional string customer_id = 8;
|
|
243
|
+
optional bool disable_rounding = 9;
|
|
244
|
+
optional double fixed_rate = 10;
|
|
232
245
|
}
|
|
233
246
|
|
|
234
247
|
message CalculateExchangeResult {
|