@arbiwallet/contracts 1.0.247 → 1.0.248

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.
@@ -429,6 +429,20 @@ export interface GetPaymentsSummaryResponse {
429
429
  items: PaymentsSummaryItem[];
430
430
  }
431
431
 
432
+ export interface ExchangeMethodItem {
433
+ id: number;
434
+ name: string;
435
+ sort: number;
436
+ }
437
+
438
+ export interface GetExchangeMethodsRequest {
439
+ authManagerContext: AuthManagerContext | undefined;
440
+ }
441
+
442
+ export interface GetExchangeMethodsResponse {
443
+ methods: ExchangeMethodItem[];
444
+ }
445
+
432
446
  export interface WalletItem {
433
447
  id: string;
434
448
  name: string;
@@ -573,6 +587,8 @@ export interface ExchangeCoreServiceClient {
573
587
 
574
588
  getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
575
589
 
590
+ getExchangeMethods(request: GetExchangeMethodsRequest): Observable<GetExchangeMethodsResponse>;
591
+
576
592
  getWallets(request: GetWalletsRequest): Observable<GetWalletsResponse>;
577
593
 
578
594
  getWalletsMonika(request: GetWalletsMonikaRequest): Observable<GetWalletsMonikaResponse>;
@@ -643,6 +659,10 @@ export interface ExchangeCoreServiceController {
643
659
  request: ExchangeCalculationsFiltersRequest,
644
660
  ): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
645
661
 
662
+ getExchangeMethods(
663
+ request: GetExchangeMethodsRequest,
664
+ ): Promise<GetExchangeMethodsResponse> | Observable<GetExchangeMethodsResponse> | GetExchangeMethodsResponse;
665
+
646
666
  getWallets(
647
667
  request: GetWalletsRequest,
648
668
  ): Promise<GetWalletsResponse> | Observable<GetWalletsResponse> | GetWalletsResponse;
@@ -680,6 +700,7 @@ export function ExchangeCoreServiceControllerMethods() {
680
700
  "getExchangePayments",
681
701
  "getExchangePayment",
682
702
  "getPaymentsSummary",
703
+ "getExchangeMethods",
683
704
  "getWallets",
684
705
  "getWalletsMonika",
685
706
  "createWallet",
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.247",
4
+ "version": "1.0.248",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -25,6 +25,8 @@ service ExchangeCoreService {
25
25
  rpc GetExchangePayment(GetExchangePaymentRequest) returns (GetExchangePaymentResponse);
26
26
  rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
27
27
 
28
+ rpc GetExchangeMethods(GetExchangeMethodsRequest) returns (GetExchangeMethodsResponse);
29
+
28
30
  rpc GetWallets(GetWalletsRequest) returns (GetWalletsResponse);
29
31
  rpc GetWalletsMonika(GetWalletsMonikaRequest) returns (GetWalletsMonikaResponse);
30
32
  rpc CreateWallet(CreateWalletRequest) returns (CreateWalletResponse);
@@ -468,6 +470,20 @@ message GetPaymentsSummaryResponse {
468
470
  repeated PaymentsSummaryItem items = 2;
469
471
  }
470
472
 
473
+ message ExchangeMethodItem {
474
+ int64 id = 1;
475
+ string name = 2;
476
+ int32 sort = 3;
477
+ }
478
+
479
+ message GetExchangeMethodsRequest {
480
+ AuthManagerContext auth_manager_context = 1;
481
+ }
482
+
483
+ message GetExchangeMethodsResponse {
484
+ repeated ExchangeMethodItem methods = 1;
485
+ }
486
+
471
487
  message WalletItem {
472
488
  string id = 1;
473
489
  string name = 2;