@arbiwallet/contracts 1.0.268 → 1.0.269
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 +16 -1
- package/package.json +1 -1
- package/proto/exchange_rates.proto +16 -1
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.269",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -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 {
|