@arbiwallet/contracts 1.0.252 → 1.0.253
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 +42 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +26 -1
package/gen/exchange_core.ts
CHANGED
|
@@ -341,6 +341,29 @@ export interface GetExchangePaymentResponse {
|
|
|
341
341
|
payment?: GetExchangePaymentsItem | undefined;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
export interface SearchExchangePaymentRequest {
|
|
345
|
+
search: string;
|
|
346
|
+
limit: number;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export interface SearchExchangePaymentItem {
|
|
350
|
+
id: string;
|
|
351
|
+
amount?: number | undefined;
|
|
352
|
+
usdtAmount?: number | undefined;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface SearchExchangePaymentResponse {
|
|
356
|
+
items: SearchExchangePaymentItem[];
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface PrealoadExchangePaymentForSearchRequest {
|
|
360
|
+
paymentId: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export interface PrealoadExchangePaymentForSearchResponse {
|
|
364
|
+
item?: SearchExchangePaymentItem | undefined;
|
|
365
|
+
}
|
|
366
|
+
|
|
344
367
|
export interface PaymentsSummaryItem {
|
|
345
368
|
currency: string;
|
|
346
369
|
total: number;
|
|
@@ -467,6 +490,12 @@ export interface ExchangeCoreServiceClient {
|
|
|
467
490
|
|
|
468
491
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
469
492
|
|
|
493
|
+
searchExchangePayment(request: SearchExchangePaymentRequest): Observable<SearchExchangePaymentResponse>;
|
|
494
|
+
|
|
495
|
+
prealoadExchangePaymentForSearch(
|
|
496
|
+
request: PrealoadExchangePaymentForSearchRequest,
|
|
497
|
+
): Observable<PrealoadExchangePaymentForSearchResponse>;
|
|
498
|
+
|
|
470
499
|
getExchangeMethods(request: GetExchangeMethodsRequest): Observable<GetExchangeMethodsResponse>;
|
|
471
500
|
|
|
472
501
|
getExchangeStatuses(request: GetExchangeStatusesRequest): Observable<GetExchangeStatusesResponse>;
|
|
@@ -524,6 +553,17 @@ export interface ExchangeCoreServiceController {
|
|
|
524
553
|
request: ExchangeCalculationsFiltersRequest,
|
|
525
554
|
): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
|
|
526
555
|
|
|
556
|
+
searchExchangePayment(
|
|
557
|
+
request: SearchExchangePaymentRequest,
|
|
558
|
+
): Promise<SearchExchangePaymentResponse> | Observable<SearchExchangePaymentResponse> | SearchExchangePaymentResponse;
|
|
559
|
+
|
|
560
|
+
prealoadExchangePaymentForSearch(
|
|
561
|
+
request: PrealoadExchangePaymentForSearchRequest,
|
|
562
|
+
):
|
|
563
|
+
| Promise<PrealoadExchangePaymentForSearchResponse>
|
|
564
|
+
| Observable<PrealoadExchangePaymentForSearchResponse>
|
|
565
|
+
| PrealoadExchangePaymentForSearchResponse;
|
|
566
|
+
|
|
527
567
|
getExchangeMethods(
|
|
528
568
|
request: GetExchangeMethodsRequest,
|
|
529
569
|
): Promise<GetExchangeMethodsResponse> | Observable<GetExchangeMethodsResponse> | GetExchangeMethodsResponse;
|
|
@@ -555,6 +595,8 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
555
595
|
"getExchangePayments",
|
|
556
596
|
"getExchangePayment",
|
|
557
597
|
"getPaymentsSummary",
|
|
598
|
+
"searchExchangePayment",
|
|
599
|
+
"prealoadExchangePaymentForSearch",
|
|
558
600
|
"getExchangeMethods",
|
|
559
601
|
"getExchangeStatuses",
|
|
560
602
|
"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.253",
|
|
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
|
|
|
@@ -377,6 +379,29 @@ message GetExchangePaymentResponse {
|
|
|
377
379
|
optional GetExchangePaymentsItem payment = 1;
|
|
378
380
|
}
|
|
379
381
|
|
|
382
|
+
message SearchExchangePaymentRequest {
|
|
383
|
+
string search = 1;
|
|
384
|
+
int32 limit = 2;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
message SearchExchangePaymentItem {
|
|
388
|
+
string id = 1;
|
|
389
|
+
optional double amount = 2;
|
|
390
|
+
optional double usdt_amount = 3;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
message SearchExchangePaymentResponse {
|
|
394
|
+
repeated SearchExchangePaymentItem items = 1;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
message PrealoadExchangePaymentForSearchRequest {
|
|
398
|
+
string payment_id = 1;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
message PrealoadExchangePaymentForSearchResponse {
|
|
402
|
+
optional SearchExchangePaymentItem item = 1;
|
|
403
|
+
}
|
|
404
|
+
|
|
380
405
|
message PaymentsSummaryItem {
|
|
381
406
|
string currency = 1;
|
|
382
407
|
double total = 2;
|