@xstoicunicornx/payjoin_test 0.1.6 → 0.1.8
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/README.md +44 -3
- package/dist/{generated/payjoin_ffi.d.ts → nodejs/bindings/payjoin.d.ts} +3078 -324
- package/dist/nodejs/bindings/payjoin.d.ts.map +1 -0
- package/dist/{generated/payjoin_ffi.js → nodejs/bindings/payjoin.js} +5754 -2165
- package/dist/nodejs/bindings/payjoin.js.map +1 -0
- package/dist/{generated → nodejs/bindings}/wasm-bindgen/index.d.ts +459 -136
- package/dist/{generated → nodejs/bindings}/wasm-bindgen/index.js +2712 -965
- package/dist/nodejs/bindings/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/{generated → nodejs/bindings}/wasm-bindgen/index_bg.wasm.d.ts +715 -569
- package/dist/nodejs/index.d.ts +8 -0
- package/dist/nodejs/index.d.ts.map +1 -0
- package/dist/{index.js → nodejs/index.js} +3 -7
- package/dist/nodejs/index.js.map +1 -0
- package/dist/web/bindings/payjoin.d.ts +6865 -0
- package/dist/web/bindings/payjoin.d.ts.map +1 -0
- package/dist/web/bindings/payjoin.js +14435 -0
- package/dist/web/bindings/payjoin.js.map +1 -0
- package/dist/web/bindings/wasm-bindgen/index.d.ts +2504 -0
- package/dist/web/bindings/wasm-bindgen/index.js +6808 -0
- package/dist/web/bindings/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/web/bindings/wasm-bindgen/index_bg.wasm.d.ts +1211 -0
- package/dist/web/index.d.ts +8 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +20 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/vite.index.d.ts +8 -0
- package/dist/web/vite.index.d.ts.map +1 -0
- package/dist/web/vite.index.js +24 -0
- package/dist/web/vite.index.js.map +1 -0
- package/package.json +44 -37
- package/dist/generated/bitcoin.d.ts +0 -4633
- package/dist/generated/bitcoin.d.ts.map +0 -1
- package/dist/generated/bitcoin.js +0 -3861
- package/dist/generated/bitcoin.js.map +0 -1
- package/dist/generated/payjoin_ffi.d.ts.map +0 -1
- package/dist/generated/payjoin_ffi.js.map +0 -1
- package/dist/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/index.d.ts +0 -11
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.web.js +0 -30
|
@@ -1,30 +1,155 @@
|
|
|
1
|
-
import { type AddressInterface, type OutPoint, type PsbtInterface, type ScriptInterface, type TransactionInterface, type TxIn, type TxOut } from "./bitcoin";
|
|
2
1
|
import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, FfiConverterObjectAsError, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, UniffiThrownObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
|
|
3
2
|
export declare function replayReceiverEventLog(persister: JsonReceiverSessionPersister): ReplayResultInterface;
|
|
3
|
+
export declare function replayReceiverEventLogAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4
|
+
signal: AbortSignal;
|
|
5
|
+
}): Promise<ReplayResultInterface>;
|
|
4
6
|
export declare function replaySenderEventLog(persister: JsonSenderSessionPersister): SenderReplayResultInterface;
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export declare function replaySenderEventLogAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
8
|
+
signal: AbortSignal;
|
|
9
|
+
}): Promise<SenderReplayResultInterface>;
|
|
10
|
+
/**
|
|
11
|
+
* Primitive representation of an outpoint for the FFI boundary.
|
|
12
|
+
*/
|
|
13
|
+
export type PlainOutPoint = {
|
|
14
|
+
/**
|
|
15
|
+
* Hex-encoded txid (big-endian).
|
|
16
|
+
*/
|
|
17
|
+
txid: string;
|
|
18
|
+
/**
|
|
19
|
+
* Output index.
|
|
20
|
+
*/
|
|
21
|
+
vout: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Generated factory for {@link PlainOutPoint} record objects.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PlainOutPoint: Readonly<{
|
|
27
|
+
/**
|
|
28
|
+
* Create a frozen instance of {@link PlainOutPoint}, with defaults specified
|
|
29
|
+
* in Rust, in the {@link payjoin} crate.
|
|
30
|
+
*/
|
|
31
|
+
create: (partial: Partial<PlainOutPoint> & Required<Omit<PlainOutPoint, never>>) => PlainOutPoint;
|
|
32
|
+
/**
|
|
33
|
+
* Create a frozen instance of {@link PlainOutPoint}, with defaults specified
|
|
34
|
+
* in Rust, in the {@link payjoin} crate.
|
|
35
|
+
*/
|
|
36
|
+
new: (partial: Partial<PlainOutPoint> & Required<Omit<PlainOutPoint, never>>) => PlainOutPoint;
|
|
37
|
+
/**
|
|
38
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
39
|
+
*/
|
|
40
|
+
defaults: () => Partial<PlainOutPoint>;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Primitive representation of a PSBT input for the FFI boundary.
|
|
44
|
+
*/
|
|
45
|
+
export type PlainPsbtInput = {
|
|
46
|
+
witnessUtxo: PlainTxOut | undefined;
|
|
47
|
+
redeemScript: ArrayBuffer | undefined;
|
|
48
|
+
witnessScript: ArrayBuffer | undefined;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Generated factory for {@link PlainPsbtInput} record objects.
|
|
52
|
+
*/
|
|
53
|
+
export declare const PlainPsbtInput: Readonly<{
|
|
54
|
+
/**
|
|
55
|
+
* Create a frozen instance of {@link PlainPsbtInput}, with defaults specified
|
|
56
|
+
* in Rust, in the {@link payjoin} crate.
|
|
57
|
+
*/
|
|
58
|
+
create: (partial: Partial<PlainPsbtInput> & Required<Omit<PlainPsbtInput, never>>) => PlainPsbtInput;
|
|
59
|
+
/**
|
|
60
|
+
* Create a frozen instance of {@link PlainPsbtInput}, with defaults specified
|
|
61
|
+
* in Rust, in the {@link payjoin} crate.
|
|
62
|
+
*/
|
|
63
|
+
new: (partial: Partial<PlainPsbtInput> & Required<Omit<PlainPsbtInput, never>>) => PlainPsbtInput;
|
|
64
|
+
/**
|
|
65
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
66
|
+
*/
|
|
67
|
+
defaults: () => Partial<PlainPsbtInput>;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Primitive representation of a transaction input for the FFI boundary.
|
|
71
|
+
*/
|
|
72
|
+
export type PlainTxIn = {
|
|
73
|
+
previousOutput: PlainOutPoint;
|
|
74
|
+
scriptSig: ArrayBuffer;
|
|
75
|
+
sequence: number;
|
|
76
|
+
witness: Array<ArrayBuffer>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Generated factory for {@link PlainTxIn} record objects.
|
|
80
|
+
*/
|
|
81
|
+
export declare const PlainTxIn: Readonly<{
|
|
82
|
+
/**
|
|
83
|
+
* Create a frozen instance of {@link PlainTxIn}, with defaults specified
|
|
84
|
+
* in Rust, in the {@link payjoin} crate.
|
|
85
|
+
*/
|
|
86
|
+
create: (partial: Partial<PlainTxIn> & Required<Omit<PlainTxIn, never>>) => PlainTxIn;
|
|
87
|
+
/**
|
|
88
|
+
* Create a frozen instance of {@link PlainTxIn}, with defaults specified
|
|
89
|
+
* in Rust, in the {@link payjoin} crate.
|
|
90
|
+
*/
|
|
91
|
+
new: (partial: Partial<PlainTxIn> & Required<Omit<PlainTxIn, never>>) => PlainTxIn;
|
|
92
|
+
/**
|
|
93
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
94
|
+
*/
|
|
95
|
+
defaults: () => Partial<PlainTxIn>;
|
|
96
|
+
}>;
|
|
97
|
+
/**
|
|
98
|
+
* Primitive representation of a transaction output for the FFI boundary.
|
|
99
|
+
*/
|
|
100
|
+
export type PlainTxOut = {
|
|
101
|
+
/**
|
|
102
|
+
* Amount in satoshis.
|
|
103
|
+
*/
|
|
104
|
+
valueSat: bigint;
|
|
105
|
+
/**
|
|
106
|
+
* Raw scriptPubKey bytes.
|
|
107
|
+
*/
|
|
108
|
+
scriptPubkey: ArrayBuffer;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Generated factory for {@link PlainTxOut} record objects.
|
|
112
|
+
*/
|
|
113
|
+
export declare const PlainTxOut: Readonly<{
|
|
114
|
+
/**
|
|
115
|
+
* Create a frozen instance of {@link PlainTxOut}, with defaults specified
|
|
116
|
+
* in Rust, in the {@link payjoin} crate.
|
|
117
|
+
*/
|
|
118
|
+
create: (partial: Partial<PlainTxOut> & Required<Omit<PlainTxOut, never>>) => PlainTxOut;
|
|
119
|
+
/**
|
|
120
|
+
* Create a frozen instance of {@link PlainTxOut}, with defaults specified
|
|
121
|
+
* in Rust, in the {@link payjoin} crate.
|
|
122
|
+
*/
|
|
123
|
+
new: (partial: Partial<PlainTxOut> & Required<Omit<PlainTxOut, never>>) => PlainTxOut;
|
|
124
|
+
/**
|
|
125
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
126
|
+
*/
|
|
127
|
+
defaults: () => Partial<PlainTxOut>;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* Primitive representation of a weight measurement.
|
|
131
|
+
*/
|
|
132
|
+
export type PlainWeight = {
|
|
133
|
+
weightUnits: bigint;
|
|
9
134
|
};
|
|
10
135
|
/**
|
|
11
|
-
* Generated factory for {@link
|
|
136
|
+
* Generated factory for {@link PlainWeight} record objects.
|
|
12
137
|
*/
|
|
13
|
-
export declare const
|
|
138
|
+
export declare const PlainWeight: Readonly<{
|
|
14
139
|
/**
|
|
15
|
-
* Create a frozen instance of {@link
|
|
16
|
-
* in Rust, in the {@link
|
|
140
|
+
* Create a frozen instance of {@link PlainWeight}, with defaults specified
|
|
141
|
+
* in Rust, in the {@link payjoin} crate.
|
|
17
142
|
*/
|
|
18
|
-
create: (partial: Partial<
|
|
143
|
+
create: (partial: Partial<PlainWeight> & Required<Omit<PlainWeight, never>>) => PlainWeight;
|
|
19
144
|
/**
|
|
20
|
-
* Create a frozen instance of {@link
|
|
21
|
-
* in Rust, in the {@link
|
|
145
|
+
* Create a frozen instance of {@link PlainWeight}, with defaults specified
|
|
146
|
+
* in Rust, in the {@link payjoin} crate.
|
|
22
147
|
*/
|
|
23
|
-
new: (partial: Partial<
|
|
148
|
+
new: (partial: Partial<PlainWeight> & Required<Omit<PlainWeight, never>>) => PlainWeight;
|
|
24
149
|
/**
|
|
25
|
-
* Defaults specified in the {@link
|
|
150
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
26
151
|
*/
|
|
27
|
-
defaults: () => Partial<
|
|
152
|
+
defaults: () => Partial<PlainWeight>;
|
|
28
153
|
}>;
|
|
29
154
|
/**
|
|
30
155
|
* Represents data that needs to be transmitted to the receiver.
|
|
@@ -56,16 +181,16 @@ export type Request = {
|
|
|
56
181
|
export declare const Request: Readonly<{
|
|
57
182
|
/**
|
|
58
183
|
* Create a frozen instance of {@link Request}, with defaults specified
|
|
59
|
-
* in Rust, in the {@link
|
|
184
|
+
* in Rust, in the {@link payjoin} crate.
|
|
60
185
|
*/
|
|
61
186
|
create: (partial: Partial<Request> & Required<Omit<Request, never>>) => Request;
|
|
62
187
|
/**
|
|
63
188
|
* Create a frozen instance of {@link Request}, with defaults specified
|
|
64
|
-
* in Rust, in the {@link
|
|
189
|
+
* in Rust, in the {@link payjoin} crate.
|
|
65
190
|
*/
|
|
66
191
|
new: (partial: Partial<Request> & Required<Omit<Request, never>>) => Request;
|
|
67
192
|
/**
|
|
68
|
-
* Defaults specified in the {@link
|
|
193
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
69
194
|
*/
|
|
70
195
|
defaults: () => Partial<Request>;
|
|
71
196
|
}>;
|
|
@@ -79,16 +204,16 @@ export type RequestOhttpContext = {
|
|
|
79
204
|
export declare const RequestOhttpContext: Readonly<{
|
|
80
205
|
/**
|
|
81
206
|
* Create a frozen instance of {@link RequestOhttpContext}, with defaults specified
|
|
82
|
-
* in Rust, in the {@link
|
|
207
|
+
* in Rust, in the {@link payjoin} crate.
|
|
83
208
|
*/
|
|
84
209
|
create: (partial: Partial<RequestOhttpContext> & Required<Omit<RequestOhttpContext, never>>) => RequestOhttpContext;
|
|
85
210
|
/**
|
|
86
211
|
* Create a frozen instance of {@link RequestOhttpContext}, with defaults specified
|
|
87
|
-
* in Rust, in the {@link
|
|
212
|
+
* in Rust, in the {@link payjoin} crate.
|
|
88
213
|
*/
|
|
89
214
|
new: (partial: Partial<RequestOhttpContext> & Required<Omit<RequestOhttpContext, never>>) => RequestOhttpContext;
|
|
90
215
|
/**
|
|
91
|
-
* Defaults specified in the {@link
|
|
216
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
92
217
|
*/
|
|
93
218
|
defaults: () => Partial<RequestOhttpContext>;
|
|
94
219
|
}>;
|
|
@@ -102,16 +227,16 @@ export type RequestResponse = {
|
|
|
102
227
|
export declare const RequestResponse: Readonly<{
|
|
103
228
|
/**
|
|
104
229
|
* Create a frozen instance of {@link RequestResponse}, with defaults specified
|
|
105
|
-
* in Rust, in the {@link
|
|
230
|
+
* in Rust, in the {@link payjoin} crate.
|
|
106
231
|
*/
|
|
107
232
|
create: (partial: Partial<RequestResponse> & Required<Omit<RequestResponse, never>>) => RequestResponse;
|
|
108
233
|
/**
|
|
109
234
|
* Create a frozen instance of {@link RequestResponse}, with defaults specified
|
|
110
|
-
* in Rust, in the {@link
|
|
235
|
+
* in Rust, in the {@link payjoin} crate.
|
|
111
236
|
*/
|
|
112
237
|
new: (partial: Partial<RequestResponse> & Required<Omit<RequestResponse, never>>) => RequestResponse;
|
|
113
238
|
/**
|
|
114
|
-
* Defaults specified in the {@link
|
|
239
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
115
240
|
*/
|
|
116
241
|
defaults: () => Partial<RequestResponse>;
|
|
117
242
|
}>;
|
|
@@ -125,291 +250,1579 @@ export type RequestV1Context = {
|
|
|
125
250
|
export declare const RequestV1Context: Readonly<{
|
|
126
251
|
/**
|
|
127
252
|
* Create a frozen instance of {@link RequestV1Context}, with defaults specified
|
|
128
|
-
* in Rust, in the {@link
|
|
253
|
+
* in Rust, in the {@link payjoin} crate.
|
|
129
254
|
*/
|
|
130
255
|
create: (partial: Partial<RequestV1Context> & Required<Omit<RequestV1Context, never>>) => RequestV1Context;
|
|
131
256
|
/**
|
|
132
257
|
* Create a frozen instance of {@link RequestV1Context}, with defaults specified
|
|
133
|
-
* in Rust, in the {@link
|
|
258
|
+
* in Rust, in the {@link payjoin} crate.
|
|
134
259
|
*/
|
|
135
260
|
new: (partial: Partial<RequestV1Context> & Required<Omit<RequestV1Context, never>>) => RequestV1Context;
|
|
136
261
|
/**
|
|
137
|
-
* Defaults specified in the {@link
|
|
262
|
+
* Defaults specified in the {@link payjoin} crate.
|
|
138
263
|
*/
|
|
139
264
|
defaults: () => Partial<RequestV1Context>;
|
|
140
265
|
}>;
|
|
141
|
-
export
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
InternalError = "InternalError"
|
|
165
|
-
}
|
|
166
|
-
export declare const ForeignError: Readonly<{
|
|
167
|
-
instanceOf: (obj: any) => obj is ForeignError;
|
|
168
|
-
InternalError: {
|
|
169
|
-
new (v0: string): {
|
|
170
|
-
readonly tag: ForeignError_Tags.InternalError;
|
|
171
|
-
readonly inner: Readonly<[string]>;
|
|
266
|
+
export declare enum FfiValidationError_Tags {
|
|
267
|
+
AmountOutOfRange = "AmountOutOfRange",
|
|
268
|
+
ScriptEmpty = "ScriptEmpty",
|
|
269
|
+
ScriptTooLarge = "ScriptTooLarge",
|
|
270
|
+
WitnessItemsTooMany = "WitnessItemsTooMany",
|
|
271
|
+
WitnessItemTooLarge = "WitnessItemTooLarge",
|
|
272
|
+
WitnessTooLarge = "WitnessTooLarge",
|
|
273
|
+
WeightOutOfRange = "WeightOutOfRange",
|
|
274
|
+
FeeRateOutOfRange = "FeeRateOutOfRange",
|
|
275
|
+
ExpirationOutOfRange = "ExpirationOutOfRange"
|
|
276
|
+
}
|
|
277
|
+
export declare const FfiValidationError: Readonly<{
|
|
278
|
+
instanceOf: (obj: any) => obj is FfiValidationError;
|
|
279
|
+
AmountOutOfRange: {
|
|
280
|
+
new (inner: {
|
|
281
|
+
amountSat: bigint;
|
|
282
|
+
maxSat: bigint;
|
|
283
|
+
}): {
|
|
284
|
+
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
285
|
+
readonly inner: Readonly<{
|
|
286
|
+
amountSat: bigint;
|
|
287
|
+
maxSat: bigint;
|
|
288
|
+
}>;
|
|
172
289
|
/**
|
|
173
290
|
* @private
|
|
174
291
|
* This field is private and should not be used, use `tag` instead.
|
|
175
292
|
*/
|
|
176
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
293
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
177
294
|
name: string;
|
|
178
295
|
message: string;
|
|
179
296
|
stack?: string;
|
|
180
297
|
cause?: unknown;
|
|
181
298
|
};
|
|
182
|
-
"new"(
|
|
183
|
-
|
|
184
|
-
|
|
299
|
+
"new"(inner: {
|
|
300
|
+
amountSat: bigint;
|
|
301
|
+
maxSat: bigint;
|
|
302
|
+
}): {
|
|
303
|
+
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
304
|
+
readonly inner: Readonly<{
|
|
305
|
+
amountSat: bigint;
|
|
306
|
+
maxSat: bigint;
|
|
307
|
+
}>;
|
|
185
308
|
/**
|
|
186
309
|
* @private
|
|
187
310
|
* This field is private and should not be used, use `tag` instead.
|
|
188
311
|
*/
|
|
189
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
312
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
190
313
|
name: string;
|
|
191
314
|
message: string;
|
|
192
315
|
stack?: string;
|
|
193
316
|
cause?: unknown;
|
|
194
317
|
};
|
|
195
318
|
instanceOf(obj: any): obj is {
|
|
196
|
-
readonly tag:
|
|
197
|
-
readonly inner: Readonly<
|
|
319
|
+
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
320
|
+
readonly inner: Readonly<{
|
|
321
|
+
amountSat: bigint;
|
|
322
|
+
maxSat: bigint;
|
|
323
|
+
}>;
|
|
198
324
|
/**
|
|
199
325
|
* @private
|
|
200
326
|
* This field is private and should not be used, use `tag` instead.
|
|
201
327
|
*/
|
|
202
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
328
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
329
|
+
name: string;
|
|
330
|
+
message: string;
|
|
331
|
+
stack?: string;
|
|
332
|
+
cause?: unknown;
|
|
333
|
+
};
|
|
334
|
+
hasInner(obj: any): obj is {
|
|
335
|
+
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
336
|
+
readonly inner: Readonly<{
|
|
337
|
+
amountSat: bigint;
|
|
338
|
+
maxSat: bigint;
|
|
339
|
+
}>;
|
|
340
|
+
/**
|
|
341
|
+
* @private
|
|
342
|
+
* This field is private and should not be used, use `tag` instead.
|
|
343
|
+
*/
|
|
344
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
345
|
+
name: string;
|
|
346
|
+
message: string;
|
|
347
|
+
stack?: string;
|
|
348
|
+
cause?: unknown;
|
|
349
|
+
};
|
|
350
|
+
getInner(obj: {
|
|
351
|
+
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
352
|
+
readonly inner: Readonly<{
|
|
353
|
+
amountSat: bigint;
|
|
354
|
+
maxSat: bigint;
|
|
355
|
+
}>;
|
|
356
|
+
/**
|
|
357
|
+
* @private
|
|
358
|
+
* This field is private and should not be used, use `tag` instead.
|
|
359
|
+
*/
|
|
360
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
361
|
+
name: string;
|
|
362
|
+
message: string;
|
|
363
|
+
stack?: string;
|
|
364
|
+
cause?: unknown;
|
|
365
|
+
}): Readonly<{
|
|
366
|
+
amountSat: bigint;
|
|
367
|
+
maxSat: bigint;
|
|
368
|
+
}>;
|
|
369
|
+
};
|
|
370
|
+
ScriptEmpty: {
|
|
371
|
+
new (inner: {
|
|
372
|
+
field: string;
|
|
373
|
+
}): {
|
|
374
|
+
readonly tag: FfiValidationError_Tags.ScriptEmpty;
|
|
375
|
+
readonly inner: Readonly<{
|
|
376
|
+
field: string;
|
|
377
|
+
}>;
|
|
378
|
+
/**
|
|
379
|
+
* @private
|
|
380
|
+
* This field is private and should not be used, use `tag` instead.
|
|
381
|
+
*/
|
|
382
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
383
|
+
name: string;
|
|
384
|
+
message: string;
|
|
385
|
+
stack?: string;
|
|
386
|
+
cause?: unknown;
|
|
387
|
+
};
|
|
388
|
+
"new"(inner: {
|
|
389
|
+
field: string;
|
|
390
|
+
}): {
|
|
391
|
+
readonly tag: FfiValidationError_Tags.ScriptEmpty;
|
|
392
|
+
readonly inner: Readonly<{
|
|
393
|
+
field: string;
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* @private
|
|
397
|
+
* This field is private and should not be used, use `tag` instead.
|
|
398
|
+
*/
|
|
399
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
400
|
+
name: string;
|
|
401
|
+
message: string;
|
|
402
|
+
stack?: string;
|
|
403
|
+
cause?: unknown;
|
|
404
|
+
};
|
|
405
|
+
instanceOf(obj: any): obj is {
|
|
406
|
+
readonly tag: FfiValidationError_Tags.ScriptEmpty;
|
|
407
|
+
readonly inner: Readonly<{
|
|
408
|
+
field: string;
|
|
409
|
+
}>;
|
|
410
|
+
/**
|
|
411
|
+
* @private
|
|
412
|
+
* This field is private and should not be used, use `tag` instead.
|
|
413
|
+
*/
|
|
414
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
415
|
+
name: string;
|
|
416
|
+
message: string;
|
|
417
|
+
stack?: string;
|
|
418
|
+
cause?: unknown;
|
|
419
|
+
};
|
|
420
|
+
hasInner(obj: any): obj is {
|
|
421
|
+
readonly tag: FfiValidationError_Tags.ScriptEmpty;
|
|
422
|
+
readonly inner: Readonly<{
|
|
423
|
+
field: string;
|
|
424
|
+
}>;
|
|
425
|
+
/**
|
|
426
|
+
* @private
|
|
427
|
+
* This field is private and should not be used, use `tag` instead.
|
|
428
|
+
*/
|
|
429
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
430
|
+
name: string;
|
|
431
|
+
message: string;
|
|
432
|
+
stack?: string;
|
|
433
|
+
cause?: unknown;
|
|
434
|
+
};
|
|
435
|
+
getInner(obj: {
|
|
436
|
+
readonly tag: FfiValidationError_Tags.ScriptEmpty;
|
|
437
|
+
readonly inner: Readonly<{
|
|
438
|
+
field: string;
|
|
439
|
+
}>;
|
|
440
|
+
/**
|
|
441
|
+
* @private
|
|
442
|
+
* This field is private and should not be used, use `tag` instead.
|
|
443
|
+
*/
|
|
444
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
445
|
+
name: string;
|
|
446
|
+
message: string;
|
|
447
|
+
stack?: string;
|
|
448
|
+
cause?: unknown;
|
|
449
|
+
}): Readonly<{
|
|
450
|
+
field: string;
|
|
451
|
+
}>;
|
|
452
|
+
};
|
|
453
|
+
ScriptTooLarge: {
|
|
454
|
+
new (inner: {
|
|
455
|
+
field: string;
|
|
456
|
+
len: bigint;
|
|
457
|
+
max: bigint;
|
|
458
|
+
}): {
|
|
459
|
+
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
460
|
+
readonly inner: Readonly<{
|
|
461
|
+
field: string;
|
|
462
|
+
len: bigint;
|
|
463
|
+
max: bigint;
|
|
464
|
+
}>;
|
|
465
|
+
/**
|
|
466
|
+
* @private
|
|
467
|
+
* This field is private and should not be used, use `tag` instead.
|
|
468
|
+
*/
|
|
469
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
470
|
+
name: string;
|
|
471
|
+
message: string;
|
|
472
|
+
stack?: string;
|
|
473
|
+
cause?: unknown;
|
|
474
|
+
};
|
|
475
|
+
"new"(inner: {
|
|
476
|
+
field: string;
|
|
477
|
+
len: bigint;
|
|
478
|
+
max: bigint;
|
|
479
|
+
}): {
|
|
480
|
+
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
481
|
+
readonly inner: Readonly<{
|
|
482
|
+
field: string;
|
|
483
|
+
len: bigint;
|
|
484
|
+
max: bigint;
|
|
485
|
+
}>;
|
|
486
|
+
/**
|
|
487
|
+
* @private
|
|
488
|
+
* This field is private and should not be used, use `tag` instead.
|
|
489
|
+
*/
|
|
490
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
491
|
+
name: string;
|
|
492
|
+
message: string;
|
|
493
|
+
stack?: string;
|
|
494
|
+
cause?: unknown;
|
|
495
|
+
};
|
|
496
|
+
instanceOf(obj: any): obj is {
|
|
497
|
+
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
498
|
+
readonly inner: Readonly<{
|
|
499
|
+
field: string;
|
|
500
|
+
len: bigint;
|
|
501
|
+
max: bigint;
|
|
502
|
+
}>;
|
|
503
|
+
/**
|
|
504
|
+
* @private
|
|
505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
506
|
+
*/
|
|
507
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
508
|
+
name: string;
|
|
509
|
+
message: string;
|
|
510
|
+
stack?: string;
|
|
511
|
+
cause?: unknown;
|
|
512
|
+
};
|
|
513
|
+
hasInner(obj: any): obj is {
|
|
514
|
+
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
515
|
+
readonly inner: Readonly<{
|
|
516
|
+
field: string;
|
|
517
|
+
len: bigint;
|
|
518
|
+
max: bigint;
|
|
519
|
+
}>;
|
|
520
|
+
/**
|
|
521
|
+
* @private
|
|
522
|
+
* This field is private and should not be used, use `tag` instead.
|
|
523
|
+
*/
|
|
524
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
525
|
+
name: string;
|
|
526
|
+
message: string;
|
|
527
|
+
stack?: string;
|
|
528
|
+
cause?: unknown;
|
|
529
|
+
};
|
|
530
|
+
getInner(obj: {
|
|
531
|
+
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
532
|
+
readonly inner: Readonly<{
|
|
533
|
+
field: string;
|
|
534
|
+
len: bigint;
|
|
535
|
+
max: bigint;
|
|
536
|
+
}>;
|
|
537
|
+
/**
|
|
538
|
+
* @private
|
|
539
|
+
* This field is private and should not be used, use `tag` instead.
|
|
540
|
+
*/
|
|
541
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
542
|
+
name: string;
|
|
543
|
+
message: string;
|
|
544
|
+
stack?: string;
|
|
545
|
+
cause?: unknown;
|
|
546
|
+
}): Readonly<{
|
|
547
|
+
field: string;
|
|
548
|
+
len: bigint;
|
|
549
|
+
max: bigint;
|
|
550
|
+
}>;
|
|
551
|
+
};
|
|
552
|
+
WitnessItemsTooMany: {
|
|
553
|
+
new (inner: {
|
|
554
|
+
count: bigint;
|
|
555
|
+
max: bigint;
|
|
556
|
+
}): {
|
|
557
|
+
readonly tag: FfiValidationError_Tags.WitnessItemsTooMany;
|
|
558
|
+
readonly inner: Readonly<{
|
|
559
|
+
count: bigint;
|
|
560
|
+
max: bigint;
|
|
561
|
+
}>;
|
|
562
|
+
/**
|
|
563
|
+
* @private
|
|
564
|
+
* This field is private and should not be used, use `tag` instead.
|
|
565
|
+
*/
|
|
566
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
567
|
+
name: string;
|
|
568
|
+
message: string;
|
|
569
|
+
stack?: string;
|
|
570
|
+
cause?: unknown;
|
|
571
|
+
};
|
|
572
|
+
"new"(inner: {
|
|
573
|
+
count: bigint;
|
|
574
|
+
max: bigint;
|
|
575
|
+
}): {
|
|
576
|
+
readonly tag: FfiValidationError_Tags.WitnessItemsTooMany;
|
|
577
|
+
readonly inner: Readonly<{
|
|
578
|
+
count: bigint;
|
|
579
|
+
max: bigint;
|
|
580
|
+
}>;
|
|
581
|
+
/**
|
|
582
|
+
* @private
|
|
583
|
+
* This field is private and should not be used, use `tag` instead.
|
|
584
|
+
*/
|
|
585
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
586
|
+
name: string;
|
|
587
|
+
message: string;
|
|
588
|
+
stack?: string;
|
|
589
|
+
cause?: unknown;
|
|
590
|
+
};
|
|
591
|
+
instanceOf(obj: any): obj is {
|
|
592
|
+
readonly tag: FfiValidationError_Tags.WitnessItemsTooMany;
|
|
593
|
+
readonly inner: Readonly<{
|
|
594
|
+
count: bigint;
|
|
595
|
+
max: bigint;
|
|
596
|
+
}>;
|
|
597
|
+
/**
|
|
598
|
+
* @private
|
|
599
|
+
* This field is private and should not be used, use `tag` instead.
|
|
600
|
+
*/
|
|
601
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
602
|
+
name: string;
|
|
603
|
+
message: string;
|
|
604
|
+
stack?: string;
|
|
605
|
+
cause?: unknown;
|
|
606
|
+
};
|
|
607
|
+
hasInner(obj: any): obj is {
|
|
608
|
+
readonly tag: FfiValidationError_Tags.WitnessItemsTooMany;
|
|
609
|
+
readonly inner: Readonly<{
|
|
610
|
+
count: bigint;
|
|
611
|
+
max: bigint;
|
|
612
|
+
}>;
|
|
613
|
+
/**
|
|
614
|
+
* @private
|
|
615
|
+
* This field is private and should not be used, use `tag` instead.
|
|
616
|
+
*/
|
|
617
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
618
|
+
name: string;
|
|
619
|
+
message: string;
|
|
620
|
+
stack?: string;
|
|
621
|
+
cause?: unknown;
|
|
622
|
+
};
|
|
623
|
+
getInner(obj: {
|
|
624
|
+
readonly tag: FfiValidationError_Tags.WitnessItemsTooMany;
|
|
625
|
+
readonly inner: Readonly<{
|
|
626
|
+
count: bigint;
|
|
627
|
+
max: bigint;
|
|
628
|
+
}>;
|
|
629
|
+
/**
|
|
630
|
+
* @private
|
|
631
|
+
* This field is private and should not be used, use `tag` instead.
|
|
632
|
+
*/
|
|
633
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
634
|
+
name: string;
|
|
635
|
+
message: string;
|
|
636
|
+
stack?: string;
|
|
637
|
+
cause?: unknown;
|
|
638
|
+
}): Readonly<{
|
|
639
|
+
count: bigint;
|
|
640
|
+
max: bigint;
|
|
641
|
+
}>;
|
|
642
|
+
};
|
|
643
|
+
WitnessItemTooLarge: {
|
|
644
|
+
new (inner: {
|
|
645
|
+
index: bigint;
|
|
646
|
+
len: bigint;
|
|
647
|
+
max: bigint;
|
|
648
|
+
}): {
|
|
649
|
+
readonly tag: FfiValidationError_Tags.WitnessItemTooLarge;
|
|
650
|
+
readonly inner: Readonly<{
|
|
651
|
+
index: bigint;
|
|
652
|
+
len: bigint;
|
|
653
|
+
max: bigint;
|
|
654
|
+
}>;
|
|
655
|
+
/**
|
|
656
|
+
* @private
|
|
657
|
+
* This field is private and should not be used, use `tag` instead.
|
|
658
|
+
*/
|
|
659
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
660
|
+
name: string;
|
|
661
|
+
message: string;
|
|
662
|
+
stack?: string;
|
|
663
|
+
cause?: unknown;
|
|
664
|
+
};
|
|
665
|
+
"new"(inner: {
|
|
666
|
+
index: bigint;
|
|
667
|
+
len: bigint;
|
|
668
|
+
max: bigint;
|
|
669
|
+
}): {
|
|
670
|
+
readonly tag: FfiValidationError_Tags.WitnessItemTooLarge;
|
|
671
|
+
readonly inner: Readonly<{
|
|
672
|
+
index: bigint;
|
|
673
|
+
len: bigint;
|
|
674
|
+
max: bigint;
|
|
675
|
+
}>;
|
|
676
|
+
/**
|
|
677
|
+
* @private
|
|
678
|
+
* This field is private and should not be used, use `tag` instead.
|
|
679
|
+
*/
|
|
680
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
681
|
+
name: string;
|
|
682
|
+
message: string;
|
|
683
|
+
stack?: string;
|
|
684
|
+
cause?: unknown;
|
|
685
|
+
};
|
|
686
|
+
instanceOf(obj: any): obj is {
|
|
687
|
+
readonly tag: FfiValidationError_Tags.WitnessItemTooLarge;
|
|
688
|
+
readonly inner: Readonly<{
|
|
689
|
+
index: bigint;
|
|
690
|
+
len: bigint;
|
|
691
|
+
max: bigint;
|
|
692
|
+
}>;
|
|
693
|
+
/**
|
|
694
|
+
* @private
|
|
695
|
+
* This field is private and should not be used, use `tag` instead.
|
|
696
|
+
*/
|
|
697
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
698
|
+
name: string;
|
|
699
|
+
message: string;
|
|
700
|
+
stack?: string;
|
|
701
|
+
cause?: unknown;
|
|
702
|
+
};
|
|
703
|
+
hasInner(obj: any): obj is {
|
|
704
|
+
readonly tag: FfiValidationError_Tags.WitnessItemTooLarge;
|
|
705
|
+
readonly inner: Readonly<{
|
|
706
|
+
index: bigint;
|
|
707
|
+
len: bigint;
|
|
708
|
+
max: bigint;
|
|
709
|
+
}>;
|
|
710
|
+
/**
|
|
711
|
+
* @private
|
|
712
|
+
* This field is private and should not be used, use `tag` instead.
|
|
713
|
+
*/
|
|
714
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
715
|
+
name: string;
|
|
716
|
+
message: string;
|
|
717
|
+
stack?: string;
|
|
718
|
+
cause?: unknown;
|
|
719
|
+
};
|
|
720
|
+
getInner(obj: {
|
|
721
|
+
readonly tag: FfiValidationError_Tags.WitnessItemTooLarge;
|
|
722
|
+
readonly inner: Readonly<{
|
|
723
|
+
index: bigint;
|
|
724
|
+
len: bigint;
|
|
725
|
+
max: bigint;
|
|
726
|
+
}>;
|
|
727
|
+
/**
|
|
728
|
+
* @private
|
|
729
|
+
* This field is private and should not be used, use `tag` instead.
|
|
730
|
+
*/
|
|
731
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
732
|
+
name: string;
|
|
733
|
+
message: string;
|
|
734
|
+
stack?: string;
|
|
735
|
+
cause?: unknown;
|
|
736
|
+
}): Readonly<{
|
|
737
|
+
index: bigint;
|
|
738
|
+
len: bigint;
|
|
739
|
+
max: bigint;
|
|
740
|
+
}>;
|
|
741
|
+
};
|
|
742
|
+
WitnessTooLarge: {
|
|
743
|
+
new (inner: {
|
|
744
|
+
len: bigint;
|
|
745
|
+
max: bigint;
|
|
746
|
+
}): {
|
|
747
|
+
readonly tag: FfiValidationError_Tags.WitnessTooLarge;
|
|
748
|
+
readonly inner: Readonly<{
|
|
749
|
+
len: bigint;
|
|
750
|
+
max: bigint;
|
|
751
|
+
}>;
|
|
752
|
+
/**
|
|
753
|
+
* @private
|
|
754
|
+
* This field is private and should not be used, use `tag` instead.
|
|
755
|
+
*/
|
|
756
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
757
|
+
name: string;
|
|
758
|
+
message: string;
|
|
759
|
+
stack?: string;
|
|
760
|
+
cause?: unknown;
|
|
761
|
+
};
|
|
762
|
+
"new"(inner: {
|
|
763
|
+
len: bigint;
|
|
764
|
+
max: bigint;
|
|
765
|
+
}): {
|
|
766
|
+
readonly tag: FfiValidationError_Tags.WitnessTooLarge;
|
|
767
|
+
readonly inner: Readonly<{
|
|
768
|
+
len: bigint;
|
|
769
|
+
max: bigint;
|
|
770
|
+
}>;
|
|
771
|
+
/**
|
|
772
|
+
* @private
|
|
773
|
+
* This field is private and should not be used, use `tag` instead.
|
|
774
|
+
*/
|
|
775
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
776
|
+
name: string;
|
|
777
|
+
message: string;
|
|
778
|
+
stack?: string;
|
|
779
|
+
cause?: unknown;
|
|
780
|
+
};
|
|
781
|
+
instanceOf(obj: any): obj is {
|
|
782
|
+
readonly tag: FfiValidationError_Tags.WitnessTooLarge;
|
|
783
|
+
readonly inner: Readonly<{
|
|
784
|
+
len: bigint;
|
|
785
|
+
max: bigint;
|
|
786
|
+
}>;
|
|
787
|
+
/**
|
|
788
|
+
* @private
|
|
789
|
+
* This field is private and should not be used, use `tag` instead.
|
|
790
|
+
*/
|
|
791
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
792
|
+
name: string;
|
|
793
|
+
message: string;
|
|
794
|
+
stack?: string;
|
|
795
|
+
cause?: unknown;
|
|
796
|
+
};
|
|
797
|
+
hasInner(obj: any): obj is {
|
|
798
|
+
readonly tag: FfiValidationError_Tags.WitnessTooLarge;
|
|
799
|
+
readonly inner: Readonly<{
|
|
800
|
+
len: bigint;
|
|
801
|
+
max: bigint;
|
|
802
|
+
}>;
|
|
803
|
+
/**
|
|
804
|
+
* @private
|
|
805
|
+
* This field is private and should not be used, use `tag` instead.
|
|
806
|
+
*/
|
|
807
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
808
|
+
name: string;
|
|
809
|
+
message: string;
|
|
810
|
+
stack?: string;
|
|
811
|
+
cause?: unknown;
|
|
812
|
+
};
|
|
813
|
+
getInner(obj: {
|
|
814
|
+
readonly tag: FfiValidationError_Tags.WitnessTooLarge;
|
|
815
|
+
readonly inner: Readonly<{
|
|
816
|
+
len: bigint;
|
|
817
|
+
max: bigint;
|
|
818
|
+
}>;
|
|
819
|
+
/**
|
|
820
|
+
* @private
|
|
821
|
+
* This field is private and should not be used, use `tag` instead.
|
|
822
|
+
*/
|
|
823
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
824
|
+
name: string;
|
|
825
|
+
message: string;
|
|
826
|
+
stack?: string;
|
|
827
|
+
cause?: unknown;
|
|
828
|
+
}): Readonly<{
|
|
829
|
+
len: bigint;
|
|
830
|
+
max: bigint;
|
|
831
|
+
}>;
|
|
832
|
+
};
|
|
833
|
+
WeightOutOfRange: {
|
|
834
|
+
new (inner: {
|
|
835
|
+
weightUnits: bigint;
|
|
836
|
+
maxWu: bigint;
|
|
837
|
+
}): {
|
|
838
|
+
readonly tag: FfiValidationError_Tags.WeightOutOfRange;
|
|
839
|
+
readonly inner: Readonly<{
|
|
840
|
+
weightUnits: bigint;
|
|
841
|
+
maxWu: bigint;
|
|
842
|
+
}>;
|
|
843
|
+
/**
|
|
844
|
+
* @private
|
|
845
|
+
* This field is private and should not be used, use `tag` instead.
|
|
846
|
+
*/
|
|
847
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
848
|
+
name: string;
|
|
849
|
+
message: string;
|
|
850
|
+
stack?: string;
|
|
851
|
+
cause?: unknown;
|
|
852
|
+
};
|
|
853
|
+
"new"(inner: {
|
|
854
|
+
weightUnits: bigint;
|
|
855
|
+
maxWu: bigint;
|
|
856
|
+
}): {
|
|
857
|
+
readonly tag: FfiValidationError_Tags.WeightOutOfRange;
|
|
858
|
+
readonly inner: Readonly<{
|
|
859
|
+
weightUnits: bigint;
|
|
860
|
+
maxWu: bigint;
|
|
861
|
+
}>;
|
|
862
|
+
/**
|
|
863
|
+
* @private
|
|
864
|
+
* This field is private and should not be used, use `tag` instead.
|
|
865
|
+
*/
|
|
866
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
867
|
+
name: string;
|
|
868
|
+
message: string;
|
|
869
|
+
stack?: string;
|
|
870
|
+
cause?: unknown;
|
|
871
|
+
};
|
|
872
|
+
instanceOf(obj: any): obj is {
|
|
873
|
+
readonly tag: FfiValidationError_Tags.WeightOutOfRange;
|
|
874
|
+
readonly inner: Readonly<{
|
|
875
|
+
weightUnits: bigint;
|
|
876
|
+
maxWu: bigint;
|
|
877
|
+
}>;
|
|
878
|
+
/**
|
|
879
|
+
* @private
|
|
880
|
+
* This field is private and should not be used, use `tag` instead.
|
|
881
|
+
*/
|
|
882
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
883
|
+
name: string;
|
|
884
|
+
message: string;
|
|
885
|
+
stack?: string;
|
|
886
|
+
cause?: unknown;
|
|
887
|
+
};
|
|
888
|
+
hasInner(obj: any): obj is {
|
|
889
|
+
readonly tag: FfiValidationError_Tags.WeightOutOfRange;
|
|
890
|
+
readonly inner: Readonly<{
|
|
891
|
+
weightUnits: bigint;
|
|
892
|
+
maxWu: bigint;
|
|
893
|
+
}>;
|
|
894
|
+
/**
|
|
895
|
+
* @private
|
|
896
|
+
* This field is private and should not be used, use `tag` instead.
|
|
897
|
+
*/
|
|
898
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
899
|
+
name: string;
|
|
900
|
+
message: string;
|
|
901
|
+
stack?: string;
|
|
902
|
+
cause?: unknown;
|
|
903
|
+
};
|
|
904
|
+
getInner(obj: {
|
|
905
|
+
readonly tag: FfiValidationError_Tags.WeightOutOfRange;
|
|
906
|
+
readonly inner: Readonly<{
|
|
907
|
+
weightUnits: bigint;
|
|
908
|
+
maxWu: bigint;
|
|
909
|
+
}>;
|
|
910
|
+
/**
|
|
911
|
+
* @private
|
|
912
|
+
* This field is private and should not be used, use `tag` instead.
|
|
913
|
+
*/
|
|
914
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
915
|
+
name: string;
|
|
916
|
+
message: string;
|
|
917
|
+
stack?: string;
|
|
918
|
+
cause?: unknown;
|
|
919
|
+
}): Readonly<{
|
|
920
|
+
weightUnits: bigint;
|
|
921
|
+
maxWu: bigint;
|
|
922
|
+
}>;
|
|
923
|
+
};
|
|
924
|
+
FeeRateOutOfRange: {
|
|
925
|
+
new (inner: {
|
|
926
|
+
value: bigint;
|
|
927
|
+
unit: string;
|
|
928
|
+
}): {
|
|
929
|
+
readonly tag: FfiValidationError_Tags.FeeRateOutOfRange;
|
|
930
|
+
readonly inner: Readonly<{
|
|
931
|
+
value: bigint;
|
|
932
|
+
unit: string;
|
|
933
|
+
}>;
|
|
934
|
+
/**
|
|
935
|
+
* @private
|
|
936
|
+
* This field is private and should not be used, use `tag` instead.
|
|
937
|
+
*/
|
|
938
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
939
|
+
name: string;
|
|
940
|
+
message: string;
|
|
941
|
+
stack?: string;
|
|
942
|
+
cause?: unknown;
|
|
943
|
+
};
|
|
944
|
+
"new"(inner: {
|
|
945
|
+
value: bigint;
|
|
946
|
+
unit: string;
|
|
947
|
+
}): {
|
|
948
|
+
readonly tag: FfiValidationError_Tags.FeeRateOutOfRange;
|
|
949
|
+
readonly inner: Readonly<{
|
|
950
|
+
value: bigint;
|
|
951
|
+
unit: string;
|
|
952
|
+
}>;
|
|
953
|
+
/**
|
|
954
|
+
* @private
|
|
955
|
+
* This field is private and should not be used, use `tag` instead.
|
|
956
|
+
*/
|
|
957
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
958
|
+
name: string;
|
|
959
|
+
message: string;
|
|
960
|
+
stack?: string;
|
|
961
|
+
cause?: unknown;
|
|
962
|
+
};
|
|
963
|
+
instanceOf(obj: any): obj is {
|
|
964
|
+
readonly tag: FfiValidationError_Tags.FeeRateOutOfRange;
|
|
965
|
+
readonly inner: Readonly<{
|
|
966
|
+
value: bigint;
|
|
967
|
+
unit: string;
|
|
968
|
+
}>;
|
|
969
|
+
/**
|
|
970
|
+
* @private
|
|
971
|
+
* This field is private and should not be used, use `tag` instead.
|
|
972
|
+
*/
|
|
973
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
974
|
+
name: string;
|
|
975
|
+
message: string;
|
|
976
|
+
stack?: string;
|
|
977
|
+
cause?: unknown;
|
|
978
|
+
};
|
|
979
|
+
hasInner(obj: any): obj is {
|
|
980
|
+
readonly tag: FfiValidationError_Tags.FeeRateOutOfRange;
|
|
981
|
+
readonly inner: Readonly<{
|
|
982
|
+
value: bigint;
|
|
983
|
+
unit: string;
|
|
984
|
+
}>;
|
|
985
|
+
/**
|
|
986
|
+
* @private
|
|
987
|
+
* This field is private and should not be used, use `tag` instead.
|
|
988
|
+
*/
|
|
989
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
990
|
+
name: string;
|
|
991
|
+
message: string;
|
|
992
|
+
stack?: string;
|
|
993
|
+
cause?: unknown;
|
|
994
|
+
};
|
|
995
|
+
getInner(obj: {
|
|
996
|
+
readonly tag: FfiValidationError_Tags.FeeRateOutOfRange;
|
|
997
|
+
readonly inner: Readonly<{
|
|
998
|
+
value: bigint;
|
|
999
|
+
unit: string;
|
|
1000
|
+
}>;
|
|
1001
|
+
/**
|
|
1002
|
+
* @private
|
|
1003
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1004
|
+
*/
|
|
1005
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1006
|
+
name: string;
|
|
1007
|
+
message: string;
|
|
1008
|
+
stack?: string;
|
|
1009
|
+
cause?: unknown;
|
|
1010
|
+
}): Readonly<{
|
|
1011
|
+
value: bigint;
|
|
1012
|
+
unit: string;
|
|
1013
|
+
}>;
|
|
1014
|
+
};
|
|
1015
|
+
ExpirationOutOfRange: {
|
|
1016
|
+
new (inner: {
|
|
1017
|
+
seconds: bigint;
|
|
1018
|
+
max: bigint;
|
|
1019
|
+
}): {
|
|
1020
|
+
readonly tag: FfiValidationError_Tags.ExpirationOutOfRange;
|
|
1021
|
+
readonly inner: Readonly<{
|
|
1022
|
+
seconds: bigint;
|
|
1023
|
+
max: bigint;
|
|
1024
|
+
}>;
|
|
1025
|
+
/**
|
|
1026
|
+
* @private
|
|
1027
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1028
|
+
*/
|
|
1029
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1030
|
+
name: string;
|
|
1031
|
+
message: string;
|
|
1032
|
+
stack?: string;
|
|
1033
|
+
cause?: unknown;
|
|
1034
|
+
};
|
|
1035
|
+
"new"(inner: {
|
|
1036
|
+
seconds: bigint;
|
|
1037
|
+
max: bigint;
|
|
1038
|
+
}): {
|
|
1039
|
+
readonly tag: FfiValidationError_Tags.ExpirationOutOfRange;
|
|
1040
|
+
readonly inner: Readonly<{
|
|
1041
|
+
seconds: bigint;
|
|
1042
|
+
max: bigint;
|
|
1043
|
+
}>;
|
|
1044
|
+
/**
|
|
1045
|
+
* @private
|
|
1046
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1047
|
+
*/
|
|
1048
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1049
|
+
name: string;
|
|
1050
|
+
message: string;
|
|
1051
|
+
stack?: string;
|
|
1052
|
+
cause?: unknown;
|
|
1053
|
+
};
|
|
1054
|
+
instanceOf(obj: any): obj is {
|
|
1055
|
+
readonly tag: FfiValidationError_Tags.ExpirationOutOfRange;
|
|
1056
|
+
readonly inner: Readonly<{
|
|
1057
|
+
seconds: bigint;
|
|
1058
|
+
max: bigint;
|
|
1059
|
+
}>;
|
|
1060
|
+
/**
|
|
1061
|
+
* @private
|
|
1062
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1063
|
+
*/
|
|
1064
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1065
|
+
name: string;
|
|
1066
|
+
message: string;
|
|
1067
|
+
stack?: string;
|
|
1068
|
+
cause?: unknown;
|
|
1069
|
+
};
|
|
1070
|
+
hasInner(obj: any): obj is {
|
|
1071
|
+
readonly tag: FfiValidationError_Tags.ExpirationOutOfRange;
|
|
1072
|
+
readonly inner: Readonly<{
|
|
1073
|
+
seconds: bigint;
|
|
1074
|
+
max: bigint;
|
|
1075
|
+
}>;
|
|
1076
|
+
/**
|
|
1077
|
+
* @private
|
|
1078
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1081
|
+
name: string;
|
|
1082
|
+
message: string;
|
|
1083
|
+
stack?: string;
|
|
1084
|
+
cause?: unknown;
|
|
1085
|
+
};
|
|
1086
|
+
getInner(obj: {
|
|
1087
|
+
readonly tag: FfiValidationError_Tags.ExpirationOutOfRange;
|
|
1088
|
+
readonly inner: Readonly<{
|
|
1089
|
+
seconds: bigint;
|
|
1090
|
+
max: bigint;
|
|
1091
|
+
}>;
|
|
1092
|
+
/**
|
|
1093
|
+
* @private
|
|
1094
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1095
|
+
*/
|
|
1096
|
+
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
1097
|
+
name: string;
|
|
1098
|
+
message: string;
|
|
1099
|
+
stack?: string;
|
|
1100
|
+
cause?: unknown;
|
|
1101
|
+
}): Readonly<{
|
|
1102
|
+
seconds: bigint;
|
|
1103
|
+
max: bigint;
|
|
1104
|
+
}>;
|
|
1105
|
+
};
|
|
1106
|
+
}>;
|
|
1107
|
+
export type FfiValidationError = InstanceType<(typeof FfiValidationError)[keyof Omit<typeof FfiValidationError, "instanceOf">]>;
|
|
1108
|
+
export declare enum ForeignError_Tags {
|
|
1109
|
+
InternalError = "InternalError"
|
|
1110
|
+
}
|
|
1111
|
+
export declare const ForeignError: Readonly<{
|
|
1112
|
+
instanceOf: (obj: any) => obj is ForeignError;
|
|
1113
|
+
InternalError: {
|
|
1114
|
+
new (v0: string): {
|
|
1115
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
1116
|
+
readonly inner: Readonly<[string]>;
|
|
1117
|
+
/**
|
|
1118
|
+
* @private
|
|
1119
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1120
|
+
*/
|
|
1121
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
1122
|
+
name: string;
|
|
1123
|
+
message: string;
|
|
1124
|
+
stack?: string;
|
|
1125
|
+
cause?: unknown;
|
|
1126
|
+
};
|
|
1127
|
+
"new"(v0: string): {
|
|
1128
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
1129
|
+
readonly inner: Readonly<[string]>;
|
|
1130
|
+
/**
|
|
1131
|
+
* @private
|
|
1132
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1133
|
+
*/
|
|
1134
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
1135
|
+
name: string;
|
|
1136
|
+
message: string;
|
|
1137
|
+
stack?: string;
|
|
1138
|
+
cause?: unknown;
|
|
1139
|
+
};
|
|
1140
|
+
instanceOf(obj: any): obj is {
|
|
1141
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
1142
|
+
readonly inner: Readonly<[string]>;
|
|
1143
|
+
/**
|
|
1144
|
+
* @private
|
|
1145
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1146
|
+
*/
|
|
1147
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
1148
|
+
name: string;
|
|
1149
|
+
message: string;
|
|
1150
|
+
stack?: string;
|
|
1151
|
+
cause?: unknown;
|
|
1152
|
+
};
|
|
1153
|
+
hasInner(obj: any): obj is {
|
|
1154
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
1155
|
+
readonly inner: Readonly<[string]>;
|
|
1156
|
+
/**
|
|
1157
|
+
* @private
|
|
1158
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1159
|
+
*/
|
|
1160
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
1161
|
+
name: string;
|
|
1162
|
+
message: string;
|
|
1163
|
+
stack?: string;
|
|
1164
|
+
cause?: unknown;
|
|
1165
|
+
};
|
|
1166
|
+
getInner(obj: {
|
|
1167
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
1168
|
+
readonly inner: Readonly<[string]>;
|
|
1169
|
+
/**
|
|
1170
|
+
* @private
|
|
1171
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1172
|
+
*/
|
|
1173
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
1174
|
+
name: string;
|
|
1175
|
+
message: string;
|
|
1176
|
+
stack?: string;
|
|
1177
|
+
cause?: unknown;
|
|
1178
|
+
}): Readonly<[string]>;
|
|
1179
|
+
};
|
|
1180
|
+
}>;
|
|
1181
|
+
export type ForeignError = InstanceType<(typeof ForeignError)[keyof Omit<typeof ForeignError, "instanceOf">]>;
|
|
1182
|
+
export declare enum InitializedTransitionOutcome_Tags {
|
|
1183
|
+
Progress = "Progress",
|
|
1184
|
+
Stasis = "Stasis"
|
|
1185
|
+
}
|
|
1186
|
+
export declare const InitializedTransitionOutcome: Readonly<{
|
|
1187
|
+
instanceOf: (obj: any) => obj is InitializedTransitionOutcome;
|
|
1188
|
+
Progress: {
|
|
1189
|
+
new (inner: {
|
|
1190
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
1191
|
+
}): {
|
|
1192
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
1193
|
+
readonly inner: Readonly<{
|
|
1194
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
1195
|
+
}>;
|
|
1196
|
+
/**
|
|
1197
|
+
* @private
|
|
1198
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1201
|
+
};
|
|
1202
|
+
"new"(inner: {
|
|
1203
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
1204
|
+
}): {
|
|
1205
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
1206
|
+
readonly inner: Readonly<{
|
|
1207
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
1208
|
+
}>;
|
|
1209
|
+
/**
|
|
1210
|
+
* @private
|
|
1211
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1212
|
+
*/
|
|
1213
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1214
|
+
};
|
|
1215
|
+
instanceOf(obj: any): obj is {
|
|
1216
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
1217
|
+
readonly inner: Readonly<{
|
|
1218
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
1219
|
+
}>;
|
|
1220
|
+
/**
|
|
1221
|
+
* @private
|
|
1222
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1223
|
+
*/
|
|
1224
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
Stasis: {
|
|
1228
|
+
new (inner: {
|
|
1229
|
+
inner: InitializedInterface;
|
|
1230
|
+
}): {
|
|
1231
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
1232
|
+
readonly inner: Readonly<{
|
|
1233
|
+
inner: InitializedInterface;
|
|
1234
|
+
}>;
|
|
1235
|
+
/**
|
|
1236
|
+
* @private
|
|
1237
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1238
|
+
*/
|
|
1239
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1240
|
+
};
|
|
1241
|
+
"new"(inner: {
|
|
1242
|
+
inner: InitializedInterface;
|
|
1243
|
+
}): {
|
|
1244
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
1245
|
+
readonly inner: Readonly<{
|
|
1246
|
+
inner: InitializedInterface;
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* @private
|
|
1250
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1251
|
+
*/
|
|
1252
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1253
|
+
};
|
|
1254
|
+
instanceOf(obj: any): obj is {
|
|
1255
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
1256
|
+
readonly inner: Readonly<{
|
|
1257
|
+
inner: InitializedInterface;
|
|
1258
|
+
}>;
|
|
1259
|
+
/**
|
|
1260
|
+
* @private
|
|
1261
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1262
|
+
*/
|
|
1263
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
}>;
|
|
1267
|
+
export type InitializedTransitionOutcome = InstanceType<(typeof InitializedTransitionOutcome)[keyof Omit<typeof InitializedTransitionOutcome, "instanceOf">]>;
|
|
1268
|
+
export declare enum InputPairError_Tags {
|
|
1269
|
+
InvalidOutPoint = "InvalidOutPoint",
|
|
1270
|
+
InvalidPsbtInput = "InvalidPsbtInput",
|
|
1271
|
+
FfiValidation = "FfiValidation"
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Error constructing an [`InputPair`](crate::InputPair).
|
|
1275
|
+
*/
|
|
1276
|
+
export declare const InputPairError: Readonly<{
|
|
1277
|
+
instanceOf: (obj: any) => obj is InputPairError;
|
|
1278
|
+
InvalidOutPoint: {
|
|
1279
|
+
new (inner: {
|
|
1280
|
+
txid: string;
|
|
1281
|
+
vout: number;
|
|
1282
|
+
}): {
|
|
1283
|
+
readonly tag: InputPairError_Tags.InvalidOutPoint;
|
|
1284
|
+
readonly inner: Readonly<{
|
|
1285
|
+
txid: string;
|
|
1286
|
+
vout: number;
|
|
1287
|
+
}>;
|
|
1288
|
+
/**
|
|
1289
|
+
* @private
|
|
1290
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1291
|
+
*/
|
|
1292
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1293
|
+
name: string;
|
|
1294
|
+
message: string;
|
|
1295
|
+
stack?: string;
|
|
1296
|
+
cause?: unknown;
|
|
1297
|
+
};
|
|
1298
|
+
"new"(inner: {
|
|
1299
|
+
txid: string;
|
|
1300
|
+
vout: number;
|
|
1301
|
+
}): {
|
|
1302
|
+
readonly tag: InputPairError_Tags.InvalidOutPoint;
|
|
1303
|
+
readonly inner: Readonly<{
|
|
1304
|
+
txid: string;
|
|
1305
|
+
vout: number;
|
|
1306
|
+
}>;
|
|
1307
|
+
/**
|
|
1308
|
+
* @private
|
|
1309
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1310
|
+
*/
|
|
1311
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1312
|
+
name: string;
|
|
1313
|
+
message: string;
|
|
1314
|
+
stack?: string;
|
|
1315
|
+
cause?: unknown;
|
|
1316
|
+
};
|
|
1317
|
+
instanceOf(obj: any): obj is {
|
|
1318
|
+
readonly tag: InputPairError_Tags.InvalidOutPoint;
|
|
1319
|
+
readonly inner: Readonly<{
|
|
1320
|
+
txid: string;
|
|
1321
|
+
vout: number;
|
|
1322
|
+
}>;
|
|
1323
|
+
/**
|
|
1324
|
+
* @private
|
|
1325
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1326
|
+
*/
|
|
1327
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1328
|
+
name: string;
|
|
1329
|
+
message: string;
|
|
1330
|
+
stack?: string;
|
|
1331
|
+
cause?: unknown;
|
|
1332
|
+
};
|
|
1333
|
+
hasInner(obj: any): obj is {
|
|
1334
|
+
readonly tag: InputPairError_Tags.InvalidOutPoint;
|
|
1335
|
+
readonly inner: Readonly<{
|
|
1336
|
+
txid: string;
|
|
1337
|
+
vout: number;
|
|
1338
|
+
}>;
|
|
1339
|
+
/**
|
|
1340
|
+
* @private
|
|
1341
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1342
|
+
*/
|
|
1343
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1344
|
+
name: string;
|
|
1345
|
+
message: string;
|
|
1346
|
+
stack?: string;
|
|
1347
|
+
cause?: unknown;
|
|
1348
|
+
};
|
|
1349
|
+
getInner(obj: {
|
|
1350
|
+
readonly tag: InputPairError_Tags.InvalidOutPoint;
|
|
1351
|
+
readonly inner: Readonly<{
|
|
1352
|
+
txid: string;
|
|
1353
|
+
vout: number;
|
|
1354
|
+
}>;
|
|
1355
|
+
/**
|
|
1356
|
+
* @private
|
|
1357
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1358
|
+
*/
|
|
1359
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1360
|
+
name: string;
|
|
1361
|
+
message: string;
|
|
1362
|
+
stack?: string;
|
|
1363
|
+
cause?: unknown;
|
|
1364
|
+
}): Readonly<{
|
|
1365
|
+
txid: string;
|
|
1366
|
+
vout: number;
|
|
1367
|
+
}>;
|
|
1368
|
+
};
|
|
1369
|
+
InvalidPsbtInput: {
|
|
1370
|
+
new (v0: PsbtInputErrorInterface): {
|
|
1371
|
+
readonly tag: InputPairError_Tags.InvalidPsbtInput;
|
|
1372
|
+
readonly inner: Readonly<[PsbtInputErrorInterface]>;
|
|
1373
|
+
/**
|
|
1374
|
+
* @private
|
|
1375
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1376
|
+
*/
|
|
1377
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1378
|
+
name: string;
|
|
1379
|
+
message: string;
|
|
1380
|
+
stack?: string;
|
|
1381
|
+
cause?: unknown;
|
|
1382
|
+
};
|
|
1383
|
+
"new"(v0: PsbtInputErrorInterface): {
|
|
1384
|
+
readonly tag: InputPairError_Tags.InvalidPsbtInput;
|
|
1385
|
+
readonly inner: Readonly<[PsbtInputErrorInterface]>;
|
|
1386
|
+
/**
|
|
1387
|
+
* @private
|
|
1388
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1389
|
+
*/
|
|
1390
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1391
|
+
name: string;
|
|
1392
|
+
message: string;
|
|
1393
|
+
stack?: string;
|
|
1394
|
+
cause?: unknown;
|
|
1395
|
+
};
|
|
1396
|
+
instanceOf(obj: any): obj is {
|
|
1397
|
+
readonly tag: InputPairError_Tags.InvalidPsbtInput;
|
|
1398
|
+
readonly inner: Readonly<[PsbtInputErrorInterface]>;
|
|
1399
|
+
/**
|
|
1400
|
+
* @private
|
|
1401
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1402
|
+
*/
|
|
1403
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1404
|
+
name: string;
|
|
1405
|
+
message: string;
|
|
1406
|
+
stack?: string;
|
|
1407
|
+
cause?: unknown;
|
|
1408
|
+
};
|
|
1409
|
+
hasInner(obj: any): obj is {
|
|
1410
|
+
readonly tag: InputPairError_Tags.InvalidPsbtInput;
|
|
1411
|
+
readonly inner: Readonly<[PsbtInputErrorInterface]>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @private
|
|
1414
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1415
|
+
*/
|
|
1416
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1417
|
+
name: string;
|
|
1418
|
+
message: string;
|
|
1419
|
+
stack?: string;
|
|
1420
|
+
cause?: unknown;
|
|
1421
|
+
};
|
|
1422
|
+
getInner(obj: {
|
|
1423
|
+
readonly tag: InputPairError_Tags.InvalidPsbtInput;
|
|
1424
|
+
readonly inner: Readonly<[PsbtInputErrorInterface]>;
|
|
1425
|
+
/**
|
|
1426
|
+
* @private
|
|
1427
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1428
|
+
*/
|
|
1429
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1430
|
+
name: string;
|
|
1431
|
+
message: string;
|
|
1432
|
+
stack?: string;
|
|
1433
|
+
cause?: unknown;
|
|
1434
|
+
}): Readonly<[PsbtInputErrorInterface]>;
|
|
1435
|
+
};
|
|
1436
|
+
FfiValidation: {
|
|
1437
|
+
new (v0: FfiValidationError): {
|
|
1438
|
+
readonly tag: InputPairError_Tags.FfiValidation;
|
|
1439
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1440
|
+
/**
|
|
1441
|
+
* @private
|
|
1442
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1443
|
+
*/
|
|
1444
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1445
|
+
name: string;
|
|
1446
|
+
message: string;
|
|
1447
|
+
stack?: string;
|
|
1448
|
+
cause?: unknown;
|
|
1449
|
+
};
|
|
1450
|
+
"new"(v0: FfiValidationError): {
|
|
1451
|
+
readonly tag: InputPairError_Tags.FfiValidation;
|
|
1452
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1453
|
+
/**
|
|
1454
|
+
* @private
|
|
1455
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1456
|
+
*/
|
|
1457
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1458
|
+
name: string;
|
|
1459
|
+
message: string;
|
|
1460
|
+
stack?: string;
|
|
1461
|
+
cause?: unknown;
|
|
1462
|
+
};
|
|
1463
|
+
instanceOf(obj: any): obj is {
|
|
1464
|
+
readonly tag: InputPairError_Tags.FfiValidation;
|
|
1465
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1466
|
+
/**
|
|
1467
|
+
* @private
|
|
1468
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1469
|
+
*/
|
|
1470
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1471
|
+
name: string;
|
|
1472
|
+
message: string;
|
|
1473
|
+
stack?: string;
|
|
1474
|
+
cause?: unknown;
|
|
1475
|
+
};
|
|
1476
|
+
hasInner(obj: any): obj is {
|
|
1477
|
+
readonly tag: InputPairError_Tags.FfiValidation;
|
|
1478
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1479
|
+
/**
|
|
1480
|
+
* @private
|
|
1481
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1482
|
+
*/
|
|
1483
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1484
|
+
name: string;
|
|
1485
|
+
message: string;
|
|
1486
|
+
stack?: string;
|
|
1487
|
+
cause?: unknown;
|
|
1488
|
+
};
|
|
1489
|
+
getInner(obj: {
|
|
1490
|
+
readonly tag: InputPairError_Tags.FfiValidation;
|
|
1491
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1492
|
+
/**
|
|
1493
|
+
* @private
|
|
1494
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1495
|
+
*/
|
|
1496
|
+
readonly [uniffiTypeNameSymbol]: "InputPairError";
|
|
1497
|
+
name: string;
|
|
1498
|
+
message: string;
|
|
1499
|
+
stack?: string;
|
|
1500
|
+
cause?: unknown;
|
|
1501
|
+
}): Readonly<[FfiValidationError]>;
|
|
1502
|
+
};
|
|
1503
|
+
}>;
|
|
1504
|
+
/**
|
|
1505
|
+
* Error constructing an [`InputPair`](crate::InputPair).
|
|
1506
|
+
*/
|
|
1507
|
+
export type InputPairError = InstanceType<(typeof InputPairError)[keyof Omit<typeof InputPairError, "instanceOf">]>;
|
|
1508
|
+
export declare enum OutputSubstitution {
|
|
1509
|
+
Enabled = 0,
|
|
1510
|
+
Disabled = 1
|
|
1511
|
+
}
|
|
1512
|
+
export declare enum OutputSubstitutionError_Tags {
|
|
1513
|
+
Protocol = "Protocol",
|
|
1514
|
+
FfiValidation = "FfiValidation"
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Error that may occur when output substitution fails.
|
|
1518
|
+
*/
|
|
1519
|
+
export declare const OutputSubstitutionError: Readonly<{
|
|
1520
|
+
instanceOf: (obj: any) => obj is OutputSubstitutionError;
|
|
1521
|
+
Protocol: {
|
|
1522
|
+
new (v0: OutputSubstitutionProtocolErrorInterface): {
|
|
1523
|
+
readonly tag: OutputSubstitutionError_Tags.Protocol;
|
|
1524
|
+
readonly inner: Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1525
|
+
/**
|
|
1526
|
+
* @private
|
|
1527
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1528
|
+
*/
|
|
1529
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1530
|
+
name: string;
|
|
1531
|
+
message: string;
|
|
1532
|
+
stack?: string;
|
|
1533
|
+
cause?: unknown;
|
|
1534
|
+
};
|
|
1535
|
+
"new"(v0: OutputSubstitutionProtocolErrorInterface): {
|
|
1536
|
+
readonly tag: OutputSubstitutionError_Tags.Protocol;
|
|
1537
|
+
readonly inner: Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1538
|
+
/**
|
|
1539
|
+
* @private
|
|
1540
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1541
|
+
*/
|
|
1542
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1543
|
+
name: string;
|
|
1544
|
+
message: string;
|
|
1545
|
+
stack?: string;
|
|
1546
|
+
cause?: unknown;
|
|
1547
|
+
};
|
|
1548
|
+
instanceOf(obj: any): obj is {
|
|
1549
|
+
readonly tag: OutputSubstitutionError_Tags.Protocol;
|
|
1550
|
+
readonly inner: Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1551
|
+
/**
|
|
1552
|
+
* @private
|
|
1553
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1556
|
+
name: string;
|
|
1557
|
+
message: string;
|
|
1558
|
+
stack?: string;
|
|
1559
|
+
cause?: unknown;
|
|
1560
|
+
};
|
|
1561
|
+
hasInner(obj: any): obj is {
|
|
1562
|
+
readonly tag: OutputSubstitutionError_Tags.Protocol;
|
|
1563
|
+
readonly inner: Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1564
|
+
/**
|
|
1565
|
+
* @private
|
|
1566
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1567
|
+
*/
|
|
1568
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1569
|
+
name: string;
|
|
1570
|
+
message: string;
|
|
1571
|
+
stack?: string;
|
|
1572
|
+
cause?: unknown;
|
|
1573
|
+
};
|
|
1574
|
+
getInner(obj: {
|
|
1575
|
+
readonly tag: OutputSubstitutionError_Tags.Protocol;
|
|
1576
|
+
readonly inner: Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1577
|
+
/**
|
|
1578
|
+
* @private
|
|
1579
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1580
|
+
*/
|
|
1581
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1582
|
+
name: string;
|
|
1583
|
+
message: string;
|
|
1584
|
+
stack?: string;
|
|
1585
|
+
cause?: unknown;
|
|
1586
|
+
}): Readonly<[OutputSubstitutionProtocolErrorInterface]>;
|
|
1587
|
+
};
|
|
1588
|
+
FfiValidation: {
|
|
1589
|
+
new (v0: FfiValidationError): {
|
|
1590
|
+
readonly tag: OutputSubstitutionError_Tags.FfiValidation;
|
|
1591
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1592
|
+
/**
|
|
1593
|
+
* @private
|
|
1594
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1595
|
+
*/
|
|
1596
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1597
|
+
name: string;
|
|
1598
|
+
message: string;
|
|
1599
|
+
stack?: string;
|
|
1600
|
+
cause?: unknown;
|
|
1601
|
+
};
|
|
1602
|
+
"new"(v0: FfiValidationError): {
|
|
1603
|
+
readonly tag: OutputSubstitutionError_Tags.FfiValidation;
|
|
1604
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1605
|
+
/**
|
|
1606
|
+
* @private
|
|
1607
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1608
|
+
*/
|
|
1609
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
1610
|
+
name: string;
|
|
1611
|
+
message: string;
|
|
1612
|
+
stack?: string;
|
|
1613
|
+
cause?: unknown;
|
|
1614
|
+
};
|
|
1615
|
+
instanceOf(obj: any): obj is {
|
|
1616
|
+
readonly tag: OutputSubstitutionError_Tags.FfiValidation;
|
|
1617
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1618
|
+
/**
|
|
1619
|
+
* @private
|
|
1620
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1621
|
+
*/
|
|
1622
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
203
1623
|
name: string;
|
|
204
1624
|
message: string;
|
|
205
1625
|
stack?: string;
|
|
206
1626
|
cause?: unknown;
|
|
207
1627
|
};
|
|
208
1628
|
hasInner(obj: any): obj is {
|
|
209
|
-
readonly tag:
|
|
210
|
-
readonly inner: Readonly<[
|
|
1629
|
+
readonly tag: OutputSubstitutionError_Tags.FfiValidation;
|
|
1630
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
211
1631
|
/**
|
|
212
1632
|
* @private
|
|
213
1633
|
* This field is private and should not be used, use `tag` instead.
|
|
214
1634
|
*/
|
|
215
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1635
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
216
1636
|
name: string;
|
|
217
1637
|
message: string;
|
|
218
1638
|
stack?: string;
|
|
219
1639
|
cause?: unknown;
|
|
220
1640
|
};
|
|
221
1641
|
getInner(obj: {
|
|
222
|
-
readonly tag:
|
|
223
|
-
readonly inner: Readonly<[
|
|
1642
|
+
readonly tag: OutputSubstitutionError_Tags.FfiValidation;
|
|
1643
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
224
1644
|
/**
|
|
225
1645
|
* @private
|
|
226
1646
|
* This field is private and should not be used, use `tag` instead.
|
|
227
1647
|
*/
|
|
228
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1648
|
+
readonly [uniffiTypeNameSymbol]: "OutputSubstitutionError";
|
|
229
1649
|
name: string;
|
|
230
1650
|
message: string;
|
|
231
1651
|
stack?: string;
|
|
232
1652
|
cause?: unknown;
|
|
233
|
-
}): Readonly<[
|
|
1653
|
+
}): Readonly<[FfiValidationError]>;
|
|
234
1654
|
};
|
|
235
1655
|
}>;
|
|
236
|
-
|
|
237
|
-
|
|
1656
|
+
/**
|
|
1657
|
+
* Error that may occur when output substitution fails.
|
|
1658
|
+
*/
|
|
1659
|
+
export type OutputSubstitutionError = InstanceType<(typeof OutputSubstitutionError)[keyof Omit<typeof OutputSubstitutionError, "instanceOf">]>;
|
|
1660
|
+
export declare enum PollingForProposalTransitionOutcome_Tags {
|
|
238
1661
|
Progress = "Progress",
|
|
239
1662
|
Stasis = "Stasis"
|
|
240
1663
|
}
|
|
241
|
-
export declare const
|
|
242
|
-
instanceOf: (obj: any) => obj is
|
|
1664
|
+
export declare const PollingForProposalTransitionOutcome: Readonly<{
|
|
1665
|
+
instanceOf: (obj: any) => obj is PollingForProposalTransitionOutcome;
|
|
243
1666
|
Progress: {
|
|
244
1667
|
new (inner: {
|
|
245
|
-
|
|
1668
|
+
psbtBase64: string;
|
|
246
1669
|
}): {
|
|
247
|
-
readonly tag:
|
|
1670
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
248
1671
|
readonly inner: Readonly<{
|
|
249
|
-
|
|
1672
|
+
psbtBase64: string;
|
|
250
1673
|
}>;
|
|
251
1674
|
/**
|
|
252
1675
|
* @private
|
|
253
1676
|
* This field is private and should not be used, use `tag` instead.
|
|
254
1677
|
*/
|
|
255
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1678
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
256
1679
|
};
|
|
257
1680
|
"new"(inner: {
|
|
258
|
-
|
|
1681
|
+
psbtBase64: string;
|
|
259
1682
|
}): {
|
|
260
|
-
readonly tag:
|
|
1683
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
261
1684
|
readonly inner: Readonly<{
|
|
262
|
-
|
|
1685
|
+
psbtBase64: string;
|
|
263
1686
|
}>;
|
|
264
1687
|
/**
|
|
265
1688
|
* @private
|
|
266
1689
|
* This field is private and should not be used, use `tag` instead.
|
|
267
1690
|
*/
|
|
268
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1691
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
269
1692
|
};
|
|
270
1693
|
instanceOf(obj: any): obj is {
|
|
271
|
-
readonly tag:
|
|
1694
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
272
1695
|
readonly inner: Readonly<{
|
|
273
|
-
|
|
1696
|
+
psbtBase64: string;
|
|
274
1697
|
}>;
|
|
275
1698
|
/**
|
|
276
1699
|
* @private
|
|
277
1700
|
* This field is private and should not be used, use `tag` instead.
|
|
278
1701
|
*/
|
|
279
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1702
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
280
1703
|
};
|
|
281
1704
|
};
|
|
282
1705
|
Stasis: {
|
|
283
1706
|
new (inner: {
|
|
284
|
-
inner:
|
|
1707
|
+
inner: PollingForProposalInterface;
|
|
285
1708
|
}): {
|
|
286
|
-
readonly tag:
|
|
1709
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Stasis;
|
|
287
1710
|
readonly inner: Readonly<{
|
|
288
|
-
inner:
|
|
1711
|
+
inner: PollingForProposalInterface;
|
|
289
1712
|
}>;
|
|
290
1713
|
/**
|
|
291
1714
|
* @private
|
|
292
1715
|
* This field is private and should not be used, use `tag` instead.
|
|
293
1716
|
*/
|
|
294
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1717
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
295
1718
|
};
|
|
296
1719
|
"new"(inner: {
|
|
297
|
-
inner:
|
|
1720
|
+
inner: PollingForProposalInterface;
|
|
298
1721
|
}): {
|
|
299
|
-
readonly tag:
|
|
1722
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Stasis;
|
|
300
1723
|
readonly inner: Readonly<{
|
|
301
|
-
inner:
|
|
1724
|
+
inner: PollingForProposalInterface;
|
|
302
1725
|
}>;
|
|
303
1726
|
/**
|
|
304
1727
|
* @private
|
|
305
1728
|
* This field is private and should not be used, use `tag` instead.
|
|
306
1729
|
*/
|
|
307
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1730
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
308
1731
|
};
|
|
309
1732
|
instanceOf(obj: any): obj is {
|
|
310
|
-
readonly tag:
|
|
1733
|
+
readonly tag: PollingForProposalTransitionOutcome_Tags.Stasis;
|
|
311
1734
|
readonly inner: Readonly<{
|
|
312
|
-
inner:
|
|
1735
|
+
inner: PollingForProposalInterface;
|
|
313
1736
|
}>;
|
|
314
1737
|
/**
|
|
315
1738
|
* @private
|
|
316
1739
|
* This field is private and should not be used, use `tag` instead.
|
|
317
1740
|
*/
|
|
318
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1741
|
+
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
319
1742
|
};
|
|
320
1743
|
};
|
|
321
1744
|
}>;
|
|
322
|
-
export type
|
|
323
|
-
export declare enum
|
|
324
|
-
|
|
325
|
-
Disabled = 1
|
|
326
|
-
}
|
|
327
|
-
export declare enum PollingForProposalTransitionOutcome_Tags {
|
|
328
|
-
Progress = "Progress",
|
|
329
|
-
Stasis = "Stasis"
|
|
1745
|
+
export type PollingForProposalTransitionOutcome = InstanceType<(typeof PollingForProposalTransitionOutcome)[keyof Omit<typeof PollingForProposalTransitionOutcome, "instanceOf">]>;
|
|
1746
|
+
export declare enum PsbtParseError_Tags {
|
|
1747
|
+
InvalidPsbt = "InvalidPsbt"
|
|
330
1748
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
readonly
|
|
339
|
-
|
|
340
|
-
}>;
|
|
1749
|
+
/**
|
|
1750
|
+
* FFI-visible PSBT parsing error surfaced at the sender boundary.
|
|
1751
|
+
*/
|
|
1752
|
+
export declare const PsbtParseError: Readonly<{
|
|
1753
|
+
instanceOf: (obj: any) => obj is PsbtParseError;
|
|
1754
|
+
InvalidPsbt: {
|
|
1755
|
+
new (v0: string): {
|
|
1756
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1757
|
+
readonly inner: Readonly<[string]>;
|
|
341
1758
|
/**
|
|
342
1759
|
* @private
|
|
343
1760
|
* This field is private and should not be used, use `tag` instead.
|
|
344
1761
|
*/
|
|
345
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1762
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1763
|
+
name: string;
|
|
1764
|
+
message: string;
|
|
1765
|
+
stack?: string;
|
|
1766
|
+
cause?: unknown;
|
|
346
1767
|
};
|
|
347
|
-
"new"(
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
351
|
-
readonly inner: Readonly<{
|
|
352
|
-
inner: PsbtInterface;
|
|
353
|
-
}>;
|
|
1768
|
+
"new"(v0: string): {
|
|
1769
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1770
|
+
readonly inner: Readonly<[string]>;
|
|
354
1771
|
/**
|
|
355
1772
|
* @private
|
|
356
1773
|
* This field is private and should not be used, use `tag` instead.
|
|
357
1774
|
*/
|
|
358
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1775
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1776
|
+
name: string;
|
|
1777
|
+
message: string;
|
|
1778
|
+
stack?: string;
|
|
1779
|
+
cause?: unknown;
|
|
359
1780
|
};
|
|
360
1781
|
instanceOf(obj: any): obj is {
|
|
361
|
-
readonly tag:
|
|
362
|
-
readonly inner: Readonly<
|
|
363
|
-
inner: PsbtInterface;
|
|
364
|
-
}>;
|
|
365
|
-
/**
|
|
366
|
-
* @private
|
|
367
|
-
* This field is private and should not be used, use `tag` instead.
|
|
368
|
-
*/
|
|
369
|
-
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
Stasis: {
|
|
373
|
-
new (inner: {
|
|
374
|
-
inner: PollingForProposalInterface;
|
|
375
|
-
}): {
|
|
376
|
-
readonly tag: PollingForProposalTransitionOutcome_Tags.Stasis;
|
|
377
|
-
readonly inner: Readonly<{
|
|
378
|
-
inner: PollingForProposalInterface;
|
|
379
|
-
}>;
|
|
1782
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1783
|
+
readonly inner: Readonly<[string]>;
|
|
380
1784
|
/**
|
|
381
1785
|
* @private
|
|
382
1786
|
* This field is private and should not be used, use `tag` instead.
|
|
383
1787
|
*/
|
|
384
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1788
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1789
|
+
name: string;
|
|
1790
|
+
message: string;
|
|
1791
|
+
stack?: string;
|
|
1792
|
+
cause?: unknown;
|
|
385
1793
|
};
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
readonly tag: PollingForProposalTransitionOutcome_Tags.Stasis;
|
|
390
|
-
readonly inner: Readonly<{
|
|
391
|
-
inner: PollingForProposalInterface;
|
|
392
|
-
}>;
|
|
1794
|
+
hasInner(obj: any): obj is {
|
|
1795
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1796
|
+
readonly inner: Readonly<[string]>;
|
|
393
1797
|
/**
|
|
394
1798
|
* @private
|
|
395
1799
|
* This field is private and should not be used, use `tag` instead.
|
|
396
1800
|
*/
|
|
397
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1801
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1802
|
+
name: string;
|
|
1803
|
+
message: string;
|
|
1804
|
+
stack?: string;
|
|
1805
|
+
cause?: unknown;
|
|
398
1806
|
};
|
|
399
|
-
|
|
400
|
-
readonly tag:
|
|
401
|
-
readonly inner: Readonly<
|
|
402
|
-
inner: PollingForProposalInterface;
|
|
403
|
-
}>;
|
|
1807
|
+
getInner(obj: {
|
|
1808
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1809
|
+
readonly inner: Readonly<[string]>;
|
|
404
1810
|
/**
|
|
405
1811
|
* @private
|
|
406
1812
|
* This field is private and should not be used, use `tag` instead.
|
|
407
1813
|
*/
|
|
408
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
409
|
-
|
|
1814
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1815
|
+
name: string;
|
|
1816
|
+
message: string;
|
|
1817
|
+
stack?: string;
|
|
1818
|
+
cause?: unknown;
|
|
1819
|
+
}): Readonly<[string]>;
|
|
410
1820
|
};
|
|
411
1821
|
}>;
|
|
412
|
-
|
|
1822
|
+
/**
|
|
1823
|
+
* FFI-visible PSBT parsing error surfaced at the sender boundary.
|
|
1824
|
+
*/
|
|
1825
|
+
export type PsbtParseError = InstanceType<(typeof PsbtParseError)[keyof Omit<typeof PsbtParseError, "instanceOf">]>;
|
|
413
1826
|
export declare enum ReceiveSession_Tags {
|
|
414
1827
|
Initialized = "Initialized",
|
|
415
1828
|
UncheckedOriginalPayload = "UncheckedOriginalPayload",
|
|
@@ -868,74 +2281,222 @@ export declare const ReceiveSession: Readonly<{
|
|
|
868
2281
|
* @private
|
|
869
2282
|
* This field is private and should not be used, use `tag` instead.
|
|
870
2283
|
*/
|
|
871
|
-
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
872
|
-
};
|
|
873
|
-
"new"(inner: {
|
|
874
|
-
inner: MonitorInterface;
|
|
875
|
-
}): {
|
|
876
|
-
readonly tag: ReceiveSession_Tags.Monitor;
|
|
877
|
-
readonly inner: Readonly<{
|
|
878
|
-
inner: MonitorInterface;
|
|
879
|
-
}>;
|
|
2284
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2285
|
+
};
|
|
2286
|
+
"new"(inner: {
|
|
2287
|
+
inner: MonitorInterface;
|
|
2288
|
+
}): {
|
|
2289
|
+
readonly tag: ReceiveSession_Tags.Monitor;
|
|
2290
|
+
readonly inner: Readonly<{
|
|
2291
|
+
inner: MonitorInterface;
|
|
2292
|
+
}>;
|
|
2293
|
+
/**
|
|
2294
|
+
* @private
|
|
2295
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2296
|
+
*/
|
|
2297
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2298
|
+
};
|
|
2299
|
+
instanceOf(obj: any): obj is {
|
|
2300
|
+
readonly tag: ReceiveSession_Tags.Monitor;
|
|
2301
|
+
readonly inner: Readonly<{
|
|
2302
|
+
inner: MonitorInterface;
|
|
2303
|
+
}>;
|
|
2304
|
+
/**
|
|
2305
|
+
* @private
|
|
2306
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2307
|
+
*/
|
|
2308
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2309
|
+
};
|
|
2310
|
+
};
|
|
2311
|
+
Closed: {
|
|
2312
|
+
new (inner: {
|
|
2313
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
2314
|
+
}): {
|
|
2315
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
2316
|
+
readonly inner: Readonly<{
|
|
2317
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
2318
|
+
}>;
|
|
2319
|
+
/**
|
|
2320
|
+
* @private
|
|
2321
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2322
|
+
*/
|
|
2323
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2324
|
+
};
|
|
2325
|
+
"new"(inner: {
|
|
2326
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
2327
|
+
}): {
|
|
2328
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
2329
|
+
readonly inner: Readonly<{
|
|
2330
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
2331
|
+
}>;
|
|
2332
|
+
/**
|
|
2333
|
+
* @private
|
|
2334
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2335
|
+
*/
|
|
2336
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2337
|
+
};
|
|
2338
|
+
instanceOf(obj: any): obj is {
|
|
2339
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
2340
|
+
readonly inner: Readonly<{
|
|
2341
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
2342
|
+
}>;
|
|
2343
|
+
/**
|
|
2344
|
+
* @private
|
|
2345
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2346
|
+
*/
|
|
2347
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
2350
|
+
}>;
|
|
2351
|
+
export type ReceiveSession = InstanceType<(typeof ReceiveSession)[keyof Omit<typeof ReceiveSession, "instanceOf">]>;
|
|
2352
|
+
export declare enum ReceiverBuilderError_Tags {
|
|
2353
|
+
InvalidAddress = "InvalidAddress",
|
|
2354
|
+
IntoUrl = "IntoUrl"
|
|
2355
|
+
}
|
|
2356
|
+
/**
|
|
2357
|
+
* Error that may occur when building a receiver session.
|
|
2358
|
+
*/
|
|
2359
|
+
export declare const ReceiverBuilderError: Readonly<{
|
|
2360
|
+
instanceOf: (obj: any) => obj is ReceiverBuilderError;
|
|
2361
|
+
InvalidAddress: {
|
|
2362
|
+
new (v0: AddressParseErrorInterface): {
|
|
2363
|
+
readonly tag: ReceiverBuilderError_Tags.InvalidAddress;
|
|
2364
|
+
readonly inner: Readonly<[AddressParseErrorInterface]>;
|
|
2365
|
+
/**
|
|
2366
|
+
* @private
|
|
2367
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2368
|
+
*/
|
|
2369
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2370
|
+
name: string;
|
|
2371
|
+
message: string;
|
|
2372
|
+
stack?: string;
|
|
2373
|
+
cause?: unknown;
|
|
2374
|
+
};
|
|
2375
|
+
"new"(v0: AddressParseErrorInterface): {
|
|
2376
|
+
readonly tag: ReceiverBuilderError_Tags.InvalidAddress;
|
|
2377
|
+
readonly inner: Readonly<[AddressParseErrorInterface]>;
|
|
2378
|
+
/**
|
|
2379
|
+
* @private
|
|
2380
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2381
|
+
*/
|
|
2382
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2383
|
+
name: string;
|
|
2384
|
+
message: string;
|
|
2385
|
+
stack?: string;
|
|
2386
|
+
cause?: unknown;
|
|
2387
|
+
};
|
|
2388
|
+
instanceOf(obj: any): obj is {
|
|
2389
|
+
readonly tag: ReceiverBuilderError_Tags.InvalidAddress;
|
|
2390
|
+
readonly inner: Readonly<[AddressParseErrorInterface]>;
|
|
2391
|
+
/**
|
|
2392
|
+
* @private
|
|
2393
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2394
|
+
*/
|
|
2395
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2396
|
+
name: string;
|
|
2397
|
+
message: string;
|
|
2398
|
+
stack?: string;
|
|
2399
|
+
cause?: unknown;
|
|
2400
|
+
};
|
|
2401
|
+
hasInner(obj: any): obj is {
|
|
2402
|
+
readonly tag: ReceiverBuilderError_Tags.InvalidAddress;
|
|
2403
|
+
readonly inner: Readonly<[AddressParseErrorInterface]>;
|
|
2404
|
+
/**
|
|
2405
|
+
* @private
|
|
2406
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2407
|
+
*/
|
|
2408
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2409
|
+
name: string;
|
|
2410
|
+
message: string;
|
|
2411
|
+
stack?: string;
|
|
2412
|
+
cause?: unknown;
|
|
2413
|
+
};
|
|
2414
|
+
getInner(obj: {
|
|
2415
|
+
readonly tag: ReceiverBuilderError_Tags.InvalidAddress;
|
|
2416
|
+
readonly inner: Readonly<[AddressParseErrorInterface]>;
|
|
2417
|
+
/**
|
|
2418
|
+
* @private
|
|
2419
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2420
|
+
*/
|
|
2421
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2422
|
+
name: string;
|
|
2423
|
+
message: string;
|
|
2424
|
+
stack?: string;
|
|
2425
|
+
cause?: unknown;
|
|
2426
|
+
}): Readonly<[AddressParseErrorInterface]>;
|
|
2427
|
+
};
|
|
2428
|
+
IntoUrl: {
|
|
2429
|
+
new (v0: IntoUrlErrorInterface): {
|
|
2430
|
+
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2431
|
+
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
880
2432
|
/**
|
|
881
2433
|
* @private
|
|
882
2434
|
* This field is private and should not be used, use `tag` instead.
|
|
883
2435
|
*/
|
|
884
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2436
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2437
|
+
name: string;
|
|
2438
|
+
message: string;
|
|
2439
|
+
stack?: string;
|
|
2440
|
+
cause?: unknown;
|
|
885
2441
|
};
|
|
886
|
-
|
|
887
|
-
readonly tag:
|
|
888
|
-
readonly inner: Readonly<
|
|
889
|
-
inner: MonitorInterface;
|
|
890
|
-
}>;
|
|
2442
|
+
"new"(v0: IntoUrlErrorInterface): {
|
|
2443
|
+
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2444
|
+
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
891
2445
|
/**
|
|
892
2446
|
* @private
|
|
893
2447
|
* This field is private and should not be used, use `tag` instead.
|
|
894
2448
|
*/
|
|
895
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2449
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2450
|
+
name: string;
|
|
2451
|
+
message: string;
|
|
2452
|
+
stack?: string;
|
|
2453
|
+
cause?: unknown;
|
|
896
2454
|
};
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
inner: ReceiverSessionOutcomeInterface;
|
|
901
|
-
}): {
|
|
902
|
-
readonly tag: ReceiveSession_Tags.Closed;
|
|
903
|
-
readonly inner: Readonly<{
|
|
904
|
-
inner: ReceiverSessionOutcomeInterface;
|
|
905
|
-
}>;
|
|
2455
|
+
instanceOf(obj: any): obj is {
|
|
2456
|
+
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2457
|
+
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
906
2458
|
/**
|
|
907
2459
|
* @private
|
|
908
2460
|
* This field is private and should not be used, use `tag` instead.
|
|
909
2461
|
*/
|
|
910
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2462
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2463
|
+
name: string;
|
|
2464
|
+
message: string;
|
|
2465
|
+
stack?: string;
|
|
2466
|
+
cause?: unknown;
|
|
911
2467
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
readonly tag: ReceiveSession_Tags.Closed;
|
|
916
|
-
readonly inner: Readonly<{
|
|
917
|
-
inner: ReceiverSessionOutcomeInterface;
|
|
918
|
-
}>;
|
|
2468
|
+
hasInner(obj: any): obj is {
|
|
2469
|
+
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2470
|
+
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
919
2471
|
/**
|
|
920
2472
|
* @private
|
|
921
2473
|
* This field is private and should not be used, use `tag` instead.
|
|
922
2474
|
*/
|
|
923
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2475
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2476
|
+
name: string;
|
|
2477
|
+
message: string;
|
|
2478
|
+
stack?: string;
|
|
2479
|
+
cause?: unknown;
|
|
924
2480
|
};
|
|
925
|
-
|
|
926
|
-
readonly tag:
|
|
927
|
-
readonly inner: Readonly<
|
|
928
|
-
inner: ReceiverSessionOutcomeInterface;
|
|
929
|
-
}>;
|
|
2481
|
+
getInner(obj: {
|
|
2482
|
+
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2483
|
+
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
930
2484
|
/**
|
|
931
2485
|
* @private
|
|
932
2486
|
* This field is private and should not be used, use `tag` instead.
|
|
933
2487
|
*/
|
|
934
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
935
|
-
|
|
2488
|
+
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2489
|
+
name: string;
|
|
2490
|
+
message: string;
|
|
2491
|
+
stack?: string;
|
|
2492
|
+
cause?: unknown;
|
|
2493
|
+
}): Readonly<[IntoUrlErrorInterface]>;
|
|
936
2494
|
};
|
|
937
2495
|
}>;
|
|
938
|
-
|
|
2496
|
+
/**
|
|
2497
|
+
* Error that may occur when building a receiver session.
|
|
2498
|
+
*/
|
|
2499
|
+
export type ReceiverBuilderError = InstanceType<(typeof ReceiverBuilderError)[keyof Omit<typeof ReceiverBuilderError, "instanceOf">]>;
|
|
939
2500
|
export declare enum ReceiverError_Tags {
|
|
940
2501
|
Protocol = "Protocol",
|
|
941
2502
|
Implementation = "Implementation",
|
|
@@ -1634,89 +3195,305 @@ export declare const SendSession: Readonly<{
|
|
|
1634
3195
|
* @private
|
|
1635
3196
|
* This field is private and should not be used, use `tag` instead.
|
|
1636
3197
|
*/
|
|
1637
|
-
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3198
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3199
|
+
};
|
|
3200
|
+
};
|
|
3201
|
+
PollingForProposal: {
|
|
3202
|
+
new (inner: {
|
|
3203
|
+
inner: PollingForProposalInterface;
|
|
3204
|
+
}): {
|
|
3205
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
3206
|
+
readonly inner: Readonly<{
|
|
3207
|
+
inner: PollingForProposalInterface;
|
|
3208
|
+
}>;
|
|
3209
|
+
/**
|
|
3210
|
+
* @private
|
|
3211
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3212
|
+
*/
|
|
3213
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3214
|
+
};
|
|
3215
|
+
"new"(inner: {
|
|
3216
|
+
inner: PollingForProposalInterface;
|
|
3217
|
+
}): {
|
|
3218
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
3219
|
+
readonly inner: Readonly<{
|
|
3220
|
+
inner: PollingForProposalInterface;
|
|
3221
|
+
}>;
|
|
3222
|
+
/**
|
|
3223
|
+
* @private
|
|
3224
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3225
|
+
*/
|
|
3226
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3227
|
+
};
|
|
3228
|
+
instanceOf(obj: any): obj is {
|
|
3229
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
3230
|
+
readonly inner: Readonly<{
|
|
3231
|
+
inner: PollingForProposalInterface;
|
|
3232
|
+
}>;
|
|
3233
|
+
/**
|
|
3234
|
+
* @private
|
|
3235
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3236
|
+
*/
|
|
3237
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
Closed: {
|
|
3241
|
+
new (inner: {
|
|
3242
|
+
inner: SenderSessionOutcomeInterface;
|
|
3243
|
+
}): {
|
|
3244
|
+
readonly tag: SendSession_Tags.Closed;
|
|
3245
|
+
readonly inner: Readonly<{
|
|
3246
|
+
inner: SenderSessionOutcomeInterface;
|
|
3247
|
+
}>;
|
|
3248
|
+
/**
|
|
3249
|
+
* @private
|
|
3250
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3251
|
+
*/
|
|
3252
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3253
|
+
};
|
|
3254
|
+
"new"(inner: {
|
|
3255
|
+
inner: SenderSessionOutcomeInterface;
|
|
3256
|
+
}): {
|
|
3257
|
+
readonly tag: SendSession_Tags.Closed;
|
|
3258
|
+
readonly inner: Readonly<{
|
|
3259
|
+
inner: SenderSessionOutcomeInterface;
|
|
3260
|
+
}>;
|
|
3261
|
+
/**
|
|
3262
|
+
* @private
|
|
3263
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3264
|
+
*/
|
|
3265
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3266
|
+
};
|
|
3267
|
+
instanceOf(obj: any): obj is {
|
|
3268
|
+
readonly tag: SendSession_Tags.Closed;
|
|
3269
|
+
readonly inner: Readonly<{
|
|
3270
|
+
inner: SenderSessionOutcomeInterface;
|
|
3271
|
+
}>;
|
|
3272
|
+
/**
|
|
3273
|
+
* @private
|
|
3274
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3275
|
+
*/
|
|
3276
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3279
|
+
}>;
|
|
3280
|
+
export type SendSession = InstanceType<(typeof SendSession)[keyof Omit<typeof SendSession, "instanceOf">]>;
|
|
3281
|
+
export declare enum SenderInputError_Tags {
|
|
3282
|
+
Psbt = "Psbt",
|
|
3283
|
+
Build = "Build",
|
|
3284
|
+
FfiValidation = "FfiValidation"
|
|
3285
|
+
}
|
|
3286
|
+
/**
|
|
3287
|
+
* Raised when inputs provided to the sender are malformed or sender build fails.
|
|
3288
|
+
*/
|
|
3289
|
+
export declare const SenderInputError: Readonly<{
|
|
3290
|
+
instanceOf: (obj: any) => obj is SenderInputError;
|
|
3291
|
+
Psbt: {
|
|
3292
|
+
new (v0: PsbtParseError): {
|
|
3293
|
+
readonly tag: SenderInputError_Tags.Psbt;
|
|
3294
|
+
readonly inner: Readonly<[PsbtParseError]>;
|
|
3295
|
+
/**
|
|
3296
|
+
* @private
|
|
3297
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3298
|
+
*/
|
|
3299
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3300
|
+
name: string;
|
|
3301
|
+
message: string;
|
|
3302
|
+
stack?: string;
|
|
3303
|
+
cause?: unknown;
|
|
3304
|
+
};
|
|
3305
|
+
"new"(v0: PsbtParseError): {
|
|
3306
|
+
readonly tag: SenderInputError_Tags.Psbt;
|
|
3307
|
+
readonly inner: Readonly<[PsbtParseError]>;
|
|
3308
|
+
/**
|
|
3309
|
+
* @private
|
|
3310
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3311
|
+
*/
|
|
3312
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3313
|
+
name: string;
|
|
3314
|
+
message: string;
|
|
3315
|
+
stack?: string;
|
|
3316
|
+
cause?: unknown;
|
|
3317
|
+
};
|
|
3318
|
+
instanceOf(obj: any): obj is {
|
|
3319
|
+
readonly tag: SenderInputError_Tags.Psbt;
|
|
3320
|
+
readonly inner: Readonly<[PsbtParseError]>;
|
|
3321
|
+
/**
|
|
3322
|
+
* @private
|
|
3323
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3324
|
+
*/
|
|
3325
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3326
|
+
name: string;
|
|
3327
|
+
message: string;
|
|
3328
|
+
stack?: string;
|
|
3329
|
+
cause?: unknown;
|
|
3330
|
+
};
|
|
3331
|
+
hasInner(obj: any): obj is {
|
|
3332
|
+
readonly tag: SenderInputError_Tags.Psbt;
|
|
3333
|
+
readonly inner: Readonly<[PsbtParseError]>;
|
|
3334
|
+
/**
|
|
3335
|
+
* @private
|
|
3336
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3337
|
+
*/
|
|
3338
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3339
|
+
name: string;
|
|
3340
|
+
message: string;
|
|
3341
|
+
stack?: string;
|
|
3342
|
+
cause?: unknown;
|
|
3343
|
+
};
|
|
3344
|
+
getInner(obj: {
|
|
3345
|
+
readonly tag: SenderInputError_Tags.Psbt;
|
|
3346
|
+
readonly inner: Readonly<[PsbtParseError]>;
|
|
3347
|
+
/**
|
|
3348
|
+
* @private
|
|
3349
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3350
|
+
*/
|
|
3351
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3352
|
+
name: string;
|
|
3353
|
+
message: string;
|
|
3354
|
+
stack?: string;
|
|
3355
|
+
cause?: unknown;
|
|
3356
|
+
}): Readonly<[PsbtParseError]>;
|
|
3357
|
+
};
|
|
3358
|
+
Build: {
|
|
3359
|
+
new (v0: BuildSenderErrorInterface): {
|
|
3360
|
+
readonly tag: SenderInputError_Tags.Build;
|
|
3361
|
+
readonly inner: Readonly<[BuildSenderErrorInterface]>;
|
|
3362
|
+
/**
|
|
3363
|
+
* @private
|
|
3364
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3365
|
+
*/
|
|
3366
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3367
|
+
name: string;
|
|
3368
|
+
message: string;
|
|
3369
|
+
stack?: string;
|
|
3370
|
+
cause?: unknown;
|
|
3371
|
+
};
|
|
3372
|
+
"new"(v0: BuildSenderErrorInterface): {
|
|
3373
|
+
readonly tag: SenderInputError_Tags.Build;
|
|
3374
|
+
readonly inner: Readonly<[BuildSenderErrorInterface]>;
|
|
3375
|
+
/**
|
|
3376
|
+
* @private
|
|
3377
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3378
|
+
*/
|
|
3379
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3380
|
+
name: string;
|
|
3381
|
+
message: string;
|
|
3382
|
+
stack?: string;
|
|
3383
|
+
cause?: unknown;
|
|
3384
|
+
};
|
|
3385
|
+
instanceOf(obj: any): obj is {
|
|
3386
|
+
readonly tag: SenderInputError_Tags.Build;
|
|
3387
|
+
readonly inner: Readonly<[BuildSenderErrorInterface]>;
|
|
3388
|
+
/**
|
|
3389
|
+
* @private
|
|
3390
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3391
|
+
*/
|
|
3392
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3393
|
+
name: string;
|
|
3394
|
+
message: string;
|
|
3395
|
+
stack?: string;
|
|
3396
|
+
cause?: unknown;
|
|
3397
|
+
};
|
|
3398
|
+
hasInner(obj: any): obj is {
|
|
3399
|
+
readonly tag: SenderInputError_Tags.Build;
|
|
3400
|
+
readonly inner: Readonly<[BuildSenderErrorInterface]>;
|
|
3401
|
+
/**
|
|
3402
|
+
* @private
|
|
3403
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3404
|
+
*/
|
|
3405
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3406
|
+
name: string;
|
|
3407
|
+
message: string;
|
|
3408
|
+
stack?: string;
|
|
3409
|
+
cause?: unknown;
|
|
1638
3410
|
};
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
inner: PollingForProposalInterface;
|
|
1643
|
-
}): {
|
|
1644
|
-
readonly tag: SendSession_Tags.PollingForProposal;
|
|
1645
|
-
readonly inner: Readonly<{
|
|
1646
|
-
inner: PollingForProposalInterface;
|
|
1647
|
-
}>;
|
|
3411
|
+
getInner(obj: {
|
|
3412
|
+
readonly tag: SenderInputError_Tags.Build;
|
|
3413
|
+
readonly inner: Readonly<[BuildSenderErrorInterface]>;
|
|
1648
3414
|
/**
|
|
1649
3415
|
* @private
|
|
1650
3416
|
* This field is private and should not be used, use `tag` instead.
|
|
1651
3417
|
*/
|
|
1652
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
3418
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3419
|
+
name: string;
|
|
3420
|
+
message: string;
|
|
3421
|
+
stack?: string;
|
|
3422
|
+
cause?: unknown;
|
|
3423
|
+
}): Readonly<[BuildSenderErrorInterface]>;
|
|
3424
|
+
};
|
|
3425
|
+
FfiValidation: {
|
|
3426
|
+
new (v0: FfiValidationError): {
|
|
3427
|
+
readonly tag: SenderInputError_Tags.FfiValidation;
|
|
3428
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1661
3429
|
/**
|
|
1662
3430
|
* @private
|
|
1663
3431
|
* This field is private and should not be used, use `tag` instead.
|
|
1664
3432
|
*/
|
|
1665
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3433
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3434
|
+
name: string;
|
|
3435
|
+
message: string;
|
|
3436
|
+
stack?: string;
|
|
3437
|
+
cause?: unknown;
|
|
1666
3438
|
};
|
|
1667
|
-
|
|
1668
|
-
readonly tag:
|
|
1669
|
-
readonly inner: Readonly<
|
|
1670
|
-
inner: PollingForProposalInterface;
|
|
1671
|
-
}>;
|
|
3439
|
+
"new"(v0: FfiValidationError): {
|
|
3440
|
+
readonly tag: SenderInputError_Tags.FfiValidation;
|
|
3441
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1672
3442
|
/**
|
|
1673
3443
|
* @private
|
|
1674
3444
|
* This field is private and should not be used, use `tag` instead.
|
|
1675
3445
|
*/
|
|
1676
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3446
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3447
|
+
name: string;
|
|
3448
|
+
message: string;
|
|
3449
|
+
stack?: string;
|
|
3450
|
+
cause?: unknown;
|
|
1677
3451
|
};
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
inner: SenderSessionOutcomeInterface;
|
|
1682
|
-
}): {
|
|
1683
|
-
readonly tag: SendSession_Tags.Closed;
|
|
1684
|
-
readonly inner: Readonly<{
|
|
1685
|
-
inner: SenderSessionOutcomeInterface;
|
|
1686
|
-
}>;
|
|
3452
|
+
instanceOf(obj: any): obj is {
|
|
3453
|
+
readonly tag: SenderInputError_Tags.FfiValidation;
|
|
3454
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1687
3455
|
/**
|
|
1688
3456
|
* @private
|
|
1689
3457
|
* This field is private and should not be used, use `tag` instead.
|
|
1690
3458
|
*/
|
|
1691
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3459
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3460
|
+
name: string;
|
|
3461
|
+
message: string;
|
|
3462
|
+
stack?: string;
|
|
3463
|
+
cause?: unknown;
|
|
1692
3464
|
};
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
readonly tag: SendSession_Tags.Closed;
|
|
1697
|
-
readonly inner: Readonly<{
|
|
1698
|
-
inner: SenderSessionOutcomeInterface;
|
|
1699
|
-
}>;
|
|
3465
|
+
hasInner(obj: any): obj is {
|
|
3466
|
+
readonly tag: SenderInputError_Tags.FfiValidation;
|
|
3467
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1700
3468
|
/**
|
|
1701
3469
|
* @private
|
|
1702
3470
|
* This field is private and should not be used, use `tag` instead.
|
|
1703
3471
|
*/
|
|
1704
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3472
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3473
|
+
name: string;
|
|
3474
|
+
message: string;
|
|
3475
|
+
stack?: string;
|
|
3476
|
+
cause?: unknown;
|
|
1705
3477
|
};
|
|
1706
|
-
|
|
1707
|
-
readonly tag:
|
|
1708
|
-
readonly inner: Readonly<
|
|
1709
|
-
inner: SenderSessionOutcomeInterface;
|
|
1710
|
-
}>;
|
|
3478
|
+
getInner(obj: {
|
|
3479
|
+
readonly tag: SenderInputError_Tags.FfiValidation;
|
|
3480
|
+
readonly inner: Readonly<[FfiValidationError]>;
|
|
1711
3481
|
/**
|
|
1712
3482
|
* @private
|
|
1713
3483
|
* This field is private and should not be used, use `tag` instead.
|
|
1714
3484
|
*/
|
|
1715
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1716
|
-
|
|
3485
|
+
readonly [uniffiTypeNameSymbol]: "SenderInputError";
|
|
3486
|
+
name: string;
|
|
3487
|
+
message: string;
|
|
3488
|
+
stack?: string;
|
|
3489
|
+
cause?: unknown;
|
|
3490
|
+
}): Readonly<[FfiValidationError]>;
|
|
1717
3491
|
};
|
|
1718
3492
|
}>;
|
|
1719
|
-
|
|
3493
|
+
/**
|
|
3494
|
+
* Raised when inputs provided to the sender are malformed or sender build fails.
|
|
3495
|
+
*/
|
|
3496
|
+
export type SenderInputError = InstanceType<(typeof SenderInputError)[keyof Omit<typeof SenderInputError, "instanceOf">]>;
|
|
1720
3497
|
export declare enum SenderPersistedError_Tags {
|
|
1721
3498
|
EncapsulationError = "EncapsulationError",
|
|
1722
3499
|
ResponseError = "ResponseError",
|
|
@@ -2052,8 +3829,42 @@ export declare const SenderPersistedError: Readonly<{
|
|
|
2052
3829
|
* Error that may occur during state machine transitions
|
|
2053
3830
|
*/
|
|
2054
3831
|
export type SenderPersistedError = InstanceType<(typeof SenderPersistedError)[keyof Omit<typeof SenderPersistedError, "instanceOf">]>;
|
|
3832
|
+
/**
|
|
3833
|
+
* Error parsing a Bitcoin address.
|
|
3834
|
+
*/
|
|
3835
|
+
export interface AddressParseErrorInterface {
|
|
3836
|
+
}
|
|
3837
|
+
/**
|
|
3838
|
+
* Error parsing a Bitcoin address.
|
|
3839
|
+
*/
|
|
3840
|
+
export declare class AddressParseError extends UniffiAbstractObject implements AddressParseErrorInterface {
|
|
3841
|
+
readonly [uniffiTypeNameSymbol] = "AddressParseError";
|
|
3842
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3843
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3844
|
+
private constructor();
|
|
3845
|
+
/**
|
|
3846
|
+
* Calls into the `Debug` string representation of `AddressParseErrorInterface` (the native Rust peer).
|
|
3847
|
+
*
|
|
3848
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
3849
|
+
*/
|
|
3850
|
+
toDebugString(): string;
|
|
3851
|
+
/**
|
|
3852
|
+
* Calls into the `AddressParseErrorInterface::to_string()` method of the native Rust peer.
|
|
3853
|
+
*
|
|
3854
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
3855
|
+
*/
|
|
3856
|
+
toString(): string;
|
|
3857
|
+
/**
|
|
3858
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3859
|
+
*/
|
|
3860
|
+
uniffiDestroy(): void;
|
|
3861
|
+
static instanceOf(obj: any): obj is AddressParseError;
|
|
3862
|
+
}
|
|
2055
3863
|
export interface AssumeInteractiveTransitionInterface {
|
|
2056
3864
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
3865
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3866
|
+
signal: AbortSignal;
|
|
3867
|
+
}): Promise<MaybeInputsOwnedInterface>;
|
|
2057
3868
|
}
|
|
2058
3869
|
export declare class AssumeInteractiveTransition extends UniffiAbstractObject implements AssumeInteractiveTransitionInterface {
|
|
2059
3870
|
readonly [uniffiTypeNameSymbol] = "AssumeInteractiveTransition";
|
|
@@ -2061,6 +3872,9 @@ export declare class AssumeInteractiveTransition extends UniffiAbstractObject im
|
|
|
2061
3872
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2062
3873
|
private constructor();
|
|
2063
3874
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
3875
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3876
|
+
signal: AbortSignal;
|
|
3877
|
+
}): Promise<MaybeInputsOwnedInterface>;
|
|
2064
3878
|
/**
|
|
2065
3879
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2066
3880
|
*/
|
|
@@ -2084,13 +3898,32 @@ export declare class BuildSenderError extends UniffiAbstractObject implements Bu
|
|
|
2084
3898
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2085
3899
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2086
3900
|
private constructor();
|
|
3901
|
+
/**
|
|
3902
|
+
* Calls into the `Debug` string representation of `BuildSenderErrorInterface` (the native Rust peer).
|
|
3903
|
+
*
|
|
3904
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
3905
|
+
*/
|
|
3906
|
+
toDebugString(): string;
|
|
3907
|
+
/**
|
|
3908
|
+
* Calls into the `BuildSenderErrorInterface::to_string()` method of the native Rust peer.
|
|
3909
|
+
*
|
|
3910
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
3911
|
+
*/
|
|
3912
|
+
toString(): string;
|
|
3913
|
+
/**
|
|
3914
|
+
* Calls into the `==` method of `BuildSenderErrorInterface` (the native Rust peer).
|
|
3915
|
+
*
|
|
3916
|
+
* Returns `true` if and only if the two instance of `BuildSenderErrorInterface` are
|
|
3917
|
+
* equivalent on the Rust side.
|
|
3918
|
+
*
|
|
3919
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
3920
|
+
*/
|
|
3921
|
+
equals(other: BuildSenderError): boolean;
|
|
2087
3922
|
/**
|
|
2088
3923
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2089
3924
|
*/
|
|
2090
3925
|
uniffiDestroy(): void;
|
|
2091
3926
|
static instanceOf(obj: any): obj is BuildSenderError;
|
|
2092
|
-
static hasInner(obj: any): obj is UniffiThrownObject<BuildSenderError>;
|
|
2093
|
-
static getInner(err: UniffiThrownObject<BuildSenderError>): BuildSenderError;
|
|
2094
3927
|
}
|
|
2095
3928
|
export interface CanBroadcast {
|
|
2096
3929
|
callback(tx: ArrayBuffer): boolean;
|
|
@@ -2107,6 +3940,47 @@ export declare class CanBroadcastImpl extends UniffiAbstractObject implements Ca
|
|
|
2107
3940
|
uniffiDestroy(): void;
|
|
2108
3941
|
static instanceOf(obj: any): obj is CanBroadcastImpl;
|
|
2109
3942
|
}
|
|
3943
|
+
/**
|
|
3944
|
+
* A terminal transition produced by cancelling a receiver session.
|
|
3945
|
+
*/
|
|
3946
|
+
export interface CancelTransitionInterface {
|
|
3947
|
+
/**
|
|
3948
|
+
* Persist the cancellation and return the fallback transaction if available.
|
|
3949
|
+
*
|
|
3950
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes,
|
|
3951
|
+
* or `None` if the session was cancelled before the sender's original
|
|
3952
|
+
* proposal was received.
|
|
3953
|
+
*/
|
|
3954
|
+
save(persister: JsonReceiverSessionPersister): ArrayBuffer | undefined;
|
|
3955
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3956
|
+
signal: AbortSignal;
|
|
3957
|
+
}): Promise<ArrayBuffer | undefined>;
|
|
3958
|
+
}
|
|
3959
|
+
/**
|
|
3960
|
+
* A terminal transition produced by cancelling a receiver session.
|
|
3961
|
+
*/
|
|
3962
|
+
export declare class CancelTransition extends UniffiAbstractObject implements CancelTransitionInterface {
|
|
3963
|
+
readonly [uniffiTypeNameSymbol] = "CancelTransition";
|
|
3964
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3965
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3966
|
+
private constructor();
|
|
3967
|
+
/**
|
|
3968
|
+
* Persist the cancellation and return the fallback transaction if available.
|
|
3969
|
+
*
|
|
3970
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes,
|
|
3971
|
+
* or `None` if the session was cancelled before the sender's original
|
|
3972
|
+
* proposal was received.
|
|
3973
|
+
*/
|
|
3974
|
+
save(persister: JsonReceiverSessionPersister): ArrayBuffer | undefined;
|
|
3975
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3976
|
+
signal: AbortSignal;
|
|
3977
|
+
}): Promise<ArrayBuffer | undefined>;
|
|
3978
|
+
/**
|
|
3979
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3980
|
+
*/
|
|
3981
|
+
uniffiDestroy(): void;
|
|
3982
|
+
static instanceOf(obj: any): obj is CancelTransition;
|
|
3983
|
+
}
|
|
2110
3984
|
export interface ClientResponseInterface {
|
|
2111
3985
|
}
|
|
2112
3986
|
export declare class ClientResponse extends UniffiAbstractObject implements ClientResponseInterface {
|
|
@@ -2141,6 +4015,18 @@ export declare class CreateRequestError extends UniffiAbstractObject implements
|
|
|
2141
4015
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2142
4016
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2143
4017
|
private constructor();
|
|
4018
|
+
/**
|
|
4019
|
+
* Calls into the `Debug` string representation of `CreateRequestErrorInterface` (the native Rust peer).
|
|
4020
|
+
*
|
|
4021
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4022
|
+
*/
|
|
4023
|
+
toDebugString(): string;
|
|
4024
|
+
/**
|
|
4025
|
+
* Calls into the `CreateRequestErrorInterface::to_string()` method of the native Rust peer.
|
|
4026
|
+
*
|
|
4027
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4028
|
+
*/
|
|
4029
|
+
toString(): string;
|
|
2144
4030
|
/**
|
|
2145
4031
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2146
4032
|
*/
|
|
@@ -2162,6 +4048,18 @@ export declare class EncapsulationError extends UniffiAbstractObject implements
|
|
|
2162
4048
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2163
4049
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2164
4050
|
private constructor();
|
|
4051
|
+
/**
|
|
4052
|
+
* Calls into the `Debug` string representation of `EncapsulationErrorInterface` (the native Rust peer).
|
|
4053
|
+
*
|
|
4054
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4055
|
+
*/
|
|
4056
|
+
toDebugString(): string;
|
|
4057
|
+
/**
|
|
4058
|
+
* Calls into the `EncapsulationErrorInterface::to_string()` method of the native Rust peer.
|
|
4059
|
+
*
|
|
4060
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4061
|
+
*/
|
|
4062
|
+
toString(): string;
|
|
2165
4063
|
/**
|
|
2166
4064
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2167
4065
|
*/
|
|
@@ -2175,6 +4073,18 @@ export declare class FeeRateError extends UniffiAbstractObject implements FeeRat
|
|
|
2175
4073
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2176
4074
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2177
4075
|
private constructor();
|
|
4076
|
+
/**
|
|
4077
|
+
* Calls into the `Debug` string representation of `FeeRateErrorInterface` (the native Rust peer).
|
|
4078
|
+
*
|
|
4079
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4080
|
+
*/
|
|
4081
|
+
toDebugString(): string;
|
|
4082
|
+
/**
|
|
4083
|
+
* Calls into the `FeeRateErrorInterface::to_string()` method of the native Rust peer.
|
|
4084
|
+
*
|
|
4085
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4086
|
+
*/
|
|
4087
|
+
toString(): string;
|
|
2178
4088
|
/**
|
|
2179
4089
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2180
4090
|
*/
|
|
@@ -2184,6 +4094,16 @@ export declare class FeeRateError extends UniffiAbstractObject implements FeeRat
|
|
|
2184
4094
|
static getInner(err: UniffiThrownObject<FeeRateError>): FeeRateError;
|
|
2185
4095
|
}
|
|
2186
4096
|
export interface HasReplyableErrorInterface {
|
|
4097
|
+
/**
|
|
4098
|
+
* Cancel the Payjoin session immediately.
|
|
4099
|
+
*
|
|
4100
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4101
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4102
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4103
|
+
*
|
|
4104
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4105
|
+
*/
|
|
4106
|
+
cancel(): CancelTransitionInterface;
|
|
2187
4107
|
createErrorRequest(ohttpRelay: string): RequestResponse;
|
|
2188
4108
|
processErrorResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): HasReplyableErrorTransitionInterface;
|
|
2189
4109
|
}
|
|
@@ -2192,6 +4112,16 @@ export declare class HasReplyableError extends UniffiAbstractObject implements H
|
|
|
2192
4112
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2193
4113
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2194
4114
|
private constructor();
|
|
4115
|
+
/**
|
|
4116
|
+
* Cancel the Payjoin session immediately.
|
|
4117
|
+
*
|
|
4118
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4119
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4120
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4121
|
+
*
|
|
4122
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4123
|
+
*/
|
|
4124
|
+
cancel(): CancelTransitionInterface;
|
|
2195
4125
|
createErrorRequest(ohttpRelay: string): RequestResponse;
|
|
2196
4126
|
processErrorResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): HasReplyableErrorTransitionInterface;
|
|
2197
4127
|
/**
|
|
@@ -2202,6 +4132,9 @@ export declare class HasReplyableError extends UniffiAbstractObject implements H
|
|
|
2202
4132
|
}
|
|
2203
4133
|
export interface HasReplyableErrorTransitionInterface {
|
|
2204
4134
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4135
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4136
|
+
signal: AbortSignal;
|
|
4137
|
+
}): Promise<void>;
|
|
2205
4138
|
}
|
|
2206
4139
|
export declare class HasReplyableErrorTransition extends UniffiAbstractObject implements HasReplyableErrorTransitionInterface {
|
|
2207
4140
|
readonly [uniffiTypeNameSymbol] = "HasReplyableErrorTransition";
|
|
@@ -2209,6 +4142,9 @@ export declare class HasReplyableErrorTransition extends UniffiAbstractObject im
|
|
|
2209
4142
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2210
4143
|
private constructor();
|
|
2211
4144
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4145
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4146
|
+
signal: AbortSignal;
|
|
4147
|
+
}): Promise<void>;
|
|
2212
4148
|
/**
|
|
2213
4149
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2214
4150
|
*/
|
|
@@ -2232,6 +4168,18 @@ export declare class ImplementationError extends UniffiAbstractObject implements
|
|
|
2232
4168
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2233
4169
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2234
4170
|
private constructor();
|
|
4171
|
+
/**
|
|
4172
|
+
* Calls into the `Debug` string representation of `ImplementationErrorInterface` (the native Rust peer).
|
|
4173
|
+
*
|
|
4174
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4175
|
+
*/
|
|
4176
|
+
toDebugString(): string;
|
|
4177
|
+
/**
|
|
4178
|
+
* Calls into the `ImplementationErrorInterface::to_string()` method of the native Rust peer.
|
|
4179
|
+
*
|
|
4180
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4181
|
+
*/
|
|
4182
|
+
toString(): string;
|
|
2235
4183
|
/**
|
|
2236
4184
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2237
4185
|
*/
|
|
@@ -2240,6 +4188,9 @@ export declare class ImplementationError extends UniffiAbstractObject implements
|
|
|
2240
4188
|
}
|
|
2241
4189
|
export interface InitialReceiveTransitionInterface {
|
|
2242
4190
|
save(persister: JsonReceiverSessionPersister): InitializedInterface;
|
|
4191
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4192
|
+
signal: AbortSignal;
|
|
4193
|
+
}): Promise<InitializedInterface>;
|
|
2243
4194
|
}
|
|
2244
4195
|
export declare class InitialReceiveTransition extends UniffiAbstractObject implements InitialReceiveTransitionInterface {
|
|
2245
4196
|
readonly [uniffiTypeNameSymbol] = "InitialReceiveTransition";
|
|
@@ -2247,6 +4198,9 @@ export declare class InitialReceiveTransition extends UniffiAbstractObject imple
|
|
|
2247
4198
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2248
4199
|
private constructor();
|
|
2249
4200
|
save(persister: JsonReceiverSessionPersister): InitializedInterface;
|
|
4201
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4202
|
+
signal: AbortSignal;
|
|
4203
|
+
}): Promise<InitializedInterface>;
|
|
2250
4204
|
/**
|
|
2251
4205
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2252
4206
|
*/
|
|
@@ -2255,6 +4209,9 @@ export declare class InitialReceiveTransition extends UniffiAbstractObject imple
|
|
|
2255
4209
|
}
|
|
2256
4210
|
export interface InitialSendTransitionInterface {
|
|
2257
4211
|
save(persister: JsonSenderSessionPersister): WithReplyKeyInterface;
|
|
4212
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4213
|
+
signal: AbortSignal;
|
|
4214
|
+
}): Promise<WithReplyKeyInterface>;
|
|
2258
4215
|
}
|
|
2259
4216
|
export declare class InitialSendTransition extends UniffiAbstractObject implements InitialSendTransitionInterface {
|
|
2260
4217
|
readonly [uniffiTypeNameSymbol] = "InitialSendTransition";
|
|
@@ -2262,6 +4219,9 @@ export declare class InitialSendTransition extends UniffiAbstractObject implemen
|
|
|
2262
4219
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2263
4220
|
private constructor();
|
|
2264
4221
|
save(persister: JsonSenderSessionPersister): WithReplyKeyInterface;
|
|
4222
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4223
|
+
signal: AbortSignal;
|
|
4224
|
+
}): Promise<WithReplyKeyInterface>;
|
|
2265
4225
|
/**
|
|
2266
4226
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2267
4227
|
*/
|
|
@@ -2269,6 +4229,16 @@ export declare class InitialSendTransition extends UniffiAbstractObject implemen
|
|
|
2269
4229
|
static instanceOf(obj: any): obj is InitialSendTransition;
|
|
2270
4230
|
}
|
|
2271
4231
|
export interface InitializedInterface {
|
|
4232
|
+
/**
|
|
4233
|
+
* Cancel the Payjoin session immediately.
|
|
4234
|
+
*
|
|
4235
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4236
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4237
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4238
|
+
*
|
|
4239
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4240
|
+
*/
|
|
4241
|
+
cancel(): CancelTransitionInterface;
|
|
2272
4242
|
/**
|
|
2273
4243
|
* Construct an OHTTP encapsulated GET request, polling the mailbox for the Original PSBT
|
|
2274
4244
|
*/
|
|
@@ -2287,6 +4257,16 @@ export declare class Initialized extends UniffiAbstractObject implements Initial
|
|
|
2287
4257
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2288
4258
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2289
4259
|
private constructor();
|
|
4260
|
+
/**
|
|
4261
|
+
* Cancel the Payjoin session immediately.
|
|
4262
|
+
*
|
|
4263
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4264
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4265
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4266
|
+
*
|
|
4267
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4268
|
+
*/
|
|
4269
|
+
cancel(): CancelTransitionInterface;
|
|
2290
4270
|
/**
|
|
2291
4271
|
* Construct an OHTTP encapsulated GET request, polling the mailbox for the Original PSBT
|
|
2292
4272
|
*/
|
|
@@ -2307,6 +4287,9 @@ export declare class Initialized extends UniffiAbstractObject implements Initial
|
|
|
2307
4287
|
}
|
|
2308
4288
|
export interface InitializedTransitionInterface {
|
|
2309
4289
|
save(persister: JsonReceiverSessionPersister): InitializedTransitionOutcome;
|
|
4290
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4291
|
+
signal: AbortSignal;
|
|
4292
|
+
}): Promise<InitializedTransitionOutcome>;
|
|
2310
4293
|
}
|
|
2311
4294
|
export declare class InitializedTransition extends UniffiAbstractObject implements InitializedTransitionInterface {
|
|
2312
4295
|
readonly [uniffiTypeNameSymbol] = "InitializedTransition";
|
|
@@ -2314,6 +4297,9 @@ export declare class InitializedTransition extends UniffiAbstractObject implemen
|
|
|
2314
4297
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2315
4298
|
private constructor();
|
|
2316
4299
|
save(persister: JsonReceiverSessionPersister): InitializedTransitionOutcome;
|
|
4300
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4301
|
+
signal: AbortSignal;
|
|
4302
|
+
}): Promise<InitializedTransitionOutcome>;
|
|
2317
4303
|
/**
|
|
2318
4304
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2319
4305
|
*/
|
|
@@ -2333,6 +4319,18 @@ export declare class InputContributionError extends UniffiAbstractObject impleme
|
|
|
2333
4319
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2334
4320
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2335
4321
|
private constructor();
|
|
4322
|
+
/**
|
|
4323
|
+
* Calls into the `Debug` string representation of `InputContributionErrorInterface` (the native Rust peer).
|
|
4324
|
+
*
|
|
4325
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4326
|
+
*/
|
|
4327
|
+
toDebugString(): string;
|
|
4328
|
+
/**
|
|
4329
|
+
* Calls into the `InputContributionErrorInterface::to_string()` method of the native Rust peer.
|
|
4330
|
+
*
|
|
4331
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4332
|
+
*/
|
|
4333
|
+
toString(): string;
|
|
2336
4334
|
/**
|
|
2337
4335
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2338
4336
|
*/
|
|
@@ -2347,7 +4345,7 @@ export declare class InputPair extends UniffiAbstractObject implements InputPair
|
|
|
2347
4345
|
readonly [uniffiTypeNameSymbol] = "InputPair";
|
|
2348
4346
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2349
4347
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2350
|
-
constructor(txin:
|
|
4348
|
+
constructor(txin: PlainTxIn, psbtin: PlainPsbtInput, expectedWeight: PlainWeight | undefined);
|
|
2351
4349
|
/**
|
|
2352
4350
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2353
4351
|
*/
|
|
@@ -2361,23 +4359,33 @@ export declare class IntoUrlError extends UniffiAbstractObject implements IntoUr
|
|
|
2361
4359
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2362
4360
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2363
4361
|
private constructor();
|
|
4362
|
+
/**
|
|
4363
|
+
* Calls into the `Debug` string representation of `IntoUrlErrorInterface` (the native Rust peer).
|
|
4364
|
+
*
|
|
4365
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4366
|
+
*/
|
|
4367
|
+
toDebugString(): string;
|
|
4368
|
+
/**
|
|
4369
|
+
* Calls into the `IntoUrlErrorInterface::to_string()` method of the native Rust peer.
|
|
4370
|
+
*
|
|
4371
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4372
|
+
*/
|
|
4373
|
+
toString(): string;
|
|
2364
4374
|
/**
|
|
2365
4375
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2366
4376
|
*/
|
|
2367
4377
|
uniffiDestroy(): void;
|
|
2368
4378
|
static instanceOf(obj: any): obj is IntoUrlError;
|
|
2369
|
-
static hasInner(obj: any): obj is UniffiThrownObject<IntoUrlError>;
|
|
2370
|
-
static getInner(err: UniffiThrownObject<IntoUrlError>): IntoUrlError;
|
|
2371
4379
|
}
|
|
2372
4380
|
export interface IsOutputKnown {
|
|
2373
|
-
callback(outpoint:
|
|
4381
|
+
callback(outpoint: PlainOutPoint): boolean;
|
|
2374
4382
|
}
|
|
2375
4383
|
export declare class IsOutputKnownImpl extends UniffiAbstractObject implements IsOutputKnown {
|
|
2376
4384
|
readonly [uniffiTypeNameSymbol] = "IsOutputKnownImpl";
|
|
2377
4385
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2378
4386
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2379
4387
|
private constructor();
|
|
2380
|
-
callback(outpoint:
|
|
4388
|
+
callback(outpoint: PlainOutPoint): boolean;
|
|
2381
4389
|
/**
|
|
2382
4390
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2383
4391
|
*/
|
|
@@ -2424,6 +4432,43 @@ export declare class JsonReceiverSessionPersisterImpl extends UniffiAbstractObje
|
|
|
2424
4432
|
uniffiDestroy(): void;
|
|
2425
4433
|
static instanceOf(obj: any): obj is JsonReceiverSessionPersisterImpl;
|
|
2426
4434
|
}
|
|
4435
|
+
/**
|
|
4436
|
+
* Async session persister that should save and load events as JSON strings.
|
|
4437
|
+
*/
|
|
4438
|
+
export interface JsonReceiverSessionPersisterAsync {
|
|
4439
|
+
save(event: string, asyncOpts_?: {
|
|
4440
|
+
signal: AbortSignal;
|
|
4441
|
+
}): Promise<void>;
|
|
4442
|
+
load(asyncOpts_?: {
|
|
4443
|
+
signal: AbortSignal;
|
|
4444
|
+
}): Promise<Array<string>>;
|
|
4445
|
+
close(asyncOpts_?: {
|
|
4446
|
+
signal: AbortSignal;
|
|
4447
|
+
}): Promise<void>;
|
|
4448
|
+
}
|
|
4449
|
+
/**
|
|
4450
|
+
* Async session persister that should save and load events as JSON strings.
|
|
4451
|
+
*/
|
|
4452
|
+
export declare class JsonReceiverSessionPersisterAsyncImpl extends UniffiAbstractObject implements JsonReceiverSessionPersisterAsync {
|
|
4453
|
+
readonly [uniffiTypeNameSymbol] = "JsonReceiverSessionPersisterAsyncImpl";
|
|
4454
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4455
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4456
|
+
private constructor();
|
|
4457
|
+
save(event: string, asyncOpts_?: {
|
|
4458
|
+
signal: AbortSignal;
|
|
4459
|
+
}): Promise<void>;
|
|
4460
|
+
load(asyncOpts_?: {
|
|
4461
|
+
signal: AbortSignal;
|
|
4462
|
+
}): Promise<Array<string>>;
|
|
4463
|
+
close(asyncOpts_?: {
|
|
4464
|
+
signal: AbortSignal;
|
|
4465
|
+
}): Promise<void>;
|
|
4466
|
+
/**
|
|
4467
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4468
|
+
*/
|
|
4469
|
+
uniffiDestroy(): void;
|
|
4470
|
+
static instanceOf(obj: any): obj is JsonReceiverSessionPersisterAsyncImpl;
|
|
4471
|
+
}
|
|
2427
4472
|
/**
|
|
2428
4473
|
* The standard format for errors that can be replied as JSON.
|
|
2429
4474
|
*
|
|
@@ -2453,6 +4498,27 @@ export declare class JsonReply extends UniffiAbstractObject implements JsonReply
|
|
|
2453
4498
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2454
4499
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2455
4500
|
private constructor();
|
|
4501
|
+
/**
|
|
4502
|
+
* Calls into the `Debug` string representation of `JsonReplyInterface` (the native Rust peer).
|
|
4503
|
+
*
|
|
4504
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4505
|
+
*/
|
|
4506
|
+
toDebugString(): string;
|
|
4507
|
+
/**
|
|
4508
|
+
* Calls into the `Debug` string representation of `JsonReplyInterface` (the native Rust peer).
|
|
4509
|
+
*
|
|
4510
|
+
* Generated by deriving the `Debug` trait in Rust, without deriving `Display`.
|
|
4511
|
+
*/
|
|
4512
|
+
toString(): string;
|
|
4513
|
+
/**
|
|
4514
|
+
* Calls into the `==` method of `JsonReplyInterface` (the native Rust peer).
|
|
4515
|
+
*
|
|
4516
|
+
* Returns `true` if and only if the two instance of `JsonReplyInterface` are
|
|
4517
|
+
* equivalent on the Rust side.
|
|
4518
|
+
*
|
|
4519
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
4520
|
+
*/
|
|
4521
|
+
equals(other: JsonReply): boolean;
|
|
2456
4522
|
/**
|
|
2457
4523
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2458
4524
|
*/
|
|
@@ -2484,7 +4550,54 @@ export declare class JsonSenderSessionPersisterImpl extends UniffiAbstractObject
|
|
|
2484
4550
|
uniffiDestroy(): void;
|
|
2485
4551
|
static instanceOf(obj: any): obj is JsonSenderSessionPersisterImpl;
|
|
2486
4552
|
}
|
|
4553
|
+
/**
|
|
4554
|
+
* Async session persister that should save and load events as JSON strings.
|
|
4555
|
+
*/
|
|
4556
|
+
export interface JsonSenderSessionPersisterAsync {
|
|
4557
|
+
save(event: string, asyncOpts_?: {
|
|
4558
|
+
signal: AbortSignal;
|
|
4559
|
+
}): Promise<void>;
|
|
4560
|
+
load(asyncOpts_?: {
|
|
4561
|
+
signal: AbortSignal;
|
|
4562
|
+
}): Promise<Array<string>>;
|
|
4563
|
+
close(asyncOpts_?: {
|
|
4564
|
+
signal: AbortSignal;
|
|
4565
|
+
}): Promise<void>;
|
|
4566
|
+
}
|
|
4567
|
+
/**
|
|
4568
|
+
* Async session persister that should save and load events as JSON strings.
|
|
4569
|
+
*/
|
|
4570
|
+
export declare class JsonSenderSessionPersisterAsyncImpl extends UniffiAbstractObject implements JsonSenderSessionPersisterAsync {
|
|
4571
|
+
readonly [uniffiTypeNameSymbol] = "JsonSenderSessionPersisterAsyncImpl";
|
|
4572
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4573
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4574
|
+
private constructor();
|
|
4575
|
+
save(event: string, asyncOpts_?: {
|
|
4576
|
+
signal: AbortSignal;
|
|
4577
|
+
}): Promise<void>;
|
|
4578
|
+
load(asyncOpts_?: {
|
|
4579
|
+
signal: AbortSignal;
|
|
4580
|
+
}): Promise<Array<string>>;
|
|
4581
|
+
close(asyncOpts_?: {
|
|
4582
|
+
signal: AbortSignal;
|
|
4583
|
+
}): Promise<void>;
|
|
4584
|
+
/**
|
|
4585
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4586
|
+
*/
|
|
4587
|
+
uniffiDestroy(): void;
|
|
4588
|
+
static instanceOf(obj: any): obj is JsonSenderSessionPersisterAsyncImpl;
|
|
4589
|
+
}
|
|
2487
4590
|
export interface MaybeInputsOwnedInterface {
|
|
4591
|
+
/**
|
|
4592
|
+
* Cancel the Payjoin session immediately.
|
|
4593
|
+
*
|
|
4594
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4595
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4596
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4597
|
+
*
|
|
4598
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4599
|
+
*/
|
|
4600
|
+
cancel(): CancelTransitionInterface;
|
|
2488
4601
|
checkInputsNotOwned(isOwned: IsScriptOwned): MaybeInputsOwnedTransitionInterface;
|
|
2489
4602
|
/**
|
|
2490
4603
|
* The Sender’s Original PSBT
|
|
@@ -2496,6 +4609,16 @@ export declare class MaybeInputsOwned extends UniffiAbstractObject implements Ma
|
|
|
2496
4609
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2497
4610
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2498
4611
|
private constructor();
|
|
4612
|
+
/**
|
|
4613
|
+
* Cancel the Payjoin session immediately.
|
|
4614
|
+
*
|
|
4615
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4616
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4617
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4618
|
+
*
|
|
4619
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4620
|
+
*/
|
|
4621
|
+
cancel(): CancelTransitionInterface;
|
|
2499
4622
|
checkInputsNotOwned(isOwned: IsScriptOwned): MaybeInputsOwnedTransitionInterface;
|
|
2500
4623
|
/**
|
|
2501
4624
|
* The Sender’s Original PSBT
|
|
@@ -2509,6 +4632,9 @@ export declare class MaybeInputsOwned extends UniffiAbstractObject implements Ma
|
|
|
2509
4632
|
}
|
|
2510
4633
|
export interface MaybeInputsOwnedTransitionInterface {
|
|
2511
4634
|
save(persister: JsonReceiverSessionPersister): MaybeInputsSeenInterface;
|
|
4635
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4636
|
+
signal: AbortSignal;
|
|
4637
|
+
}): Promise<MaybeInputsSeenInterface>;
|
|
2512
4638
|
}
|
|
2513
4639
|
export declare class MaybeInputsOwnedTransition extends UniffiAbstractObject implements MaybeInputsOwnedTransitionInterface {
|
|
2514
4640
|
readonly [uniffiTypeNameSymbol] = "MaybeInputsOwnedTransition";
|
|
@@ -2516,6 +4642,9 @@ export declare class MaybeInputsOwnedTransition extends UniffiAbstractObject imp
|
|
|
2516
4642
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2517
4643
|
private constructor();
|
|
2518
4644
|
save(persister: JsonReceiverSessionPersister): MaybeInputsSeenInterface;
|
|
4645
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4646
|
+
signal: AbortSignal;
|
|
4647
|
+
}): Promise<MaybeInputsSeenInterface>;
|
|
2519
4648
|
/**
|
|
2520
4649
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2521
4650
|
*/
|
|
@@ -2523,6 +4652,16 @@ export declare class MaybeInputsOwnedTransition extends UniffiAbstractObject imp
|
|
|
2523
4652
|
static instanceOf(obj: any): obj is MaybeInputsOwnedTransition;
|
|
2524
4653
|
}
|
|
2525
4654
|
export interface MaybeInputsSeenInterface {
|
|
4655
|
+
/**
|
|
4656
|
+
* Cancel the Payjoin session immediately.
|
|
4657
|
+
*
|
|
4658
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4659
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4660
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4661
|
+
*
|
|
4662
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4663
|
+
*/
|
|
4664
|
+
cancel(): CancelTransitionInterface;
|
|
2526
4665
|
checkNoInputsSeenBefore(isKnown: IsOutputKnown): MaybeInputsSeenTransitionInterface;
|
|
2527
4666
|
}
|
|
2528
4667
|
export declare class MaybeInputsSeen extends UniffiAbstractObject implements MaybeInputsSeenInterface {
|
|
@@ -2530,6 +4669,16 @@ export declare class MaybeInputsSeen extends UniffiAbstractObject implements May
|
|
|
2530
4669
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2531
4670
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2532
4671
|
private constructor();
|
|
4672
|
+
/**
|
|
4673
|
+
* Cancel the Payjoin session immediately.
|
|
4674
|
+
*
|
|
4675
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4676
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4677
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4678
|
+
*
|
|
4679
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4680
|
+
*/
|
|
4681
|
+
cancel(): CancelTransitionInterface;
|
|
2533
4682
|
checkNoInputsSeenBefore(isKnown: IsOutputKnown): MaybeInputsSeenTransitionInterface;
|
|
2534
4683
|
/**
|
|
2535
4684
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -2539,6 +4688,9 @@ export declare class MaybeInputsSeen extends UniffiAbstractObject implements May
|
|
|
2539
4688
|
}
|
|
2540
4689
|
export interface MaybeInputsSeenTransitionInterface {
|
|
2541
4690
|
save(persister: JsonReceiverSessionPersister): OutputsUnknownInterface;
|
|
4691
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4692
|
+
signal: AbortSignal;
|
|
4693
|
+
}): Promise<OutputsUnknownInterface>;
|
|
2542
4694
|
}
|
|
2543
4695
|
export declare class MaybeInputsSeenTransition extends UniffiAbstractObject implements MaybeInputsSeenTransitionInterface {
|
|
2544
4696
|
readonly [uniffiTypeNameSymbol] = "MaybeInputsSeenTransition";
|
|
@@ -2546,6 +4698,9 @@ export declare class MaybeInputsSeenTransition extends UniffiAbstractObject impl
|
|
|
2546
4698
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2547
4699
|
private constructor();
|
|
2548
4700
|
save(persister: JsonReceiverSessionPersister): OutputsUnknownInterface;
|
|
4701
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4702
|
+
signal: AbortSignal;
|
|
4703
|
+
}): Promise<OutputsUnknownInterface>;
|
|
2549
4704
|
/**
|
|
2550
4705
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2551
4706
|
*/
|
|
@@ -2553,14 +4708,34 @@ export declare class MaybeInputsSeenTransition extends UniffiAbstractObject impl
|
|
|
2553
4708
|
static instanceOf(obj: any): obj is MaybeInputsSeenTransition;
|
|
2554
4709
|
}
|
|
2555
4710
|
export interface MonitorInterface {
|
|
2556
|
-
|
|
4711
|
+
/**
|
|
4712
|
+
* Cancel the Payjoin session immediately.
|
|
4713
|
+
*
|
|
4714
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4715
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4716
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4717
|
+
*
|
|
4718
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4719
|
+
*/
|
|
4720
|
+
cancel(): CancelTransitionInterface;
|
|
4721
|
+
monitor(transactionExists: TransactionExists): MonitorTransitionInterface;
|
|
2557
4722
|
}
|
|
2558
4723
|
export declare class Monitor extends UniffiAbstractObject implements MonitorInterface {
|
|
2559
4724
|
readonly [uniffiTypeNameSymbol] = "Monitor";
|
|
2560
4725
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2561
4726
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2562
4727
|
private constructor();
|
|
2563
|
-
|
|
4728
|
+
/**
|
|
4729
|
+
* Cancel the Payjoin session immediately.
|
|
4730
|
+
*
|
|
4731
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4732
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4733
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4734
|
+
*
|
|
4735
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4736
|
+
*/
|
|
4737
|
+
cancel(): CancelTransitionInterface;
|
|
4738
|
+
monitor(transactionExists: TransactionExists): MonitorTransitionInterface;
|
|
2564
4739
|
/**
|
|
2565
4740
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2566
4741
|
*/
|
|
@@ -2569,6 +4744,9 @@ export declare class Monitor extends UniffiAbstractObject implements MonitorInte
|
|
|
2569
4744
|
}
|
|
2570
4745
|
export interface MonitorTransitionInterface {
|
|
2571
4746
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4747
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4748
|
+
signal: AbortSignal;
|
|
4749
|
+
}): Promise<void>;
|
|
2572
4750
|
}
|
|
2573
4751
|
export declare class MonitorTransition extends UniffiAbstractObject implements MonitorTransitionInterface {
|
|
2574
4752
|
readonly [uniffiTypeNameSymbol] = "MonitorTransition";
|
|
@@ -2576,6 +4754,9 @@ export declare class MonitorTransition extends UniffiAbstractObject implements M
|
|
|
2576
4754
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2577
4755
|
private constructor();
|
|
2578
4756
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4757
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4758
|
+
signal: AbortSignal;
|
|
4759
|
+
}): Promise<void>;
|
|
2579
4760
|
/**
|
|
2580
4761
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2581
4762
|
*/
|
|
@@ -2589,6 +4770,18 @@ export declare class OhttpError extends UniffiAbstractObject implements OhttpErr
|
|
|
2589
4770
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2590
4771
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2591
4772
|
private constructor();
|
|
4773
|
+
/**
|
|
4774
|
+
* Calls into the `Debug` string representation of `OhttpErrorInterface` (the native Rust peer).
|
|
4775
|
+
*
|
|
4776
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4777
|
+
*/
|
|
4778
|
+
toDebugString(): string;
|
|
4779
|
+
/**
|
|
4780
|
+
* Calls into the `OhttpErrorInterface::to_string()` method of the native Rust peer.
|
|
4781
|
+
*
|
|
4782
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4783
|
+
*/
|
|
4784
|
+
toString(): string;
|
|
2592
4785
|
/**
|
|
2593
4786
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2594
4787
|
*/
|
|
@@ -2614,41 +4807,36 @@ export declare class OhttpKeys extends UniffiAbstractObject implements OhttpKeys
|
|
|
2614
4807
|
uniffiDestroy(): void;
|
|
2615
4808
|
static instanceOf(obj: any): obj is OhttpKeys;
|
|
2616
4809
|
}
|
|
2617
|
-
export interface OutpointSpent {
|
|
2618
|
-
callback(outpoint: OutPoint): boolean;
|
|
2619
|
-
}
|
|
2620
|
-
export declare class OutpointSpentImpl extends UniffiAbstractObject implements OutpointSpent {
|
|
2621
|
-
readonly [uniffiTypeNameSymbol] = "OutpointSpentImpl";
|
|
2622
|
-
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2623
|
-
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2624
|
-
private constructor();
|
|
2625
|
-
callback(outpoint: OutPoint): boolean;
|
|
2626
|
-
/**
|
|
2627
|
-
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2628
|
-
*/
|
|
2629
|
-
uniffiDestroy(): void;
|
|
2630
|
-
static instanceOf(obj: any): obj is OutpointSpentImpl;
|
|
2631
|
-
}
|
|
2632
4810
|
/**
|
|
2633
|
-
*
|
|
4811
|
+
* Protocol error raised during output substitution.
|
|
2634
4812
|
*/
|
|
2635
|
-
export interface
|
|
4813
|
+
export interface OutputSubstitutionProtocolErrorInterface {
|
|
2636
4814
|
}
|
|
2637
4815
|
/**
|
|
2638
|
-
*
|
|
4816
|
+
* Protocol error raised during output substitution.
|
|
2639
4817
|
*/
|
|
2640
|
-
export declare class
|
|
2641
|
-
readonly [uniffiTypeNameSymbol] = "
|
|
4818
|
+
export declare class OutputSubstitutionProtocolError extends UniffiAbstractObject implements OutputSubstitutionProtocolErrorInterface {
|
|
4819
|
+
readonly [uniffiTypeNameSymbol] = "OutputSubstitutionProtocolError";
|
|
2642
4820
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2643
4821
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2644
4822
|
private constructor();
|
|
4823
|
+
/**
|
|
4824
|
+
* Calls into the `Debug` string representation of `OutputSubstitutionProtocolErrorInterface` (the native Rust peer).
|
|
4825
|
+
*
|
|
4826
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
4827
|
+
*/
|
|
4828
|
+
toDebugString(): string;
|
|
4829
|
+
/**
|
|
4830
|
+
* Calls into the `OutputSubstitutionProtocolErrorInterface::to_string()` method of the native Rust peer.
|
|
4831
|
+
*
|
|
4832
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
4833
|
+
*/
|
|
4834
|
+
toString(): string;
|
|
2645
4835
|
/**
|
|
2646
4836
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2647
4837
|
*/
|
|
2648
4838
|
uniffiDestroy(): void;
|
|
2649
|
-
static instanceOf(obj: any): obj is
|
|
2650
|
-
static hasInner(obj: any): obj is UniffiThrownObject<OutputSubstitutionError>;
|
|
2651
|
-
static getInner(err: UniffiThrownObject<OutputSubstitutionError>): OutputSubstitutionError;
|
|
4839
|
+
static instanceOf(obj: any): obj is OutputSubstitutionProtocolError;
|
|
2652
4840
|
}
|
|
2653
4841
|
/**
|
|
2654
4842
|
* The receiver has not yet identified which outputs belong to the receiver.
|
|
@@ -2657,6 +4845,16 @@ export declare class OutputSubstitutionError extends UniffiAbstractObject implem
|
|
|
2657
4845
|
* Identify those outputs with `identify_receiver_outputs()` to proceed
|
|
2658
4846
|
*/
|
|
2659
4847
|
export interface OutputsUnknownInterface {
|
|
4848
|
+
/**
|
|
4849
|
+
* Cancel the Payjoin session immediately.
|
|
4850
|
+
*
|
|
4851
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4852
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4853
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4854
|
+
*
|
|
4855
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4856
|
+
*/
|
|
4857
|
+
cancel(): CancelTransitionInterface;
|
|
2660
4858
|
/**
|
|
2661
4859
|
* Find which outputs belong to the receiver
|
|
2662
4860
|
*/
|
|
@@ -2673,6 +4871,16 @@ export declare class OutputsUnknown extends UniffiAbstractObject implements Outp
|
|
|
2673
4871
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2674
4872
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2675
4873
|
private constructor();
|
|
4874
|
+
/**
|
|
4875
|
+
* Cancel the Payjoin session immediately.
|
|
4876
|
+
*
|
|
4877
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4878
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4879
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4880
|
+
*
|
|
4881
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4882
|
+
*/
|
|
4883
|
+
cancel(): CancelTransitionInterface;
|
|
2676
4884
|
/**
|
|
2677
4885
|
* Find which outputs belong to the receiver
|
|
2678
4886
|
*/
|
|
@@ -2685,6 +4893,9 @@ export declare class OutputsUnknown extends UniffiAbstractObject implements Outp
|
|
|
2685
4893
|
}
|
|
2686
4894
|
export interface OutputsUnknownTransitionInterface {
|
|
2687
4895
|
save(persister: JsonReceiverSessionPersister): WantsOutputsInterface;
|
|
4896
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4897
|
+
signal: AbortSignal;
|
|
4898
|
+
}): Promise<WantsOutputsInterface>;
|
|
2688
4899
|
}
|
|
2689
4900
|
export declare class OutputsUnknownTransition extends UniffiAbstractObject implements OutputsUnknownTransitionInterface {
|
|
2690
4901
|
readonly [uniffiTypeNameSymbol] = "OutputsUnknownTransition";
|
|
@@ -2692,6 +4903,9 @@ export declare class OutputsUnknownTransition extends UniffiAbstractObject imple
|
|
|
2692
4903
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2693
4904
|
private constructor();
|
|
2694
4905
|
save(persister: JsonReceiverSessionPersister): WantsOutputsInterface;
|
|
4906
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4907
|
+
signal: AbortSignal;
|
|
4908
|
+
}): Promise<WantsOutputsInterface>;
|
|
2695
4909
|
/**
|
|
2696
4910
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2697
4911
|
*/
|
|
@@ -2699,6 +4913,16 @@ export declare class OutputsUnknownTransition extends UniffiAbstractObject imple
|
|
|
2699
4913
|
static instanceOf(obj: any): obj is OutputsUnknownTransition;
|
|
2700
4914
|
}
|
|
2701
4915
|
export interface PayjoinProposalInterface {
|
|
4916
|
+
/**
|
|
4917
|
+
* Cancel the Payjoin session immediately.
|
|
4918
|
+
*
|
|
4919
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4920
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4921
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4922
|
+
*
|
|
4923
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4924
|
+
*/
|
|
4925
|
+
cancel(): CancelTransitionInterface;
|
|
2702
4926
|
/**
|
|
2703
4927
|
* Construct an OHTTP Encapsulated HTTP POST request for the Proposal PSBT
|
|
2704
4928
|
*/
|
|
@@ -2712,13 +4936,23 @@ export interface PayjoinProposalInterface {
|
|
|
2712
4936
|
*/
|
|
2713
4937
|
processResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): PayjoinProposalTransitionInterface;
|
|
2714
4938
|
psbt(): string;
|
|
2715
|
-
utxosToBeLocked(): Array<
|
|
4939
|
+
utxosToBeLocked(): Array<PlainOutPoint>;
|
|
2716
4940
|
}
|
|
2717
4941
|
export declare class PayjoinProposal extends UniffiAbstractObject implements PayjoinProposalInterface {
|
|
2718
4942
|
readonly [uniffiTypeNameSymbol] = "PayjoinProposal";
|
|
2719
4943
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2720
4944
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2721
4945
|
private constructor();
|
|
4946
|
+
/**
|
|
4947
|
+
* Cancel the Payjoin session immediately.
|
|
4948
|
+
*
|
|
4949
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
4950
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
4951
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
4952
|
+
*
|
|
4953
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
4954
|
+
*/
|
|
4955
|
+
cancel(): CancelTransitionInterface;
|
|
2722
4956
|
/**
|
|
2723
4957
|
* Construct an OHTTP Encapsulated HTTP POST request for the Proposal PSBT
|
|
2724
4958
|
*/
|
|
@@ -2732,7 +4966,7 @@ export declare class PayjoinProposal extends UniffiAbstractObject implements Pay
|
|
|
2732
4966
|
*/
|
|
2733
4967
|
processResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): PayjoinProposalTransitionInterface;
|
|
2734
4968
|
psbt(): string;
|
|
2735
|
-
utxosToBeLocked(): Array<
|
|
4969
|
+
utxosToBeLocked(): Array<PlainOutPoint>;
|
|
2736
4970
|
/**
|
|
2737
4971
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2738
4972
|
*/
|
|
@@ -2741,6 +4975,9 @@ export declare class PayjoinProposal extends UniffiAbstractObject implements Pay
|
|
|
2741
4975
|
}
|
|
2742
4976
|
export interface PayjoinProposalTransitionInterface {
|
|
2743
4977
|
save(persister: JsonReceiverSessionPersister): MonitorInterface;
|
|
4978
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4979
|
+
signal: AbortSignal;
|
|
4980
|
+
}): Promise<MonitorInterface>;
|
|
2744
4981
|
}
|
|
2745
4982
|
export declare class PayjoinProposalTransition extends UniffiAbstractObject implements PayjoinProposalTransitionInterface {
|
|
2746
4983
|
readonly [uniffiTypeNameSymbol] = "PayjoinProposalTransition";
|
|
@@ -2748,6 +4985,9 @@ export declare class PayjoinProposalTransition extends UniffiAbstractObject impl
|
|
|
2748
4985
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2749
4986
|
private constructor();
|
|
2750
4987
|
save(persister: JsonReceiverSessionPersister): MonitorInterface;
|
|
4988
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4989
|
+
signal: AbortSignal;
|
|
4990
|
+
}): Promise<MonitorInterface>;
|
|
2751
4991
|
/**
|
|
2752
4992
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2753
4993
|
*/
|
|
@@ -2761,6 +5001,27 @@ export declare class PjNotSupported extends UniffiAbstractObject implements PjNo
|
|
|
2761
5001
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2762
5002
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2763
5003
|
private constructor();
|
|
5004
|
+
/**
|
|
5005
|
+
* Calls into the `Debug` string representation of `PjNotSupportedInterface` (the native Rust peer).
|
|
5006
|
+
*
|
|
5007
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5008
|
+
*/
|
|
5009
|
+
toDebugString(): string;
|
|
5010
|
+
/**
|
|
5011
|
+
* Calls into the `PjNotSupportedInterface::to_string()` method of the native Rust peer.
|
|
5012
|
+
*
|
|
5013
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5014
|
+
*/
|
|
5015
|
+
toString(): string;
|
|
5016
|
+
/**
|
|
5017
|
+
* Calls into the `==` method of `PjNotSupportedInterface` (the native Rust peer).
|
|
5018
|
+
*
|
|
5019
|
+
* Returns `true` if and only if the two instance of `PjNotSupportedInterface` are
|
|
5020
|
+
* equivalent on the Rust side.
|
|
5021
|
+
*
|
|
5022
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
5023
|
+
*/
|
|
5024
|
+
equals(other: PjNotSupported): boolean;
|
|
2764
5025
|
/**
|
|
2765
5026
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2766
5027
|
*/
|
|
@@ -2789,6 +5050,27 @@ export declare class PjParseError extends UniffiAbstractObject implements PjPars
|
|
|
2789
5050
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2790
5051
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2791
5052
|
private constructor();
|
|
5053
|
+
/**
|
|
5054
|
+
* Calls into the `Debug` string representation of `PjParseErrorInterface` (the native Rust peer).
|
|
5055
|
+
*
|
|
5056
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5057
|
+
*/
|
|
5058
|
+
toDebugString(): string;
|
|
5059
|
+
/**
|
|
5060
|
+
* Calls into the `PjParseErrorInterface::to_string()` method of the native Rust peer.
|
|
5061
|
+
*
|
|
5062
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5063
|
+
*/
|
|
5064
|
+
toString(): string;
|
|
5065
|
+
/**
|
|
5066
|
+
* Calls into the `==` method of `PjParseErrorInterface` (the native Rust peer).
|
|
5067
|
+
*
|
|
5068
|
+
* Returns `true` if and only if the two instance of `PjParseErrorInterface` are
|
|
5069
|
+
* equivalent on the Rust side.
|
|
5070
|
+
*
|
|
5071
|
+
* Generated by deriving the `Eq` trait in Rust.
|
|
5072
|
+
*/
|
|
5073
|
+
equals(other: PjParseError): boolean;
|
|
2792
5074
|
/**
|
|
2793
5075
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2794
5076
|
*/
|
|
@@ -2833,6 +5115,16 @@ export declare class PjUri extends UniffiAbstractObject implements PjUriInterfac
|
|
|
2833
5115
|
static instanceOf(obj: any): obj is PjUri;
|
|
2834
5116
|
}
|
|
2835
5117
|
export interface PollingForProposalInterface {
|
|
5118
|
+
/**
|
|
5119
|
+
* Cancel the Payjoin session immediately.
|
|
5120
|
+
*
|
|
5121
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
5122
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
5123
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
5124
|
+
*
|
|
5125
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5126
|
+
*/
|
|
5127
|
+
cancel(): SenderCancelTransitionInterface;
|
|
2836
5128
|
createPollRequest(ohttpRelay: string): RequestOhttpContext;
|
|
2837
5129
|
/**
|
|
2838
5130
|
* Decodes and validates the response.
|
|
@@ -2846,6 +5138,16 @@ export declare class PollingForProposal extends UniffiAbstractObject implements
|
|
|
2846
5138
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2847
5139
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2848
5140
|
private constructor();
|
|
5141
|
+
/**
|
|
5142
|
+
* Cancel the Payjoin session immediately.
|
|
5143
|
+
*
|
|
5144
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
5145
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
5146
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
5147
|
+
*
|
|
5148
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5149
|
+
*/
|
|
5150
|
+
cancel(): SenderCancelTransitionInterface;
|
|
2849
5151
|
createPollRequest(ohttpRelay: string): RequestOhttpContext;
|
|
2850
5152
|
/**
|
|
2851
5153
|
* Decodes and validates the response.
|
|
@@ -2861,6 +5163,9 @@ export declare class PollingForProposal extends UniffiAbstractObject implements
|
|
|
2861
5163
|
}
|
|
2862
5164
|
export interface PollingForProposalTransitionInterface {
|
|
2863
5165
|
save(persister: JsonSenderSessionPersister): PollingForProposalTransitionOutcome;
|
|
5166
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5167
|
+
signal: AbortSignal;
|
|
5168
|
+
}): Promise<PollingForProposalTransitionOutcome>;
|
|
2864
5169
|
}
|
|
2865
5170
|
export declare class PollingForProposalTransition extends UniffiAbstractObject implements PollingForProposalTransitionInterface {
|
|
2866
5171
|
readonly [uniffiTypeNameSymbol] = "PollingForProposalTransition";
|
|
@@ -2868,6 +5173,9 @@ export declare class PollingForProposalTransition extends UniffiAbstractObject i
|
|
|
2868
5173
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2869
5174
|
private constructor();
|
|
2870
5175
|
save(persister: JsonSenderSessionPersister): PollingForProposalTransitionOutcome;
|
|
5176
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5177
|
+
signal: AbortSignal;
|
|
5178
|
+
}): Promise<PollingForProposalTransitionOutcome>;
|
|
2871
5179
|
/**
|
|
2872
5180
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2873
5181
|
*/
|
|
@@ -2918,6 +5226,18 @@ export declare class ProtocolError extends UniffiAbstractObject implements Proto
|
|
|
2918
5226
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2919
5227
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2920
5228
|
private constructor();
|
|
5229
|
+
/**
|
|
5230
|
+
* Calls into the `Debug` string representation of `ProtocolErrorInterface` (the native Rust peer).
|
|
5231
|
+
*
|
|
5232
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5233
|
+
*/
|
|
5234
|
+
toDebugString(): string;
|
|
5235
|
+
/**
|
|
5236
|
+
* Calls into the `ProtocolErrorInterface::to_string()` method of the native Rust peer.
|
|
5237
|
+
*
|
|
5238
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5239
|
+
*/
|
|
5240
|
+
toString(): string;
|
|
2921
5241
|
/**
|
|
2922
5242
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2923
5243
|
*/
|
|
@@ -2925,16 +5245,36 @@ export declare class ProtocolError extends UniffiAbstractObject implements Proto
|
|
|
2925
5245
|
static instanceOf(obj: any): obj is ProtocolError;
|
|
2926
5246
|
}
|
|
2927
5247
|
export interface ProvisionalProposalInterface {
|
|
5248
|
+
/**
|
|
5249
|
+
* Cancel the Payjoin session immediately.
|
|
5250
|
+
*
|
|
5251
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
5252
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
5253
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
5254
|
+
*
|
|
5255
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5256
|
+
*/
|
|
5257
|
+
cancel(): CancelTransitionInterface;
|
|
2928
5258
|
finalizeProposal(processPsbt: ProcessPsbt): ProvisionalProposalTransitionInterface;
|
|
2929
|
-
psbtToSign():
|
|
5259
|
+
psbtToSign(): string;
|
|
2930
5260
|
}
|
|
2931
5261
|
export declare class ProvisionalProposal extends UniffiAbstractObject implements ProvisionalProposalInterface {
|
|
2932
5262
|
readonly [uniffiTypeNameSymbol] = "ProvisionalProposal";
|
|
2933
5263
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2934
5264
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2935
5265
|
private constructor();
|
|
5266
|
+
/**
|
|
5267
|
+
* Cancel the Payjoin session immediately.
|
|
5268
|
+
*
|
|
5269
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
5270
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
5271
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
5272
|
+
*
|
|
5273
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5274
|
+
*/
|
|
5275
|
+
cancel(): CancelTransitionInterface;
|
|
2936
5276
|
finalizeProposal(processPsbt: ProcessPsbt): ProvisionalProposalTransitionInterface;
|
|
2937
|
-
psbtToSign():
|
|
5277
|
+
psbtToSign(): string;
|
|
2938
5278
|
/**
|
|
2939
5279
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2940
5280
|
*/
|
|
@@ -2943,6 +5283,9 @@ export declare class ProvisionalProposal extends UniffiAbstractObject implements
|
|
|
2943
5283
|
}
|
|
2944
5284
|
export interface ProvisionalProposalTransitionInterface {
|
|
2945
5285
|
save(persister: JsonReceiverSessionPersister): PayjoinProposalInterface;
|
|
5286
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5287
|
+
signal: AbortSignal;
|
|
5288
|
+
}): Promise<PayjoinProposalInterface>;
|
|
2946
5289
|
}
|
|
2947
5290
|
export declare class ProvisionalProposalTransition extends UniffiAbstractObject implements ProvisionalProposalTransitionInterface {
|
|
2948
5291
|
readonly [uniffiTypeNameSymbol] = "ProvisionalProposalTransition";
|
|
@@ -2950,6 +5293,9 @@ export declare class ProvisionalProposalTransition extends UniffiAbstractObject
|
|
|
2950
5293
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2951
5294
|
private constructor();
|
|
2952
5295
|
save(persister: JsonReceiverSessionPersister): PayjoinProposalInterface;
|
|
5296
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5297
|
+
signal: AbortSignal;
|
|
5298
|
+
}): Promise<PayjoinProposalInterface>;
|
|
2953
5299
|
/**
|
|
2954
5300
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2955
5301
|
*/
|
|
@@ -2969,13 +5315,23 @@ export declare class PsbtInputError extends UniffiAbstractObject implements Psbt
|
|
|
2969
5315
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2970
5316
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2971
5317
|
private constructor();
|
|
5318
|
+
/**
|
|
5319
|
+
* Calls into the `Debug` string representation of `PsbtInputErrorInterface` (the native Rust peer).
|
|
5320
|
+
*
|
|
5321
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5322
|
+
*/
|
|
5323
|
+
toDebugString(): string;
|
|
5324
|
+
/**
|
|
5325
|
+
* Calls into the `PsbtInputErrorInterface::to_string()` method of the native Rust peer.
|
|
5326
|
+
*
|
|
5327
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5328
|
+
*/
|
|
5329
|
+
toString(): string;
|
|
2972
5330
|
/**
|
|
2973
5331
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2974
5332
|
*/
|
|
2975
5333
|
uniffiDestroy(): void;
|
|
2976
5334
|
static instanceOf(obj: any): obj is PsbtInputError;
|
|
2977
|
-
static hasInner(obj: any): obj is UniffiThrownObject<PsbtInputError>;
|
|
2978
|
-
static getInner(err: UniffiThrownObject<PsbtInputError>): PsbtInputError;
|
|
2979
5335
|
}
|
|
2980
5336
|
export interface ReceiverBuilderInterface {
|
|
2981
5337
|
build(): InitialReceiveTransitionInterface;
|
|
@@ -3001,7 +5357,7 @@ export declare class ReceiverBuilder extends UniffiAbstractObject implements Rec
|
|
|
3001
5357
|
* # References
|
|
3002
5358
|
* - [BIP 77: Payjoin Version 2: Serverless Payjoin](https://github.com/bitcoin/bips/blob/master/bip-0077.md)
|
|
3003
5359
|
*/
|
|
3004
|
-
constructor(address:
|
|
5360
|
+
constructor(address: string, directory: string, ohttpKeys: OhttpKeysInterface);
|
|
3005
5361
|
build(): InitialReceiveTransitionInterface;
|
|
3006
5362
|
withAmount(amountSats: bigint): ReceiverBuilderInterface;
|
|
3007
5363
|
withExpiration(expiration: bigint): ReceiverBuilderInterface;
|
|
@@ -3028,6 +5384,18 @@ export declare class ReceiverReplayError extends UniffiAbstractObject implements
|
|
|
3028
5384
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3029
5385
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3030
5386
|
private constructor();
|
|
5387
|
+
/**
|
|
5388
|
+
* Calls into the `Debug` string representation of `ReceiverReplayErrorInterface` (the native Rust peer).
|
|
5389
|
+
*
|
|
5390
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5391
|
+
*/
|
|
5392
|
+
toDebugString(): string;
|
|
5393
|
+
/**
|
|
5394
|
+
* Calls into the `ReceiverReplayErrorInterface::to_string()` method of the native Rust peer.
|
|
5395
|
+
*
|
|
5396
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5397
|
+
*/
|
|
5398
|
+
toString(): string;
|
|
3031
5399
|
/**
|
|
3032
5400
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3033
5401
|
*/
|
|
@@ -3056,7 +5424,7 @@ export interface ReceiverSessionHistoryInterface {
|
|
|
3056
5424
|
/**
|
|
3057
5425
|
* Fallback transaction from the session if present
|
|
3058
5426
|
*/
|
|
3059
|
-
fallbackTx():
|
|
5427
|
+
fallbackTx(): ArrayBuffer | undefined;
|
|
3060
5428
|
/**
|
|
3061
5429
|
* Receiver session Payjoin URI
|
|
3062
5430
|
*/
|
|
@@ -3074,7 +5442,7 @@ export declare class ReceiverSessionHistory extends UniffiAbstractObject impleme
|
|
|
3074
5442
|
/**
|
|
3075
5443
|
* Fallback transaction from the session if present
|
|
3076
5444
|
*/
|
|
3077
|
-
fallbackTx():
|
|
5445
|
+
fallbackTx(): ArrayBuffer | undefined;
|
|
3078
5446
|
/**
|
|
3079
5447
|
* Receiver session Payjoin URI
|
|
3080
5448
|
*/
|
|
@@ -3153,6 +5521,18 @@ export declare class SelectionError extends UniffiAbstractObject implements Sele
|
|
|
3153
5521
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3154
5522
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3155
5523
|
private constructor();
|
|
5524
|
+
/**
|
|
5525
|
+
* Calls into the `Debug` string representation of `SelectionErrorInterface` (the native Rust peer).
|
|
5526
|
+
*
|
|
5527
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5528
|
+
*/
|
|
5529
|
+
toDebugString(): string;
|
|
5530
|
+
/**
|
|
5531
|
+
* Calls into the `SelectionErrorInterface::to_string()` method of the native Rust peer.
|
|
5532
|
+
*
|
|
5533
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5534
|
+
*/
|
|
5535
|
+
toString(): string;
|
|
3156
5536
|
/**
|
|
3157
5537
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3158
5538
|
*/
|
|
@@ -3256,6 +5636,47 @@ export declare class SenderBuilder extends UniffiAbstractObject implements Sende
|
|
|
3256
5636
|
uniffiDestroy(): void;
|
|
3257
5637
|
static instanceOf(obj: any): obj is SenderBuilder;
|
|
3258
5638
|
}
|
|
5639
|
+
/**
|
|
5640
|
+
* A terminal transition produced by cancelling a sender session.
|
|
5641
|
+
*/
|
|
5642
|
+
export interface SenderCancelTransitionInterface {
|
|
5643
|
+
/**
|
|
5644
|
+
* Persist the cancellation and return the fallback transaction.
|
|
5645
|
+
*
|
|
5646
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes of
|
|
5647
|
+
* the sender's original transaction that should be broadcast to complete the
|
|
5648
|
+
* payment without Payjoin.
|
|
5649
|
+
*/
|
|
5650
|
+
save(persister: JsonSenderSessionPersister): ArrayBuffer;
|
|
5651
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5652
|
+
signal: AbortSignal;
|
|
5653
|
+
}): Promise<ArrayBuffer>;
|
|
5654
|
+
}
|
|
5655
|
+
/**
|
|
5656
|
+
* A terminal transition produced by cancelling a sender session.
|
|
5657
|
+
*/
|
|
5658
|
+
export declare class SenderCancelTransition extends UniffiAbstractObject implements SenderCancelTransitionInterface {
|
|
5659
|
+
readonly [uniffiTypeNameSymbol] = "SenderCancelTransition";
|
|
5660
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
5661
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5662
|
+
private constructor();
|
|
5663
|
+
/**
|
|
5664
|
+
* Persist the cancellation and return the fallback transaction.
|
|
5665
|
+
*
|
|
5666
|
+
* The fallback transaction is the consensus-encoded raw transaction bytes of
|
|
5667
|
+
* the sender's original transaction that should be broadcast to complete the
|
|
5668
|
+
* payment without Payjoin.
|
|
5669
|
+
*/
|
|
5670
|
+
save(persister: JsonSenderSessionPersister): ArrayBuffer;
|
|
5671
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5672
|
+
signal: AbortSignal;
|
|
5673
|
+
}): Promise<ArrayBuffer>;
|
|
5674
|
+
/**
|
|
5675
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5676
|
+
*/
|
|
5677
|
+
uniffiDestroy(): void;
|
|
5678
|
+
static instanceOf(obj: any): obj is SenderCancelTransition;
|
|
5679
|
+
}
|
|
3259
5680
|
/**
|
|
3260
5681
|
* Error that may occur when the sender session event log is replayed
|
|
3261
5682
|
*/
|
|
@@ -3269,6 +5690,18 @@ export declare class SenderReplayError extends UniffiAbstractObject implements S
|
|
|
3269
5690
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3270
5691
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3271
5692
|
private constructor();
|
|
5693
|
+
/**
|
|
5694
|
+
* Calls into the `Debug` string representation of `SenderReplayErrorInterface` (the native Rust peer).
|
|
5695
|
+
*
|
|
5696
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5697
|
+
*/
|
|
5698
|
+
toDebugString(): string;
|
|
5699
|
+
/**
|
|
5700
|
+
* Calls into the `SenderReplayErrorInterface::to_string()` method of the native Rust peer.
|
|
5701
|
+
*
|
|
5702
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5703
|
+
*/
|
|
5704
|
+
toString(): string;
|
|
3272
5705
|
/**
|
|
3273
5706
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3274
5707
|
*/
|
|
@@ -3314,7 +5747,7 @@ export interface SenderSessionHistoryInterface {
|
|
|
3314
5747
|
/**
|
|
3315
5748
|
* Fallback transaction from the session if present
|
|
3316
5749
|
*/
|
|
3317
|
-
fallbackTx():
|
|
5750
|
+
fallbackTx(): ArrayBuffer;
|
|
3318
5751
|
pjParam(): PjParamInterface;
|
|
3319
5752
|
status(): SenderSessionStatusInterface;
|
|
3320
5753
|
}
|
|
@@ -3326,7 +5759,7 @@ export declare class SenderSessionHistory extends UniffiAbstractObject implement
|
|
|
3326
5759
|
/**
|
|
3327
5760
|
* Fallback transaction from the session if present
|
|
3328
5761
|
*/
|
|
3329
|
-
fallbackTx():
|
|
5762
|
+
fallbackTx(): ArrayBuffer;
|
|
3330
5763
|
pjParam(): PjParamInterface;
|
|
3331
5764
|
status(): SenderSessionStatusInterface;
|
|
3332
5765
|
/**
|
|
@@ -3336,12 +5769,20 @@ export declare class SenderSessionHistory extends UniffiAbstractObject implement
|
|
|
3336
5769
|
static instanceOf(obj: any): obj is SenderSessionHistory;
|
|
3337
5770
|
}
|
|
3338
5771
|
export interface SenderSessionOutcomeInterface {
|
|
5772
|
+
isCancelled(): boolean;
|
|
5773
|
+
isFailure(): boolean;
|
|
5774
|
+
isSuccess(): boolean;
|
|
5775
|
+
successPsbtBase64(): string | undefined;
|
|
3339
5776
|
}
|
|
3340
5777
|
export declare class SenderSessionOutcome extends UniffiAbstractObject implements SenderSessionOutcomeInterface {
|
|
3341
5778
|
readonly [uniffiTypeNameSymbol] = "SenderSessionOutcome";
|
|
3342
5779
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3343
5780
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3344
5781
|
private constructor();
|
|
5782
|
+
isCancelled(): boolean;
|
|
5783
|
+
isFailure(): boolean;
|
|
5784
|
+
isSuccess(): boolean;
|
|
5785
|
+
successPsbtBase64(): string | undefined;
|
|
3345
5786
|
/**
|
|
3346
5787
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3347
5788
|
*/
|
|
@@ -3376,6 +5817,18 @@ export declare class SerdeJsonError extends UniffiAbstractObject implements Serd
|
|
|
3376
5817
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3377
5818
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3378
5819
|
private constructor();
|
|
5820
|
+
/**
|
|
5821
|
+
* Calls into the `Debug` string representation of `SerdeJsonErrorInterface` (the native Rust peer).
|
|
5822
|
+
*
|
|
5823
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5824
|
+
*/
|
|
5825
|
+
toDebugString(): string;
|
|
5826
|
+
/**
|
|
5827
|
+
* Calls into the `SerdeJsonErrorInterface::to_string()` method of the native Rust peer.
|
|
5828
|
+
*
|
|
5829
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5830
|
+
*/
|
|
5831
|
+
toString(): string;
|
|
3379
5832
|
/**
|
|
3380
5833
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3381
5834
|
*/
|
|
@@ -3397,6 +5850,18 @@ export declare class SessionError extends UniffiAbstractObject implements Sessio
|
|
|
3397
5850
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3398
5851
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3399
5852
|
private constructor();
|
|
5853
|
+
/**
|
|
5854
|
+
* Calls into the `Debug` string representation of `SessionErrorInterface` (the native Rust peer).
|
|
5855
|
+
*
|
|
5856
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
5857
|
+
*/
|
|
5858
|
+
toDebugString(): string;
|
|
5859
|
+
/**
|
|
5860
|
+
* Calls into the `SessionErrorInterface::to_string()` method of the native Rust peer.
|
|
5861
|
+
*
|
|
5862
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
5863
|
+
*/
|
|
5864
|
+
toString(): string;
|
|
3400
5865
|
/**
|
|
3401
5866
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3402
5867
|
*/
|
|
@@ -3429,6 +5894,16 @@ export interface UncheckedOriginalPayloadInterface {
|
|
|
3429
5894
|
* Those receivers call `extract_tx_to_check_broadcast()` and `attest_tested_and_scheduled_broadcast()` after making those checks downstream.
|
|
3430
5895
|
*/
|
|
3431
5896
|
assumeInteractiveReceiver(): AssumeInteractiveTransitionInterface;
|
|
5897
|
+
/**
|
|
5898
|
+
* Cancel the Payjoin session immediately.
|
|
5899
|
+
*
|
|
5900
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
5901
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
5902
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
5903
|
+
*
|
|
5904
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5905
|
+
*/
|
|
5906
|
+
cancel(): CancelTransitionInterface;
|
|
3432
5907
|
checkBroadcastSuitability(minFeeRate: /*u64*/ bigint | undefined, canBroadcast: CanBroadcast): UncheckedOriginalPayloadTransitionInterface;
|
|
3433
5908
|
}
|
|
3434
5909
|
export declare class UncheckedOriginalPayload extends UniffiAbstractObject implements UncheckedOriginalPayloadInterface {
|
|
@@ -3444,6 +5919,16 @@ export declare class UncheckedOriginalPayload extends UniffiAbstractObject imple
|
|
|
3444
5919
|
* Those receivers call `extract_tx_to_check_broadcast()` and `attest_tested_and_scheduled_broadcast()` after making those checks downstream.
|
|
3445
5920
|
*/
|
|
3446
5921
|
assumeInteractiveReceiver(): AssumeInteractiveTransitionInterface;
|
|
5922
|
+
/**
|
|
5923
|
+
* Cancel the Payjoin session immediately.
|
|
5924
|
+
*
|
|
5925
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
5926
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
5927
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
5928
|
+
*
|
|
5929
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
5930
|
+
*/
|
|
5931
|
+
cancel(): CancelTransitionInterface;
|
|
3447
5932
|
checkBroadcastSuitability(minFeeRate: /*u64*/ bigint | undefined, canBroadcast: CanBroadcast): UncheckedOriginalPayloadTransitionInterface;
|
|
3448
5933
|
/**
|
|
3449
5934
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
@@ -3453,6 +5938,9 @@ export declare class UncheckedOriginalPayload extends UniffiAbstractObject imple
|
|
|
3453
5938
|
}
|
|
3454
5939
|
export interface UncheckedOriginalPayloadTransitionInterface {
|
|
3455
5940
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
5941
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5942
|
+
signal: AbortSignal;
|
|
5943
|
+
}): Promise<MaybeInputsOwnedInterface>;
|
|
3456
5944
|
}
|
|
3457
5945
|
export declare class UncheckedOriginalPayloadTransition extends UniffiAbstractObject implements UncheckedOriginalPayloadTransitionInterface {
|
|
3458
5946
|
readonly [uniffiTypeNameSymbol] = "UncheckedOriginalPayloadTransition";
|
|
@@ -3460,6 +5948,9 @@ export declare class UncheckedOriginalPayloadTransition extends UniffiAbstractOb
|
|
|
3460
5948
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3461
5949
|
private constructor();
|
|
3462
5950
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
5951
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5952
|
+
signal: AbortSignal;
|
|
5953
|
+
}): Promise<MaybeInputsOwnedInterface>;
|
|
3463
5954
|
/**
|
|
3464
5955
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3465
5956
|
*/
|
|
@@ -3523,6 +6014,18 @@ export declare class UrlParseError extends UniffiAbstractObject implements UrlPa
|
|
|
3523
6014
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3524
6015
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3525
6016
|
private constructor();
|
|
6017
|
+
/**
|
|
6018
|
+
* Calls into the `Debug` string representation of `UrlParseErrorInterface` (the native Rust peer).
|
|
6019
|
+
*
|
|
6020
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
6021
|
+
*/
|
|
6022
|
+
toDebugString(): string;
|
|
6023
|
+
/**
|
|
6024
|
+
* Calls into the `UrlParseErrorInterface::to_string()` method of the native Rust peer.
|
|
6025
|
+
*
|
|
6026
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
6027
|
+
*/
|
|
6028
|
+
toString(): string;
|
|
3526
6029
|
/**
|
|
3527
6030
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3528
6031
|
*/
|
|
@@ -3575,6 +6078,18 @@ export declare class ValidationError extends UniffiAbstractObject implements Val
|
|
|
3575
6078
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3576
6079
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3577
6080
|
private constructor();
|
|
6081
|
+
/**
|
|
6082
|
+
* Calls into the `Debug` string representation of `ValidationErrorInterface` (the native Rust peer).
|
|
6083
|
+
*
|
|
6084
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
6085
|
+
*/
|
|
6086
|
+
toDebugString(): string;
|
|
6087
|
+
/**
|
|
6088
|
+
* Calls into the `ValidationErrorInterface::to_string()` method of the native Rust peer.
|
|
6089
|
+
*
|
|
6090
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
6091
|
+
*/
|
|
6092
|
+
toString(): string;
|
|
3578
6093
|
/**
|
|
3579
6094
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3580
6095
|
*/
|
|
@@ -3605,6 +6120,16 @@ export interface WantsFeeRangeInterface {
|
|
|
3605
6120
|
* the original proposal parameters and the limit passed in the `min_fee_rate_sat_per_vb` parameter.
|
|
3606
6121
|
*/
|
|
3607
6122
|
applyFeeRange(minFeeRateSatPerVb: /*u64*/ bigint | undefined, maxEffectiveFeeRateSatPerVb: /*u64*/ bigint | undefined): WantsFeeRangeTransitionInterface;
|
|
6123
|
+
/**
|
|
6124
|
+
* Cancel the Payjoin session immediately.
|
|
6125
|
+
*
|
|
6126
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6127
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6128
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6129
|
+
*
|
|
6130
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6131
|
+
*/
|
|
6132
|
+
cancel(): CancelTransitionInterface;
|
|
3608
6133
|
}
|
|
3609
6134
|
export declare class WantsFeeRange extends UniffiAbstractObject implements WantsFeeRangeInterface {
|
|
3610
6135
|
readonly [uniffiTypeNameSymbol] = "WantsFeeRange";
|
|
@@ -3634,6 +6159,16 @@ export declare class WantsFeeRange extends UniffiAbstractObject implements Wants
|
|
|
3634
6159
|
* the original proposal parameters and the limit passed in the `min_fee_rate_sat_per_vb` parameter.
|
|
3635
6160
|
*/
|
|
3636
6161
|
applyFeeRange(minFeeRateSatPerVb: /*u64*/ bigint | undefined, maxEffectiveFeeRateSatPerVb: /*u64*/ bigint | undefined): WantsFeeRangeTransitionInterface;
|
|
6162
|
+
/**
|
|
6163
|
+
* Cancel the Payjoin session immediately.
|
|
6164
|
+
*
|
|
6165
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6166
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6167
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6168
|
+
*
|
|
6169
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6170
|
+
*/
|
|
6171
|
+
cancel(): CancelTransitionInterface;
|
|
3637
6172
|
/**
|
|
3638
6173
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3639
6174
|
*/
|
|
@@ -3642,6 +6177,9 @@ export declare class WantsFeeRange extends UniffiAbstractObject implements Wants
|
|
|
3642
6177
|
}
|
|
3643
6178
|
export interface WantsFeeRangeTransitionInterface {
|
|
3644
6179
|
save(persister: JsonReceiverSessionPersister): ProvisionalProposalInterface;
|
|
6180
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6181
|
+
signal: AbortSignal;
|
|
6182
|
+
}): Promise<ProvisionalProposalInterface>;
|
|
3645
6183
|
}
|
|
3646
6184
|
export declare class WantsFeeRangeTransition extends UniffiAbstractObject implements WantsFeeRangeTransitionInterface {
|
|
3647
6185
|
readonly [uniffiTypeNameSymbol] = "WantsFeeRangeTransition";
|
|
@@ -3649,6 +6187,9 @@ export declare class WantsFeeRangeTransition extends UniffiAbstractObject implem
|
|
|
3649
6187
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3650
6188
|
private constructor();
|
|
3651
6189
|
save(persister: JsonReceiverSessionPersister): ProvisionalProposalInterface;
|
|
6190
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6191
|
+
signal: AbortSignal;
|
|
6192
|
+
}): Promise<ProvisionalProposalInterface>;
|
|
3652
6193
|
/**
|
|
3653
6194
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3654
6195
|
*/
|
|
@@ -3656,6 +6197,16 @@ export declare class WantsFeeRangeTransition extends UniffiAbstractObject implem
|
|
|
3656
6197
|
static instanceOf(obj: any): obj is WantsFeeRangeTransition;
|
|
3657
6198
|
}
|
|
3658
6199
|
export interface WantsInputsInterface {
|
|
6200
|
+
/**
|
|
6201
|
+
* Cancel the Payjoin session immediately.
|
|
6202
|
+
*
|
|
6203
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6204
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6205
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6206
|
+
*
|
|
6207
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6208
|
+
*/
|
|
6209
|
+
cancel(): CancelTransitionInterface;
|
|
3659
6210
|
commitInputs(): WantsInputsTransitionInterface;
|
|
3660
6211
|
contributeInputs(replacementInputs: Array<InputPairInterface>): WantsInputsInterface;
|
|
3661
6212
|
/**
|
|
@@ -3676,6 +6227,16 @@ export declare class WantsInputs extends UniffiAbstractObject implements WantsIn
|
|
|
3676
6227
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3677
6228
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3678
6229
|
private constructor();
|
|
6230
|
+
/**
|
|
6231
|
+
* Cancel the Payjoin session immediately.
|
|
6232
|
+
*
|
|
6233
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6234
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6235
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6236
|
+
*
|
|
6237
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6238
|
+
*/
|
|
6239
|
+
cancel(): CancelTransitionInterface;
|
|
3679
6240
|
commitInputs(): WantsInputsTransitionInterface;
|
|
3680
6241
|
contributeInputs(replacementInputs: Array<InputPairInterface>): WantsInputsInterface;
|
|
3681
6242
|
/**
|
|
@@ -3698,6 +6259,9 @@ export declare class WantsInputs extends UniffiAbstractObject implements WantsIn
|
|
|
3698
6259
|
}
|
|
3699
6260
|
export interface WantsInputsTransitionInterface {
|
|
3700
6261
|
save(persister: JsonReceiverSessionPersister): WantsFeeRangeInterface;
|
|
6262
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6263
|
+
signal: AbortSignal;
|
|
6264
|
+
}): Promise<WantsFeeRangeInterface>;
|
|
3701
6265
|
}
|
|
3702
6266
|
export declare class WantsInputsTransition extends UniffiAbstractObject implements WantsInputsTransitionInterface {
|
|
3703
6267
|
readonly [uniffiTypeNameSymbol] = "WantsInputsTransition";
|
|
@@ -3705,6 +6269,9 @@ export declare class WantsInputsTransition extends UniffiAbstractObject implemen
|
|
|
3705
6269
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3706
6270
|
private constructor();
|
|
3707
6271
|
save(persister: JsonReceiverSessionPersister): WantsFeeRangeInterface;
|
|
6272
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6273
|
+
signal: AbortSignal;
|
|
6274
|
+
}): Promise<WantsFeeRangeInterface>;
|
|
3708
6275
|
/**
|
|
3709
6276
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3710
6277
|
*/
|
|
@@ -3712,20 +6279,40 @@ export declare class WantsInputsTransition extends UniffiAbstractObject implemen
|
|
|
3712
6279
|
static instanceOf(obj: any): obj is WantsInputsTransition;
|
|
3713
6280
|
}
|
|
3714
6281
|
export interface WantsOutputsInterface {
|
|
6282
|
+
/**
|
|
6283
|
+
* Cancel the Payjoin session immediately.
|
|
6284
|
+
*
|
|
6285
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6286
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6287
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6288
|
+
*
|
|
6289
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6290
|
+
*/
|
|
6291
|
+
cancel(): CancelTransitionInterface;
|
|
3715
6292
|
commitOutputs(): WantsOutputsTransitionInterface;
|
|
3716
6293
|
outputSubstitution(): OutputSubstitution;
|
|
3717
|
-
replaceReceiverOutputs(replacementOutputs: Array<
|
|
3718
|
-
substituteReceiverScript(
|
|
6294
|
+
replaceReceiverOutputs(replacementOutputs: Array<PlainTxOut>, drainScriptPubkey: ArrayBuffer): WantsOutputsInterface;
|
|
6295
|
+
substituteReceiverScript(outputScriptPubkey: ArrayBuffer): WantsOutputsInterface;
|
|
3719
6296
|
}
|
|
3720
6297
|
export declare class WantsOutputs extends UniffiAbstractObject implements WantsOutputsInterface {
|
|
3721
6298
|
readonly [uniffiTypeNameSymbol] = "WantsOutputs";
|
|
3722
6299
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3723
6300
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3724
6301
|
private constructor();
|
|
6302
|
+
/**
|
|
6303
|
+
* Cancel the Payjoin session immediately.
|
|
6304
|
+
*
|
|
6305
|
+
* Returns a [`CancelTransition`] that, once persisted, yields the fallback
|
|
6306
|
+
* transaction when applicable. The fallback transaction is the sender's original
|
|
6307
|
+
* transaction that should be broadcast to complete the payment without Payjoin.
|
|
6308
|
+
*
|
|
6309
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6310
|
+
*/
|
|
6311
|
+
cancel(): CancelTransitionInterface;
|
|
3725
6312
|
commitOutputs(): WantsOutputsTransitionInterface;
|
|
3726
6313
|
outputSubstitution(): OutputSubstitution;
|
|
3727
|
-
replaceReceiverOutputs(replacementOutputs: Array<
|
|
3728
|
-
substituteReceiverScript(
|
|
6314
|
+
replaceReceiverOutputs(replacementOutputs: Array<PlainTxOut>, drainScriptPubkey: ArrayBuffer): WantsOutputsInterface;
|
|
6315
|
+
substituteReceiverScript(outputScriptPubkey: ArrayBuffer): WantsOutputsInterface;
|
|
3729
6316
|
/**
|
|
3730
6317
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3731
6318
|
*/
|
|
@@ -3734,6 +6321,9 @@ export declare class WantsOutputs extends UniffiAbstractObject implements WantsO
|
|
|
3734
6321
|
}
|
|
3735
6322
|
export interface WantsOutputsTransitionInterface {
|
|
3736
6323
|
save(persister: JsonReceiverSessionPersister): WantsInputsInterface;
|
|
6324
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6325
|
+
signal: AbortSignal;
|
|
6326
|
+
}): Promise<WantsInputsInterface>;
|
|
3737
6327
|
}
|
|
3738
6328
|
export declare class WantsOutputsTransition extends UniffiAbstractObject implements WantsOutputsTransitionInterface {
|
|
3739
6329
|
readonly [uniffiTypeNameSymbol] = "WantsOutputsTransition";
|
|
@@ -3741,6 +6331,9 @@ export declare class WantsOutputsTransition extends UniffiAbstractObject impleme
|
|
|
3741
6331
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3742
6332
|
private constructor();
|
|
3743
6333
|
save(persister: JsonReceiverSessionPersister): WantsInputsInterface;
|
|
6334
|
+
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
6335
|
+
signal: AbortSignal;
|
|
6336
|
+
}): Promise<WantsInputsInterface>;
|
|
3744
6337
|
/**
|
|
3745
6338
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3746
6339
|
*/
|
|
@@ -3760,6 +6353,18 @@ export declare class WellKnownError extends UniffiAbstractObject implements Well
|
|
|
3760
6353
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3761
6354
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3762
6355
|
private constructor();
|
|
6356
|
+
/**
|
|
6357
|
+
* Calls into the `Debug` string representation of `WellKnownErrorInterface` (the native Rust peer).
|
|
6358
|
+
*
|
|
6359
|
+
* Generated by deriving the `Debug` trait in Rust.
|
|
6360
|
+
*/
|
|
6361
|
+
toDebugString(): string;
|
|
6362
|
+
/**
|
|
6363
|
+
* Calls into the `WellKnownErrorInterface::to_string()` method of the native Rust peer.
|
|
6364
|
+
*
|
|
6365
|
+
* Generated by deriving the `Display` trait in Rust.
|
|
6366
|
+
*/
|
|
6367
|
+
toString(): string;
|
|
3763
6368
|
/**
|
|
3764
6369
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3765
6370
|
*/
|
|
@@ -3767,6 +6372,16 @@ export declare class WellKnownError extends UniffiAbstractObject implements Well
|
|
|
3767
6372
|
static instanceOf(obj: any): obj is WellKnownError;
|
|
3768
6373
|
}
|
|
3769
6374
|
export interface WithReplyKeyInterface {
|
|
6375
|
+
/**
|
|
6376
|
+
* Cancel the Payjoin session immediately.
|
|
6377
|
+
*
|
|
6378
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
6379
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
6380
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
6381
|
+
*
|
|
6382
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6383
|
+
*/
|
|
6384
|
+
cancel(): SenderCancelTransitionInterface;
|
|
3770
6385
|
/**
|
|
3771
6386
|
* Construct serialized Request and Context from a Payjoin Proposal.
|
|
3772
6387
|
*
|
|
@@ -3787,6 +6402,16 @@ export declare class WithReplyKey extends UniffiAbstractObject implements WithRe
|
|
|
3787
6402
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3788
6403
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3789
6404
|
private constructor();
|
|
6405
|
+
/**
|
|
6406
|
+
* Cancel the Payjoin session immediately.
|
|
6407
|
+
*
|
|
6408
|
+
* Returns a [`SenderCancelTransition`] that, once persisted, yields the fallback
|
|
6409
|
+
* transaction. The fallback transaction is the sender's original transaction
|
|
6410
|
+
* that should be broadcast to complete the payment without Payjoin.
|
|
6411
|
+
*
|
|
6412
|
+
* This is a terminal transition — the session cannot be used after cancellation.
|
|
6413
|
+
*/
|
|
6414
|
+
cancel(): SenderCancelTransitionInterface;
|
|
3790
6415
|
/**
|
|
3791
6416
|
* Construct serialized Request and Context from a Payjoin Proposal.
|
|
3792
6417
|
*
|
|
@@ -3809,6 +6434,9 @@ export declare class WithReplyKey extends UniffiAbstractObject implements WithRe
|
|
|
3809
6434
|
}
|
|
3810
6435
|
export interface WithReplyKeyTransitionInterface {
|
|
3811
6436
|
save(persister: JsonSenderSessionPersister): PollingForProposalInterface;
|
|
6437
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
6438
|
+
signal: AbortSignal;
|
|
6439
|
+
}): Promise<PollingForProposalInterface>;
|
|
3812
6440
|
}
|
|
3813
6441
|
export declare class WithReplyKeyTransition extends UniffiAbstractObject implements WithReplyKeyTransitionInterface {
|
|
3814
6442
|
readonly [uniffiTypeNameSymbol] = "WithReplyKeyTransition";
|
|
@@ -3816,6 +6444,9 @@ export declare class WithReplyKeyTransition extends UniffiAbstractObject impleme
|
|
|
3816
6444
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3817
6445
|
private constructor();
|
|
3818
6446
|
save(persister: JsonSenderSessionPersister): PollingForProposalInterface;
|
|
6447
|
+
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
6448
|
+
signal: AbortSignal;
|
|
6449
|
+
}): Promise<PollingForProposalInterface>;
|
|
3819
6450
|
/**
|
|
3820
6451
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3821
6452
|
*/
|
|
@@ -3836,16 +6467,24 @@ declare function uniffiEnsureInitialized(): void;
|
|
|
3836
6467
|
declare const _default: Readonly<{
|
|
3837
6468
|
initialize: typeof uniffiEnsureInitialized;
|
|
3838
6469
|
converters: {
|
|
6470
|
+
FfiConverterTypeAddressParseError: FfiConverterObject<AddressParseErrorInterface>;
|
|
3839
6471
|
FfiConverterTypeAssumeInteractiveTransition: FfiConverterObject<AssumeInteractiveTransitionInterface>;
|
|
3840
6472
|
FfiConverterTypeBuildSenderError: FfiConverterObject<BuildSenderErrorInterface>;
|
|
3841
|
-
FfiConverterTypeBuildSenderError__as_error: FfiConverterObjectAsError<BuildSenderErrorInterface>;
|
|
3842
6473
|
FfiConverterTypeCanBroadcast: FfiConverterObjectWithCallbacks<CanBroadcast>;
|
|
6474
|
+
FfiConverterTypeCancelTransition: FfiConverterObject<CancelTransitionInterface>;
|
|
3843
6475
|
FfiConverterTypeClientResponse: FfiConverterObject<ClientResponseInterface>;
|
|
3844
6476
|
FfiConverterTypeCreateRequestError: FfiConverterObject<CreateRequestErrorInterface>;
|
|
3845
6477
|
FfiConverterTypeCreateRequestError__as_error: FfiConverterObjectAsError<CreateRequestErrorInterface>;
|
|
3846
6478
|
FfiConverterTypeEncapsulationError: FfiConverterObject<EncapsulationErrorInterface>;
|
|
3847
6479
|
FfiConverterTypeFeeRateError: FfiConverterObject<FeeRateErrorInterface>;
|
|
3848
6480
|
FfiConverterTypeFeeRateError__as_error: FfiConverterObjectAsError<FeeRateErrorInterface>;
|
|
6481
|
+
FfiConverterTypeFfiValidationError: {
|
|
6482
|
+
read(from: RustBuffer): FfiValidationError;
|
|
6483
|
+
write(value: FfiValidationError, into: RustBuffer): void;
|
|
6484
|
+
allocationSize(value: FfiValidationError): number;
|
|
6485
|
+
lift(value: UniffiByteArray): FfiValidationError;
|
|
6486
|
+
lower(value: FfiValidationError): UniffiByteArray;
|
|
6487
|
+
};
|
|
3849
6488
|
FfiConverterTypeForeignError: {
|
|
3850
6489
|
read(from: RustBuffer): {
|
|
3851
6490
|
readonly tag: ForeignError_Tags.InternalError;
|
|
@@ -3930,13 +6569,21 @@ declare const _default: Readonly<{
|
|
|
3930
6569
|
FfiConverterTypeInputContributionError: FfiConverterObject<InputContributionErrorInterface>;
|
|
3931
6570
|
FfiConverterTypeInputContributionError__as_error: FfiConverterObjectAsError<InputContributionErrorInterface>;
|
|
3932
6571
|
FfiConverterTypeInputPair: FfiConverterObject<InputPairInterface>;
|
|
6572
|
+
FfiConverterTypeInputPairError: {
|
|
6573
|
+
read(from: RustBuffer): InputPairError;
|
|
6574
|
+
write(value: InputPairError, into: RustBuffer): void;
|
|
6575
|
+
allocationSize(value: InputPairError): number;
|
|
6576
|
+
lift(value: UniffiByteArray): InputPairError;
|
|
6577
|
+
lower(value: InputPairError): UniffiByteArray;
|
|
6578
|
+
};
|
|
3933
6579
|
FfiConverterTypeIntoUrlError: FfiConverterObject<IntoUrlErrorInterface>;
|
|
3934
|
-
FfiConverterTypeIntoUrlError__as_error: FfiConverterObjectAsError<IntoUrlErrorInterface>;
|
|
3935
6580
|
FfiConverterTypeIsOutputKnown: FfiConverterObjectWithCallbacks<IsOutputKnown>;
|
|
3936
6581
|
FfiConverterTypeIsScriptOwned: FfiConverterObjectWithCallbacks<IsScriptOwned>;
|
|
3937
6582
|
FfiConverterTypeJsonReceiverSessionPersister: FfiConverterObjectWithCallbacks<JsonReceiverSessionPersister>;
|
|
6583
|
+
FfiConverterTypeJsonReceiverSessionPersisterAsync: FfiConverterObjectWithCallbacks<JsonReceiverSessionPersisterAsync>;
|
|
3938
6584
|
FfiConverterTypeJsonReply: FfiConverterObject<JsonReplyInterface>;
|
|
3939
6585
|
FfiConverterTypeJsonSenderSessionPersister: FfiConverterObjectWithCallbacks<JsonSenderSessionPersister>;
|
|
6586
|
+
FfiConverterTypeJsonSenderSessionPersisterAsync: FfiConverterObjectWithCallbacks<JsonSenderSessionPersisterAsync>;
|
|
3940
6587
|
FfiConverterTypeMaybeInputsOwned: FfiConverterObject<MaybeInputsOwnedInterface>;
|
|
3941
6588
|
FfiConverterTypeMaybeInputsOwnedTransition: FfiConverterObject<MaybeInputsOwnedTransitionInterface>;
|
|
3942
6589
|
FfiConverterTypeMaybeInputsSeen: FfiConverterObject<MaybeInputsSeenInterface>;
|
|
@@ -3946,7 +6593,6 @@ declare const _default: Readonly<{
|
|
|
3946
6593
|
FfiConverterTypeOhttpError: FfiConverterObject<OhttpErrorInterface>;
|
|
3947
6594
|
FfiConverterTypeOhttpError__as_error: FfiConverterObjectAsError<OhttpErrorInterface>;
|
|
3948
6595
|
FfiConverterTypeOhttpKeys: FfiConverterObject<OhttpKeysInterface>;
|
|
3949
|
-
FfiConverterTypeOutpointSpent: FfiConverterObjectWithCallbacks<OutpointSpent>;
|
|
3950
6596
|
FfiConverterTypeOutputSubstitution: {
|
|
3951
6597
|
read(from: RustBuffer): OutputSubstitution;
|
|
3952
6598
|
write(value: OutputSubstitution, into: RustBuffer): void;
|
|
@@ -3954,8 +6600,14 @@ declare const _default: Readonly<{
|
|
|
3954
6600
|
lift(value: UniffiByteArray): OutputSubstitution;
|
|
3955
6601
|
lower(value: OutputSubstitution): UniffiByteArray;
|
|
3956
6602
|
};
|
|
3957
|
-
FfiConverterTypeOutputSubstitutionError:
|
|
3958
|
-
|
|
6603
|
+
FfiConverterTypeOutputSubstitutionError: {
|
|
6604
|
+
read(from: RustBuffer): OutputSubstitutionError;
|
|
6605
|
+
write(value: OutputSubstitutionError, into: RustBuffer): void;
|
|
6606
|
+
allocationSize(value: OutputSubstitutionError): number;
|
|
6607
|
+
lift(value: UniffiByteArray): OutputSubstitutionError;
|
|
6608
|
+
lower(value: OutputSubstitutionError): UniffiByteArray;
|
|
6609
|
+
};
|
|
6610
|
+
FfiConverterTypeOutputSubstitutionProtocolError: FfiConverterObject<OutputSubstitutionProtocolErrorInterface>;
|
|
3959
6611
|
FfiConverterTypeOutputsUnknown: FfiConverterObject<OutputsUnknownInterface>;
|
|
3960
6612
|
FfiConverterTypeOutputsUnknownTransition: FfiConverterObject<OutputsUnknownTransitionInterface>;
|
|
3961
6613
|
FfiConverterTypePayjoinProposal: FfiConverterObject<PayjoinProposalInterface>;
|
|
@@ -3966,6 +6618,41 @@ declare const _default: Readonly<{
|
|
|
3966
6618
|
FfiConverterTypePjParseError: FfiConverterObject<PjParseErrorInterface>;
|
|
3967
6619
|
FfiConverterTypePjParseError__as_error: FfiConverterObjectAsError<PjParseErrorInterface>;
|
|
3968
6620
|
FfiConverterTypePjUri: FfiConverterObject<PjUriInterface>;
|
|
6621
|
+
FfiConverterTypePlainOutPoint: {
|
|
6622
|
+
read(from: RustBuffer): PlainOutPoint;
|
|
6623
|
+
write(value: PlainOutPoint, into: RustBuffer): void;
|
|
6624
|
+
allocationSize(value: PlainOutPoint): number;
|
|
6625
|
+
lift(value: UniffiByteArray): PlainOutPoint;
|
|
6626
|
+
lower(value: PlainOutPoint): UniffiByteArray;
|
|
6627
|
+
};
|
|
6628
|
+
FfiConverterTypePlainPsbtInput: {
|
|
6629
|
+
read(from: RustBuffer): PlainPsbtInput;
|
|
6630
|
+
write(value: PlainPsbtInput, into: RustBuffer): void;
|
|
6631
|
+
allocationSize(value: PlainPsbtInput): number;
|
|
6632
|
+
lift(value: UniffiByteArray): PlainPsbtInput;
|
|
6633
|
+
lower(value: PlainPsbtInput): UniffiByteArray;
|
|
6634
|
+
};
|
|
6635
|
+
FfiConverterTypePlainTxIn: {
|
|
6636
|
+
read(from: RustBuffer): PlainTxIn;
|
|
6637
|
+
write(value: PlainTxIn, into: RustBuffer): void;
|
|
6638
|
+
allocationSize(value: PlainTxIn): number;
|
|
6639
|
+
lift(value: UniffiByteArray): PlainTxIn;
|
|
6640
|
+
lower(value: PlainTxIn): UniffiByteArray;
|
|
6641
|
+
};
|
|
6642
|
+
FfiConverterTypePlainTxOut: {
|
|
6643
|
+
read(from: RustBuffer): PlainTxOut;
|
|
6644
|
+
write(value: PlainTxOut, into: RustBuffer): void;
|
|
6645
|
+
allocationSize(value: PlainTxOut): number;
|
|
6646
|
+
lift(value: UniffiByteArray): PlainTxOut;
|
|
6647
|
+
lower(value: PlainTxOut): UniffiByteArray;
|
|
6648
|
+
};
|
|
6649
|
+
FfiConverterTypePlainWeight: {
|
|
6650
|
+
read(from: RustBuffer): PlainWeight;
|
|
6651
|
+
write(value: PlainWeight, into: RustBuffer): void;
|
|
6652
|
+
allocationSize(value: PlainWeight): number;
|
|
6653
|
+
lift(value: UniffiByteArray): PlainWeight;
|
|
6654
|
+
lower(value: PlainWeight): UniffiByteArray;
|
|
6655
|
+
};
|
|
3969
6656
|
FfiConverterTypePollingForProposal: FfiConverterObject<PollingForProposalInterface>;
|
|
3970
6657
|
FfiConverterTypePollingForProposalTransition: FfiConverterObject<PollingForProposalTransitionInterface>;
|
|
3971
6658
|
FfiConverterTypePollingForProposalTransitionOutcome: {
|
|
@@ -3979,15 +6666,74 @@ declare const _default: Readonly<{
|
|
|
3979
6666
|
FfiConverterTypeProtocolError: FfiConverterObject<ProtocolErrorInterface>;
|
|
3980
6667
|
FfiConverterTypeProvisionalProposal: FfiConverterObject<ProvisionalProposalInterface>;
|
|
3981
6668
|
FfiConverterTypeProvisionalProposalTransition: FfiConverterObject<ProvisionalProposalTransitionInterface>;
|
|
3982
|
-
FfiConverterTypePsbtInput: {
|
|
3983
|
-
read(from: RustBuffer): PsbtInput;
|
|
3984
|
-
write(value: PsbtInput, into: RustBuffer): void;
|
|
3985
|
-
allocationSize(value: PsbtInput): number;
|
|
3986
|
-
lift(value: UniffiByteArray): PsbtInput;
|
|
3987
|
-
lower(value: PsbtInput): UniffiByteArray;
|
|
3988
|
-
};
|
|
3989
6669
|
FfiConverterTypePsbtInputError: FfiConverterObject<PsbtInputErrorInterface>;
|
|
3990
|
-
|
|
6670
|
+
FfiConverterTypePsbtParseError: {
|
|
6671
|
+
read(from: RustBuffer): {
|
|
6672
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6673
|
+
readonly inner: Readonly<[string]>;
|
|
6674
|
+
/**
|
|
6675
|
+
* @private
|
|
6676
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6677
|
+
*/
|
|
6678
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6679
|
+
name: string;
|
|
6680
|
+
message: string;
|
|
6681
|
+
stack?: string;
|
|
6682
|
+
cause?: unknown;
|
|
6683
|
+
};
|
|
6684
|
+
write(value: {
|
|
6685
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6686
|
+
readonly inner: Readonly<[string]>;
|
|
6687
|
+
/**
|
|
6688
|
+
* @private
|
|
6689
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6690
|
+
*/
|
|
6691
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6692
|
+
name: string;
|
|
6693
|
+
message: string;
|
|
6694
|
+
stack?: string;
|
|
6695
|
+
cause?: unknown;
|
|
6696
|
+
}, into: RustBuffer): void;
|
|
6697
|
+
allocationSize(value: {
|
|
6698
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6699
|
+
readonly inner: Readonly<[string]>;
|
|
6700
|
+
/**
|
|
6701
|
+
* @private
|
|
6702
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6703
|
+
*/
|
|
6704
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6705
|
+
name: string;
|
|
6706
|
+
message: string;
|
|
6707
|
+
stack?: string;
|
|
6708
|
+
cause?: unknown;
|
|
6709
|
+
}): number;
|
|
6710
|
+
lift(value: UniffiByteArray): {
|
|
6711
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6712
|
+
readonly inner: Readonly<[string]>;
|
|
6713
|
+
/**
|
|
6714
|
+
* @private
|
|
6715
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6716
|
+
*/
|
|
6717
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6718
|
+
name: string;
|
|
6719
|
+
message: string;
|
|
6720
|
+
stack?: string;
|
|
6721
|
+
cause?: unknown;
|
|
6722
|
+
};
|
|
6723
|
+
lower(value: {
|
|
6724
|
+
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6725
|
+
readonly inner: Readonly<[string]>;
|
|
6726
|
+
/**
|
|
6727
|
+
* @private
|
|
6728
|
+
* This field is private and should not be used, use `tag` instead.
|
|
6729
|
+
*/
|
|
6730
|
+
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6731
|
+
name: string;
|
|
6732
|
+
message: string;
|
|
6733
|
+
stack?: string;
|
|
6734
|
+
cause?: unknown;
|
|
6735
|
+
}): UniffiByteArray;
|
|
6736
|
+
};
|
|
3991
6737
|
FfiConverterTypeReceiveSession: {
|
|
3992
6738
|
read(from: RustBuffer): ReceiveSession;
|
|
3993
6739
|
write(value: ReceiveSession, into: RustBuffer): void;
|
|
@@ -3996,6 +6742,13 @@ declare const _default: Readonly<{
|
|
|
3996
6742
|
lower(value: ReceiveSession): UniffiByteArray;
|
|
3997
6743
|
};
|
|
3998
6744
|
FfiConverterTypeReceiverBuilder: FfiConverterObject<ReceiverBuilderInterface>;
|
|
6745
|
+
FfiConverterTypeReceiverBuilderError: {
|
|
6746
|
+
read(from: RustBuffer): ReceiverBuilderError;
|
|
6747
|
+
write(value: ReceiverBuilderError, into: RustBuffer): void;
|
|
6748
|
+
allocationSize(value: ReceiverBuilderError): number;
|
|
6749
|
+
lift(value: UniffiByteArray): ReceiverBuilderError;
|
|
6750
|
+
lower(value: ReceiverBuilderError): UniffiByteArray;
|
|
6751
|
+
};
|
|
3999
6752
|
FfiConverterTypeReceiverError: {
|
|
4000
6753
|
read(from: RustBuffer): ReceiverError;
|
|
4001
6754
|
write(value: ReceiverError, into: RustBuffer): void;
|
|
@@ -4062,6 +6815,14 @@ declare const _default: Readonly<{
|
|
|
4062
6815
|
lower(value: SendSession): UniffiByteArray;
|
|
4063
6816
|
};
|
|
4064
6817
|
FfiConverterTypeSenderBuilder: FfiConverterObject<SenderBuilderInterface>;
|
|
6818
|
+
FfiConverterTypeSenderCancelTransition: FfiConverterObject<SenderCancelTransitionInterface>;
|
|
6819
|
+
FfiConverterTypeSenderInputError: {
|
|
6820
|
+
read(from: RustBuffer): SenderInputError;
|
|
6821
|
+
write(value: SenderInputError, into: RustBuffer): void;
|
|
6822
|
+
allocationSize(value: SenderInputError): number;
|
|
6823
|
+
lift(value: UniffiByteArray): SenderInputError;
|
|
6824
|
+
lower(value: SenderInputError): UniffiByteArray;
|
|
6825
|
+
};
|
|
4065
6826
|
FfiConverterTypeSenderPersistedError: {
|
|
4066
6827
|
read(from: RustBuffer): SenderPersistedError;
|
|
4067
6828
|
write(value: SenderPersistedError, into: RustBuffer): void;
|
|
@@ -4095,17 +6856,10 @@ declare const _default: Readonly<{
|
|
|
4095
6856
|
FfiConverterTypeWantsInputsTransition: FfiConverterObject<WantsInputsTransitionInterface>;
|
|
4096
6857
|
FfiConverterTypeWantsOutputs: FfiConverterObject<WantsOutputsInterface>;
|
|
4097
6858
|
FfiConverterTypeWantsOutputsTransition: FfiConverterObject<WantsOutputsTransitionInterface>;
|
|
4098
|
-
FfiConverterTypeWeight: {
|
|
4099
|
-
read(from: RustBuffer): Weight;
|
|
4100
|
-
write(value: Weight, into: RustBuffer): void;
|
|
4101
|
-
allocationSize(value: Weight): number;
|
|
4102
|
-
lift(value: UniffiByteArray): Weight;
|
|
4103
|
-
lower(value: Weight): UniffiByteArray;
|
|
4104
|
-
};
|
|
4105
6859
|
FfiConverterTypeWellKnownError: FfiConverterObject<WellKnownErrorInterface>;
|
|
4106
6860
|
FfiConverterTypeWithReplyKey: FfiConverterObject<WithReplyKeyInterface>;
|
|
4107
6861
|
FfiConverterTypeWithReplyKeyTransition: FfiConverterObject<WithReplyKeyTransitionInterface>;
|
|
4108
6862
|
};
|
|
4109
6863
|
}>;
|
|
4110
6864
|
export default _default;
|
|
4111
|
-
//# sourceMappingURL=
|
|
6865
|
+
//# sourceMappingURL=payjoin.d.ts.map
|