@xstoicunicornx/payjoin_test 0.1.5 → 0.1.6
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 +1 -3
- package/dist/generated/bitcoin.d.ts +4633 -0
- package/dist/generated/bitcoin.d.ts.map +1 -0
- package/dist/generated/bitcoin.js +3861 -0
- package/dist/generated/bitcoin.js.map +1 -0
- package/dist/generated/{payjoin.d.ts → payjoin_ffi.d.ts} +327 -2405
- package/dist/generated/payjoin_ffi.d.ts.map +1 -0
- package/dist/generated/{payjoin.js → payjoin_ffi.js} +2224 -4651
- package/dist/generated/payjoin_ffi.js.map +1 -0
- package/dist/generated/wasm-bindgen/index.d.ts +297 -419
- package/dist/generated/wasm-bindgen/index.js +1390 -1893
- package/dist/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/generated/wasm-bindgen/index_bg.wasm.d.ts +569 -523
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.web.js +8 -4
- package/package.json +37 -37
- package/dist/generated/payjoin.d.ts.map +0 -1
- package/dist/generated/payjoin.js.map +0 -1
|
@@ -1,155 +1,30 @@
|
|
|
1
|
+
import { type AddressInterface, type OutPoint, type PsbtInterface, type ScriptInterface, type TransactionInterface, type TxIn, type TxOut } from "./bitcoin";
|
|
1
2
|
import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, FfiConverterObjectAsError, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, UniffiThrownObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "uniffi-bindgen-react-native";
|
|
2
3
|
export declare function replayReceiverEventLog(persister: JsonReceiverSessionPersister): ReplayResultInterface;
|
|
3
|
-
export declare function replayReceiverEventLogAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4
|
-
signal: AbortSignal;
|
|
5
|
-
}): Promise<ReplayResultInterface>;
|
|
6
4
|
export declare function replaySenderEventLog(persister: JsonSenderSessionPersister): SenderReplayResultInterface;
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
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;
|
|
5
|
+
export type PsbtInput = {
|
|
6
|
+
witnessUtxo: TxOut | undefined;
|
|
7
|
+
redeemScript: ScriptInterface | undefined;
|
|
8
|
+
witnessScript: ScriptInterface | undefined;
|
|
134
9
|
};
|
|
135
10
|
/**
|
|
136
|
-
* Generated factory for {@link
|
|
11
|
+
* Generated factory for {@link PsbtInput} record objects.
|
|
137
12
|
*/
|
|
138
|
-
export declare const
|
|
13
|
+
export declare const PsbtInput: Readonly<{
|
|
139
14
|
/**
|
|
140
|
-
* Create a frozen instance of {@link
|
|
141
|
-
* in Rust, in the {@link
|
|
15
|
+
* Create a frozen instance of {@link PsbtInput}, with defaults specified
|
|
16
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
142
17
|
*/
|
|
143
|
-
create: (partial: Partial<
|
|
18
|
+
create: (partial: Partial<PsbtInput> & Required<Omit<PsbtInput, never>>) => PsbtInput;
|
|
144
19
|
/**
|
|
145
|
-
* Create a frozen instance of {@link
|
|
146
|
-
* in Rust, in the {@link
|
|
20
|
+
* Create a frozen instance of {@link PsbtInput}, with defaults specified
|
|
21
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
147
22
|
*/
|
|
148
|
-
new: (partial: Partial<
|
|
23
|
+
new: (partial: Partial<PsbtInput> & Required<Omit<PsbtInput, never>>) => PsbtInput;
|
|
149
24
|
/**
|
|
150
|
-
* Defaults specified in the {@link
|
|
25
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
151
26
|
*/
|
|
152
|
-
defaults: () => Partial<
|
|
27
|
+
defaults: () => Partial<PsbtInput>;
|
|
153
28
|
}>;
|
|
154
29
|
/**
|
|
155
30
|
* Represents data that needs to be transmitted to the receiver.
|
|
@@ -181,16 +56,16 @@ export type Request = {
|
|
|
181
56
|
export declare const Request: Readonly<{
|
|
182
57
|
/**
|
|
183
58
|
* Create a frozen instance of {@link Request}, with defaults specified
|
|
184
|
-
* in Rust, in the {@link
|
|
59
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
185
60
|
*/
|
|
186
61
|
create: (partial: Partial<Request> & Required<Omit<Request, never>>) => Request;
|
|
187
62
|
/**
|
|
188
63
|
* Create a frozen instance of {@link Request}, with defaults specified
|
|
189
|
-
* in Rust, in the {@link
|
|
64
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
190
65
|
*/
|
|
191
66
|
new: (partial: Partial<Request> & Required<Omit<Request, never>>) => Request;
|
|
192
67
|
/**
|
|
193
|
-
* Defaults specified in the {@link
|
|
68
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
194
69
|
*/
|
|
195
70
|
defaults: () => Partial<Request>;
|
|
196
71
|
}>;
|
|
@@ -204,16 +79,16 @@ export type RequestOhttpContext = {
|
|
|
204
79
|
export declare const RequestOhttpContext: Readonly<{
|
|
205
80
|
/**
|
|
206
81
|
* Create a frozen instance of {@link RequestOhttpContext}, with defaults specified
|
|
207
|
-
* in Rust, in the {@link
|
|
82
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
208
83
|
*/
|
|
209
84
|
create: (partial: Partial<RequestOhttpContext> & Required<Omit<RequestOhttpContext, never>>) => RequestOhttpContext;
|
|
210
85
|
/**
|
|
211
86
|
* Create a frozen instance of {@link RequestOhttpContext}, with defaults specified
|
|
212
|
-
* in Rust, in the {@link
|
|
87
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
213
88
|
*/
|
|
214
89
|
new: (partial: Partial<RequestOhttpContext> & Required<Omit<RequestOhttpContext, never>>) => RequestOhttpContext;
|
|
215
90
|
/**
|
|
216
|
-
* Defaults specified in the {@link
|
|
91
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
217
92
|
*/
|
|
218
93
|
defaults: () => Partial<RequestOhttpContext>;
|
|
219
94
|
}>;
|
|
@@ -227,16 +102,16 @@ export type RequestResponse = {
|
|
|
227
102
|
export declare const RequestResponse: Readonly<{
|
|
228
103
|
/**
|
|
229
104
|
* Create a frozen instance of {@link RequestResponse}, with defaults specified
|
|
230
|
-
* in Rust, in the {@link
|
|
105
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
231
106
|
*/
|
|
232
107
|
create: (partial: Partial<RequestResponse> & Required<Omit<RequestResponse, never>>) => RequestResponse;
|
|
233
108
|
/**
|
|
234
109
|
* Create a frozen instance of {@link RequestResponse}, with defaults specified
|
|
235
|
-
* in Rust, in the {@link
|
|
110
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
236
111
|
*/
|
|
237
112
|
new: (partial: Partial<RequestResponse> & Required<Omit<RequestResponse, never>>) => RequestResponse;
|
|
238
113
|
/**
|
|
239
|
-
* Defaults specified in the {@link
|
|
114
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
240
115
|
*/
|
|
241
116
|
defaults: () => Partial<RequestResponse>;
|
|
242
117
|
}>;
|
|
@@ -250,1413 +125,205 @@ export type RequestV1Context = {
|
|
|
250
125
|
export declare const RequestV1Context: Readonly<{
|
|
251
126
|
/**
|
|
252
127
|
* Create a frozen instance of {@link RequestV1Context}, with defaults specified
|
|
253
|
-
* in Rust, in the {@link
|
|
128
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
254
129
|
*/
|
|
255
130
|
create: (partial: Partial<RequestV1Context> & Required<Omit<RequestV1Context, never>>) => RequestV1Context;
|
|
256
131
|
/**
|
|
257
132
|
* Create a frozen instance of {@link RequestV1Context}, with defaults specified
|
|
258
|
-
* in Rust, in the {@link
|
|
133
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
259
134
|
*/
|
|
260
135
|
new: (partial: Partial<RequestV1Context> & Required<Omit<RequestV1Context, never>>) => RequestV1Context;
|
|
261
136
|
/**
|
|
262
|
-
* Defaults specified in the {@link
|
|
137
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
263
138
|
*/
|
|
264
139
|
defaults: () => Partial<RequestV1Context>;
|
|
265
140
|
}>;
|
|
266
|
-
export
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
cause?: unknown;
|
|
298
|
-
};
|
|
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
|
-
}>;
|
|
308
|
-
/**
|
|
309
|
-
* @private
|
|
310
|
-
* This field is private and should not be used, use `tag` instead.
|
|
311
|
-
*/
|
|
312
|
-
readonly [uniffiTypeNameSymbol]: "FfiValidationError";
|
|
313
|
-
name: string;
|
|
314
|
-
message: string;
|
|
315
|
-
stack?: string;
|
|
316
|
-
cause?: unknown;
|
|
317
|
-
};
|
|
318
|
-
instanceOf(obj: any): obj is {
|
|
319
|
-
readonly tag: FfiValidationError_Tags.AmountOutOfRange;
|
|
320
|
-
readonly inner: Readonly<{
|
|
321
|
-
amountSat: bigint;
|
|
322
|
-
maxSat: bigint;
|
|
323
|
-
}>;
|
|
324
|
-
/**
|
|
325
|
-
* @private
|
|
326
|
-
* This field is private and should not be used, use `tag` instead.
|
|
327
|
-
*/
|
|
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
|
-
}>;
|
|
141
|
+
export type Weight = {
|
|
142
|
+
weightUnits: bigint;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Generated factory for {@link Weight} record objects.
|
|
146
|
+
*/
|
|
147
|
+
export declare const Weight: Readonly<{
|
|
148
|
+
/**
|
|
149
|
+
* Create a frozen instance of {@link Weight}, with defaults specified
|
|
150
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
151
|
+
*/
|
|
152
|
+
create: (partial: Partial<Weight> & Required<Omit<Weight, never>>) => Weight;
|
|
153
|
+
/**
|
|
154
|
+
* Create a frozen instance of {@link Weight}, with defaults specified
|
|
155
|
+
* in Rust, in the {@link payjoin_ffi} crate.
|
|
156
|
+
*/
|
|
157
|
+
new: (partial: Partial<Weight> & Required<Omit<Weight, never>>) => Weight;
|
|
158
|
+
/**
|
|
159
|
+
* Defaults specified in the {@link payjoin_ffi} crate.
|
|
160
|
+
*/
|
|
161
|
+
defaults: () => Partial<Weight>;
|
|
162
|
+
}>;
|
|
163
|
+
export declare enum ForeignError_Tags {
|
|
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]>;
|
|
465
172
|
/**
|
|
466
173
|
* @private
|
|
467
174
|
* This field is private and should not be used, use `tag` instead.
|
|
468
175
|
*/
|
|
469
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
176
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
470
177
|
name: string;
|
|
471
178
|
message: string;
|
|
472
179
|
stack?: string;
|
|
473
180
|
cause?: unknown;
|
|
474
181
|
};
|
|
475
|
-
"new"(
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
max: bigint;
|
|
479
|
-
}): {
|
|
480
|
-
readonly tag: FfiValidationError_Tags.ScriptTooLarge;
|
|
481
|
-
readonly inner: Readonly<{
|
|
482
|
-
field: string;
|
|
483
|
-
len: bigint;
|
|
484
|
-
max: bigint;
|
|
485
|
-
}>;
|
|
182
|
+
"new"(v0: string): {
|
|
183
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
184
|
+
readonly inner: Readonly<[string]>;
|
|
486
185
|
/**
|
|
487
186
|
* @private
|
|
488
187
|
* This field is private and should not be used, use `tag` instead.
|
|
489
188
|
*/
|
|
490
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
189
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
491
190
|
name: string;
|
|
492
191
|
message: string;
|
|
493
192
|
stack?: string;
|
|
494
193
|
cause?: unknown;
|
|
495
194
|
};
|
|
496
195
|
instanceOf(obj: any): obj is {
|
|
497
|
-
readonly tag:
|
|
498
|
-
readonly inner: Readonly<
|
|
499
|
-
field: string;
|
|
500
|
-
len: bigint;
|
|
501
|
-
max: bigint;
|
|
502
|
-
}>;
|
|
196
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
197
|
+
readonly inner: Readonly<[string]>;
|
|
503
198
|
/**
|
|
504
199
|
* @private
|
|
505
200
|
* This field is private and should not be used, use `tag` instead.
|
|
506
201
|
*/
|
|
507
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
202
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
508
203
|
name: string;
|
|
509
204
|
message: string;
|
|
510
205
|
stack?: string;
|
|
511
206
|
cause?: unknown;
|
|
512
207
|
};
|
|
513
208
|
hasInner(obj: any): obj is {
|
|
514
|
-
readonly tag:
|
|
515
|
-
readonly inner: Readonly<
|
|
516
|
-
field: string;
|
|
517
|
-
len: bigint;
|
|
518
|
-
max: bigint;
|
|
519
|
-
}>;
|
|
209
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
210
|
+
readonly inner: Readonly<[string]>;
|
|
520
211
|
/**
|
|
521
212
|
* @private
|
|
522
213
|
* This field is private and should not be used, use `tag` instead.
|
|
523
214
|
*/
|
|
524
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
215
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
525
216
|
name: string;
|
|
526
217
|
message: string;
|
|
527
218
|
stack?: string;
|
|
528
219
|
cause?: unknown;
|
|
529
220
|
};
|
|
530
221
|
getInner(obj: {
|
|
531
|
-
readonly tag:
|
|
532
|
-
readonly inner: Readonly<
|
|
533
|
-
field: string;
|
|
534
|
-
len: bigint;
|
|
535
|
-
max: bigint;
|
|
536
|
-
}>;
|
|
222
|
+
readonly tag: ForeignError_Tags.InternalError;
|
|
223
|
+
readonly inner: Readonly<[string]>;
|
|
537
224
|
/**
|
|
538
225
|
* @private
|
|
539
226
|
* This field is private and should not be used, use `tag` instead.
|
|
540
227
|
*/
|
|
541
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
228
|
+
readonly [uniffiTypeNameSymbol]: "ForeignError";
|
|
542
229
|
name: string;
|
|
543
230
|
message: string;
|
|
544
231
|
stack?: string;
|
|
545
232
|
cause?: unknown;
|
|
546
|
-
}): Readonly<
|
|
547
|
-
field: string;
|
|
548
|
-
len: bigint;
|
|
549
|
-
max: bigint;
|
|
550
|
-
}>;
|
|
233
|
+
}): Readonly<[string]>;
|
|
551
234
|
};
|
|
552
|
-
|
|
235
|
+
}>;
|
|
236
|
+
export type ForeignError = InstanceType<(typeof ForeignError)[keyof Omit<typeof ForeignError, "instanceOf">]>;
|
|
237
|
+
export declare enum InitializedTransitionOutcome_Tags {
|
|
238
|
+
Progress = "Progress",
|
|
239
|
+
Stasis = "Stasis"
|
|
240
|
+
}
|
|
241
|
+
export declare const InitializedTransitionOutcome: Readonly<{
|
|
242
|
+
instanceOf: (obj: any) => obj is InitializedTransitionOutcome;
|
|
243
|
+
Progress: {
|
|
553
244
|
new (inner: {
|
|
554
|
-
|
|
555
|
-
max: bigint;
|
|
245
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
556
246
|
}): {
|
|
557
|
-
readonly tag:
|
|
247
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
558
248
|
readonly inner: Readonly<{
|
|
559
|
-
|
|
560
|
-
max: bigint;
|
|
249
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
561
250
|
}>;
|
|
562
251
|
/**
|
|
563
252
|
* @private
|
|
564
253
|
* This field is private and should not be used, use `tag` instead.
|
|
565
254
|
*/
|
|
566
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
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]>;
|
|
255
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
256
|
+
};
|
|
257
|
+
"new"(inner: {
|
|
258
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
259
|
+
}): {
|
|
260
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
261
|
+
readonly inner: Readonly<{
|
|
262
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
263
|
+
}>;
|
|
1592
264
|
/**
|
|
1593
265
|
* @private
|
|
1594
266
|
* This field is private and should not be used, use `tag` instead.
|
|
1595
267
|
*/
|
|
1596
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1597
|
-
name: string;
|
|
1598
|
-
message: string;
|
|
1599
|
-
stack?: string;
|
|
1600
|
-
cause?: unknown;
|
|
268
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1601
269
|
};
|
|
1602
|
-
|
|
1603
|
-
readonly tag:
|
|
1604
|
-
readonly inner: Readonly<
|
|
270
|
+
instanceOf(obj: any): obj is {
|
|
271
|
+
readonly tag: InitializedTransitionOutcome_Tags.Progress;
|
|
272
|
+
readonly inner: Readonly<{
|
|
273
|
+
inner: UncheckedOriginalPayloadInterface;
|
|
274
|
+
}>;
|
|
1605
275
|
/**
|
|
1606
276
|
* @private
|
|
1607
277
|
* This field is private and should not be used, use `tag` instead.
|
|
1608
278
|
*/
|
|
1609
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1610
|
-
name: string;
|
|
1611
|
-
message: string;
|
|
1612
|
-
stack?: string;
|
|
1613
|
-
cause?: unknown;
|
|
279
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1614
280
|
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
281
|
+
};
|
|
282
|
+
Stasis: {
|
|
283
|
+
new (inner: {
|
|
284
|
+
inner: InitializedInterface;
|
|
285
|
+
}): {
|
|
286
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
287
|
+
readonly inner: Readonly<{
|
|
288
|
+
inner: InitializedInterface;
|
|
289
|
+
}>;
|
|
1618
290
|
/**
|
|
1619
291
|
* @private
|
|
1620
292
|
* This field is private and should not be used, use `tag` instead.
|
|
1621
293
|
*/
|
|
1622
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1623
|
-
name: string;
|
|
1624
|
-
message: string;
|
|
1625
|
-
stack?: string;
|
|
1626
|
-
cause?: unknown;
|
|
294
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1627
295
|
};
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
296
|
+
"new"(inner: {
|
|
297
|
+
inner: InitializedInterface;
|
|
298
|
+
}): {
|
|
299
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
300
|
+
readonly inner: Readonly<{
|
|
301
|
+
inner: InitializedInterface;
|
|
302
|
+
}>;
|
|
1631
303
|
/**
|
|
1632
304
|
* @private
|
|
1633
305
|
* This field is private and should not be used, use `tag` instead.
|
|
1634
306
|
*/
|
|
1635
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1636
|
-
name: string;
|
|
1637
|
-
message: string;
|
|
1638
|
-
stack?: string;
|
|
1639
|
-
cause?: unknown;
|
|
307
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
1640
308
|
};
|
|
1641
|
-
|
|
1642
|
-
readonly tag:
|
|
1643
|
-
readonly inner: Readonly<
|
|
309
|
+
instanceOf(obj: any): obj is {
|
|
310
|
+
readonly tag: InitializedTransitionOutcome_Tags.Stasis;
|
|
311
|
+
readonly inner: Readonly<{
|
|
312
|
+
inner: InitializedInterface;
|
|
313
|
+
}>;
|
|
1644
314
|
/**
|
|
1645
315
|
* @private
|
|
1646
316
|
* This field is private and should not be used, use `tag` instead.
|
|
1647
317
|
*/
|
|
1648
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1649
|
-
|
|
1650
|
-
message: string;
|
|
1651
|
-
stack?: string;
|
|
1652
|
-
cause?: unknown;
|
|
1653
|
-
}): Readonly<[FfiValidationError]>;
|
|
318
|
+
readonly [uniffiTypeNameSymbol]: "InitializedTransitionOutcome";
|
|
319
|
+
};
|
|
1654
320
|
};
|
|
1655
321
|
}>;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
322
|
+
export type InitializedTransitionOutcome = InstanceType<(typeof InitializedTransitionOutcome)[keyof Omit<typeof InitializedTransitionOutcome, "instanceOf">]>;
|
|
323
|
+
export declare enum OutputSubstitution {
|
|
324
|
+
Enabled = 0,
|
|
325
|
+
Disabled = 1
|
|
326
|
+
}
|
|
1660
327
|
export declare enum PollingForProposalTransitionOutcome_Tags {
|
|
1661
328
|
Progress = "Progress",
|
|
1662
329
|
Stasis = "Stasis"
|
|
@@ -1665,11 +332,11 @@ export declare const PollingForProposalTransitionOutcome: Readonly<{
|
|
|
1665
332
|
instanceOf: (obj: any) => obj is PollingForProposalTransitionOutcome;
|
|
1666
333
|
Progress: {
|
|
1667
334
|
new (inner: {
|
|
1668
|
-
|
|
335
|
+
inner: PsbtInterface;
|
|
1669
336
|
}): {
|
|
1670
337
|
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
1671
338
|
readonly inner: Readonly<{
|
|
1672
|
-
|
|
339
|
+
inner: PsbtInterface;
|
|
1673
340
|
}>;
|
|
1674
341
|
/**
|
|
1675
342
|
* @private
|
|
@@ -1678,11 +345,11 @@ export declare const PollingForProposalTransitionOutcome: Readonly<{
|
|
|
1678
345
|
readonly [uniffiTypeNameSymbol]: "PollingForProposalTransitionOutcome";
|
|
1679
346
|
};
|
|
1680
347
|
"new"(inner: {
|
|
1681
|
-
|
|
348
|
+
inner: PsbtInterface;
|
|
1682
349
|
}): {
|
|
1683
350
|
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
1684
351
|
readonly inner: Readonly<{
|
|
1685
|
-
|
|
352
|
+
inner: PsbtInterface;
|
|
1686
353
|
}>;
|
|
1687
354
|
/**
|
|
1688
355
|
* @private
|
|
@@ -1693,7 +360,7 @@ export declare const PollingForProposalTransitionOutcome: Readonly<{
|
|
|
1693
360
|
instanceOf(obj: any): obj is {
|
|
1694
361
|
readonly tag: PollingForProposalTransitionOutcome_Tags.Progress;
|
|
1695
362
|
readonly inner: Readonly<{
|
|
1696
|
-
|
|
363
|
+
inner: PsbtInterface;
|
|
1697
364
|
}>;
|
|
1698
365
|
/**
|
|
1699
366
|
* @private
|
|
@@ -1743,86 +410,6 @@ export declare const PollingForProposalTransitionOutcome: Readonly<{
|
|
|
1743
410
|
};
|
|
1744
411
|
}>;
|
|
1745
412
|
export type PollingForProposalTransitionOutcome = InstanceType<(typeof PollingForProposalTransitionOutcome)[keyof Omit<typeof PollingForProposalTransitionOutcome, "instanceOf">]>;
|
|
1746
|
-
export declare enum PsbtParseError_Tags {
|
|
1747
|
-
InvalidPsbt = "InvalidPsbt"
|
|
1748
|
-
}
|
|
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]>;
|
|
1758
|
-
/**
|
|
1759
|
-
* @private
|
|
1760
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1761
|
-
*/
|
|
1762
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1763
|
-
name: string;
|
|
1764
|
-
message: string;
|
|
1765
|
-
stack?: string;
|
|
1766
|
-
cause?: unknown;
|
|
1767
|
-
};
|
|
1768
|
-
"new"(v0: string): {
|
|
1769
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1770
|
-
readonly inner: Readonly<[string]>;
|
|
1771
|
-
/**
|
|
1772
|
-
* @private
|
|
1773
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1774
|
-
*/
|
|
1775
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1776
|
-
name: string;
|
|
1777
|
-
message: string;
|
|
1778
|
-
stack?: string;
|
|
1779
|
-
cause?: unknown;
|
|
1780
|
-
};
|
|
1781
|
-
instanceOf(obj: any): obj is {
|
|
1782
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1783
|
-
readonly inner: Readonly<[string]>;
|
|
1784
|
-
/**
|
|
1785
|
-
* @private
|
|
1786
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1787
|
-
*/
|
|
1788
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1789
|
-
name: string;
|
|
1790
|
-
message: string;
|
|
1791
|
-
stack?: string;
|
|
1792
|
-
cause?: unknown;
|
|
1793
|
-
};
|
|
1794
|
-
hasInner(obj: any): obj is {
|
|
1795
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1796
|
-
readonly inner: Readonly<[string]>;
|
|
1797
|
-
/**
|
|
1798
|
-
* @private
|
|
1799
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1800
|
-
*/
|
|
1801
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1802
|
-
name: string;
|
|
1803
|
-
message: string;
|
|
1804
|
-
stack?: string;
|
|
1805
|
-
cause?: unknown;
|
|
1806
|
-
};
|
|
1807
|
-
getInner(obj: {
|
|
1808
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
1809
|
-
readonly inner: Readonly<[string]>;
|
|
1810
|
-
/**
|
|
1811
|
-
* @private
|
|
1812
|
-
* This field is private and should not be used, use `tag` instead.
|
|
1813
|
-
*/
|
|
1814
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
1815
|
-
name: string;
|
|
1816
|
-
message: string;
|
|
1817
|
-
stack?: string;
|
|
1818
|
-
cause?: unknown;
|
|
1819
|
-
}): Readonly<[string]>;
|
|
1820
|
-
};
|
|
1821
|
-
}>;
|
|
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">]>;
|
|
1826
413
|
export declare enum ReceiveSession_Tags {
|
|
1827
414
|
Initialized = "Initialized",
|
|
1828
415
|
UncheckedOriginalPayload = "UncheckedOriginalPayload",
|
|
@@ -2308,195 +895,47 @@ export declare const ReceiveSession: Readonly<{
|
|
|
2308
895
|
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2309
896
|
};
|
|
2310
897
|
};
|
|
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]>;
|
|
2432
|
-
/**
|
|
2433
|
-
* @private
|
|
2434
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2435
|
-
*/
|
|
2436
|
-
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2437
|
-
name: string;
|
|
2438
|
-
message: string;
|
|
2439
|
-
stack?: string;
|
|
2440
|
-
cause?: unknown;
|
|
2441
|
-
};
|
|
2442
|
-
"new"(v0: IntoUrlErrorInterface): {
|
|
2443
|
-
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2444
|
-
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
2445
|
-
/**
|
|
2446
|
-
* @private
|
|
2447
|
-
* This field is private and should not be used, use `tag` instead.
|
|
2448
|
-
*/
|
|
2449
|
-
readonly [uniffiTypeNameSymbol]: "ReceiverBuilderError";
|
|
2450
|
-
name: string;
|
|
2451
|
-
message: string;
|
|
2452
|
-
stack?: string;
|
|
2453
|
-
cause?: unknown;
|
|
2454
|
-
};
|
|
2455
|
-
instanceOf(obj: any): obj is {
|
|
2456
|
-
readonly tag: ReceiverBuilderError_Tags.IntoUrl;
|
|
2457
|
-
readonly inner: Readonly<[IntoUrlErrorInterface]>;
|
|
898
|
+
Closed: {
|
|
899
|
+
new (inner: {
|
|
900
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
901
|
+
}): {
|
|
902
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
903
|
+
readonly inner: Readonly<{
|
|
904
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
905
|
+
}>;
|
|
2458
906
|
/**
|
|
2459
907
|
* @private
|
|
2460
908
|
* This field is private and should not be used, use `tag` instead.
|
|
2461
909
|
*/
|
|
2462
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2463
|
-
name: string;
|
|
2464
|
-
message: string;
|
|
2465
|
-
stack?: string;
|
|
2466
|
-
cause?: unknown;
|
|
910
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2467
911
|
};
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
912
|
+
"new"(inner: {
|
|
913
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
914
|
+
}): {
|
|
915
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
916
|
+
readonly inner: Readonly<{
|
|
917
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
918
|
+
}>;
|
|
2471
919
|
/**
|
|
2472
920
|
* @private
|
|
2473
921
|
* This field is private and should not be used, use `tag` instead.
|
|
2474
922
|
*/
|
|
2475
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2476
|
-
name: string;
|
|
2477
|
-
message: string;
|
|
2478
|
-
stack?: string;
|
|
2479
|
-
cause?: unknown;
|
|
923
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
2480
924
|
};
|
|
2481
|
-
|
|
2482
|
-
readonly tag:
|
|
2483
|
-
readonly inner: Readonly<
|
|
925
|
+
instanceOf(obj: any): obj is {
|
|
926
|
+
readonly tag: ReceiveSession_Tags.Closed;
|
|
927
|
+
readonly inner: Readonly<{
|
|
928
|
+
inner: ReceiverSessionOutcomeInterface;
|
|
929
|
+
}>;
|
|
2484
930
|
/**
|
|
2485
931
|
* @private
|
|
2486
932
|
* This field is private and should not be used, use `tag` instead.
|
|
2487
933
|
*/
|
|
2488
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
2489
|
-
|
|
2490
|
-
message: string;
|
|
2491
|
-
stack?: string;
|
|
2492
|
-
cause?: unknown;
|
|
2493
|
-
}): Readonly<[IntoUrlErrorInterface]>;
|
|
934
|
+
readonly [uniffiTypeNameSymbol]: "ReceiveSession";
|
|
935
|
+
};
|
|
2494
936
|
};
|
|
2495
937
|
}>;
|
|
2496
|
-
|
|
2497
|
-
* Error that may occur when building a receiver session.
|
|
2498
|
-
*/
|
|
2499
|
-
export type ReceiverBuilderError = InstanceType<(typeof ReceiverBuilderError)[keyof Omit<typeof ReceiverBuilderError, "instanceOf">]>;
|
|
938
|
+
export type ReceiveSession = InstanceType<(typeof ReceiveSession)[keyof Omit<typeof ReceiveSession, "instanceOf">]>;
|
|
2500
939
|
export declare enum ReceiverError_Tags {
|
|
2501
940
|
Protocol = "Protocol",
|
|
2502
941
|
Implementation = "Implementation",
|
|
@@ -3130,370 +1569,154 @@ export declare const ResponseError: Readonly<{
|
|
|
3130
1569
|
getInner(obj: {
|
|
3131
1570
|
readonly tag: ResponseError_Tags.Unrecognized;
|
|
3132
1571
|
readonly inner: Readonly<{
|
|
3133
|
-
errorCode: string;
|
|
3134
|
-
msg: string;
|
|
3135
|
-
}>;
|
|
3136
|
-
/**
|
|
3137
|
-
* @private
|
|
3138
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3139
|
-
*/
|
|
3140
|
-
readonly [uniffiTypeNameSymbol]: "ResponseError";
|
|
3141
|
-
name: string;
|
|
3142
|
-
message: string;
|
|
3143
|
-
stack?: string;
|
|
3144
|
-
cause?: unknown;
|
|
3145
|
-
}): Readonly<{
|
|
3146
|
-
errorCode: string;
|
|
3147
|
-
msg: string;
|
|
3148
|
-
}>;
|
|
3149
|
-
};
|
|
3150
|
-
}>;
|
|
3151
|
-
/**
|
|
3152
|
-
* Represent an error returned by Payjoin receiver.
|
|
3153
|
-
*/
|
|
3154
|
-
export type ResponseError = InstanceType<(typeof ResponseError)[keyof Omit<typeof ResponseError, "instanceOf">]>;
|
|
3155
|
-
export declare enum SendSession_Tags {
|
|
3156
|
-
WithReplyKey = "WithReplyKey",
|
|
3157
|
-
PollingForProposal = "PollingForProposal",
|
|
3158
|
-
Closed = "Closed"
|
|
3159
|
-
}
|
|
3160
|
-
export declare const SendSession: Readonly<{
|
|
3161
|
-
instanceOf: (obj: any) => obj is SendSession;
|
|
3162
|
-
WithReplyKey: {
|
|
3163
|
-
new (inner: {
|
|
3164
|
-
inner: WithReplyKeyInterface;
|
|
3165
|
-
}): {
|
|
3166
|
-
readonly tag: SendSession_Tags.WithReplyKey;
|
|
3167
|
-
readonly inner: Readonly<{
|
|
3168
|
-
inner: WithReplyKeyInterface;
|
|
3169
|
-
}>;
|
|
3170
|
-
/**
|
|
3171
|
-
* @private
|
|
3172
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3173
|
-
*/
|
|
3174
|
-
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3175
|
-
};
|
|
3176
|
-
"new"(inner: {
|
|
3177
|
-
inner: WithReplyKeyInterface;
|
|
3178
|
-
}): {
|
|
3179
|
-
readonly tag: SendSession_Tags.WithReplyKey;
|
|
3180
|
-
readonly inner: Readonly<{
|
|
3181
|
-
inner: WithReplyKeyInterface;
|
|
3182
|
-
}>;
|
|
3183
|
-
/**
|
|
3184
|
-
* @private
|
|
3185
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3186
|
-
*/
|
|
3187
|
-
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3188
|
-
};
|
|
3189
|
-
instanceOf(obj: any): obj is {
|
|
3190
|
-
readonly tag: SendSession_Tags.WithReplyKey;
|
|
3191
|
-
readonly inner: Readonly<{
|
|
3192
|
-
inner: WithReplyKeyInterface;
|
|
3193
|
-
}>;
|
|
3194
|
-
/**
|
|
3195
|
-
* @private
|
|
3196
|
-
* This field is private and should not be used, use `tag` instead.
|
|
3197
|
-
*/
|
|
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]>;
|
|
1572
|
+
errorCode: string;
|
|
1573
|
+
msg: string;
|
|
1574
|
+
}>;
|
|
3375
1575
|
/**
|
|
3376
1576
|
* @private
|
|
3377
1577
|
* This field is private and should not be used, use `tag` instead.
|
|
3378
1578
|
*/
|
|
3379
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
1579
|
+
readonly [uniffiTypeNameSymbol]: "ResponseError";
|
|
3380
1580
|
name: string;
|
|
3381
1581
|
message: string;
|
|
3382
1582
|
stack?: string;
|
|
3383
1583
|
cause?: unknown;
|
|
3384
|
-
}
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
1584
|
+
}): Readonly<{
|
|
1585
|
+
errorCode: string;
|
|
1586
|
+
msg: string;
|
|
1587
|
+
}>;
|
|
1588
|
+
};
|
|
1589
|
+
}>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Represent an error returned by Payjoin receiver.
|
|
1592
|
+
*/
|
|
1593
|
+
export type ResponseError = InstanceType<(typeof ResponseError)[keyof Omit<typeof ResponseError, "instanceOf">]>;
|
|
1594
|
+
export declare enum SendSession_Tags {
|
|
1595
|
+
WithReplyKey = "WithReplyKey",
|
|
1596
|
+
PollingForProposal = "PollingForProposal",
|
|
1597
|
+
Closed = "Closed"
|
|
1598
|
+
}
|
|
1599
|
+
export declare const SendSession: Readonly<{
|
|
1600
|
+
instanceOf: (obj: any) => obj is SendSession;
|
|
1601
|
+
WithReplyKey: {
|
|
1602
|
+
new (inner: {
|
|
1603
|
+
inner: WithReplyKeyInterface;
|
|
1604
|
+
}): {
|
|
1605
|
+
readonly tag: SendSession_Tags.WithReplyKey;
|
|
1606
|
+
readonly inner: Readonly<{
|
|
1607
|
+
inner: WithReplyKeyInterface;
|
|
1608
|
+
}>;
|
|
3388
1609
|
/**
|
|
3389
1610
|
* @private
|
|
3390
1611
|
* This field is private and should not be used, use `tag` instead.
|
|
3391
1612
|
*/
|
|
3392
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3393
|
-
name: string;
|
|
3394
|
-
message: string;
|
|
3395
|
-
stack?: string;
|
|
3396
|
-
cause?: unknown;
|
|
1613
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3397
1614
|
};
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
1615
|
+
"new"(inner: {
|
|
1616
|
+
inner: WithReplyKeyInterface;
|
|
1617
|
+
}): {
|
|
1618
|
+
readonly tag: SendSession_Tags.WithReplyKey;
|
|
1619
|
+
readonly inner: Readonly<{
|
|
1620
|
+
inner: WithReplyKeyInterface;
|
|
1621
|
+
}>;
|
|
3401
1622
|
/**
|
|
3402
1623
|
* @private
|
|
3403
1624
|
* This field is private and should not be used, use `tag` instead.
|
|
3404
1625
|
*/
|
|
3405
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3406
|
-
name: string;
|
|
3407
|
-
message: string;
|
|
3408
|
-
stack?: string;
|
|
3409
|
-
cause?: unknown;
|
|
1626
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3410
1627
|
};
|
|
3411
|
-
|
|
3412
|
-
readonly tag:
|
|
3413
|
-
readonly inner: Readonly<
|
|
1628
|
+
instanceOf(obj: any): obj is {
|
|
1629
|
+
readonly tag: SendSession_Tags.WithReplyKey;
|
|
1630
|
+
readonly inner: Readonly<{
|
|
1631
|
+
inner: WithReplyKeyInterface;
|
|
1632
|
+
}>;
|
|
3414
1633
|
/**
|
|
3415
1634
|
* @private
|
|
3416
1635
|
* This field is private and should not be used, use `tag` instead.
|
|
3417
1636
|
*/
|
|
3418
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3419
|
-
|
|
3420
|
-
message: string;
|
|
3421
|
-
stack?: string;
|
|
3422
|
-
cause?: unknown;
|
|
3423
|
-
}): Readonly<[BuildSenderErrorInterface]>;
|
|
1637
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
1638
|
+
};
|
|
3424
1639
|
};
|
|
3425
|
-
|
|
3426
|
-
new (
|
|
3427
|
-
|
|
3428
|
-
|
|
1640
|
+
PollingForProposal: {
|
|
1641
|
+
new (inner: {
|
|
1642
|
+
inner: PollingForProposalInterface;
|
|
1643
|
+
}): {
|
|
1644
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
1645
|
+
readonly inner: Readonly<{
|
|
1646
|
+
inner: PollingForProposalInterface;
|
|
1647
|
+
}>;
|
|
3429
1648
|
/**
|
|
3430
1649
|
* @private
|
|
3431
1650
|
* This field is private and should not be used, use `tag` instead.
|
|
3432
1651
|
*/
|
|
3433
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3434
|
-
name: string;
|
|
3435
|
-
message: string;
|
|
3436
|
-
stack?: string;
|
|
3437
|
-
cause?: unknown;
|
|
1652
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3438
1653
|
};
|
|
3439
|
-
"new"(
|
|
3440
|
-
|
|
3441
|
-
|
|
1654
|
+
"new"(inner: {
|
|
1655
|
+
inner: PollingForProposalInterface;
|
|
1656
|
+
}): {
|
|
1657
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
1658
|
+
readonly inner: Readonly<{
|
|
1659
|
+
inner: PollingForProposalInterface;
|
|
1660
|
+
}>;
|
|
3442
1661
|
/**
|
|
3443
1662
|
* @private
|
|
3444
1663
|
* This field is private and should not be used, use `tag` instead.
|
|
3445
1664
|
*/
|
|
3446
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3447
|
-
name: string;
|
|
3448
|
-
message: string;
|
|
3449
|
-
stack?: string;
|
|
3450
|
-
cause?: unknown;
|
|
1665
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3451
1666
|
};
|
|
3452
1667
|
instanceOf(obj: any): obj is {
|
|
3453
|
-
readonly tag:
|
|
3454
|
-
readonly inner: Readonly<
|
|
1668
|
+
readonly tag: SendSession_Tags.PollingForProposal;
|
|
1669
|
+
readonly inner: Readonly<{
|
|
1670
|
+
inner: PollingForProposalInterface;
|
|
1671
|
+
}>;
|
|
3455
1672
|
/**
|
|
3456
1673
|
* @private
|
|
3457
1674
|
* This field is private and should not be used, use `tag` instead.
|
|
3458
1675
|
*/
|
|
3459
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3460
|
-
name: string;
|
|
3461
|
-
message: string;
|
|
3462
|
-
stack?: string;
|
|
3463
|
-
cause?: unknown;
|
|
1676
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3464
1677
|
};
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
1678
|
+
};
|
|
1679
|
+
Closed: {
|
|
1680
|
+
new (inner: {
|
|
1681
|
+
inner: SenderSessionOutcomeInterface;
|
|
1682
|
+
}): {
|
|
1683
|
+
readonly tag: SendSession_Tags.Closed;
|
|
1684
|
+
readonly inner: Readonly<{
|
|
1685
|
+
inner: SenderSessionOutcomeInterface;
|
|
1686
|
+
}>;
|
|
3468
1687
|
/**
|
|
3469
1688
|
* @private
|
|
3470
1689
|
* This field is private and should not be used, use `tag` instead.
|
|
3471
1690
|
*/
|
|
3472
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3473
|
-
name: string;
|
|
3474
|
-
message: string;
|
|
3475
|
-
stack?: string;
|
|
3476
|
-
cause?: unknown;
|
|
1691
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
3477
1692
|
};
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
1693
|
+
"new"(inner: {
|
|
1694
|
+
inner: SenderSessionOutcomeInterface;
|
|
1695
|
+
}): {
|
|
1696
|
+
readonly tag: SendSession_Tags.Closed;
|
|
1697
|
+
readonly inner: Readonly<{
|
|
1698
|
+
inner: SenderSessionOutcomeInterface;
|
|
1699
|
+
}>;
|
|
3481
1700
|
/**
|
|
3482
1701
|
* @private
|
|
3483
1702
|
* This field is private and should not be used, use `tag` instead.
|
|
3484
1703
|
*/
|
|
3485
|
-
readonly [uniffiTypeNameSymbol]: "
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
1704
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
1705
|
+
};
|
|
1706
|
+
instanceOf(obj: any): obj is {
|
|
1707
|
+
readonly tag: SendSession_Tags.Closed;
|
|
1708
|
+
readonly inner: Readonly<{
|
|
1709
|
+
inner: SenderSessionOutcomeInterface;
|
|
1710
|
+
}>;
|
|
1711
|
+
/**
|
|
1712
|
+
* @private
|
|
1713
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1714
|
+
*/
|
|
1715
|
+
readonly [uniffiTypeNameSymbol]: "SendSession";
|
|
1716
|
+
};
|
|
3491
1717
|
};
|
|
3492
1718
|
}>;
|
|
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">]>;
|
|
1719
|
+
export type SendSession = InstanceType<(typeof SendSession)[keyof Omit<typeof SendSession, "instanceOf">]>;
|
|
3497
1720
|
export declare enum SenderPersistedError_Tags {
|
|
3498
1721
|
EncapsulationError = "EncapsulationError",
|
|
3499
1722
|
ResponseError = "ResponseError",
|
|
@@ -3829,30 +2052,8 @@ export declare const SenderPersistedError: Readonly<{
|
|
|
3829
2052
|
* Error that may occur during state machine transitions
|
|
3830
2053
|
*/
|
|
3831
2054
|
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
|
-
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3847
|
-
*/
|
|
3848
|
-
uniffiDestroy(): void;
|
|
3849
|
-
static instanceOf(obj: any): obj is AddressParseError;
|
|
3850
|
-
}
|
|
3851
2055
|
export interface AssumeInteractiveTransitionInterface {
|
|
3852
2056
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
3853
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3854
|
-
signal: AbortSignal;
|
|
3855
|
-
}): Promise<MaybeInputsOwnedInterface>;
|
|
3856
2057
|
}
|
|
3857
2058
|
export declare class AssumeInteractiveTransition extends UniffiAbstractObject implements AssumeInteractiveTransitionInterface {
|
|
3858
2059
|
readonly [uniffiTypeNameSymbol] = "AssumeInteractiveTransition";
|
|
@@ -3860,9 +2061,6 @@ export declare class AssumeInteractiveTransition extends UniffiAbstractObject im
|
|
|
3860
2061
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3861
2062
|
private constructor();
|
|
3862
2063
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
3863
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
3864
|
-
signal: AbortSignal;
|
|
3865
|
-
}): Promise<MaybeInputsOwnedInterface>;
|
|
3866
2064
|
/**
|
|
3867
2065
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3868
2066
|
*/
|
|
@@ -3891,6 +2089,8 @@ export declare class BuildSenderError extends UniffiAbstractObject implements Bu
|
|
|
3891
2089
|
*/
|
|
3892
2090
|
uniffiDestroy(): void;
|
|
3893
2091
|
static instanceOf(obj: any): obj is BuildSenderError;
|
|
2092
|
+
static hasInner(obj: any): obj is UniffiThrownObject<BuildSenderError>;
|
|
2093
|
+
static getInner(err: UniffiThrownObject<BuildSenderError>): BuildSenderError;
|
|
3894
2094
|
}
|
|
3895
2095
|
export interface CanBroadcast {
|
|
3896
2096
|
callback(tx: ArrayBuffer): boolean;
|
|
@@ -4002,9 +2202,6 @@ export declare class HasReplyableError extends UniffiAbstractObject implements H
|
|
|
4002
2202
|
}
|
|
4003
2203
|
export interface HasReplyableErrorTransitionInterface {
|
|
4004
2204
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4005
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4006
|
-
signal: AbortSignal;
|
|
4007
|
-
}): Promise<void>;
|
|
4008
2205
|
}
|
|
4009
2206
|
export declare class HasReplyableErrorTransition extends UniffiAbstractObject implements HasReplyableErrorTransitionInterface {
|
|
4010
2207
|
readonly [uniffiTypeNameSymbol] = "HasReplyableErrorTransition";
|
|
@@ -4012,9 +2209,6 @@ export declare class HasReplyableErrorTransition extends UniffiAbstractObject im
|
|
|
4012
2209
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4013
2210
|
private constructor();
|
|
4014
2211
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4015
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4016
|
-
signal: AbortSignal;
|
|
4017
|
-
}): Promise<void>;
|
|
4018
2212
|
/**
|
|
4019
2213
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4020
2214
|
*/
|
|
@@ -4046,9 +2240,6 @@ export declare class ImplementationError extends UniffiAbstractObject implements
|
|
|
4046
2240
|
}
|
|
4047
2241
|
export interface InitialReceiveTransitionInterface {
|
|
4048
2242
|
save(persister: JsonReceiverSessionPersister): InitializedInterface;
|
|
4049
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4050
|
-
signal: AbortSignal;
|
|
4051
|
-
}): Promise<InitializedInterface>;
|
|
4052
2243
|
}
|
|
4053
2244
|
export declare class InitialReceiveTransition extends UniffiAbstractObject implements InitialReceiveTransitionInterface {
|
|
4054
2245
|
readonly [uniffiTypeNameSymbol] = "InitialReceiveTransition";
|
|
@@ -4056,9 +2247,6 @@ export declare class InitialReceiveTransition extends UniffiAbstractObject imple
|
|
|
4056
2247
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4057
2248
|
private constructor();
|
|
4058
2249
|
save(persister: JsonReceiverSessionPersister): InitializedInterface;
|
|
4059
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4060
|
-
signal: AbortSignal;
|
|
4061
|
-
}): Promise<InitializedInterface>;
|
|
4062
2250
|
/**
|
|
4063
2251
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4064
2252
|
*/
|
|
@@ -4067,9 +2255,6 @@ export declare class InitialReceiveTransition extends UniffiAbstractObject imple
|
|
|
4067
2255
|
}
|
|
4068
2256
|
export interface InitialSendTransitionInterface {
|
|
4069
2257
|
save(persister: JsonSenderSessionPersister): WithReplyKeyInterface;
|
|
4070
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4071
|
-
signal: AbortSignal;
|
|
4072
|
-
}): Promise<WithReplyKeyInterface>;
|
|
4073
2258
|
}
|
|
4074
2259
|
export declare class InitialSendTransition extends UniffiAbstractObject implements InitialSendTransitionInterface {
|
|
4075
2260
|
readonly [uniffiTypeNameSymbol] = "InitialSendTransition";
|
|
@@ -4077,9 +2262,6 @@ export declare class InitialSendTransition extends UniffiAbstractObject implemen
|
|
|
4077
2262
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4078
2263
|
private constructor();
|
|
4079
2264
|
save(persister: JsonSenderSessionPersister): WithReplyKeyInterface;
|
|
4080
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4081
|
-
signal: AbortSignal;
|
|
4082
|
-
}): Promise<WithReplyKeyInterface>;
|
|
4083
2265
|
/**
|
|
4084
2266
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4085
2267
|
*/
|
|
@@ -4125,9 +2307,6 @@ export declare class Initialized extends UniffiAbstractObject implements Initial
|
|
|
4125
2307
|
}
|
|
4126
2308
|
export interface InitializedTransitionInterface {
|
|
4127
2309
|
save(persister: JsonReceiverSessionPersister): InitializedTransitionOutcome;
|
|
4128
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4129
|
-
signal: AbortSignal;
|
|
4130
|
-
}): Promise<InitializedTransitionOutcome>;
|
|
4131
2310
|
}
|
|
4132
2311
|
export declare class InitializedTransition extends UniffiAbstractObject implements InitializedTransitionInterface {
|
|
4133
2312
|
readonly [uniffiTypeNameSymbol] = "InitializedTransition";
|
|
@@ -4135,9 +2314,6 @@ export declare class InitializedTransition extends UniffiAbstractObject implemen
|
|
|
4135
2314
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4136
2315
|
private constructor();
|
|
4137
2316
|
save(persister: JsonReceiverSessionPersister): InitializedTransitionOutcome;
|
|
4138
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4139
|
-
signal: AbortSignal;
|
|
4140
|
-
}): Promise<InitializedTransitionOutcome>;
|
|
4141
2317
|
/**
|
|
4142
2318
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4143
2319
|
*/
|
|
@@ -4171,7 +2347,7 @@ export declare class InputPair extends UniffiAbstractObject implements InputPair
|
|
|
4171
2347
|
readonly [uniffiTypeNameSymbol] = "InputPair";
|
|
4172
2348
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4173
2349
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4174
|
-
constructor(txin:
|
|
2350
|
+
constructor(txin: TxIn, psbtin: PsbtInput, expectedWeight: Weight | undefined);
|
|
4175
2351
|
/**
|
|
4176
2352
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4177
2353
|
*/
|
|
@@ -4190,16 +2366,18 @@ export declare class IntoUrlError extends UniffiAbstractObject implements IntoUr
|
|
|
4190
2366
|
*/
|
|
4191
2367
|
uniffiDestroy(): void;
|
|
4192
2368
|
static instanceOf(obj: any): obj is IntoUrlError;
|
|
2369
|
+
static hasInner(obj: any): obj is UniffiThrownObject<IntoUrlError>;
|
|
2370
|
+
static getInner(err: UniffiThrownObject<IntoUrlError>): IntoUrlError;
|
|
4193
2371
|
}
|
|
4194
2372
|
export interface IsOutputKnown {
|
|
4195
|
-
callback(outpoint:
|
|
2373
|
+
callback(outpoint: OutPoint): boolean;
|
|
4196
2374
|
}
|
|
4197
2375
|
export declare class IsOutputKnownImpl extends UniffiAbstractObject implements IsOutputKnown {
|
|
4198
2376
|
readonly [uniffiTypeNameSymbol] = "IsOutputKnownImpl";
|
|
4199
2377
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4200
2378
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4201
2379
|
private constructor();
|
|
4202
|
-
callback(outpoint:
|
|
2380
|
+
callback(outpoint: OutPoint): boolean;
|
|
4203
2381
|
/**
|
|
4204
2382
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4205
2383
|
*/
|
|
@@ -4246,43 +2424,6 @@ export declare class JsonReceiverSessionPersisterImpl extends UniffiAbstractObje
|
|
|
4246
2424
|
uniffiDestroy(): void;
|
|
4247
2425
|
static instanceOf(obj: any): obj is JsonReceiverSessionPersisterImpl;
|
|
4248
2426
|
}
|
|
4249
|
-
/**
|
|
4250
|
-
* Async session persister that should save and load events as JSON strings.
|
|
4251
|
-
*/
|
|
4252
|
-
export interface JsonReceiverSessionPersisterAsync {
|
|
4253
|
-
save(event: string, asyncOpts_?: {
|
|
4254
|
-
signal: AbortSignal;
|
|
4255
|
-
}): Promise<void>;
|
|
4256
|
-
load(asyncOpts_?: {
|
|
4257
|
-
signal: AbortSignal;
|
|
4258
|
-
}): Promise<Array<string>>;
|
|
4259
|
-
close(asyncOpts_?: {
|
|
4260
|
-
signal: AbortSignal;
|
|
4261
|
-
}): Promise<void>;
|
|
4262
|
-
}
|
|
4263
|
-
/**
|
|
4264
|
-
* Async session persister that should save and load events as JSON strings.
|
|
4265
|
-
*/
|
|
4266
|
-
export declare class JsonReceiverSessionPersisterAsyncImpl extends UniffiAbstractObject implements JsonReceiverSessionPersisterAsync {
|
|
4267
|
-
readonly [uniffiTypeNameSymbol] = "JsonReceiverSessionPersisterAsyncImpl";
|
|
4268
|
-
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4269
|
-
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4270
|
-
private constructor();
|
|
4271
|
-
save(event: string, asyncOpts_?: {
|
|
4272
|
-
signal: AbortSignal;
|
|
4273
|
-
}): Promise<void>;
|
|
4274
|
-
load(asyncOpts_?: {
|
|
4275
|
-
signal: AbortSignal;
|
|
4276
|
-
}): Promise<Array<string>>;
|
|
4277
|
-
close(asyncOpts_?: {
|
|
4278
|
-
signal: AbortSignal;
|
|
4279
|
-
}): Promise<void>;
|
|
4280
|
-
/**
|
|
4281
|
-
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4282
|
-
*/
|
|
4283
|
-
uniffiDestroy(): void;
|
|
4284
|
-
static instanceOf(obj: any): obj is JsonReceiverSessionPersisterAsyncImpl;
|
|
4285
|
-
}
|
|
4286
2427
|
/**
|
|
4287
2428
|
* The standard format for errors that can be replied as JSON.
|
|
4288
2429
|
*
|
|
@@ -4343,43 +2484,6 @@ export declare class JsonSenderSessionPersisterImpl extends UniffiAbstractObject
|
|
|
4343
2484
|
uniffiDestroy(): void;
|
|
4344
2485
|
static instanceOf(obj: any): obj is JsonSenderSessionPersisterImpl;
|
|
4345
2486
|
}
|
|
4346
|
-
/**
|
|
4347
|
-
* Async session persister that should save and load events as JSON strings.
|
|
4348
|
-
*/
|
|
4349
|
-
export interface JsonSenderSessionPersisterAsync {
|
|
4350
|
-
save(event: string, asyncOpts_?: {
|
|
4351
|
-
signal: AbortSignal;
|
|
4352
|
-
}): Promise<void>;
|
|
4353
|
-
load(asyncOpts_?: {
|
|
4354
|
-
signal: AbortSignal;
|
|
4355
|
-
}): Promise<Array<string>>;
|
|
4356
|
-
close(asyncOpts_?: {
|
|
4357
|
-
signal: AbortSignal;
|
|
4358
|
-
}): Promise<void>;
|
|
4359
|
-
}
|
|
4360
|
-
/**
|
|
4361
|
-
* Async session persister that should save and load events as JSON strings.
|
|
4362
|
-
*/
|
|
4363
|
-
export declare class JsonSenderSessionPersisterAsyncImpl extends UniffiAbstractObject implements JsonSenderSessionPersisterAsync {
|
|
4364
|
-
readonly [uniffiTypeNameSymbol] = "JsonSenderSessionPersisterAsyncImpl";
|
|
4365
|
-
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4366
|
-
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4367
|
-
private constructor();
|
|
4368
|
-
save(event: string, asyncOpts_?: {
|
|
4369
|
-
signal: AbortSignal;
|
|
4370
|
-
}): Promise<void>;
|
|
4371
|
-
load(asyncOpts_?: {
|
|
4372
|
-
signal: AbortSignal;
|
|
4373
|
-
}): Promise<Array<string>>;
|
|
4374
|
-
close(asyncOpts_?: {
|
|
4375
|
-
signal: AbortSignal;
|
|
4376
|
-
}): Promise<void>;
|
|
4377
|
-
/**
|
|
4378
|
-
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4379
|
-
*/
|
|
4380
|
-
uniffiDestroy(): void;
|
|
4381
|
-
static instanceOf(obj: any): obj is JsonSenderSessionPersisterAsyncImpl;
|
|
4382
|
-
}
|
|
4383
2487
|
export interface MaybeInputsOwnedInterface {
|
|
4384
2488
|
checkInputsNotOwned(isOwned: IsScriptOwned): MaybeInputsOwnedTransitionInterface;
|
|
4385
2489
|
/**
|
|
@@ -4405,9 +2509,6 @@ export declare class MaybeInputsOwned extends UniffiAbstractObject implements Ma
|
|
|
4405
2509
|
}
|
|
4406
2510
|
export interface MaybeInputsOwnedTransitionInterface {
|
|
4407
2511
|
save(persister: JsonReceiverSessionPersister): MaybeInputsSeenInterface;
|
|
4408
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4409
|
-
signal: AbortSignal;
|
|
4410
|
-
}): Promise<MaybeInputsSeenInterface>;
|
|
4411
2512
|
}
|
|
4412
2513
|
export declare class MaybeInputsOwnedTransition extends UniffiAbstractObject implements MaybeInputsOwnedTransitionInterface {
|
|
4413
2514
|
readonly [uniffiTypeNameSymbol] = "MaybeInputsOwnedTransition";
|
|
@@ -4415,9 +2516,6 @@ export declare class MaybeInputsOwnedTransition extends UniffiAbstractObject imp
|
|
|
4415
2516
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4416
2517
|
private constructor();
|
|
4417
2518
|
save(persister: JsonReceiverSessionPersister): MaybeInputsSeenInterface;
|
|
4418
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4419
|
-
signal: AbortSignal;
|
|
4420
|
-
}): Promise<MaybeInputsSeenInterface>;
|
|
4421
2519
|
/**
|
|
4422
2520
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4423
2521
|
*/
|
|
@@ -4441,9 +2539,6 @@ export declare class MaybeInputsSeen extends UniffiAbstractObject implements May
|
|
|
4441
2539
|
}
|
|
4442
2540
|
export interface MaybeInputsSeenTransitionInterface {
|
|
4443
2541
|
save(persister: JsonReceiverSessionPersister): OutputsUnknownInterface;
|
|
4444
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4445
|
-
signal: AbortSignal;
|
|
4446
|
-
}): Promise<OutputsUnknownInterface>;
|
|
4447
2542
|
}
|
|
4448
2543
|
export declare class MaybeInputsSeenTransition extends UniffiAbstractObject implements MaybeInputsSeenTransitionInterface {
|
|
4449
2544
|
readonly [uniffiTypeNameSymbol] = "MaybeInputsSeenTransition";
|
|
@@ -4451,9 +2546,6 @@ export declare class MaybeInputsSeenTransition extends UniffiAbstractObject impl
|
|
|
4451
2546
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4452
2547
|
private constructor();
|
|
4453
2548
|
save(persister: JsonReceiverSessionPersister): OutputsUnknownInterface;
|
|
4454
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4455
|
-
signal: AbortSignal;
|
|
4456
|
-
}): Promise<OutputsUnknownInterface>;
|
|
4457
2549
|
/**
|
|
4458
2550
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4459
2551
|
*/
|
|
@@ -4461,14 +2553,14 @@ export declare class MaybeInputsSeenTransition extends UniffiAbstractObject impl
|
|
|
4461
2553
|
static instanceOf(obj: any): obj is MaybeInputsSeenTransition;
|
|
4462
2554
|
}
|
|
4463
2555
|
export interface MonitorInterface {
|
|
4464
|
-
monitor(transactionExists: TransactionExists): MonitorTransitionInterface;
|
|
2556
|
+
monitor(transactionExists: TransactionExists, outpointSpent: OutpointSpent): MonitorTransitionInterface;
|
|
4465
2557
|
}
|
|
4466
2558
|
export declare class Monitor extends UniffiAbstractObject implements MonitorInterface {
|
|
4467
2559
|
readonly [uniffiTypeNameSymbol] = "Monitor";
|
|
4468
2560
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4469
2561
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4470
2562
|
private constructor();
|
|
4471
|
-
monitor(transactionExists: TransactionExists): MonitorTransitionInterface;
|
|
2563
|
+
monitor(transactionExists: TransactionExists, outpointSpent: OutpointSpent): MonitorTransitionInterface;
|
|
4472
2564
|
/**
|
|
4473
2565
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4474
2566
|
*/
|
|
@@ -4477,9 +2569,6 @@ export declare class Monitor extends UniffiAbstractObject implements MonitorInte
|
|
|
4477
2569
|
}
|
|
4478
2570
|
export interface MonitorTransitionInterface {
|
|
4479
2571
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4480
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4481
|
-
signal: AbortSignal;
|
|
4482
|
-
}): Promise<void>;
|
|
4483
2572
|
}
|
|
4484
2573
|
export declare class MonitorTransition extends UniffiAbstractObject implements MonitorTransitionInterface {
|
|
4485
2574
|
readonly [uniffiTypeNameSymbol] = "MonitorTransition";
|
|
@@ -4487,9 +2576,6 @@ export declare class MonitorTransition extends UniffiAbstractObject implements M
|
|
|
4487
2576
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4488
2577
|
private constructor();
|
|
4489
2578
|
save(persister: JsonReceiverSessionPersister): void;
|
|
4490
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4491
|
-
signal: AbortSignal;
|
|
4492
|
-
}): Promise<void>;
|
|
4493
2579
|
/**
|
|
4494
2580
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4495
2581
|
*/
|
|
@@ -4528,16 +2614,31 @@ export declare class OhttpKeys extends UniffiAbstractObject implements OhttpKeys
|
|
|
4528
2614
|
uniffiDestroy(): void;
|
|
4529
2615
|
static instanceOf(obj: any): obj is OhttpKeys;
|
|
4530
2616
|
}
|
|
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
|
+
}
|
|
4531
2632
|
/**
|
|
4532
|
-
*
|
|
2633
|
+
* Error that may occur when output substitution fails.
|
|
4533
2634
|
*/
|
|
4534
|
-
export interface
|
|
2635
|
+
export interface OutputSubstitutionErrorInterface {
|
|
4535
2636
|
}
|
|
4536
2637
|
/**
|
|
4537
|
-
*
|
|
2638
|
+
* Error that may occur when output substitution fails.
|
|
4538
2639
|
*/
|
|
4539
|
-
export declare class
|
|
4540
|
-
readonly [uniffiTypeNameSymbol] = "
|
|
2640
|
+
export declare class OutputSubstitutionError extends UniffiAbstractObject implements OutputSubstitutionErrorInterface {
|
|
2641
|
+
readonly [uniffiTypeNameSymbol] = "OutputSubstitutionError";
|
|
4541
2642
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
4542
2643
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4543
2644
|
private constructor();
|
|
@@ -4545,7 +2646,9 @@ export declare class OutputSubstitutionProtocolError extends UniffiAbstractObjec
|
|
|
4545
2646
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4546
2647
|
*/
|
|
4547
2648
|
uniffiDestroy(): void;
|
|
4548
|
-
static instanceOf(obj: any): obj is
|
|
2649
|
+
static instanceOf(obj: any): obj is OutputSubstitutionError;
|
|
2650
|
+
static hasInner(obj: any): obj is UniffiThrownObject<OutputSubstitutionError>;
|
|
2651
|
+
static getInner(err: UniffiThrownObject<OutputSubstitutionError>): OutputSubstitutionError;
|
|
4549
2652
|
}
|
|
4550
2653
|
/**
|
|
4551
2654
|
* The receiver has not yet identified which outputs belong to the receiver.
|
|
@@ -4582,9 +2685,6 @@ export declare class OutputsUnknown extends UniffiAbstractObject implements Outp
|
|
|
4582
2685
|
}
|
|
4583
2686
|
export interface OutputsUnknownTransitionInterface {
|
|
4584
2687
|
save(persister: JsonReceiverSessionPersister): WantsOutputsInterface;
|
|
4585
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4586
|
-
signal: AbortSignal;
|
|
4587
|
-
}): Promise<WantsOutputsInterface>;
|
|
4588
2688
|
}
|
|
4589
2689
|
export declare class OutputsUnknownTransition extends UniffiAbstractObject implements OutputsUnknownTransitionInterface {
|
|
4590
2690
|
readonly [uniffiTypeNameSymbol] = "OutputsUnknownTransition";
|
|
@@ -4592,9 +2692,6 @@ export declare class OutputsUnknownTransition extends UniffiAbstractObject imple
|
|
|
4592
2692
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4593
2693
|
private constructor();
|
|
4594
2694
|
save(persister: JsonReceiverSessionPersister): WantsOutputsInterface;
|
|
4595
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4596
|
-
signal: AbortSignal;
|
|
4597
|
-
}): Promise<WantsOutputsInterface>;
|
|
4598
2695
|
/**
|
|
4599
2696
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4600
2697
|
*/
|
|
@@ -4615,7 +2712,7 @@ export interface PayjoinProposalInterface {
|
|
|
4615
2712
|
*/
|
|
4616
2713
|
processResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): PayjoinProposalTransitionInterface;
|
|
4617
2714
|
psbt(): string;
|
|
4618
|
-
utxosToBeLocked(): Array<
|
|
2715
|
+
utxosToBeLocked(): Array<OutPoint>;
|
|
4619
2716
|
}
|
|
4620
2717
|
export declare class PayjoinProposal extends UniffiAbstractObject implements PayjoinProposalInterface {
|
|
4621
2718
|
readonly [uniffiTypeNameSymbol] = "PayjoinProposal";
|
|
@@ -4635,7 +2732,7 @@ export declare class PayjoinProposal extends UniffiAbstractObject implements Pay
|
|
|
4635
2732
|
*/
|
|
4636
2733
|
processResponse(body: ArrayBuffer, ohttpContext: ClientResponseInterface): PayjoinProposalTransitionInterface;
|
|
4637
2734
|
psbt(): string;
|
|
4638
|
-
utxosToBeLocked(): Array<
|
|
2735
|
+
utxosToBeLocked(): Array<OutPoint>;
|
|
4639
2736
|
/**
|
|
4640
2737
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4641
2738
|
*/
|
|
@@ -4644,9 +2741,6 @@ export declare class PayjoinProposal extends UniffiAbstractObject implements Pay
|
|
|
4644
2741
|
}
|
|
4645
2742
|
export interface PayjoinProposalTransitionInterface {
|
|
4646
2743
|
save(persister: JsonReceiverSessionPersister): MonitorInterface;
|
|
4647
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4648
|
-
signal: AbortSignal;
|
|
4649
|
-
}): Promise<MonitorInterface>;
|
|
4650
2744
|
}
|
|
4651
2745
|
export declare class PayjoinProposalTransition extends UniffiAbstractObject implements PayjoinProposalTransitionInterface {
|
|
4652
2746
|
readonly [uniffiTypeNameSymbol] = "PayjoinProposalTransition";
|
|
@@ -4654,9 +2748,6 @@ export declare class PayjoinProposalTransition extends UniffiAbstractObject impl
|
|
|
4654
2748
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4655
2749
|
private constructor();
|
|
4656
2750
|
save(persister: JsonReceiverSessionPersister): MonitorInterface;
|
|
4657
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4658
|
-
signal: AbortSignal;
|
|
4659
|
-
}): Promise<MonitorInterface>;
|
|
4660
2751
|
/**
|
|
4661
2752
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4662
2753
|
*/
|
|
@@ -4770,9 +2861,6 @@ export declare class PollingForProposal extends UniffiAbstractObject implements
|
|
|
4770
2861
|
}
|
|
4771
2862
|
export interface PollingForProposalTransitionInterface {
|
|
4772
2863
|
save(persister: JsonSenderSessionPersister): PollingForProposalTransitionOutcome;
|
|
4773
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4774
|
-
signal: AbortSignal;
|
|
4775
|
-
}): Promise<PollingForProposalTransitionOutcome>;
|
|
4776
2864
|
}
|
|
4777
2865
|
export declare class PollingForProposalTransition extends UniffiAbstractObject implements PollingForProposalTransitionInterface {
|
|
4778
2866
|
readonly [uniffiTypeNameSymbol] = "PollingForProposalTransition";
|
|
@@ -4780,9 +2868,6 @@ export declare class PollingForProposalTransition extends UniffiAbstractObject i
|
|
|
4780
2868
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4781
2869
|
private constructor();
|
|
4782
2870
|
save(persister: JsonSenderSessionPersister): PollingForProposalTransitionOutcome;
|
|
4783
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
4784
|
-
signal: AbortSignal;
|
|
4785
|
-
}): Promise<PollingForProposalTransitionOutcome>;
|
|
4786
2871
|
/**
|
|
4787
2872
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4788
2873
|
*/
|
|
@@ -4841,7 +2926,7 @@ export declare class ProtocolError extends UniffiAbstractObject implements Proto
|
|
|
4841
2926
|
}
|
|
4842
2927
|
export interface ProvisionalProposalInterface {
|
|
4843
2928
|
finalizeProposal(processPsbt: ProcessPsbt): ProvisionalProposalTransitionInterface;
|
|
4844
|
-
psbtToSign():
|
|
2929
|
+
psbtToSign(): PsbtInterface;
|
|
4845
2930
|
}
|
|
4846
2931
|
export declare class ProvisionalProposal extends UniffiAbstractObject implements ProvisionalProposalInterface {
|
|
4847
2932
|
readonly [uniffiTypeNameSymbol] = "ProvisionalProposal";
|
|
@@ -4849,7 +2934,7 @@ export declare class ProvisionalProposal extends UniffiAbstractObject implements
|
|
|
4849
2934
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4850
2935
|
private constructor();
|
|
4851
2936
|
finalizeProposal(processPsbt: ProcessPsbt): ProvisionalProposalTransitionInterface;
|
|
4852
|
-
psbtToSign():
|
|
2937
|
+
psbtToSign(): PsbtInterface;
|
|
4853
2938
|
/**
|
|
4854
2939
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4855
2940
|
*/
|
|
@@ -4858,9 +2943,6 @@ export declare class ProvisionalProposal extends UniffiAbstractObject implements
|
|
|
4858
2943
|
}
|
|
4859
2944
|
export interface ProvisionalProposalTransitionInterface {
|
|
4860
2945
|
save(persister: JsonReceiverSessionPersister): PayjoinProposalInterface;
|
|
4861
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4862
|
-
signal: AbortSignal;
|
|
4863
|
-
}): Promise<PayjoinProposalInterface>;
|
|
4864
2946
|
}
|
|
4865
2947
|
export declare class ProvisionalProposalTransition extends UniffiAbstractObject implements ProvisionalProposalTransitionInterface {
|
|
4866
2948
|
readonly [uniffiTypeNameSymbol] = "ProvisionalProposalTransition";
|
|
@@ -4868,9 +2950,6 @@ export declare class ProvisionalProposalTransition extends UniffiAbstractObject
|
|
|
4868
2950
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
4869
2951
|
private constructor();
|
|
4870
2952
|
save(persister: JsonReceiverSessionPersister): PayjoinProposalInterface;
|
|
4871
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
4872
|
-
signal: AbortSignal;
|
|
4873
|
-
}): Promise<PayjoinProposalInterface>;
|
|
4874
2953
|
/**
|
|
4875
2954
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
4876
2955
|
*/
|
|
@@ -4895,6 +2974,8 @@ export declare class PsbtInputError extends UniffiAbstractObject implements Psbt
|
|
|
4895
2974
|
*/
|
|
4896
2975
|
uniffiDestroy(): void;
|
|
4897
2976
|
static instanceOf(obj: any): obj is PsbtInputError;
|
|
2977
|
+
static hasInner(obj: any): obj is UniffiThrownObject<PsbtInputError>;
|
|
2978
|
+
static getInner(err: UniffiThrownObject<PsbtInputError>): PsbtInputError;
|
|
4898
2979
|
}
|
|
4899
2980
|
export interface ReceiverBuilderInterface {
|
|
4900
2981
|
build(): InitialReceiveTransitionInterface;
|
|
@@ -4920,7 +3001,7 @@ export declare class ReceiverBuilder extends UniffiAbstractObject implements Rec
|
|
|
4920
3001
|
* # References
|
|
4921
3002
|
* - [BIP 77: Payjoin Version 2: Serverless Payjoin](https://github.com/bitcoin/bips/blob/master/bip-0077.md)
|
|
4922
3003
|
*/
|
|
4923
|
-
constructor(address:
|
|
3004
|
+
constructor(address: AddressInterface, directory: string, ohttpKeys: OhttpKeysInterface);
|
|
4924
3005
|
build(): InitialReceiveTransitionInterface;
|
|
4925
3006
|
withAmount(amountSats: bigint): ReceiverBuilderInterface;
|
|
4926
3007
|
withExpiration(expiration: bigint): ReceiverBuilderInterface;
|
|
@@ -4975,7 +3056,7 @@ export interface ReceiverSessionHistoryInterface {
|
|
|
4975
3056
|
/**
|
|
4976
3057
|
* Fallback transaction from the session if present
|
|
4977
3058
|
*/
|
|
4978
|
-
fallbackTx():
|
|
3059
|
+
fallbackTx(): TransactionInterface | undefined;
|
|
4979
3060
|
/**
|
|
4980
3061
|
* Receiver session Payjoin URI
|
|
4981
3062
|
*/
|
|
@@ -4993,7 +3074,7 @@ export declare class ReceiverSessionHistory extends UniffiAbstractObject impleme
|
|
|
4993
3074
|
/**
|
|
4994
3075
|
* Fallback transaction from the session if present
|
|
4995
3076
|
*/
|
|
4996
|
-
fallbackTx():
|
|
3077
|
+
fallbackTx(): TransactionInterface | undefined;
|
|
4997
3078
|
/**
|
|
4998
3079
|
* Receiver session Payjoin URI
|
|
4999
3080
|
*/
|
|
@@ -5233,7 +3314,7 @@ export interface SenderSessionHistoryInterface {
|
|
|
5233
3314
|
/**
|
|
5234
3315
|
* Fallback transaction from the session if present
|
|
5235
3316
|
*/
|
|
5236
|
-
fallbackTx():
|
|
3317
|
+
fallbackTx(): TransactionInterface;
|
|
5237
3318
|
pjParam(): PjParamInterface;
|
|
5238
3319
|
status(): SenderSessionStatusInterface;
|
|
5239
3320
|
}
|
|
@@ -5245,7 +3326,7 @@ export declare class SenderSessionHistory extends UniffiAbstractObject implement
|
|
|
5245
3326
|
/**
|
|
5246
3327
|
* Fallback transaction from the session if present
|
|
5247
3328
|
*/
|
|
5248
|
-
fallbackTx():
|
|
3329
|
+
fallbackTx(): TransactionInterface;
|
|
5249
3330
|
pjParam(): PjParamInterface;
|
|
5250
3331
|
status(): SenderSessionStatusInterface;
|
|
5251
3332
|
/**
|
|
@@ -5255,20 +3336,12 @@ export declare class SenderSessionHistory extends UniffiAbstractObject implement
|
|
|
5255
3336
|
static instanceOf(obj: any): obj is SenderSessionHistory;
|
|
5256
3337
|
}
|
|
5257
3338
|
export interface SenderSessionOutcomeInterface {
|
|
5258
|
-
isCancelled(): boolean;
|
|
5259
|
-
isFailure(): boolean;
|
|
5260
|
-
isSuccess(): boolean;
|
|
5261
|
-
successPsbtBase64(): string | undefined;
|
|
5262
3339
|
}
|
|
5263
3340
|
export declare class SenderSessionOutcome extends UniffiAbstractObject implements SenderSessionOutcomeInterface {
|
|
5264
3341
|
readonly [uniffiTypeNameSymbol] = "SenderSessionOutcome";
|
|
5265
3342
|
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
5266
3343
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5267
3344
|
private constructor();
|
|
5268
|
-
isCancelled(): boolean;
|
|
5269
|
-
isFailure(): boolean;
|
|
5270
|
-
isSuccess(): boolean;
|
|
5271
|
-
successPsbtBase64(): string | undefined;
|
|
5272
3345
|
/**
|
|
5273
3346
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5274
3347
|
*/
|
|
@@ -5380,9 +3453,6 @@ export declare class UncheckedOriginalPayload extends UniffiAbstractObject imple
|
|
|
5380
3453
|
}
|
|
5381
3454
|
export interface UncheckedOriginalPayloadTransitionInterface {
|
|
5382
3455
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
5383
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5384
|
-
signal: AbortSignal;
|
|
5385
|
-
}): Promise<MaybeInputsOwnedInterface>;
|
|
5386
3456
|
}
|
|
5387
3457
|
export declare class UncheckedOriginalPayloadTransition extends UniffiAbstractObject implements UncheckedOriginalPayloadTransitionInterface {
|
|
5388
3458
|
readonly [uniffiTypeNameSymbol] = "UncheckedOriginalPayloadTransition";
|
|
@@ -5390,9 +3460,6 @@ export declare class UncheckedOriginalPayloadTransition extends UniffiAbstractOb
|
|
|
5390
3460
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5391
3461
|
private constructor();
|
|
5392
3462
|
save(persister: JsonReceiverSessionPersister): MaybeInputsOwnedInterface;
|
|
5393
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5394
|
-
signal: AbortSignal;
|
|
5395
|
-
}): Promise<MaybeInputsOwnedInterface>;
|
|
5396
3463
|
/**
|
|
5397
3464
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5398
3465
|
*/
|
|
@@ -5575,9 +3642,6 @@ export declare class WantsFeeRange extends UniffiAbstractObject implements Wants
|
|
|
5575
3642
|
}
|
|
5576
3643
|
export interface WantsFeeRangeTransitionInterface {
|
|
5577
3644
|
save(persister: JsonReceiverSessionPersister): ProvisionalProposalInterface;
|
|
5578
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5579
|
-
signal: AbortSignal;
|
|
5580
|
-
}): Promise<ProvisionalProposalInterface>;
|
|
5581
3645
|
}
|
|
5582
3646
|
export declare class WantsFeeRangeTransition extends UniffiAbstractObject implements WantsFeeRangeTransitionInterface {
|
|
5583
3647
|
readonly [uniffiTypeNameSymbol] = "WantsFeeRangeTransition";
|
|
@@ -5585,9 +3649,6 @@ export declare class WantsFeeRangeTransition extends UniffiAbstractObject implem
|
|
|
5585
3649
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5586
3650
|
private constructor();
|
|
5587
3651
|
save(persister: JsonReceiverSessionPersister): ProvisionalProposalInterface;
|
|
5588
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5589
|
-
signal: AbortSignal;
|
|
5590
|
-
}): Promise<ProvisionalProposalInterface>;
|
|
5591
3652
|
/**
|
|
5592
3653
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5593
3654
|
*/
|
|
@@ -5637,9 +3698,6 @@ export declare class WantsInputs extends UniffiAbstractObject implements WantsIn
|
|
|
5637
3698
|
}
|
|
5638
3699
|
export interface WantsInputsTransitionInterface {
|
|
5639
3700
|
save(persister: JsonReceiverSessionPersister): WantsFeeRangeInterface;
|
|
5640
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5641
|
-
signal: AbortSignal;
|
|
5642
|
-
}): Promise<WantsFeeRangeInterface>;
|
|
5643
3701
|
}
|
|
5644
3702
|
export declare class WantsInputsTransition extends UniffiAbstractObject implements WantsInputsTransitionInterface {
|
|
5645
3703
|
readonly [uniffiTypeNameSymbol] = "WantsInputsTransition";
|
|
@@ -5647,9 +3705,6 @@ export declare class WantsInputsTransition extends UniffiAbstractObject implemen
|
|
|
5647
3705
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5648
3706
|
private constructor();
|
|
5649
3707
|
save(persister: JsonReceiverSessionPersister): WantsFeeRangeInterface;
|
|
5650
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5651
|
-
signal: AbortSignal;
|
|
5652
|
-
}): Promise<WantsFeeRangeInterface>;
|
|
5653
3708
|
/**
|
|
5654
3709
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5655
3710
|
*/
|
|
@@ -5659,8 +3714,8 @@ export declare class WantsInputsTransition extends UniffiAbstractObject implemen
|
|
|
5659
3714
|
export interface WantsOutputsInterface {
|
|
5660
3715
|
commitOutputs(): WantsOutputsTransitionInterface;
|
|
5661
3716
|
outputSubstitution(): OutputSubstitution;
|
|
5662
|
-
replaceReceiverOutputs(replacementOutputs: Array<
|
|
5663
|
-
substituteReceiverScript(
|
|
3717
|
+
replaceReceiverOutputs(replacementOutputs: Array<TxOut>, drainScript: ScriptInterface): WantsOutputsInterface;
|
|
3718
|
+
substituteReceiverScript(outputScript: ScriptInterface): WantsOutputsInterface;
|
|
5664
3719
|
}
|
|
5665
3720
|
export declare class WantsOutputs extends UniffiAbstractObject implements WantsOutputsInterface {
|
|
5666
3721
|
readonly [uniffiTypeNameSymbol] = "WantsOutputs";
|
|
@@ -5669,8 +3724,8 @@ export declare class WantsOutputs extends UniffiAbstractObject implements WantsO
|
|
|
5669
3724
|
private constructor();
|
|
5670
3725
|
commitOutputs(): WantsOutputsTransitionInterface;
|
|
5671
3726
|
outputSubstitution(): OutputSubstitution;
|
|
5672
|
-
replaceReceiverOutputs(replacementOutputs: Array<
|
|
5673
|
-
substituteReceiverScript(
|
|
3727
|
+
replaceReceiverOutputs(replacementOutputs: Array<TxOut>, drainScript: ScriptInterface): WantsOutputsInterface;
|
|
3728
|
+
substituteReceiverScript(outputScript: ScriptInterface): WantsOutputsInterface;
|
|
5674
3729
|
/**
|
|
5675
3730
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5676
3731
|
*/
|
|
@@ -5679,9 +3734,6 @@ export declare class WantsOutputs extends UniffiAbstractObject implements WantsO
|
|
|
5679
3734
|
}
|
|
5680
3735
|
export interface WantsOutputsTransitionInterface {
|
|
5681
3736
|
save(persister: JsonReceiverSessionPersister): WantsInputsInterface;
|
|
5682
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5683
|
-
signal: AbortSignal;
|
|
5684
|
-
}): Promise<WantsInputsInterface>;
|
|
5685
3737
|
}
|
|
5686
3738
|
export declare class WantsOutputsTransition extends UniffiAbstractObject implements WantsOutputsTransitionInterface {
|
|
5687
3739
|
readonly [uniffiTypeNameSymbol] = "WantsOutputsTransition";
|
|
@@ -5689,9 +3741,6 @@ export declare class WantsOutputsTransition extends UniffiAbstractObject impleme
|
|
|
5689
3741
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5690
3742
|
private constructor();
|
|
5691
3743
|
save(persister: JsonReceiverSessionPersister): WantsInputsInterface;
|
|
5692
|
-
saveAsync(persister: JsonReceiverSessionPersisterAsync, asyncOpts_?: {
|
|
5693
|
-
signal: AbortSignal;
|
|
5694
|
-
}): Promise<WantsInputsInterface>;
|
|
5695
3744
|
/**
|
|
5696
3745
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5697
3746
|
*/
|
|
@@ -5760,9 +3809,6 @@ export declare class WithReplyKey extends UniffiAbstractObject implements WithRe
|
|
|
5760
3809
|
}
|
|
5761
3810
|
export interface WithReplyKeyTransitionInterface {
|
|
5762
3811
|
save(persister: JsonSenderSessionPersister): PollingForProposalInterface;
|
|
5763
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5764
|
-
signal: AbortSignal;
|
|
5765
|
-
}): Promise<PollingForProposalInterface>;
|
|
5766
3812
|
}
|
|
5767
3813
|
export declare class WithReplyKeyTransition extends UniffiAbstractObject implements WithReplyKeyTransitionInterface {
|
|
5768
3814
|
readonly [uniffiTypeNameSymbol] = "WithReplyKeyTransition";
|
|
@@ -5770,9 +3816,6 @@ export declare class WithReplyKeyTransition extends UniffiAbstractObject impleme
|
|
|
5770
3816
|
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
5771
3817
|
private constructor();
|
|
5772
3818
|
save(persister: JsonSenderSessionPersister): PollingForProposalInterface;
|
|
5773
|
-
saveAsync(persister: JsonSenderSessionPersisterAsync, asyncOpts_?: {
|
|
5774
|
-
signal: AbortSignal;
|
|
5775
|
-
}): Promise<PollingForProposalInterface>;
|
|
5776
3819
|
/**
|
|
5777
3820
|
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
5778
3821
|
*/
|
|
@@ -5793,9 +3836,9 @@ declare function uniffiEnsureInitialized(): void;
|
|
|
5793
3836
|
declare const _default: Readonly<{
|
|
5794
3837
|
initialize: typeof uniffiEnsureInitialized;
|
|
5795
3838
|
converters: {
|
|
5796
|
-
FfiConverterTypeAddressParseError: FfiConverterObject<AddressParseErrorInterface>;
|
|
5797
3839
|
FfiConverterTypeAssumeInteractiveTransition: FfiConverterObject<AssumeInteractiveTransitionInterface>;
|
|
5798
3840
|
FfiConverterTypeBuildSenderError: FfiConverterObject<BuildSenderErrorInterface>;
|
|
3841
|
+
FfiConverterTypeBuildSenderError__as_error: FfiConverterObjectAsError<BuildSenderErrorInterface>;
|
|
5799
3842
|
FfiConverterTypeCanBroadcast: FfiConverterObjectWithCallbacks<CanBroadcast>;
|
|
5800
3843
|
FfiConverterTypeClientResponse: FfiConverterObject<ClientResponseInterface>;
|
|
5801
3844
|
FfiConverterTypeCreateRequestError: FfiConverterObject<CreateRequestErrorInterface>;
|
|
@@ -5803,13 +3846,6 @@ declare const _default: Readonly<{
|
|
|
5803
3846
|
FfiConverterTypeEncapsulationError: FfiConverterObject<EncapsulationErrorInterface>;
|
|
5804
3847
|
FfiConverterTypeFeeRateError: FfiConverterObject<FeeRateErrorInterface>;
|
|
5805
3848
|
FfiConverterTypeFeeRateError__as_error: FfiConverterObjectAsError<FeeRateErrorInterface>;
|
|
5806
|
-
FfiConverterTypeFfiValidationError: {
|
|
5807
|
-
read(from: RustBuffer): FfiValidationError;
|
|
5808
|
-
write(value: FfiValidationError, into: RustBuffer): void;
|
|
5809
|
-
allocationSize(value: FfiValidationError): number;
|
|
5810
|
-
lift(value: UniffiByteArray): FfiValidationError;
|
|
5811
|
-
lower(value: FfiValidationError): UniffiByteArray;
|
|
5812
|
-
};
|
|
5813
3849
|
FfiConverterTypeForeignError: {
|
|
5814
3850
|
read(from: RustBuffer): {
|
|
5815
3851
|
readonly tag: ForeignError_Tags.InternalError;
|
|
@@ -5894,21 +3930,13 @@ declare const _default: Readonly<{
|
|
|
5894
3930
|
FfiConverterTypeInputContributionError: FfiConverterObject<InputContributionErrorInterface>;
|
|
5895
3931
|
FfiConverterTypeInputContributionError__as_error: FfiConverterObjectAsError<InputContributionErrorInterface>;
|
|
5896
3932
|
FfiConverterTypeInputPair: FfiConverterObject<InputPairInterface>;
|
|
5897
|
-
FfiConverterTypeInputPairError: {
|
|
5898
|
-
read(from: RustBuffer): InputPairError;
|
|
5899
|
-
write(value: InputPairError, into: RustBuffer): void;
|
|
5900
|
-
allocationSize(value: InputPairError): number;
|
|
5901
|
-
lift(value: UniffiByteArray): InputPairError;
|
|
5902
|
-
lower(value: InputPairError): UniffiByteArray;
|
|
5903
|
-
};
|
|
5904
3933
|
FfiConverterTypeIntoUrlError: FfiConverterObject<IntoUrlErrorInterface>;
|
|
3934
|
+
FfiConverterTypeIntoUrlError__as_error: FfiConverterObjectAsError<IntoUrlErrorInterface>;
|
|
5905
3935
|
FfiConverterTypeIsOutputKnown: FfiConverterObjectWithCallbacks<IsOutputKnown>;
|
|
5906
3936
|
FfiConverterTypeIsScriptOwned: FfiConverterObjectWithCallbacks<IsScriptOwned>;
|
|
5907
3937
|
FfiConverterTypeJsonReceiverSessionPersister: FfiConverterObjectWithCallbacks<JsonReceiverSessionPersister>;
|
|
5908
|
-
FfiConverterTypeJsonReceiverSessionPersisterAsync: FfiConverterObjectWithCallbacks<JsonReceiverSessionPersisterAsync>;
|
|
5909
3938
|
FfiConverterTypeJsonReply: FfiConverterObject<JsonReplyInterface>;
|
|
5910
3939
|
FfiConverterTypeJsonSenderSessionPersister: FfiConverterObjectWithCallbacks<JsonSenderSessionPersister>;
|
|
5911
|
-
FfiConverterTypeJsonSenderSessionPersisterAsync: FfiConverterObjectWithCallbacks<JsonSenderSessionPersisterAsync>;
|
|
5912
3940
|
FfiConverterTypeMaybeInputsOwned: FfiConverterObject<MaybeInputsOwnedInterface>;
|
|
5913
3941
|
FfiConverterTypeMaybeInputsOwnedTransition: FfiConverterObject<MaybeInputsOwnedTransitionInterface>;
|
|
5914
3942
|
FfiConverterTypeMaybeInputsSeen: FfiConverterObject<MaybeInputsSeenInterface>;
|
|
@@ -5918,6 +3946,7 @@ declare const _default: Readonly<{
|
|
|
5918
3946
|
FfiConverterTypeOhttpError: FfiConverterObject<OhttpErrorInterface>;
|
|
5919
3947
|
FfiConverterTypeOhttpError__as_error: FfiConverterObjectAsError<OhttpErrorInterface>;
|
|
5920
3948
|
FfiConverterTypeOhttpKeys: FfiConverterObject<OhttpKeysInterface>;
|
|
3949
|
+
FfiConverterTypeOutpointSpent: FfiConverterObjectWithCallbacks<OutpointSpent>;
|
|
5921
3950
|
FfiConverterTypeOutputSubstitution: {
|
|
5922
3951
|
read(from: RustBuffer): OutputSubstitution;
|
|
5923
3952
|
write(value: OutputSubstitution, into: RustBuffer): void;
|
|
@@ -5925,14 +3954,8 @@ declare const _default: Readonly<{
|
|
|
5925
3954
|
lift(value: UniffiByteArray): OutputSubstitution;
|
|
5926
3955
|
lower(value: OutputSubstitution): UniffiByteArray;
|
|
5927
3956
|
};
|
|
5928
|
-
FfiConverterTypeOutputSubstitutionError:
|
|
5929
|
-
|
|
5930
|
-
write(value: OutputSubstitutionError, into: RustBuffer): void;
|
|
5931
|
-
allocationSize(value: OutputSubstitutionError): number;
|
|
5932
|
-
lift(value: UniffiByteArray): OutputSubstitutionError;
|
|
5933
|
-
lower(value: OutputSubstitutionError): UniffiByteArray;
|
|
5934
|
-
};
|
|
5935
|
-
FfiConverterTypeOutputSubstitutionProtocolError: FfiConverterObject<OutputSubstitutionProtocolErrorInterface>;
|
|
3957
|
+
FfiConverterTypeOutputSubstitutionError: FfiConverterObject<OutputSubstitutionErrorInterface>;
|
|
3958
|
+
FfiConverterTypeOutputSubstitutionError__as_error: FfiConverterObjectAsError<OutputSubstitutionErrorInterface>;
|
|
5936
3959
|
FfiConverterTypeOutputsUnknown: FfiConverterObject<OutputsUnknownInterface>;
|
|
5937
3960
|
FfiConverterTypeOutputsUnknownTransition: FfiConverterObject<OutputsUnknownTransitionInterface>;
|
|
5938
3961
|
FfiConverterTypePayjoinProposal: FfiConverterObject<PayjoinProposalInterface>;
|
|
@@ -5943,41 +3966,6 @@ declare const _default: Readonly<{
|
|
|
5943
3966
|
FfiConverterTypePjParseError: FfiConverterObject<PjParseErrorInterface>;
|
|
5944
3967
|
FfiConverterTypePjParseError__as_error: FfiConverterObjectAsError<PjParseErrorInterface>;
|
|
5945
3968
|
FfiConverterTypePjUri: FfiConverterObject<PjUriInterface>;
|
|
5946
|
-
FfiConverterTypePlainOutPoint: {
|
|
5947
|
-
read(from: RustBuffer): PlainOutPoint;
|
|
5948
|
-
write(value: PlainOutPoint, into: RustBuffer): void;
|
|
5949
|
-
allocationSize(value: PlainOutPoint): number;
|
|
5950
|
-
lift(value: UniffiByteArray): PlainOutPoint;
|
|
5951
|
-
lower(value: PlainOutPoint): UniffiByteArray;
|
|
5952
|
-
};
|
|
5953
|
-
FfiConverterTypePlainPsbtInput: {
|
|
5954
|
-
read(from: RustBuffer): PlainPsbtInput;
|
|
5955
|
-
write(value: PlainPsbtInput, into: RustBuffer): void;
|
|
5956
|
-
allocationSize(value: PlainPsbtInput): number;
|
|
5957
|
-
lift(value: UniffiByteArray): PlainPsbtInput;
|
|
5958
|
-
lower(value: PlainPsbtInput): UniffiByteArray;
|
|
5959
|
-
};
|
|
5960
|
-
FfiConverterTypePlainTxIn: {
|
|
5961
|
-
read(from: RustBuffer): PlainTxIn;
|
|
5962
|
-
write(value: PlainTxIn, into: RustBuffer): void;
|
|
5963
|
-
allocationSize(value: PlainTxIn): number;
|
|
5964
|
-
lift(value: UniffiByteArray): PlainTxIn;
|
|
5965
|
-
lower(value: PlainTxIn): UniffiByteArray;
|
|
5966
|
-
};
|
|
5967
|
-
FfiConverterTypePlainTxOut: {
|
|
5968
|
-
read(from: RustBuffer): PlainTxOut;
|
|
5969
|
-
write(value: PlainTxOut, into: RustBuffer): void;
|
|
5970
|
-
allocationSize(value: PlainTxOut): number;
|
|
5971
|
-
lift(value: UniffiByteArray): PlainTxOut;
|
|
5972
|
-
lower(value: PlainTxOut): UniffiByteArray;
|
|
5973
|
-
};
|
|
5974
|
-
FfiConverterTypePlainWeight: {
|
|
5975
|
-
read(from: RustBuffer): PlainWeight;
|
|
5976
|
-
write(value: PlainWeight, into: RustBuffer): void;
|
|
5977
|
-
allocationSize(value: PlainWeight): number;
|
|
5978
|
-
lift(value: UniffiByteArray): PlainWeight;
|
|
5979
|
-
lower(value: PlainWeight): UniffiByteArray;
|
|
5980
|
-
};
|
|
5981
3969
|
FfiConverterTypePollingForProposal: FfiConverterObject<PollingForProposalInterface>;
|
|
5982
3970
|
FfiConverterTypePollingForProposalTransition: FfiConverterObject<PollingForProposalTransitionInterface>;
|
|
5983
3971
|
FfiConverterTypePollingForProposalTransitionOutcome: {
|
|
@@ -5991,74 +3979,15 @@ declare const _default: Readonly<{
|
|
|
5991
3979
|
FfiConverterTypeProtocolError: FfiConverterObject<ProtocolErrorInterface>;
|
|
5992
3980
|
FfiConverterTypeProvisionalProposal: FfiConverterObject<ProvisionalProposalInterface>;
|
|
5993
3981
|
FfiConverterTypeProvisionalProposalTransition: FfiConverterObject<ProvisionalProposalTransitionInterface>;
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
* @private
|
|
6001
|
-
* This field is private and should not be used, use `tag` instead.
|
|
6002
|
-
*/
|
|
6003
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6004
|
-
name: string;
|
|
6005
|
-
message: string;
|
|
6006
|
-
stack?: string;
|
|
6007
|
-
cause?: unknown;
|
|
6008
|
-
};
|
|
6009
|
-
write(value: {
|
|
6010
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6011
|
-
readonly inner: Readonly<[string]>;
|
|
6012
|
-
/**
|
|
6013
|
-
* @private
|
|
6014
|
-
* This field is private and should not be used, use `tag` instead.
|
|
6015
|
-
*/
|
|
6016
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6017
|
-
name: string;
|
|
6018
|
-
message: string;
|
|
6019
|
-
stack?: string;
|
|
6020
|
-
cause?: unknown;
|
|
6021
|
-
}, into: RustBuffer): void;
|
|
6022
|
-
allocationSize(value: {
|
|
6023
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6024
|
-
readonly inner: Readonly<[string]>;
|
|
6025
|
-
/**
|
|
6026
|
-
* @private
|
|
6027
|
-
* This field is private and should not be used, use `tag` instead.
|
|
6028
|
-
*/
|
|
6029
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6030
|
-
name: string;
|
|
6031
|
-
message: string;
|
|
6032
|
-
stack?: string;
|
|
6033
|
-
cause?: unknown;
|
|
6034
|
-
}): number;
|
|
6035
|
-
lift(value: UniffiByteArray): {
|
|
6036
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6037
|
-
readonly inner: Readonly<[string]>;
|
|
6038
|
-
/**
|
|
6039
|
-
* @private
|
|
6040
|
-
* This field is private and should not be used, use `tag` instead.
|
|
6041
|
-
*/
|
|
6042
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6043
|
-
name: string;
|
|
6044
|
-
message: string;
|
|
6045
|
-
stack?: string;
|
|
6046
|
-
cause?: unknown;
|
|
6047
|
-
};
|
|
6048
|
-
lower(value: {
|
|
6049
|
-
readonly tag: PsbtParseError_Tags.InvalidPsbt;
|
|
6050
|
-
readonly inner: Readonly<[string]>;
|
|
6051
|
-
/**
|
|
6052
|
-
* @private
|
|
6053
|
-
* This field is private and should not be used, use `tag` instead.
|
|
6054
|
-
*/
|
|
6055
|
-
readonly [uniffiTypeNameSymbol]: "PsbtParseError";
|
|
6056
|
-
name: string;
|
|
6057
|
-
message: string;
|
|
6058
|
-
stack?: string;
|
|
6059
|
-
cause?: unknown;
|
|
6060
|
-
}): UniffiByteArray;
|
|
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;
|
|
6061
3988
|
};
|
|
3989
|
+
FfiConverterTypePsbtInputError: FfiConverterObject<PsbtInputErrorInterface>;
|
|
3990
|
+
FfiConverterTypePsbtInputError__as_error: FfiConverterObjectAsError<PsbtInputErrorInterface>;
|
|
6062
3991
|
FfiConverterTypeReceiveSession: {
|
|
6063
3992
|
read(from: RustBuffer): ReceiveSession;
|
|
6064
3993
|
write(value: ReceiveSession, into: RustBuffer): void;
|
|
@@ -6067,13 +3996,6 @@ declare const _default: Readonly<{
|
|
|
6067
3996
|
lower(value: ReceiveSession): UniffiByteArray;
|
|
6068
3997
|
};
|
|
6069
3998
|
FfiConverterTypeReceiverBuilder: FfiConverterObject<ReceiverBuilderInterface>;
|
|
6070
|
-
FfiConverterTypeReceiverBuilderError: {
|
|
6071
|
-
read(from: RustBuffer): ReceiverBuilderError;
|
|
6072
|
-
write(value: ReceiverBuilderError, into: RustBuffer): void;
|
|
6073
|
-
allocationSize(value: ReceiverBuilderError): number;
|
|
6074
|
-
lift(value: UniffiByteArray): ReceiverBuilderError;
|
|
6075
|
-
lower(value: ReceiverBuilderError): UniffiByteArray;
|
|
6076
|
-
};
|
|
6077
3999
|
FfiConverterTypeReceiverError: {
|
|
6078
4000
|
read(from: RustBuffer): ReceiverError;
|
|
6079
4001
|
write(value: ReceiverError, into: RustBuffer): void;
|
|
@@ -6140,13 +4062,6 @@ declare const _default: Readonly<{
|
|
|
6140
4062
|
lower(value: SendSession): UniffiByteArray;
|
|
6141
4063
|
};
|
|
6142
4064
|
FfiConverterTypeSenderBuilder: FfiConverterObject<SenderBuilderInterface>;
|
|
6143
|
-
FfiConverterTypeSenderInputError: {
|
|
6144
|
-
read(from: RustBuffer): SenderInputError;
|
|
6145
|
-
write(value: SenderInputError, into: RustBuffer): void;
|
|
6146
|
-
allocationSize(value: SenderInputError): number;
|
|
6147
|
-
lift(value: UniffiByteArray): SenderInputError;
|
|
6148
|
-
lower(value: SenderInputError): UniffiByteArray;
|
|
6149
|
-
};
|
|
6150
4065
|
FfiConverterTypeSenderPersistedError: {
|
|
6151
4066
|
read(from: RustBuffer): SenderPersistedError;
|
|
6152
4067
|
write(value: SenderPersistedError, into: RustBuffer): void;
|
|
@@ -6180,10 +4095,17 @@ declare const _default: Readonly<{
|
|
|
6180
4095
|
FfiConverterTypeWantsInputsTransition: FfiConverterObject<WantsInputsTransitionInterface>;
|
|
6181
4096
|
FfiConverterTypeWantsOutputs: FfiConverterObject<WantsOutputsInterface>;
|
|
6182
4097
|
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
|
+
};
|
|
6183
4105
|
FfiConverterTypeWellKnownError: FfiConverterObject<WellKnownErrorInterface>;
|
|
6184
4106
|
FfiConverterTypeWithReplyKey: FfiConverterObject<WithReplyKeyInterface>;
|
|
6185
4107
|
FfiConverterTypeWithReplyKeyTransition: FfiConverterObject<WithReplyKeyTransitionInterface>;
|
|
6186
4108
|
};
|
|
6187
4109
|
}>;
|
|
6188
4110
|
export default _default;
|
|
6189
|
-
//# sourceMappingURL=
|
|
4111
|
+
//# sourceMappingURL=payjoin_ffi.d.ts.map
|