@t-0/provider-sdk 1.0.25 → 1.0.27
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/lib/cjs/client/client.js +46 -0
- package/lib/cjs/client/signer.js +69 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.js +353 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +57 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/common/payment_method_pb.d.ts +40 -22
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +67 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +32 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +139 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +241 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +88 -0
- package/lib/{common → cjs/common}/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +95 -0
- package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +88 -0
- package/lib/cjs/common/headers.js +10 -0
- package/lib/cjs/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
- package/lib/cjs/examples/payment_intent/pay-in-provider-flow.js +56 -0
- package/lib/cjs/examples/payment_intent/service.d.ts +1 -0
- package/lib/cjs/examples/payment_intent/service.js +68 -0
- package/lib/cjs/examples/server.d.ts +4 -0
- package/lib/cjs/examples/server.js +93 -0
- package/lib/cjs/examples/update-quote.d.ts +4 -0
- package/lib/cjs/examples/update-quote.js +42 -0
- package/lib/cjs/index.js +50 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/payment_intent/provider/index.js +17 -0
- package/lib/cjs/payment_intent/recipient/index.js +17 -0
- package/lib/cjs/service/node.js +15 -0
- package/lib/cjs/service/service.js +112 -0
- package/lib/esm/client/client.d.ts +16 -0
- package/lib/esm/client/signer.d.ts +3 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.js +350 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +66 -0
- package/lib/{common → esm/common}/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +140 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +64 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +29 -0
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +606 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment/network_pb.js +9 -17
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +741 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment/provider_pb.js +71 -36
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +318 -0
- package/lib/{common → esm/common}/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +401 -0
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +92 -0
- package/lib/esm/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
- package/lib/esm/common/headers.d.ts +6 -0
- package/lib/esm/examples/payment_intent/pay-in-provider-flow.d.ts +4 -0
- package/lib/esm/examples/payment_intent/pay-in-provider-flow.js +51 -0
- package/lib/esm/examples/payment_intent/service.d.ts +1 -0
- package/lib/esm/examples/payment_intent/service.js +30 -0
- package/lib/esm/examples/server.d.ts +4 -0
- package/lib/esm/examples/server.js +55 -0
- package/lib/esm/examples/update-quote.d.ts +4 -0
- package/lib/esm/examples/update-quote.js +37 -0
- package/lib/esm/index.d.ts +11 -0
- package/lib/esm/payment_intent/provider/index.js +1 -0
- package/lib/esm/payment_intent/recipient/index.js +1 -0
- package/lib/esm/service/node.d.ts +3 -0
- package/lib/esm/service/service.d.ts +15 -0
- package/lib/{service → esm/service}/service.js +2 -2
- package/lib/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/package.json +16 -7
- package/lib/common/gen/tzero/v1/common/payment_method_pb.js +0 -57
- package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +0 -59
- /package/lib/{client → cjs/client}/client.d.ts +0 -0
- /package/lib/{client → cjs/client}/signer.d.ts +0 -0
- /package/lib/{common → cjs/common}/gen/tzero/v1/public/public_pb.d.ts +0 -0
- /package/lib/{common → cjs/common}/headers.d.ts +0 -0
- /package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/lib/{payment_intent → cjs/payment_intent}/provider/index.d.ts +0 -0
- /package/lib/{payment_intent → cjs/payment_intent}/recipient/index.d.ts +0 -0
- /package/lib/{service → cjs/service}/node.d.ts +0 -0
- /package/lib/{service → cjs/service}/service.d.ts +0 -0
- /package/lib/{client → esm/client}/client.js +0 -0
- /package/lib/{client → esm/client}/signer.js +0 -0
- /package/lib/{common → esm/common}/gen/tzero/v1/public/public_pb.js +0 -0
- /package/lib/{common → esm/common}/headers.js +0 -0
- /package/lib/{index.js → esm/index.js} +0 -0
- /package/lib/{payment_intent/provider/index.js → esm/payment_intent/provider/index.d.ts} +0 -0
- /package/lib/{payment_intent/recipient/index.js → esm/payment_intent/recipient/index.d.ts} +0 -0
- /package/lib/{service → esm/service}/node.js +0 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Blockchain, Stablecoin } from "./common_pb.js";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file tzero/v1/common/payment_method.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_tzero_v1_common_payment_method: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message tzero.v1.common.PaymentMethod
|
|
10
|
+
*/
|
|
11
|
+
export type PaymentMethod = Message<"tzero.v1.common.PaymentMethod"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from oneof tzero.v1.common.PaymentMethod.details
|
|
14
|
+
*/
|
|
15
|
+
details: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: tzero.v1.common.SepaPaymentDetails sepa = 10;
|
|
18
|
+
*/
|
|
19
|
+
value: SepaPaymentDetails;
|
|
20
|
+
case: "sepa";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: tzero.v1.common.SwiftPaymentDetails swift = 30;
|
|
24
|
+
*/
|
|
25
|
+
value: SwiftPaymentDetails;
|
|
26
|
+
case: "swift";
|
|
27
|
+
} | {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: tzero.v1.common.StablecoinPaymentDetails stablecoin = 40;
|
|
30
|
+
*/
|
|
31
|
+
value: StablecoinPaymentDetails;
|
|
32
|
+
case: "stablecoin";
|
|
33
|
+
} | {
|
|
34
|
+
case: undefined;
|
|
35
|
+
value?: undefined;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message tzero.v1.common.PaymentMethod.
|
|
40
|
+
* Use `create(PaymentMethodSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const PaymentMethodSchema: GenMessage<PaymentMethod>;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message tzero.v1.common.SepaPaymentDetails
|
|
45
|
+
*/
|
|
46
|
+
export type SepaPaymentDetails = Message<"tzero.v1.common.SepaPaymentDetails"> & {
|
|
47
|
+
/**
|
|
48
|
+
* IBAN should be 15-34 characters, alphanumeric
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string iban = 20;
|
|
51
|
+
*/
|
|
52
|
+
iban: string;
|
|
53
|
+
/**
|
|
54
|
+
* Beneficiary name should be 1-70 characters (SEPA standard)
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: string beneficiary_name = 30;
|
|
57
|
+
*/
|
|
58
|
+
beneficiaryName: string;
|
|
59
|
+
/**
|
|
60
|
+
* Payment reference up to 140 characters (SEPA standard)
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: string payment_reference = 40;
|
|
63
|
+
*/
|
|
64
|
+
paymentReference: string;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Describes the message tzero.v1.common.SepaPaymentDetails.
|
|
68
|
+
* Use `create(SepaPaymentDetailsSchema)` to create a new message.
|
|
69
|
+
*/
|
|
70
|
+
export declare const SepaPaymentDetailsSchema: GenMessage<SepaPaymentDetails>;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from message tzero.v1.common.SwiftPaymentDetails
|
|
73
|
+
*/
|
|
74
|
+
export type SwiftPaymentDetails = Message<"tzero.v1.common.SwiftPaymentDetails"> & {};
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message tzero.v1.common.SwiftPaymentDetails.
|
|
77
|
+
* Use `create(SwiftPaymentDetailsSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export declare const SwiftPaymentDetailsSchema: GenMessage<SwiftPaymentDetails>;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message tzero.v1.common.StablecoinPaymentDetails
|
|
82
|
+
*/
|
|
83
|
+
export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymentDetails"> & {
|
|
84
|
+
/**
|
|
85
|
+
* Blockchain must be specified and not UNSPECIFIED
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: tzero.v1.common.Blockchain blockchain = 10;
|
|
88
|
+
*/
|
|
89
|
+
blockchain: Blockchain;
|
|
90
|
+
/**
|
|
91
|
+
* Stablecoin must be specified and not UNSPECIFIED
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
|
|
94
|
+
*/
|
|
95
|
+
stablecoin: Stablecoin;
|
|
96
|
+
/**
|
|
97
|
+
* Blockchain address should be a valid hex address (20-64 chars for most blockchains)
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: string address = 30;
|
|
100
|
+
*/
|
|
101
|
+
address: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message tzero.v1.common.StablecoinPaymentDetails.
|
|
105
|
+
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const StablecoinPaymentDetailsSchema: GenMessage<StablecoinPaymentDetails>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
110
|
+
*/
|
|
111
|
+
export declare enum PaymentMethodType {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_UNSPECIFIED = 0;
|
|
114
|
+
*/
|
|
115
|
+
UNSPECIFIED = 0,
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_SEPA = 10;
|
|
118
|
+
*/
|
|
119
|
+
SEPA = 10,
|
|
120
|
+
/**
|
|
121
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_SWIFT = 20;
|
|
122
|
+
*/
|
|
123
|
+
SWIFT = 20,
|
|
124
|
+
/**
|
|
125
|
+
* only pay in
|
|
126
|
+
*
|
|
127
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_CARD = 30;
|
|
128
|
+
*/
|
|
129
|
+
CARD = 30,
|
|
130
|
+
/**
|
|
131
|
+
* only pay out
|
|
132
|
+
*
|
|
133
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
134
|
+
*/
|
|
135
|
+
STABLECOIN = 40
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
139
|
+
*/
|
|
140
|
+
export declare const PaymentMethodTypeSchema: GenEnum<PaymentMethodType>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_tzero_v1_common_common } from "./common_pb.js";
|
|
6
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file tzero/v1/common/payment_method.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiLOAQoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAQhAKB2RldGFpbHMSBbpIAggBIpQBChJTZXBhUGF5bWVudERldGFpbHMSNAoEaWJhbhgUIAEoCUImukgjciEQDxgiMhteW0EtWl17Mn1bMC05XXsyfVtBLVowLTldKyQSIwoQYmVuZWZpY2lhcnlfbmFtZRgeIAEoCUIJukgGcgQQARhGEiMKEXBheW1lbnRfcmVmZXJlbmNlGCggASgJQgi6SAVyAxiMASIVChNTd2lmdFBheW1lbnREZXRhaWxzIsEBChhTdGFibGVjb2luUGF5bWVudERldGFpbHMSOQoKYmxvY2tjaGFpbhgKIAEoDjIbLnR6ZXJvLnYxLmNvbW1vbi5CbG9ja2NoYWluQgi6SAWCAQIgABI5CgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5CCLpIBYIBAiAAEi8KB2FkZHJlc3MYHiABKAlCHrpIG3IZEBQYQDITXigweCk/W2EtZkEtRjAtOV0rJCq3AQoRUGF5bWVudE1ldGhvZFR5cGUSIwofUEFZTUVOVF9NRVRIT0RfVFlQRV9VTlNQRUNJRklFRBAAEhwKGFBBWU1FTlRfTUVUSE9EX1RZUEVfU0VQQRAKEh0KGVBBWU1FTlRfTUVUSE9EX1RZUEVfU1dJRlQQFBIcChhQQVlNRU5UX01FVEhPRF9UWVBFX0NBUkQQHhIiCh5QQVlNRU5UX01FVEhPRF9UWVBFX1NUQUJMRUNPSU4QKEKHAQoTY29tLnR6ZXJvLnYxLmNvbW1vbkISUGF5bWVudE1ldGhvZFByb3RvUAGiAgNUVkOqAg9UemVyby5WMS5Db21tb27KAg9UemVyb1xWMVxDb21tb27iAhtUemVyb1xWMVxDb21tb25cR1BCTWV0YWRhdGHqAhFUemVybzo6VjE6OkNvbW1vbmIGcHJvdG8z", [file_tzero_v1_common_common, file_buf_validate_validate]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message tzero.v1.common.PaymentMethod.
|
|
13
|
+
* Use `create(PaymentMethodSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const PaymentMethodSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message tzero.v1.common.SepaPaymentDetails.
|
|
18
|
+
* Use `create(SepaPaymentDetailsSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const SepaPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message tzero.v1.common.SwiftPaymentDetails.
|
|
23
|
+
* Use `create(SwiftPaymentDetailsSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const SwiftPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message tzero.v1.common.StablecoinPaymentDetails.
|
|
28
|
+
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const StablecoinPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 3);
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
33
|
+
*/
|
|
34
|
+
export var PaymentMethodType;
|
|
35
|
+
(function (PaymentMethodType) {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_UNSPECIFIED = 0;
|
|
38
|
+
*/
|
|
39
|
+
PaymentMethodType[PaymentMethodType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_SEPA = 10;
|
|
42
|
+
*/
|
|
43
|
+
PaymentMethodType[PaymentMethodType["SEPA"] = 10] = "SEPA";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_SWIFT = 20;
|
|
46
|
+
*/
|
|
47
|
+
PaymentMethodType[PaymentMethodType["SWIFT"] = 20] = "SWIFT";
|
|
48
|
+
/**
|
|
49
|
+
* only pay in
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_CARD = 30;
|
|
52
|
+
*/
|
|
53
|
+
PaymentMethodType[PaymentMethodType["CARD"] = 30] = "CARD";
|
|
54
|
+
/**
|
|
55
|
+
* only pay out
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
58
|
+
*/
|
|
59
|
+
PaymentMethodType[PaymentMethodType["STABLECOIN"] = 40] = "STABLECOIN";
|
|
60
|
+
})(PaymentMethodType || (PaymentMethodType = {}));
|
|
61
|
+
/**
|
|
62
|
+
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
63
|
+
*/
|
|
64
|
+
export const PaymentMethodTypeSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_common_payment_method, 0);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file tzero/v1/common/payment_receipt.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_tzero_v1_common_payment_receipt: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message tzero.v1.common.PaymentReceipt
|
|
9
|
+
*/
|
|
10
|
+
export type PaymentReceipt = Message<"tzero.v1.common.PaymentReceipt"> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from oneof tzero.v1.common.PaymentReceipt.details
|
|
13
|
+
*/
|
|
14
|
+
details: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: tzero.v1.common.SepaReceipt sepa = 10;
|
|
17
|
+
*/
|
|
18
|
+
value: SepaReceipt;
|
|
19
|
+
case: "sepa";
|
|
20
|
+
} | {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: tzero.v1.common.SwiftReceipt swift = 30;
|
|
23
|
+
*/
|
|
24
|
+
value: SwiftReceipt;
|
|
25
|
+
case: "swift";
|
|
26
|
+
} | {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: tzero.v1.common.StablecoinReceipt stablecoin = 40;
|
|
29
|
+
*/
|
|
30
|
+
value: StablecoinReceipt;
|
|
31
|
+
case: "stablecoin";
|
|
32
|
+
} | {
|
|
33
|
+
case: undefined;
|
|
34
|
+
value?: undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message tzero.v1.common.PaymentReceipt.
|
|
39
|
+
* Use `create(PaymentReceiptSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PaymentReceiptSchema: GenMessage<PaymentReceipt>;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message tzero.v1.common.SepaReceipt
|
|
44
|
+
*/
|
|
45
|
+
export type SepaReceipt = Message<"tzero.v1.common.SepaReceipt"> & {};
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message tzero.v1.common.SepaReceipt.
|
|
48
|
+
* Use `create(SepaReceiptSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export declare const SepaReceiptSchema: GenMessage<SepaReceipt>;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message tzero.v1.common.SwiftReceipt
|
|
53
|
+
*/
|
|
54
|
+
export type SwiftReceipt = Message<"tzero.v1.common.SwiftReceipt"> & {};
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message tzero.v1.common.SwiftReceipt.
|
|
57
|
+
* Use `create(SwiftReceiptSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export declare const SwiftReceiptSchema: GenMessage<SwiftReceipt>;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from message tzero.v1.common.StablecoinReceipt
|
|
62
|
+
*/
|
|
63
|
+
export type StablecoinReceipt = Message<"tzero.v1.common.StablecoinReceipt"> & {
|
|
64
|
+
/**
|
|
65
|
+
* Transaction hash should be a valid hex string (64 chars for most blockchains)
|
|
66
|
+
*
|
|
67
|
+
* on-chain hex encoded transaction hash
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: string transaction_hash = 10;
|
|
70
|
+
*/
|
|
71
|
+
transactionHash: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message tzero.v1.common.StablecoinReceipt.
|
|
75
|
+
* Use `create(StablecoinReceiptSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
export declare const StablecoinReceiptSchema: GenMessage<StablecoinReceipt>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file tzero/v1/common/payment_receipt.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_tzero_v1_common_payment_receipt = /*@__PURE__*/ fileDesc("CiV0emVyby92MS9jb21tb24vcGF5bWVudF9yZWNlaXB0LnByb3RvEg90emVyby52MS5jb21tb24iugEKDlBheW1lbnRSZWNlaXB0EiwKBHNlcGEYCiABKAsyHC50emVyby52MS5jb21tb24uU2VwYVJlY2VpcHRIABIuCgVzd2lmdBgeIAEoCzIdLnR6ZXJvLnYxLmNvbW1vbi5Td2lmdFJlY2VpcHRIABI4CgpzdGFibGVjb2luGCggASgLMiIudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5SZWNlaXB0SABCEAoHZGV0YWlscxIFukgCCAEiDQoLU2VwYVJlY2VpcHQiDgoMU3dpZnRSZWNlaXB0IlAKEVN0YWJsZWNvaW5SZWNlaXB0EjsKEHRyYW5zYWN0aW9uX2hhc2gYCiABKAlCIbpIHnIcEEAYQjIWXigweCk/W2EtZkEtRjAtOV17NjR9JEKIAQoTY29tLnR6ZXJvLnYxLmNvbW1vbkITUGF5bWVudFJlY2VpcHRQcm90b1ABogIDVFZDqgIPVHplcm8uVjEuQ29tbW9uygIPVHplcm9cVjFcQ29tbW9u4gIbVHplcm9cVjFcQ29tbW9uXEdQQk1ldGFkYXRh6gIRVHplcm86OlYxOjpDb21tb25iBnByb3RvMw", [file_buf_validate_validate]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message tzero.v1.common.PaymentReceipt.
|
|
12
|
+
* Use `create(PaymentReceiptSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const PaymentReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message tzero.v1.common.SepaReceipt.
|
|
17
|
+
* Use `create(SepaReceiptSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const SepaReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message tzero.v1.common.SwiftReceipt.
|
|
22
|
+
* Use `create(SwiftReceiptSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const SwiftReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message tzero.v1.common.StablecoinReceipt.
|
|
27
|
+
* Use `create(StablecoinReceiptSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const StablecoinReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 3);
|