@arbiwallet/contracts 1.0.41 → 1.0.43

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/payout.ts ADDED
@@ -0,0 +1,66 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.4
4
+ // protoc v7.34.0
5
+ // source: payout.proto
6
+
7
+ /* eslint-disable */
8
+ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
9
+ import { Observable } from "rxjs";
10
+
11
+ export const protobufPackage = "payout.v1";
12
+
13
+ export interface ParsePromptPayQrRequest {
14
+ qrString: string;
15
+ userId: string;
16
+ }
17
+
18
+ export interface ParsePromptPayQrResponse {
19
+ payloadJson: string;
20
+ }
21
+
22
+ export interface ConfirmPayoutPaymentRequest {
23
+ quoteId: string;
24
+ idempotencyKey: string;
25
+ callbackUrl: string;
26
+ userId: string;
27
+ }
28
+
29
+ export interface ConfirmPayoutPaymentResponse {
30
+ payloadJson: string;
31
+ }
32
+
33
+ export const PAYOUT_V1_PACKAGE_NAME = "payout.v1";
34
+
35
+ export interface PayoutServiceClient {
36
+ parsePromptPayQr(request: ParsePromptPayQrRequest): Observable<ParsePromptPayQrResponse>;
37
+
38
+ confirmPayoutPayment(request: ConfirmPayoutPaymentRequest): Observable<ConfirmPayoutPaymentResponse>;
39
+ }
40
+
41
+ export interface PayoutServiceController {
42
+ parsePromptPayQr(
43
+ request: ParsePromptPayQrRequest,
44
+ ): Promise<ParsePromptPayQrResponse> | Observable<ParsePromptPayQrResponse> | ParsePromptPayQrResponse;
45
+
46
+ confirmPayoutPayment(
47
+ request: ConfirmPayoutPaymentRequest,
48
+ ): Promise<ConfirmPayoutPaymentResponse> | Observable<ConfirmPayoutPaymentResponse> | ConfirmPayoutPaymentResponse;
49
+ }
50
+
51
+ export function PayoutServiceControllerMethods() {
52
+ return function (constructor: Function) {
53
+ const grpcMethods: string[] = ["parsePromptPayQr", "confirmPayoutPayment"];
54
+ for (const method of grpcMethods) {
55
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
56
+ GrpcMethod("PayoutService", method)(constructor.prototype[method], method, descriptor);
57
+ }
58
+ const grpcStreamMethods: string[] = [];
59
+ for (const method of grpcStreamMethods) {
60
+ const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
61
+ GrpcStreamMethod("PayoutService", method)(constructor.prototype[method], method, descriptor);
62
+ }
63
+ };
64
+ }
65
+
66
+ export const PAYOUT_SERVICE_NAME = "PayoutService";
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.41",
4
+ "version": "1.0.43",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -0,0 +1,32 @@
1
+ syntax = "proto3";
2
+
3
+ package payout.v1;
4
+
5
+ option csharp_namespace = "Payout.V1";
6
+ option java_multiple_files = true;
7
+ option java_package = "com.arbiwallet.payout.v1";
8
+
9
+ service PayoutService {
10
+ rpc ParsePromptPayQr(ParsePromptPayQrRequest) returns (ParsePromptPayQrResponse);
11
+ rpc ConfirmPayoutPayment(ConfirmPayoutPaymentRequest) returns (ConfirmPayoutPaymentResponse);
12
+ }
13
+
14
+ message ParsePromptPayQrRequest {
15
+ string qr_string = 1;
16
+ string user_id = 2;
17
+ }
18
+
19
+ message ParsePromptPayQrResponse {
20
+ string payload_json = 1;
21
+ }
22
+
23
+ message ConfirmPayoutPaymentRequest {
24
+ string quote_id = 1;
25
+ string idempotency_key = 2;
26
+ string callback_url = 3;
27
+ string user_id = 4;
28
+ }
29
+
30
+ message ConfirmPayoutPaymentResponse {
31
+ string payload_json = 1;
32
+ }