@arbiwallet/contracts 1.0.268 → 1.0.270
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_core.ts +14 -1
- package/gen/exchange_rates.ts +16 -1
- package/package.json +1 -1
- package/proto/exchange_core.proto +7 -0
- package/proto/exchange_rates.proto +16 -1
package/gen/exchange_core.ts
CHANGED
|
@@ -410,7 +410,20 @@ export interface GetExchangePaymentsItem {
|
|
|
410
410
|
customerName?: string | undefined;
|
|
411
411
|
managerName?: string | undefined;
|
|
412
412
|
calculationId?: string | undefined;
|
|
413
|
-
cryptoNetwork?:
|
|
413
|
+
cryptoNetwork?:
|
|
414
|
+
| string
|
|
415
|
+
| undefined;
|
|
416
|
+
/** Tx hash / provider track id for crypto payments. */
|
|
417
|
+
trackId?:
|
|
418
|
+
| string
|
|
419
|
+
| undefined;
|
|
420
|
+
/** Network fee in USDT (crypto), when stored. */
|
|
421
|
+
networkFee?:
|
|
422
|
+
| number
|
|
423
|
+
| undefined;
|
|
424
|
+
/** Base amount without network fee (crypto), when stored. */
|
|
425
|
+
amountBase?: number | undefined;
|
|
426
|
+
uuid?: string | undefined;
|
|
414
427
|
}
|
|
415
428
|
|
|
416
429
|
export interface GetExchangePaymentsResponse {
|
package/gen/exchange_rates.ts
CHANGED
|
@@ -80,9 +80,24 @@ export interface UpdateCurrencySettingResponse {
|
|
|
80
80
|
export interface GetExchangeRatesRequest {
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
export interface ExchangeRate {
|
|
84
|
+
id: string;
|
|
85
|
+
pair: string;
|
|
86
|
+
firstCurrency: string;
|
|
87
|
+
secondCurrency: string;
|
|
88
|
+
exchangeRate?: number | undefined;
|
|
89
|
+
realExchangeRate?: number | undefined;
|
|
90
|
+
isNew: boolean;
|
|
91
|
+
buyPrices?: { [key: string]: any } | undefined;
|
|
92
|
+
sellPrices?: { [key: string]: any } | undefined;
|
|
93
|
+
percents?: { [key: string]: any } | undefined;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
83
98
|
export interface GetExchangeRatesResponse {
|
|
84
99
|
exist: boolean;
|
|
85
|
-
|
|
100
|
+
rates: ExchangeRate[];
|
|
86
101
|
}
|
|
87
102
|
|
|
88
103
|
export interface MarketRate {
|
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.270",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -453,6 +453,13 @@ message GetExchangePaymentsItem {
|
|
|
453
453
|
optional string manager_name = 12;
|
|
454
454
|
optional string calculation_id = 13;
|
|
455
455
|
optional string crypto_network = 14;
|
|
456
|
+
/** Tx hash / provider track id for crypto payments. */
|
|
457
|
+
optional string track_id = 15;
|
|
458
|
+
/** Network fee in USDT (crypto), when stored. */
|
|
459
|
+
optional double network_fee = 16;
|
|
460
|
+
/** Base amount without network fee (crypto), when stored. */
|
|
461
|
+
optional double amount_base = 17;
|
|
462
|
+
optional string uuid = 18;
|
|
456
463
|
}
|
|
457
464
|
|
|
458
465
|
message GetExchangePaymentsResponse {
|
|
@@ -88,9 +88,24 @@ message UpdateCurrencySettingResponse {
|
|
|
88
88
|
|
|
89
89
|
message GetExchangeRatesRequest {}
|
|
90
90
|
|
|
91
|
+
message ExchangeRate {
|
|
92
|
+
string id = 1;
|
|
93
|
+
string pair = 2;
|
|
94
|
+
string first_currency = 3;
|
|
95
|
+
string second_currency = 4;
|
|
96
|
+
optional double exchange_rate = 5;
|
|
97
|
+
optional double real_exchange_rate = 6;
|
|
98
|
+
bool is_new = 7;
|
|
99
|
+
optional google.protobuf.Struct buy_prices = 8;
|
|
100
|
+
optional google.protobuf.Struct sell_prices = 9;
|
|
101
|
+
optional google.protobuf.Struct percents = 10;
|
|
102
|
+
string created_at = 11;
|
|
103
|
+
string updated_at = 12;
|
|
104
|
+
}
|
|
105
|
+
|
|
91
106
|
message GetExchangeRatesResponse {
|
|
92
107
|
bool exist = 1;
|
|
93
|
-
|
|
108
|
+
repeated ExchangeRate rates = 2;
|
|
94
109
|
}
|
|
95
110
|
|
|
96
111
|
message MarketRate {
|