@arbiwallet/contracts 1.0.252 → 1.0.254
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 +45 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +29 -1
package/gen/exchange_core.ts
CHANGED
|
@@ -90,6 +90,9 @@ export interface GetExchangeDealsItem {
|
|
|
90
90
|
calculationSourceId?: string | undefined;
|
|
91
91
|
manager?: GetExchangeDealsManager | undefined;
|
|
92
92
|
createdAt: string;
|
|
93
|
+
exchangeRate1Iter?: number | undefined;
|
|
94
|
+
exchangeRate2Iter?: number | undefined;
|
|
95
|
+
usdtRate?: number | undefined;
|
|
93
96
|
}
|
|
94
97
|
|
|
95
98
|
export interface GetExchangeDealsResponse {
|
|
@@ -341,6 +344,29 @@ export interface GetExchangePaymentResponse {
|
|
|
341
344
|
payment?: GetExchangePaymentsItem | undefined;
|
|
342
345
|
}
|
|
343
346
|
|
|
347
|
+
export interface SearchExchangePaymentRequest {
|
|
348
|
+
search: string;
|
|
349
|
+
limit: number;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface SearchExchangePaymentItem {
|
|
353
|
+
id: string;
|
|
354
|
+
amount?: number | undefined;
|
|
355
|
+
usdtAmount?: number | undefined;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export interface SearchExchangePaymentResponse {
|
|
359
|
+
items: SearchExchangePaymentItem[];
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export interface PrealoadExchangePaymentForSearchRequest {
|
|
363
|
+
paymentId: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface PrealoadExchangePaymentForSearchResponse {
|
|
367
|
+
item?: SearchExchangePaymentItem | undefined;
|
|
368
|
+
}
|
|
369
|
+
|
|
344
370
|
export interface PaymentsSummaryItem {
|
|
345
371
|
currency: string;
|
|
346
372
|
total: number;
|
|
@@ -467,6 +493,12 @@ export interface ExchangeCoreServiceClient {
|
|
|
467
493
|
|
|
468
494
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
469
495
|
|
|
496
|
+
searchExchangePayment(request: SearchExchangePaymentRequest): Observable<SearchExchangePaymentResponse>;
|
|
497
|
+
|
|
498
|
+
prealoadExchangePaymentForSearch(
|
|
499
|
+
request: PrealoadExchangePaymentForSearchRequest,
|
|
500
|
+
): Observable<PrealoadExchangePaymentForSearchResponse>;
|
|
501
|
+
|
|
470
502
|
getExchangeMethods(request: GetExchangeMethodsRequest): Observable<GetExchangeMethodsResponse>;
|
|
471
503
|
|
|
472
504
|
getExchangeStatuses(request: GetExchangeStatusesRequest): Observable<GetExchangeStatusesResponse>;
|
|
@@ -524,6 +556,17 @@ export interface ExchangeCoreServiceController {
|
|
|
524
556
|
request: ExchangeCalculationsFiltersRequest,
|
|
525
557
|
): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
|
|
526
558
|
|
|
559
|
+
searchExchangePayment(
|
|
560
|
+
request: SearchExchangePaymentRequest,
|
|
561
|
+
): Promise<SearchExchangePaymentResponse> | Observable<SearchExchangePaymentResponse> | SearchExchangePaymentResponse;
|
|
562
|
+
|
|
563
|
+
prealoadExchangePaymentForSearch(
|
|
564
|
+
request: PrealoadExchangePaymentForSearchRequest,
|
|
565
|
+
):
|
|
566
|
+
| Promise<PrealoadExchangePaymentForSearchResponse>
|
|
567
|
+
| Observable<PrealoadExchangePaymentForSearchResponse>
|
|
568
|
+
| PrealoadExchangePaymentForSearchResponse;
|
|
569
|
+
|
|
527
570
|
getExchangeMethods(
|
|
528
571
|
request: GetExchangeMethodsRequest,
|
|
529
572
|
): Promise<GetExchangeMethodsResponse> | Observable<GetExchangeMethodsResponse> | GetExchangeMethodsResponse;
|
|
@@ -555,6 +598,8 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
555
598
|
"getExchangePayments",
|
|
556
599
|
"getExchangePayment",
|
|
557
600
|
"getPaymentsSummary",
|
|
601
|
+
"searchExchangePayment",
|
|
602
|
+
"prealoadExchangePaymentForSearch",
|
|
558
603
|
"getExchangeMethods",
|
|
559
604
|
"getExchangeStatuses",
|
|
560
605
|
"getWallets",
|
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.254",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -21,7 +21,9 @@ service ExchangeCoreService {
|
|
|
21
21
|
rpc GetExchangePayments(GetExchangePaymentsRequest) returns (GetExchangePaymentsResponse);
|
|
22
22
|
rpc GetExchangePayment(GetExchangePaymentRequest) returns (GetExchangePaymentResponse);
|
|
23
23
|
rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
|
|
24
|
-
|
|
24
|
+
rpc SearchExchangePayment(SearchExchangePaymentRequest) returns (SearchExchangePaymentResponse);
|
|
25
|
+
rpc PrealoadExchangePaymentForSearch(PrealoadExchangePaymentForSearchRequest) returns (PrealoadExchangePaymentForSearchResponse);
|
|
26
|
+
|
|
25
27
|
rpc GetExchangeMethods(GetExchangeMethodsRequest) returns (GetExchangeMethodsResponse);
|
|
26
28
|
rpc GetExchangeStatuses(GetExchangeStatusesRequest) returns (GetExchangeStatusesResponse);
|
|
27
29
|
|
|
@@ -116,6 +118,9 @@ message GetExchangeDealsItem {
|
|
|
116
118
|
optional string calculation_source_id = 11;
|
|
117
119
|
optional GetExchangeDealsManager manager = 12;
|
|
118
120
|
string created_at = 13;
|
|
121
|
+
optional double exchange_rate_1_iter = 14;
|
|
122
|
+
optional double exchange_rate_2_iter = 15;
|
|
123
|
+
optional double usdt_rate = 16;
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
message GetExchangeDealsResponse {
|
|
@@ -377,6 +382,29 @@ message GetExchangePaymentResponse {
|
|
|
377
382
|
optional GetExchangePaymentsItem payment = 1;
|
|
378
383
|
}
|
|
379
384
|
|
|
385
|
+
message SearchExchangePaymentRequest {
|
|
386
|
+
string search = 1;
|
|
387
|
+
int32 limit = 2;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
message SearchExchangePaymentItem {
|
|
391
|
+
string id = 1;
|
|
392
|
+
optional double amount = 2;
|
|
393
|
+
optional double usdt_amount = 3;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
message SearchExchangePaymentResponse {
|
|
397
|
+
repeated SearchExchangePaymentItem items = 1;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
message PrealoadExchangePaymentForSearchRequest {
|
|
401
|
+
string payment_id = 1;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
message PrealoadExchangePaymentForSearchResponse {
|
|
405
|
+
optional SearchExchangePaymentItem item = 1;
|
|
406
|
+
}
|
|
407
|
+
|
|
380
408
|
message PaymentsSummaryItem {
|
|
381
409
|
string currency = 1;
|
|
382
410
|
double total = 2;
|