@arbiwallet/contracts 1.0.276 → 1.0.277
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 +26 -0
- package/gen/user.ts +2 -0
- package/package.json +1 -1
- package/proto/exchange_rates.proto +14 -0
- package/proto/user.proto +2 -0
package/gen/exchange_rates.ts
CHANGED
|
@@ -100,6 +100,25 @@ export interface GetExchangeRatesResponse {
|
|
|
100
100
|
rates: ExchangeRate[];
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
export interface GetCompetitorRatesRequest {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface CompetitorRate {
|
|
107
|
+
company: string;
|
|
108
|
+
rates: { [key: string]: string };
|
|
109
|
+
date: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface CompetitorRate_RatesEntry {
|
|
113
|
+
key: string;
|
|
114
|
+
value: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface GetCompetitorRatesResponse {
|
|
118
|
+
exist: boolean;
|
|
119
|
+
rates: CompetitorRate[];
|
|
120
|
+
}
|
|
121
|
+
|
|
103
122
|
export interface MarketRate {
|
|
104
123
|
id: string;
|
|
105
124
|
updatedAt: string;
|
|
@@ -453,6 +472,8 @@ export interface ExchangeRatesServiceClient {
|
|
|
453
472
|
|
|
454
473
|
getExchangeRates(request: GetExchangeRatesRequest): Observable<GetExchangeRatesResponse>;
|
|
455
474
|
|
|
475
|
+
getCompetitorRates(request: GetCompetitorRatesRequest): Observable<GetCompetitorRatesResponse>;
|
|
476
|
+
|
|
456
477
|
getMarketRates(request: GetMarketRatesRequest): Observable<GetMarketRatesResponse>;
|
|
457
478
|
|
|
458
479
|
getMarketRate(request: GetMarketRateRequest): Observable<GetMarketRateResponse>;
|
|
@@ -519,6 +540,10 @@ export interface ExchangeRatesServiceController {
|
|
|
519
540
|
request: GetExchangeRatesRequest,
|
|
520
541
|
): Promise<GetExchangeRatesResponse> | Observable<GetExchangeRatesResponse> | GetExchangeRatesResponse;
|
|
521
542
|
|
|
543
|
+
getCompetitorRates(
|
|
544
|
+
request: GetCompetitorRatesRequest,
|
|
545
|
+
): Promise<GetCompetitorRatesResponse> | Observable<GetCompetitorRatesResponse> | GetCompetitorRatesResponse;
|
|
546
|
+
|
|
522
547
|
getMarketRates(
|
|
523
548
|
request: GetMarketRatesRequest,
|
|
524
549
|
): Promise<GetMarketRatesResponse> | Observable<GetMarketRatesResponse> | GetMarketRatesResponse;
|
|
@@ -594,6 +619,7 @@ export function ExchangeRatesServiceControllerMethods() {
|
|
|
594
619
|
"updatePrimeRate",
|
|
595
620
|
"deletePrimeRate",
|
|
596
621
|
"getExchangeRates",
|
|
622
|
+
"getCompetitorRates",
|
|
597
623
|
"getMarketRates",
|
|
598
624
|
"getMarketRate",
|
|
599
625
|
"getCustomRates",
|
package/gen/user.ts
CHANGED
|
@@ -91,6 +91,8 @@ export interface UserResponse {
|
|
|
91
91
|
referrerName?: string | undefined;
|
|
92
92
|
exchangeCountLastMonth?: number | undefined;
|
|
93
93
|
totalProfit?: number | undefined;
|
|
94
|
+
refCode?: string | undefined;
|
|
95
|
+
advChannelName?: string | undefined;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
export interface UpdateUserRequest {
|
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.277",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -19,6 +19,7 @@ service ExchangeRatesService {
|
|
|
19
19
|
rpc DeletePrimeRate(DeletePrimeRateRequest) returns (DeletePrimeRateResponse);
|
|
20
20
|
|
|
21
21
|
rpc GetExchangeRates(GetExchangeRatesRequest) returns (GetExchangeRatesResponse);
|
|
22
|
+
rpc GetCompetitorRates(GetCompetitorRatesRequest) returns (GetCompetitorRatesResponse);
|
|
22
23
|
|
|
23
24
|
rpc GetMarketRates(GetMarketRatesRequest) returns (GetMarketRatesResponse);
|
|
24
25
|
rpc GetMarketRate(GetMarketRateRequest) returns (GetMarketRateResponse);
|
|
@@ -108,6 +109,19 @@ message GetExchangeRatesResponse {
|
|
|
108
109
|
repeated ExchangeRate rates = 2;
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
message GetCompetitorRatesRequest {}
|
|
113
|
+
|
|
114
|
+
message CompetitorRate {
|
|
115
|
+
string company = 1;
|
|
116
|
+
map<string, string> rates = 2;
|
|
117
|
+
string date = 3;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
message GetCompetitorRatesResponse {
|
|
121
|
+
bool exist = 1;
|
|
122
|
+
repeated CompetitorRate rates = 2;
|
|
123
|
+
}
|
|
124
|
+
|
|
111
125
|
message MarketRate {
|
|
112
126
|
string id = 1;
|
|
113
127
|
string updated_at = 2;
|
package/proto/user.proto
CHANGED
|
@@ -131,6 +131,8 @@ message UserResponse {
|
|
|
131
131
|
optional string referrer_name = 38;
|
|
132
132
|
optional int32 exchange_count_last_month = 39;
|
|
133
133
|
optional double total_profit = 40;
|
|
134
|
+
optional string ref_code = 41;
|
|
135
|
+
optional string adv_channel_name = 42;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
message UpdateUserRequest {
|