@arbiwallet/contracts 1.0.211 → 1.0.212
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 +22 -1
- package/package.json +1 -1
- package/proto/exchange_rates.proto +20 -1
package/gen/exchange_rates.ts
CHANGED
|
@@ -12,6 +12,23 @@ import { Struct } from "./google/protobuf/struct";
|
|
|
12
12
|
|
|
13
13
|
export const protobufPackage = "exchange_rates";
|
|
14
14
|
|
|
15
|
+
export enum ExchangeCalculationDealStatus {
|
|
16
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_UNSPECIFIED = 0,
|
|
17
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_NO_DEAL = 1,
|
|
18
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_WITH_PAYMENT = 2,
|
|
19
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_IN_PROGRESS = 3,
|
|
20
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_COMPLETED = 4,
|
|
21
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_CANCELLED = 5,
|
|
22
|
+
UNRECOGNIZED = -1,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum ExchangeCalculationAllowedAction {
|
|
26
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_UNSPECIFIED = 0,
|
|
27
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_CREATE_DEAL = 1,
|
|
28
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_OPEN_DEAL = 2,
|
|
29
|
+
UNRECOGNIZED = -1,
|
|
30
|
+
}
|
|
31
|
+
|
|
15
32
|
export interface CurrencySetting {
|
|
16
33
|
id: string;
|
|
17
34
|
shortName: string;
|
|
@@ -317,8 +334,12 @@ export interface ExchangeCalculationHistoryItem {
|
|
|
317
334
|
exchangeCompleted?:
|
|
318
335
|
| boolean
|
|
319
336
|
| undefined;
|
|
320
|
-
/** no_payment | with_payment | with_exchange | completed */
|
|
337
|
+
/** legacy: no_payment | with_payment | with_exchange | completed */
|
|
321
338
|
status: string;
|
|
339
|
+
dealStatus: ExchangeCalculationDealStatus;
|
|
340
|
+
allowedActions: ExchangeCalculationAllowedAction[];
|
|
341
|
+
canCreateDeal: boolean;
|
|
342
|
+
canOpenDeal: boolean;
|
|
322
343
|
}
|
|
323
344
|
|
|
324
345
|
export interface GetExchangeCalculationHistoryResponse {
|
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.212",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -313,6 +313,21 @@ message ExchangeCalculationHistoryPagination {
|
|
|
313
313
|
bool has_previous = 6;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
+
enum ExchangeCalculationDealStatus {
|
|
317
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_UNSPECIFIED = 0;
|
|
318
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_NO_DEAL = 1;
|
|
319
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_WITH_PAYMENT = 2;
|
|
320
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_IN_PROGRESS = 3;
|
|
321
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_COMPLETED = 4;
|
|
322
|
+
EXCHANGE_CALCULATION_DEAL_STATUS_CANCELLED = 5;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
enum ExchangeCalculationAllowedAction {
|
|
326
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_UNSPECIFIED = 0;
|
|
327
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_CREATE_DEAL = 1;
|
|
328
|
+
EXCHANGE_CALCULATION_ALLOWED_ACTION_OPEN_DEAL = 2;
|
|
329
|
+
}
|
|
330
|
+
|
|
316
331
|
message ExchangeCalculationHistoryItem {
|
|
317
332
|
string id = 1;
|
|
318
333
|
string created_at = 2;
|
|
@@ -332,7 +347,11 @@ message ExchangeCalculationHistoryItem {
|
|
|
332
347
|
optional string exchange_id = 14;
|
|
333
348
|
optional bool exchange_completed = 15;
|
|
334
349
|
|
|
335
|
-
string status = 16; // no_payment | with_payment | with_exchange | completed
|
|
350
|
+
string status = 16; // legacy: no_payment | with_payment | with_exchange | completed
|
|
351
|
+
ExchangeCalculationDealStatus deal_status = 17;
|
|
352
|
+
repeated ExchangeCalculationAllowedAction allowed_actions = 18;
|
|
353
|
+
bool can_create_deal = 19;
|
|
354
|
+
bool can_open_deal = 20;
|
|
336
355
|
}
|
|
337
356
|
|
|
338
357
|
message GetExchangeCalculationHistoryResponse {
|