@arbiwallet/contracts 1.0.245 → 1.0.246
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 +15 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +9 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -407,6 +407,14 @@ export interface GetExchangePaymentsResponse {
|
|
|
407
407
|
totalPages: number;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
export interface GetExchangePaymentRequest {
|
|
411
|
+
id: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface GetExchangePaymentResponse {
|
|
415
|
+
payment?: GetExchangePaymentsItem | undefined;
|
|
416
|
+
}
|
|
417
|
+
|
|
410
418
|
export interface PaymentsSummaryItem {
|
|
411
419
|
currency: string;
|
|
412
420
|
total: number;
|
|
@@ -560,6 +568,8 @@ export interface ExchangeCoreServiceClient {
|
|
|
560
568
|
|
|
561
569
|
getExchangePayments(request: GetExchangePaymentsRequest): Observable<GetExchangePaymentsResponse>;
|
|
562
570
|
|
|
571
|
+
getExchangePayment(request: GetExchangePaymentRequest): Observable<GetExchangePaymentResponse>;
|
|
572
|
+
|
|
563
573
|
getPaymentsSummary(request: ExchangeCalculationsFiltersRequest): Observable<GetPaymentsSummaryResponse>;
|
|
564
574
|
|
|
565
575
|
getWallets(request: GetWalletsRequest): Observable<GetWalletsResponse>;
|
|
@@ -624,6 +634,10 @@ export interface ExchangeCoreServiceController {
|
|
|
624
634
|
request: GetExchangePaymentsRequest,
|
|
625
635
|
): Promise<GetExchangePaymentsResponse> | Observable<GetExchangePaymentsResponse> | GetExchangePaymentsResponse;
|
|
626
636
|
|
|
637
|
+
getExchangePayment(
|
|
638
|
+
request: GetExchangePaymentRequest,
|
|
639
|
+
): Promise<GetExchangePaymentResponse> | Observable<GetExchangePaymentResponse> | GetExchangePaymentResponse;
|
|
640
|
+
|
|
627
641
|
getPaymentsSummary(
|
|
628
642
|
request: ExchangeCalculationsFiltersRequest,
|
|
629
643
|
): Promise<GetPaymentsSummaryResponse> | Observable<GetPaymentsSummaryResponse> | GetPaymentsSummaryResponse;
|
|
@@ -663,6 +677,7 @@ export function ExchangeCoreServiceControllerMethods() {
|
|
|
663
677
|
"createExchangePayment",
|
|
664
678
|
"handlePaymentWebhook",
|
|
665
679
|
"getExchangePayments",
|
|
680
|
+
"getExchangePayment",
|
|
666
681
|
"getPaymentsSummary",
|
|
667
682
|
"getWallets",
|
|
668
683
|
"getWalletsMonika",
|
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.246",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -22,6 +22,7 @@ service ExchangeCoreService {
|
|
|
22
22
|
rpc CreateExchangePayment(CreateExchangePaymentRequest) returns (CreateExchangePaymentResponse);
|
|
23
23
|
rpc HandlePaymentWebhook(HandlePaymentWebhookRequest) returns (HandlePaymentWebhookResponse);
|
|
24
24
|
rpc GetExchangePayments(GetExchangePaymentsRequest) returns (GetExchangePaymentsResponse);
|
|
25
|
+
rpc GetExchangePayment(GetExchangePaymentRequest) returns (GetExchangePaymentResponse);
|
|
25
26
|
rpc GetPaymentsSummary(ExchangeCalculationsFiltersRequest) returns (GetPaymentsSummaryResponse);
|
|
26
27
|
|
|
27
28
|
rpc GetWallets(GetWalletsRequest) returns (GetWalletsResponse);
|
|
@@ -445,6 +446,14 @@ message GetExchangePaymentsResponse {
|
|
|
445
446
|
int32 total_pages = 5;
|
|
446
447
|
}
|
|
447
448
|
|
|
449
|
+
message GetExchangePaymentRequest {
|
|
450
|
+
string id = 1;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
message GetExchangePaymentResponse {
|
|
454
|
+
optional GetExchangePaymentsItem payment = 1;
|
|
455
|
+
}
|
|
456
|
+
|
|
448
457
|
message PaymentsSummaryItem {
|
|
449
458
|
string currency = 1;
|
|
450
459
|
double total = 2;
|