@breeztech/breez-sdk-spark-react-native 0.1.8-dev2 → 0.1.8-dev4
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/android/CMakeLists.txt +3 -3
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +152 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +3195 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +287 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +4328 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings-ffi.d.ts +80 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings.d.ts +16 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +152 -0
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +3195 -0
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +287 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +4328 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings-ffi.d.ts +80 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings.d.ts +16 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +13 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,4328 @@
|
|
|
1
|
+
import { type BitcoinAddressDetails, type Bolt11InvoiceDetails, type LnurlPayRequestDetails, type RestClient, InputType, SuccessAction, SuccessActionProcessed } from './breez_sdk_common';
|
|
2
|
+
import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
|
|
3
|
+
/**
|
|
4
|
+
* Connects to the Spark network using the provided configuration and mnemonic.
|
|
5
|
+
*
|
|
6
|
+
* # Arguments
|
|
7
|
+
*
|
|
8
|
+
* * `request` - The connection request object
|
|
9
|
+
*
|
|
10
|
+
* # Returns
|
|
11
|
+
*
|
|
12
|
+
* Result containing either the initialized `BreezSdk` or an `SdkError`
|
|
13
|
+
*/
|
|
14
|
+
export declare function connect(request: ConnectRequest, asyncOpts_?: {
|
|
15
|
+
signal: AbortSignal;
|
|
16
|
+
}): Promise<BreezSdkInterface>;
|
|
17
|
+
export declare function defaultConfig(network: Network): Config;
|
|
18
|
+
export declare function defaultStorage(dataDir: string, asyncOpts_?: {
|
|
19
|
+
signal: AbortSignal;
|
|
20
|
+
}): Promise<Storage>;
|
|
21
|
+
export declare function initLogging(logDir: string | undefined, appLogger: Logger | undefined, logFilter: string | undefined): void;
|
|
22
|
+
export declare function parse(input: string, asyncOpts_?: {
|
|
23
|
+
signal: AbortSignal;
|
|
24
|
+
}): Promise<InputType>;
|
|
25
|
+
/**
|
|
26
|
+
* Trait for event listeners
|
|
27
|
+
*/
|
|
28
|
+
export interface EventListener {
|
|
29
|
+
/**
|
|
30
|
+
* Called when an event occurs
|
|
31
|
+
*/
|
|
32
|
+
onEvent(event: SdkEvent): void;
|
|
33
|
+
}
|
|
34
|
+
export interface Logger {
|
|
35
|
+
log(l: LogEntry): void;
|
|
36
|
+
}
|
|
37
|
+
export type CheckLightningAddressRequest = {
|
|
38
|
+
username: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Generated factory for {@link CheckLightningAddressRequest} record objects.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CheckLightningAddressRequest: Readonly<{
|
|
44
|
+
/**
|
|
45
|
+
* Create a frozen instance of {@link CheckLightningAddressRequest}, with defaults specified
|
|
46
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
47
|
+
*/
|
|
48
|
+
create: (partial: Partial<CheckLightningAddressRequest> & Required<Omit<CheckLightningAddressRequest, never>>) => CheckLightningAddressRequest;
|
|
49
|
+
/**
|
|
50
|
+
* Create a frozen instance of {@link CheckLightningAddressRequest}, with defaults specified
|
|
51
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
52
|
+
*/
|
|
53
|
+
new: (partial: Partial<CheckLightningAddressRequest> & Required<Omit<CheckLightningAddressRequest, never>>) => CheckLightningAddressRequest;
|
|
54
|
+
/**
|
|
55
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
56
|
+
*/
|
|
57
|
+
defaults: () => Partial<CheckLightningAddressRequest>;
|
|
58
|
+
}>;
|
|
59
|
+
export type ClaimDepositRequest = {
|
|
60
|
+
txid: string;
|
|
61
|
+
vout: number;
|
|
62
|
+
maxFee: Fee | undefined;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Generated factory for {@link ClaimDepositRequest} record objects.
|
|
66
|
+
*/
|
|
67
|
+
export declare const ClaimDepositRequest: Readonly<{
|
|
68
|
+
/**
|
|
69
|
+
* Create a frozen instance of {@link ClaimDepositRequest}, with defaults specified
|
|
70
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
71
|
+
*/
|
|
72
|
+
create: (partial: Partial<ClaimDepositRequest> & Required<Omit<ClaimDepositRequest, "maxFee">>) => ClaimDepositRequest;
|
|
73
|
+
/**
|
|
74
|
+
* Create a frozen instance of {@link ClaimDepositRequest}, with defaults specified
|
|
75
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
76
|
+
*/
|
|
77
|
+
new: (partial: Partial<ClaimDepositRequest> & Required<Omit<ClaimDepositRequest, "maxFee">>) => ClaimDepositRequest;
|
|
78
|
+
/**
|
|
79
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
80
|
+
*/
|
|
81
|
+
defaults: () => Partial<ClaimDepositRequest>;
|
|
82
|
+
}>;
|
|
83
|
+
export type ClaimDepositResponse = {
|
|
84
|
+
payment: Payment;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Generated factory for {@link ClaimDepositResponse} record objects.
|
|
88
|
+
*/
|
|
89
|
+
export declare const ClaimDepositResponse: Readonly<{
|
|
90
|
+
/**
|
|
91
|
+
* Create a frozen instance of {@link ClaimDepositResponse}, with defaults specified
|
|
92
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
93
|
+
*/
|
|
94
|
+
create: (partial: Partial<ClaimDepositResponse> & Required<Omit<ClaimDepositResponse, never>>) => ClaimDepositResponse;
|
|
95
|
+
/**
|
|
96
|
+
* Create a frozen instance of {@link ClaimDepositResponse}, with defaults specified
|
|
97
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
98
|
+
*/
|
|
99
|
+
new: (partial: Partial<ClaimDepositResponse> & Required<Omit<ClaimDepositResponse, never>>) => ClaimDepositResponse;
|
|
100
|
+
/**
|
|
101
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
102
|
+
*/
|
|
103
|
+
defaults: () => Partial<ClaimDepositResponse>;
|
|
104
|
+
}>;
|
|
105
|
+
export type Config = {
|
|
106
|
+
apiKey: string | undefined;
|
|
107
|
+
network: Network;
|
|
108
|
+
syncIntervalSecs: number;
|
|
109
|
+
maxDepositClaimFee: Fee | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* The domain used for receiving through lnurl-pay and lightning address.
|
|
112
|
+
*/
|
|
113
|
+
lnurlDomain: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Generated factory for {@link Config} record objects.
|
|
117
|
+
*/
|
|
118
|
+
export declare const Config: Readonly<{
|
|
119
|
+
/**
|
|
120
|
+
* Create a frozen instance of {@link Config}, with defaults specified
|
|
121
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
122
|
+
*/
|
|
123
|
+
create: (partial: Partial<Config> & Required<Omit<Config, never>>) => Config;
|
|
124
|
+
/**
|
|
125
|
+
* Create a frozen instance of {@link Config}, with defaults specified
|
|
126
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
127
|
+
*/
|
|
128
|
+
new: (partial: Partial<Config> & Required<Omit<Config, never>>) => Config;
|
|
129
|
+
/**
|
|
130
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
131
|
+
*/
|
|
132
|
+
defaults: () => Partial<Config>;
|
|
133
|
+
}>;
|
|
134
|
+
export type ConnectRequest = {
|
|
135
|
+
config: Config;
|
|
136
|
+
mnemonic: string;
|
|
137
|
+
storageDir: string;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Generated factory for {@link ConnectRequest} record objects.
|
|
141
|
+
*/
|
|
142
|
+
export declare const ConnectRequest: Readonly<{
|
|
143
|
+
/**
|
|
144
|
+
* Create a frozen instance of {@link ConnectRequest}, with defaults specified
|
|
145
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
146
|
+
*/
|
|
147
|
+
create: (partial: Partial<ConnectRequest> & Required<Omit<ConnectRequest, never>>) => ConnectRequest;
|
|
148
|
+
/**
|
|
149
|
+
* Create a frozen instance of {@link ConnectRequest}, with defaults specified
|
|
150
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
151
|
+
*/
|
|
152
|
+
new: (partial: Partial<ConnectRequest> & Required<Omit<ConnectRequest, never>>) => ConnectRequest;
|
|
153
|
+
/**
|
|
154
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
155
|
+
*/
|
|
156
|
+
defaults: () => Partial<ConnectRequest>;
|
|
157
|
+
}>;
|
|
158
|
+
export type Credentials = {
|
|
159
|
+
username: string;
|
|
160
|
+
password: string;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Generated factory for {@link Credentials} record objects.
|
|
164
|
+
*/
|
|
165
|
+
export declare const Credentials: Readonly<{
|
|
166
|
+
/**
|
|
167
|
+
* Create a frozen instance of {@link Credentials}, with defaults specified
|
|
168
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
169
|
+
*/
|
|
170
|
+
create: (partial: Partial<Credentials> & Required<Omit<Credentials, never>>) => Credentials;
|
|
171
|
+
/**
|
|
172
|
+
* Create a frozen instance of {@link Credentials}, with defaults specified
|
|
173
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
174
|
+
*/
|
|
175
|
+
new: (partial: Partial<Credentials> & Required<Omit<Credentials, never>>) => Credentials;
|
|
176
|
+
/**
|
|
177
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
178
|
+
*/
|
|
179
|
+
defaults: () => Partial<Credentials>;
|
|
180
|
+
}>;
|
|
181
|
+
export type DepositInfo = {
|
|
182
|
+
txid: string;
|
|
183
|
+
vout: number;
|
|
184
|
+
amountSats: bigint;
|
|
185
|
+
refundTx: string | undefined;
|
|
186
|
+
refundTxId: string | undefined;
|
|
187
|
+
claimError: DepositClaimError | undefined;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Generated factory for {@link DepositInfo} record objects.
|
|
191
|
+
*/
|
|
192
|
+
export declare const DepositInfo: Readonly<{
|
|
193
|
+
/**
|
|
194
|
+
* Create a frozen instance of {@link DepositInfo}, with defaults specified
|
|
195
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
196
|
+
*/
|
|
197
|
+
create: (partial: Partial<DepositInfo> & Required<Omit<DepositInfo, never>>) => DepositInfo;
|
|
198
|
+
/**
|
|
199
|
+
* Create a frozen instance of {@link DepositInfo}, with defaults specified
|
|
200
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
201
|
+
*/
|
|
202
|
+
new: (partial: Partial<DepositInfo> & Required<Omit<DepositInfo, never>>) => DepositInfo;
|
|
203
|
+
/**
|
|
204
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
205
|
+
*/
|
|
206
|
+
defaults: () => Partial<DepositInfo>;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* Request to get the balance of the wallet
|
|
210
|
+
*/
|
|
211
|
+
export type GetInfoRequest = {};
|
|
212
|
+
/**
|
|
213
|
+
* Generated factory for {@link GetInfoRequest} record objects.
|
|
214
|
+
*/
|
|
215
|
+
export declare const GetInfoRequest: Readonly<{
|
|
216
|
+
/**
|
|
217
|
+
* Create a frozen instance of {@link GetInfoRequest}, with defaults specified
|
|
218
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
219
|
+
*/
|
|
220
|
+
create: (partial: Partial<GetInfoRequest> & Required<Omit<GetInfoRequest, never>>) => GetInfoRequest;
|
|
221
|
+
/**
|
|
222
|
+
* Create a frozen instance of {@link GetInfoRequest}, with defaults specified
|
|
223
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
224
|
+
*/
|
|
225
|
+
new: (partial: Partial<GetInfoRequest> & Required<Omit<GetInfoRequest, never>>) => GetInfoRequest;
|
|
226
|
+
/**
|
|
227
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
228
|
+
*/
|
|
229
|
+
defaults: () => Partial<GetInfoRequest>;
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* Response containing the balance of the wallet
|
|
233
|
+
*/
|
|
234
|
+
export type GetInfoResponse = {
|
|
235
|
+
/**
|
|
236
|
+
* The balance in satoshis
|
|
237
|
+
*/
|
|
238
|
+
balanceSats: bigint;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Generated factory for {@link GetInfoResponse} record objects.
|
|
242
|
+
*/
|
|
243
|
+
export declare const GetInfoResponse: Readonly<{
|
|
244
|
+
/**
|
|
245
|
+
* Create a frozen instance of {@link GetInfoResponse}, with defaults specified
|
|
246
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
247
|
+
*/
|
|
248
|
+
create: (partial: Partial<GetInfoResponse> & Required<Omit<GetInfoResponse, never>>) => GetInfoResponse;
|
|
249
|
+
/**
|
|
250
|
+
* Create a frozen instance of {@link GetInfoResponse}, with defaults specified
|
|
251
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
252
|
+
*/
|
|
253
|
+
new: (partial: Partial<GetInfoResponse> & Required<Omit<GetInfoResponse, never>>) => GetInfoResponse;
|
|
254
|
+
/**
|
|
255
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
256
|
+
*/
|
|
257
|
+
defaults: () => Partial<GetInfoResponse>;
|
|
258
|
+
}>;
|
|
259
|
+
export type GetPaymentRequest = {
|
|
260
|
+
paymentId: string;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Generated factory for {@link GetPaymentRequest} record objects.
|
|
264
|
+
*/
|
|
265
|
+
export declare const GetPaymentRequest: Readonly<{
|
|
266
|
+
/**
|
|
267
|
+
* Create a frozen instance of {@link GetPaymentRequest}, with defaults specified
|
|
268
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
269
|
+
*/
|
|
270
|
+
create: (partial: Partial<GetPaymentRequest> & Required<Omit<GetPaymentRequest, never>>) => GetPaymentRequest;
|
|
271
|
+
/**
|
|
272
|
+
* Create a frozen instance of {@link GetPaymentRequest}, with defaults specified
|
|
273
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
274
|
+
*/
|
|
275
|
+
new: (partial: Partial<GetPaymentRequest> & Required<Omit<GetPaymentRequest, never>>) => GetPaymentRequest;
|
|
276
|
+
/**
|
|
277
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
278
|
+
*/
|
|
279
|
+
defaults: () => Partial<GetPaymentRequest>;
|
|
280
|
+
}>;
|
|
281
|
+
export type GetPaymentResponse = {
|
|
282
|
+
payment: Payment;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Generated factory for {@link GetPaymentResponse} record objects.
|
|
286
|
+
*/
|
|
287
|
+
export declare const GetPaymentResponse: Readonly<{
|
|
288
|
+
/**
|
|
289
|
+
* Create a frozen instance of {@link GetPaymentResponse}, with defaults specified
|
|
290
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
291
|
+
*/
|
|
292
|
+
create: (partial: Partial<GetPaymentResponse> & Required<Omit<GetPaymentResponse, never>>) => GetPaymentResponse;
|
|
293
|
+
/**
|
|
294
|
+
* Create a frozen instance of {@link GetPaymentResponse}, with defaults specified
|
|
295
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
296
|
+
*/
|
|
297
|
+
new: (partial: Partial<GetPaymentResponse> & Required<Omit<GetPaymentResponse, never>>) => GetPaymentResponse;
|
|
298
|
+
/**
|
|
299
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
300
|
+
*/
|
|
301
|
+
defaults: () => Partial<GetPaymentResponse>;
|
|
302
|
+
}>;
|
|
303
|
+
export type LightningAddressInfo = {
|
|
304
|
+
description: string;
|
|
305
|
+
lightningAddress: string;
|
|
306
|
+
lnurl: string;
|
|
307
|
+
username: string;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Generated factory for {@link LightningAddressInfo} record objects.
|
|
311
|
+
*/
|
|
312
|
+
export declare const LightningAddressInfo: Readonly<{
|
|
313
|
+
/**
|
|
314
|
+
* Create a frozen instance of {@link LightningAddressInfo}, with defaults specified
|
|
315
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
316
|
+
*/
|
|
317
|
+
create: (partial: Partial<LightningAddressInfo> & Required<Omit<LightningAddressInfo, never>>) => LightningAddressInfo;
|
|
318
|
+
/**
|
|
319
|
+
* Create a frozen instance of {@link LightningAddressInfo}, with defaults specified
|
|
320
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
321
|
+
*/
|
|
322
|
+
new: (partial: Partial<LightningAddressInfo> & Required<Omit<LightningAddressInfo, never>>) => LightningAddressInfo;
|
|
323
|
+
/**
|
|
324
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
325
|
+
*/
|
|
326
|
+
defaults: () => Partial<LightningAddressInfo>;
|
|
327
|
+
}>;
|
|
328
|
+
/**
|
|
329
|
+
* Request to list payments with pagination
|
|
330
|
+
*/
|
|
331
|
+
export type ListPaymentsRequest = {
|
|
332
|
+
/**
|
|
333
|
+
* Number of records to skip
|
|
334
|
+
*/
|
|
335
|
+
offset: /*u32*/ number | undefined;
|
|
336
|
+
/**
|
|
337
|
+
* Maximum number of records to return
|
|
338
|
+
*/
|
|
339
|
+
limit: /*u32*/ number | undefined;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Generated factory for {@link ListPaymentsRequest} record objects.
|
|
343
|
+
*/
|
|
344
|
+
export declare const ListPaymentsRequest: Readonly<{
|
|
345
|
+
/**
|
|
346
|
+
* Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
|
|
347
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
348
|
+
*/
|
|
349
|
+
create: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "offset" | "limit">>) => ListPaymentsRequest;
|
|
350
|
+
/**
|
|
351
|
+
* Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
|
|
352
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
353
|
+
*/
|
|
354
|
+
new: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "offset" | "limit">>) => ListPaymentsRequest;
|
|
355
|
+
/**
|
|
356
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
357
|
+
*/
|
|
358
|
+
defaults: () => Partial<ListPaymentsRequest>;
|
|
359
|
+
}>;
|
|
360
|
+
/**
|
|
361
|
+
* Response from listing payments
|
|
362
|
+
*/
|
|
363
|
+
export type ListPaymentsResponse = {
|
|
364
|
+
/**
|
|
365
|
+
* The list of payments
|
|
366
|
+
*/
|
|
367
|
+
payments: Array<Payment>;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Generated factory for {@link ListPaymentsResponse} record objects.
|
|
371
|
+
*/
|
|
372
|
+
export declare const ListPaymentsResponse: Readonly<{
|
|
373
|
+
/**
|
|
374
|
+
* Create a frozen instance of {@link ListPaymentsResponse}, with defaults specified
|
|
375
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
376
|
+
*/
|
|
377
|
+
create: (partial: Partial<ListPaymentsResponse> & Required<Omit<ListPaymentsResponse, never>>) => ListPaymentsResponse;
|
|
378
|
+
/**
|
|
379
|
+
* Create a frozen instance of {@link ListPaymentsResponse}, with defaults specified
|
|
380
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
381
|
+
*/
|
|
382
|
+
new: (partial: Partial<ListPaymentsResponse> & Required<Omit<ListPaymentsResponse, never>>) => ListPaymentsResponse;
|
|
383
|
+
/**
|
|
384
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
385
|
+
*/
|
|
386
|
+
defaults: () => Partial<ListPaymentsResponse>;
|
|
387
|
+
}>;
|
|
388
|
+
export type ListUnclaimedDepositsRequest = {};
|
|
389
|
+
/**
|
|
390
|
+
* Generated factory for {@link ListUnclaimedDepositsRequest} record objects.
|
|
391
|
+
*/
|
|
392
|
+
export declare const ListUnclaimedDepositsRequest: Readonly<{
|
|
393
|
+
/**
|
|
394
|
+
* Create a frozen instance of {@link ListUnclaimedDepositsRequest}, with defaults specified
|
|
395
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
396
|
+
*/
|
|
397
|
+
create: (partial: Partial<ListUnclaimedDepositsRequest> & Required<Omit<ListUnclaimedDepositsRequest, never>>) => ListUnclaimedDepositsRequest;
|
|
398
|
+
/**
|
|
399
|
+
* Create a frozen instance of {@link ListUnclaimedDepositsRequest}, with defaults specified
|
|
400
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
401
|
+
*/
|
|
402
|
+
new: (partial: Partial<ListUnclaimedDepositsRequest> & Required<Omit<ListUnclaimedDepositsRequest, never>>) => ListUnclaimedDepositsRequest;
|
|
403
|
+
/**
|
|
404
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
405
|
+
*/
|
|
406
|
+
defaults: () => Partial<ListUnclaimedDepositsRequest>;
|
|
407
|
+
}>;
|
|
408
|
+
export type ListUnclaimedDepositsResponse = {
|
|
409
|
+
deposits: Array<DepositInfo>;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Generated factory for {@link ListUnclaimedDepositsResponse} record objects.
|
|
413
|
+
*/
|
|
414
|
+
export declare const ListUnclaimedDepositsResponse: Readonly<{
|
|
415
|
+
/**
|
|
416
|
+
* Create a frozen instance of {@link ListUnclaimedDepositsResponse}, with defaults specified
|
|
417
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
418
|
+
*/
|
|
419
|
+
create: (partial: Partial<ListUnclaimedDepositsResponse> & Required<Omit<ListUnclaimedDepositsResponse, never>>) => ListUnclaimedDepositsResponse;
|
|
420
|
+
/**
|
|
421
|
+
* Create a frozen instance of {@link ListUnclaimedDepositsResponse}, with defaults specified
|
|
422
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
423
|
+
*/
|
|
424
|
+
new: (partial: Partial<ListUnclaimedDepositsResponse> & Required<Omit<ListUnclaimedDepositsResponse, never>>) => ListUnclaimedDepositsResponse;
|
|
425
|
+
/**
|
|
426
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
427
|
+
*/
|
|
428
|
+
defaults: () => Partial<ListUnclaimedDepositsResponse>;
|
|
429
|
+
}>;
|
|
430
|
+
/**
|
|
431
|
+
* Represents the payment LNURL info
|
|
432
|
+
*/
|
|
433
|
+
export type LnurlPayInfo = {
|
|
434
|
+
lnAddress: string | undefined;
|
|
435
|
+
comment: string | undefined;
|
|
436
|
+
domain: string | undefined;
|
|
437
|
+
metadata: string | undefined;
|
|
438
|
+
processedSuccessAction: SuccessActionProcessed | undefined;
|
|
439
|
+
rawSuccessAction: SuccessAction | undefined;
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* Generated factory for {@link LnurlPayInfo} record objects.
|
|
443
|
+
*/
|
|
444
|
+
export declare const LnurlPayInfo: Readonly<{
|
|
445
|
+
/**
|
|
446
|
+
* Create a frozen instance of {@link LnurlPayInfo}, with defaults specified
|
|
447
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
448
|
+
*/
|
|
449
|
+
create: (partial: Partial<LnurlPayInfo> & Required<Omit<LnurlPayInfo, never>>) => LnurlPayInfo;
|
|
450
|
+
/**
|
|
451
|
+
* Create a frozen instance of {@link LnurlPayInfo}, with defaults specified
|
|
452
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
453
|
+
*/
|
|
454
|
+
new: (partial: Partial<LnurlPayInfo> & Required<Omit<LnurlPayInfo, never>>) => LnurlPayInfo;
|
|
455
|
+
/**
|
|
456
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
457
|
+
*/
|
|
458
|
+
defaults: () => Partial<LnurlPayInfo>;
|
|
459
|
+
}>;
|
|
460
|
+
export type LnurlPayRequest = {
|
|
461
|
+
prepareResponse: PrepareLnurlPayResponse;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Generated factory for {@link LnurlPayRequest} record objects.
|
|
465
|
+
*/
|
|
466
|
+
export declare const LnurlPayRequest: Readonly<{
|
|
467
|
+
/**
|
|
468
|
+
* Create a frozen instance of {@link LnurlPayRequest}, with defaults specified
|
|
469
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
470
|
+
*/
|
|
471
|
+
create: (partial: Partial<LnurlPayRequest> & Required<Omit<LnurlPayRequest, never>>) => LnurlPayRequest;
|
|
472
|
+
/**
|
|
473
|
+
* Create a frozen instance of {@link LnurlPayRequest}, with defaults specified
|
|
474
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
475
|
+
*/
|
|
476
|
+
new: (partial: Partial<LnurlPayRequest> & Required<Omit<LnurlPayRequest, never>>) => LnurlPayRequest;
|
|
477
|
+
/**
|
|
478
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
479
|
+
*/
|
|
480
|
+
defaults: () => Partial<LnurlPayRequest>;
|
|
481
|
+
}>;
|
|
482
|
+
export type LnurlPayResponse = {
|
|
483
|
+
payment: Payment;
|
|
484
|
+
successAction: SuccessActionProcessed | undefined;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Generated factory for {@link LnurlPayResponse} record objects.
|
|
488
|
+
*/
|
|
489
|
+
export declare const LnurlPayResponse: Readonly<{
|
|
490
|
+
/**
|
|
491
|
+
* Create a frozen instance of {@link LnurlPayResponse}, with defaults specified
|
|
492
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
493
|
+
*/
|
|
494
|
+
create: (partial: Partial<LnurlPayResponse> & Required<Omit<LnurlPayResponse, never>>) => LnurlPayResponse;
|
|
495
|
+
/**
|
|
496
|
+
* Create a frozen instance of {@link LnurlPayResponse}, with defaults specified
|
|
497
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
498
|
+
*/
|
|
499
|
+
new: (partial: Partial<LnurlPayResponse> & Required<Omit<LnurlPayResponse, never>>) => LnurlPayResponse;
|
|
500
|
+
/**
|
|
501
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
502
|
+
*/
|
|
503
|
+
defaults: () => Partial<LnurlPayResponse>;
|
|
504
|
+
}>;
|
|
505
|
+
export type LogEntry = {
|
|
506
|
+
line: string;
|
|
507
|
+
level: string;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* Generated factory for {@link LogEntry} record objects.
|
|
511
|
+
*/
|
|
512
|
+
export declare const LogEntry: Readonly<{
|
|
513
|
+
/**
|
|
514
|
+
* Create a frozen instance of {@link LogEntry}, with defaults specified
|
|
515
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
516
|
+
*/
|
|
517
|
+
create: (partial: Partial<LogEntry> & Required<Omit<LogEntry, never>>) => LogEntry;
|
|
518
|
+
/**
|
|
519
|
+
* Create a frozen instance of {@link LogEntry}, with defaults specified
|
|
520
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
521
|
+
*/
|
|
522
|
+
new: (partial: Partial<LogEntry> & Required<Omit<LogEntry, never>>) => LogEntry;
|
|
523
|
+
/**
|
|
524
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
525
|
+
*/
|
|
526
|
+
defaults: () => Partial<LogEntry>;
|
|
527
|
+
}>;
|
|
528
|
+
/**
|
|
529
|
+
* Represents a payment (sent or received)
|
|
530
|
+
*/
|
|
531
|
+
export type Payment = {
|
|
532
|
+
/**
|
|
533
|
+
* Unique identifier for the payment
|
|
534
|
+
*/
|
|
535
|
+
id: string;
|
|
536
|
+
/**
|
|
537
|
+
* Type of payment (send or receive)
|
|
538
|
+
*/
|
|
539
|
+
paymentType: PaymentType;
|
|
540
|
+
/**
|
|
541
|
+
* Status of the payment
|
|
542
|
+
*/
|
|
543
|
+
status: PaymentStatus;
|
|
544
|
+
/**
|
|
545
|
+
* Amount in satoshis
|
|
546
|
+
*/
|
|
547
|
+
amount: bigint;
|
|
548
|
+
/**
|
|
549
|
+
* Fee paid in satoshis
|
|
550
|
+
*/
|
|
551
|
+
fees: bigint;
|
|
552
|
+
/**
|
|
553
|
+
* Timestamp of when the payment was created
|
|
554
|
+
*/
|
|
555
|
+
timestamp: bigint;
|
|
556
|
+
/**
|
|
557
|
+
* Method of payment. Sometimes the payment details is empty so this field
|
|
558
|
+
* is used to determine the payment method.
|
|
559
|
+
*/
|
|
560
|
+
method: PaymentMethod;
|
|
561
|
+
/**
|
|
562
|
+
* Details of the payment
|
|
563
|
+
*/
|
|
564
|
+
details: PaymentDetails | undefined;
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Generated factory for {@link Payment} record objects.
|
|
568
|
+
*/
|
|
569
|
+
export declare const Payment: Readonly<{
|
|
570
|
+
/**
|
|
571
|
+
* Create a frozen instance of {@link Payment}, with defaults specified
|
|
572
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
573
|
+
*/
|
|
574
|
+
create: (partial: Partial<Payment> & Required<Omit<Payment, never>>) => Payment;
|
|
575
|
+
/**
|
|
576
|
+
* Create a frozen instance of {@link Payment}, with defaults specified
|
|
577
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
578
|
+
*/
|
|
579
|
+
new: (partial: Partial<Payment> & Required<Omit<Payment, never>>) => Payment;
|
|
580
|
+
/**
|
|
581
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
582
|
+
*/
|
|
583
|
+
defaults: () => Partial<Payment>;
|
|
584
|
+
}>;
|
|
585
|
+
/**
|
|
586
|
+
* Metadata associated with a payment that cannot be extracted from the Spark operator.
|
|
587
|
+
*/
|
|
588
|
+
export type PaymentMetadata = {
|
|
589
|
+
lnurlPayInfo: LnurlPayInfo | undefined;
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* Generated factory for {@link PaymentMetadata} record objects.
|
|
593
|
+
*/
|
|
594
|
+
export declare const PaymentMetadata: Readonly<{
|
|
595
|
+
/**
|
|
596
|
+
* Create a frozen instance of {@link PaymentMetadata}, with defaults specified
|
|
597
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
598
|
+
*/
|
|
599
|
+
create: (partial: Partial<PaymentMetadata> & Required<Omit<PaymentMetadata, never>>) => PaymentMetadata;
|
|
600
|
+
/**
|
|
601
|
+
* Create a frozen instance of {@link PaymentMetadata}, with defaults specified
|
|
602
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
603
|
+
*/
|
|
604
|
+
new: (partial: Partial<PaymentMetadata> & Required<Omit<PaymentMetadata, never>>) => PaymentMetadata;
|
|
605
|
+
/**
|
|
606
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
607
|
+
*/
|
|
608
|
+
defaults: () => Partial<PaymentMetadata>;
|
|
609
|
+
}>;
|
|
610
|
+
export type PrepareLnurlPayRequest = {
|
|
611
|
+
amountSats: bigint;
|
|
612
|
+
payRequest: LnurlPayRequestDetails;
|
|
613
|
+
comment: string | undefined;
|
|
614
|
+
validateSuccessActionUrl: boolean | undefined;
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Generated factory for {@link PrepareLnurlPayRequest} record objects.
|
|
618
|
+
*/
|
|
619
|
+
export declare const PrepareLnurlPayRequest: Readonly<{
|
|
620
|
+
/**
|
|
621
|
+
* Create a frozen instance of {@link PrepareLnurlPayRequest}, with defaults specified
|
|
622
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
623
|
+
*/
|
|
624
|
+
create: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "comment" | "validateSuccessActionUrl">>) => PrepareLnurlPayRequest;
|
|
625
|
+
/**
|
|
626
|
+
* Create a frozen instance of {@link PrepareLnurlPayRequest}, with defaults specified
|
|
627
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
628
|
+
*/
|
|
629
|
+
new: (partial: Partial<PrepareLnurlPayRequest> & Required<Omit<PrepareLnurlPayRequest, "comment" | "validateSuccessActionUrl">>) => PrepareLnurlPayRequest;
|
|
630
|
+
/**
|
|
631
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
632
|
+
*/
|
|
633
|
+
defaults: () => Partial<PrepareLnurlPayRequest>;
|
|
634
|
+
}>;
|
|
635
|
+
export type PrepareLnurlPayResponse = {
|
|
636
|
+
amountSats: bigint;
|
|
637
|
+
comment: string | undefined;
|
|
638
|
+
payRequest: LnurlPayRequestDetails;
|
|
639
|
+
feeSats: bigint;
|
|
640
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
641
|
+
successAction: SuccessAction | undefined;
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* Generated factory for {@link PrepareLnurlPayResponse} record objects.
|
|
645
|
+
*/
|
|
646
|
+
export declare const PrepareLnurlPayResponse: Readonly<{
|
|
647
|
+
/**
|
|
648
|
+
* Create a frozen instance of {@link PrepareLnurlPayResponse}, with defaults specified
|
|
649
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
650
|
+
*/
|
|
651
|
+
create: (partial: Partial<PrepareLnurlPayResponse> & Required<Omit<PrepareLnurlPayResponse, never>>) => PrepareLnurlPayResponse;
|
|
652
|
+
/**
|
|
653
|
+
* Create a frozen instance of {@link PrepareLnurlPayResponse}, with defaults specified
|
|
654
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
655
|
+
*/
|
|
656
|
+
new: (partial: Partial<PrepareLnurlPayResponse> & Required<Omit<PrepareLnurlPayResponse, never>>) => PrepareLnurlPayResponse;
|
|
657
|
+
/**
|
|
658
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
659
|
+
*/
|
|
660
|
+
defaults: () => Partial<PrepareLnurlPayResponse>;
|
|
661
|
+
}>;
|
|
662
|
+
export type PrepareSendPaymentRequest = {
|
|
663
|
+
paymentRequest: string;
|
|
664
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
665
|
+
};
|
|
666
|
+
/**
|
|
667
|
+
* Generated factory for {@link PrepareSendPaymentRequest} record objects.
|
|
668
|
+
*/
|
|
669
|
+
export declare const PrepareSendPaymentRequest: Readonly<{
|
|
670
|
+
/**
|
|
671
|
+
* Create a frozen instance of {@link PrepareSendPaymentRequest}, with defaults specified
|
|
672
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
673
|
+
*/
|
|
674
|
+
create: (partial: Partial<PrepareSendPaymentRequest> & Required<Omit<PrepareSendPaymentRequest, "amountSats">>) => PrepareSendPaymentRequest;
|
|
675
|
+
/**
|
|
676
|
+
* Create a frozen instance of {@link PrepareSendPaymentRequest}, with defaults specified
|
|
677
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
678
|
+
*/
|
|
679
|
+
new: (partial: Partial<PrepareSendPaymentRequest> & Required<Omit<PrepareSendPaymentRequest, "amountSats">>) => PrepareSendPaymentRequest;
|
|
680
|
+
/**
|
|
681
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
682
|
+
*/
|
|
683
|
+
defaults: () => Partial<PrepareSendPaymentRequest>;
|
|
684
|
+
}>;
|
|
685
|
+
export type PrepareSendPaymentResponse = {
|
|
686
|
+
paymentMethod: SendPaymentMethod;
|
|
687
|
+
amountSats: bigint;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Generated factory for {@link PrepareSendPaymentResponse} record objects.
|
|
691
|
+
*/
|
|
692
|
+
export declare const PrepareSendPaymentResponse: Readonly<{
|
|
693
|
+
/**
|
|
694
|
+
* Create a frozen instance of {@link PrepareSendPaymentResponse}, with defaults specified
|
|
695
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
696
|
+
*/
|
|
697
|
+
create: (partial: Partial<PrepareSendPaymentResponse> & Required<Omit<PrepareSendPaymentResponse, never>>) => PrepareSendPaymentResponse;
|
|
698
|
+
/**
|
|
699
|
+
* Create a frozen instance of {@link PrepareSendPaymentResponse}, with defaults specified
|
|
700
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
701
|
+
*/
|
|
702
|
+
new: (partial: Partial<PrepareSendPaymentResponse> & Required<Omit<PrepareSendPaymentResponse, never>>) => PrepareSendPaymentResponse;
|
|
703
|
+
/**
|
|
704
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
705
|
+
*/
|
|
706
|
+
defaults: () => Partial<PrepareSendPaymentResponse>;
|
|
707
|
+
}>;
|
|
708
|
+
export type ReceivePaymentRequest = {
|
|
709
|
+
paymentMethod: ReceivePaymentMethod;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* Generated factory for {@link ReceivePaymentRequest} record objects.
|
|
713
|
+
*/
|
|
714
|
+
export declare const ReceivePaymentRequest: Readonly<{
|
|
715
|
+
/**
|
|
716
|
+
* Create a frozen instance of {@link ReceivePaymentRequest}, with defaults specified
|
|
717
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
718
|
+
*/
|
|
719
|
+
create: (partial: Partial<ReceivePaymentRequest> & Required<Omit<ReceivePaymentRequest, never>>) => ReceivePaymentRequest;
|
|
720
|
+
/**
|
|
721
|
+
* Create a frozen instance of {@link ReceivePaymentRequest}, with defaults specified
|
|
722
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
723
|
+
*/
|
|
724
|
+
new: (partial: Partial<ReceivePaymentRequest> & Required<Omit<ReceivePaymentRequest, never>>) => ReceivePaymentRequest;
|
|
725
|
+
/**
|
|
726
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
727
|
+
*/
|
|
728
|
+
defaults: () => Partial<ReceivePaymentRequest>;
|
|
729
|
+
}>;
|
|
730
|
+
export type ReceivePaymentResponse = {
|
|
731
|
+
paymentRequest: string;
|
|
732
|
+
feeSats: bigint;
|
|
733
|
+
};
|
|
734
|
+
/**
|
|
735
|
+
* Generated factory for {@link ReceivePaymentResponse} record objects.
|
|
736
|
+
*/
|
|
737
|
+
export declare const ReceivePaymentResponse: Readonly<{
|
|
738
|
+
/**
|
|
739
|
+
* Create a frozen instance of {@link ReceivePaymentResponse}, with defaults specified
|
|
740
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
741
|
+
*/
|
|
742
|
+
create: (partial: Partial<ReceivePaymentResponse> & Required<Omit<ReceivePaymentResponse, never>>) => ReceivePaymentResponse;
|
|
743
|
+
/**
|
|
744
|
+
* Create a frozen instance of {@link ReceivePaymentResponse}, with defaults specified
|
|
745
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
746
|
+
*/
|
|
747
|
+
new: (partial: Partial<ReceivePaymentResponse> & Required<Omit<ReceivePaymentResponse, never>>) => ReceivePaymentResponse;
|
|
748
|
+
/**
|
|
749
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
750
|
+
*/
|
|
751
|
+
defaults: () => Partial<ReceivePaymentResponse>;
|
|
752
|
+
}>;
|
|
753
|
+
export type RefundDepositRequest = {
|
|
754
|
+
txid: string;
|
|
755
|
+
vout: number;
|
|
756
|
+
destinationAddress: string;
|
|
757
|
+
fee: Fee;
|
|
758
|
+
};
|
|
759
|
+
/**
|
|
760
|
+
* Generated factory for {@link RefundDepositRequest} record objects.
|
|
761
|
+
*/
|
|
762
|
+
export declare const RefundDepositRequest: Readonly<{
|
|
763
|
+
/**
|
|
764
|
+
* Create a frozen instance of {@link RefundDepositRequest}, with defaults specified
|
|
765
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
766
|
+
*/
|
|
767
|
+
create: (partial: Partial<RefundDepositRequest> & Required<Omit<RefundDepositRequest, never>>) => RefundDepositRequest;
|
|
768
|
+
/**
|
|
769
|
+
* Create a frozen instance of {@link RefundDepositRequest}, with defaults specified
|
|
770
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
771
|
+
*/
|
|
772
|
+
new: (partial: Partial<RefundDepositRequest> & Required<Omit<RefundDepositRequest, never>>) => RefundDepositRequest;
|
|
773
|
+
/**
|
|
774
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
775
|
+
*/
|
|
776
|
+
defaults: () => Partial<RefundDepositRequest>;
|
|
777
|
+
}>;
|
|
778
|
+
export type RefundDepositResponse = {
|
|
779
|
+
txId: string;
|
|
780
|
+
txHex: string;
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* Generated factory for {@link RefundDepositResponse} record objects.
|
|
784
|
+
*/
|
|
785
|
+
export declare const RefundDepositResponse: Readonly<{
|
|
786
|
+
/**
|
|
787
|
+
* Create a frozen instance of {@link RefundDepositResponse}, with defaults specified
|
|
788
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
789
|
+
*/
|
|
790
|
+
create: (partial: Partial<RefundDepositResponse> & Required<Omit<RefundDepositResponse, never>>) => RefundDepositResponse;
|
|
791
|
+
/**
|
|
792
|
+
* Create a frozen instance of {@link RefundDepositResponse}, with defaults specified
|
|
793
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
794
|
+
*/
|
|
795
|
+
new: (partial: Partial<RefundDepositResponse> & Required<Omit<RefundDepositResponse, never>>) => RefundDepositResponse;
|
|
796
|
+
/**
|
|
797
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
798
|
+
*/
|
|
799
|
+
defaults: () => Partial<RefundDepositResponse>;
|
|
800
|
+
}>;
|
|
801
|
+
export type RegisterLightningAddressRequest = {
|
|
802
|
+
username: string;
|
|
803
|
+
description: string;
|
|
804
|
+
};
|
|
805
|
+
/**
|
|
806
|
+
* Generated factory for {@link RegisterLightningAddressRequest} record objects.
|
|
807
|
+
*/
|
|
808
|
+
export declare const RegisterLightningAddressRequest: Readonly<{
|
|
809
|
+
/**
|
|
810
|
+
* Create a frozen instance of {@link RegisterLightningAddressRequest}, with defaults specified
|
|
811
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
812
|
+
*/
|
|
813
|
+
create: (partial: Partial<RegisterLightningAddressRequest> & Required<Omit<RegisterLightningAddressRequest, never>>) => RegisterLightningAddressRequest;
|
|
814
|
+
/**
|
|
815
|
+
* Create a frozen instance of {@link RegisterLightningAddressRequest}, with defaults specified
|
|
816
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
817
|
+
*/
|
|
818
|
+
new: (partial: Partial<RegisterLightningAddressRequest> & Required<Omit<RegisterLightningAddressRequest, never>>) => RegisterLightningAddressRequest;
|
|
819
|
+
/**
|
|
820
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
821
|
+
*/
|
|
822
|
+
defaults: () => Partial<RegisterLightningAddressRequest>;
|
|
823
|
+
}>;
|
|
824
|
+
export type SendOnchainFeeQuote = {
|
|
825
|
+
id: string;
|
|
826
|
+
expiresAt: bigint;
|
|
827
|
+
speedFast: SendOnchainSpeedFeeQuote;
|
|
828
|
+
speedMedium: SendOnchainSpeedFeeQuote;
|
|
829
|
+
speedSlow: SendOnchainSpeedFeeQuote;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* Generated factory for {@link SendOnchainFeeQuote} record objects.
|
|
833
|
+
*/
|
|
834
|
+
export declare const SendOnchainFeeQuote: Readonly<{
|
|
835
|
+
/**
|
|
836
|
+
* Create a frozen instance of {@link SendOnchainFeeQuote}, with defaults specified
|
|
837
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
838
|
+
*/
|
|
839
|
+
create: (partial: Partial<SendOnchainFeeQuote> & Required<Omit<SendOnchainFeeQuote, never>>) => SendOnchainFeeQuote;
|
|
840
|
+
/**
|
|
841
|
+
* Create a frozen instance of {@link SendOnchainFeeQuote}, with defaults specified
|
|
842
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
843
|
+
*/
|
|
844
|
+
new: (partial: Partial<SendOnchainFeeQuote> & Required<Omit<SendOnchainFeeQuote, never>>) => SendOnchainFeeQuote;
|
|
845
|
+
/**
|
|
846
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
847
|
+
*/
|
|
848
|
+
defaults: () => Partial<SendOnchainFeeQuote>;
|
|
849
|
+
}>;
|
|
850
|
+
export type SendOnchainSpeedFeeQuote = {
|
|
851
|
+
userFeeSat: bigint;
|
|
852
|
+
l1BroadcastFeeSat: bigint;
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
* Generated factory for {@link SendOnchainSpeedFeeQuote} record objects.
|
|
856
|
+
*/
|
|
857
|
+
export declare const SendOnchainSpeedFeeQuote: Readonly<{
|
|
858
|
+
/**
|
|
859
|
+
* Create a frozen instance of {@link SendOnchainSpeedFeeQuote}, with defaults specified
|
|
860
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
861
|
+
*/
|
|
862
|
+
create: (partial: Partial<SendOnchainSpeedFeeQuote> & Required<Omit<SendOnchainSpeedFeeQuote, never>>) => SendOnchainSpeedFeeQuote;
|
|
863
|
+
/**
|
|
864
|
+
* Create a frozen instance of {@link SendOnchainSpeedFeeQuote}, with defaults specified
|
|
865
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
866
|
+
*/
|
|
867
|
+
new: (partial: Partial<SendOnchainSpeedFeeQuote> & Required<Omit<SendOnchainSpeedFeeQuote, never>>) => SendOnchainSpeedFeeQuote;
|
|
868
|
+
/**
|
|
869
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
870
|
+
*/
|
|
871
|
+
defaults: () => Partial<SendOnchainSpeedFeeQuote>;
|
|
872
|
+
}>;
|
|
873
|
+
export type SendPaymentRequest = {
|
|
874
|
+
prepareResponse: PrepareSendPaymentResponse;
|
|
875
|
+
options: SendPaymentOptions | undefined;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* Generated factory for {@link SendPaymentRequest} record objects.
|
|
879
|
+
*/
|
|
880
|
+
export declare const SendPaymentRequest: Readonly<{
|
|
881
|
+
/**
|
|
882
|
+
* Create a frozen instance of {@link SendPaymentRequest}, with defaults specified
|
|
883
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
884
|
+
*/
|
|
885
|
+
create: (partial: Partial<SendPaymentRequest> & Required<Omit<SendPaymentRequest, "options">>) => SendPaymentRequest;
|
|
886
|
+
/**
|
|
887
|
+
* Create a frozen instance of {@link SendPaymentRequest}, with defaults specified
|
|
888
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
889
|
+
*/
|
|
890
|
+
new: (partial: Partial<SendPaymentRequest> & Required<Omit<SendPaymentRequest, "options">>) => SendPaymentRequest;
|
|
891
|
+
/**
|
|
892
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
893
|
+
*/
|
|
894
|
+
defaults: () => Partial<SendPaymentRequest>;
|
|
895
|
+
}>;
|
|
896
|
+
export type SendPaymentResponse = {
|
|
897
|
+
payment: Payment;
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
* Generated factory for {@link SendPaymentResponse} record objects.
|
|
901
|
+
*/
|
|
902
|
+
export declare const SendPaymentResponse: Readonly<{
|
|
903
|
+
/**
|
|
904
|
+
* Create a frozen instance of {@link SendPaymentResponse}, with defaults specified
|
|
905
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
906
|
+
*/
|
|
907
|
+
create: (partial: Partial<SendPaymentResponse> & Required<Omit<SendPaymentResponse, never>>) => SendPaymentResponse;
|
|
908
|
+
/**
|
|
909
|
+
* Create a frozen instance of {@link SendPaymentResponse}, with defaults specified
|
|
910
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
911
|
+
*/
|
|
912
|
+
new: (partial: Partial<SendPaymentResponse> & Required<Omit<SendPaymentResponse, never>>) => SendPaymentResponse;
|
|
913
|
+
/**
|
|
914
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
915
|
+
*/
|
|
916
|
+
defaults: () => Partial<SendPaymentResponse>;
|
|
917
|
+
}>;
|
|
918
|
+
/**
|
|
919
|
+
* Request to sync the wallet with the Spark network
|
|
920
|
+
*/
|
|
921
|
+
export type SyncWalletRequest = {};
|
|
922
|
+
/**
|
|
923
|
+
* Generated factory for {@link SyncWalletRequest} record objects.
|
|
924
|
+
*/
|
|
925
|
+
export declare const SyncWalletRequest: Readonly<{
|
|
926
|
+
/**
|
|
927
|
+
* Create a frozen instance of {@link SyncWalletRequest}, with defaults specified
|
|
928
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
929
|
+
*/
|
|
930
|
+
create: (partial: Partial<SyncWalletRequest> & Required<Omit<SyncWalletRequest, never>>) => SyncWalletRequest;
|
|
931
|
+
/**
|
|
932
|
+
* Create a frozen instance of {@link SyncWalletRequest}, with defaults specified
|
|
933
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
934
|
+
*/
|
|
935
|
+
new: (partial: Partial<SyncWalletRequest> & Required<Omit<SyncWalletRequest, never>>) => SyncWalletRequest;
|
|
936
|
+
/**
|
|
937
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
938
|
+
*/
|
|
939
|
+
defaults: () => Partial<SyncWalletRequest>;
|
|
940
|
+
}>;
|
|
941
|
+
/**
|
|
942
|
+
* Response from synchronizing the wallet
|
|
943
|
+
*/
|
|
944
|
+
export type SyncWalletResponse = {};
|
|
945
|
+
/**
|
|
946
|
+
* Generated factory for {@link SyncWalletResponse} record objects.
|
|
947
|
+
*/
|
|
948
|
+
export declare const SyncWalletResponse: Readonly<{
|
|
949
|
+
/**
|
|
950
|
+
* Create a frozen instance of {@link SyncWalletResponse}, with defaults specified
|
|
951
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
952
|
+
*/
|
|
953
|
+
create: (partial: Partial<SyncWalletResponse> & Required<Omit<SyncWalletResponse, never>>) => SyncWalletResponse;
|
|
954
|
+
/**
|
|
955
|
+
* Create a frozen instance of {@link SyncWalletResponse}, with defaults specified
|
|
956
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
957
|
+
*/
|
|
958
|
+
new: (partial: Partial<SyncWalletResponse> & Required<Omit<SyncWalletResponse, never>>) => SyncWalletResponse;
|
|
959
|
+
/**
|
|
960
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
961
|
+
*/
|
|
962
|
+
defaults: () => Partial<SyncWalletResponse>;
|
|
963
|
+
}>;
|
|
964
|
+
export type TxStatus = {
|
|
965
|
+
confirmed: boolean;
|
|
966
|
+
blockHeight: /*u32*/ number | undefined;
|
|
967
|
+
blockTime: /*u64*/ bigint | undefined;
|
|
968
|
+
};
|
|
969
|
+
/**
|
|
970
|
+
* Generated factory for {@link TxStatus} record objects.
|
|
971
|
+
*/
|
|
972
|
+
export declare const TxStatus: Readonly<{
|
|
973
|
+
/**
|
|
974
|
+
* Create a frozen instance of {@link TxStatus}, with defaults specified
|
|
975
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
976
|
+
*/
|
|
977
|
+
create: (partial: Partial<TxStatus> & Required<Omit<TxStatus, never>>) => TxStatus;
|
|
978
|
+
/**
|
|
979
|
+
* Create a frozen instance of {@link TxStatus}, with defaults specified
|
|
980
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
981
|
+
*/
|
|
982
|
+
new: (partial: Partial<TxStatus> & Required<Omit<TxStatus, never>>) => TxStatus;
|
|
983
|
+
/**
|
|
984
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
985
|
+
*/
|
|
986
|
+
defaults: () => Partial<TxStatus>;
|
|
987
|
+
}>;
|
|
988
|
+
export type Utxo = {
|
|
989
|
+
txid: string;
|
|
990
|
+
vout: number;
|
|
991
|
+
value: bigint;
|
|
992
|
+
status: TxStatus;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* Generated factory for {@link Utxo} record objects.
|
|
996
|
+
*/
|
|
997
|
+
export declare const Utxo: Readonly<{
|
|
998
|
+
/**
|
|
999
|
+
* Create a frozen instance of {@link Utxo}, with defaults specified
|
|
1000
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1001
|
+
*/
|
|
1002
|
+
create: (partial: Partial<Utxo> & Required<Omit<Utxo, never>>) => Utxo;
|
|
1003
|
+
/**
|
|
1004
|
+
* Create a frozen instance of {@link Utxo}, with defaults specified
|
|
1005
|
+
* in Rust, in the {@link breez_sdk_spark} crate.
|
|
1006
|
+
*/
|
|
1007
|
+
new: (partial: Partial<Utxo> & Required<Omit<Utxo, never>>) => Utxo;
|
|
1008
|
+
/**
|
|
1009
|
+
* Defaults specified in the {@link breez_sdk_spark} crate.
|
|
1010
|
+
*/
|
|
1011
|
+
defaults: () => Partial<Utxo>;
|
|
1012
|
+
}>;
|
|
1013
|
+
export declare enum ChainServiceError_Tags {
|
|
1014
|
+
InvalidAddress = "InvalidAddress",
|
|
1015
|
+
ServiceConnectivity = "ServiceConnectivity",
|
|
1016
|
+
Generic = "Generic"
|
|
1017
|
+
}
|
|
1018
|
+
export declare const ChainServiceError: Readonly<{
|
|
1019
|
+
instanceOf: (obj: any) => obj is ChainServiceError;
|
|
1020
|
+
InvalidAddress: {
|
|
1021
|
+
new (v0: string): {
|
|
1022
|
+
readonly tag: ChainServiceError_Tags.InvalidAddress;
|
|
1023
|
+
readonly inner: Readonly<[string]>;
|
|
1024
|
+
/**
|
|
1025
|
+
* @private
|
|
1026
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1027
|
+
*/
|
|
1028
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1029
|
+
name: string;
|
|
1030
|
+
message: string;
|
|
1031
|
+
stack?: string;
|
|
1032
|
+
cause?: unknown;
|
|
1033
|
+
};
|
|
1034
|
+
"new"(v0: string): {
|
|
1035
|
+
readonly tag: ChainServiceError_Tags.InvalidAddress;
|
|
1036
|
+
readonly inner: Readonly<[string]>;
|
|
1037
|
+
/**
|
|
1038
|
+
* @private
|
|
1039
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1040
|
+
*/
|
|
1041
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1042
|
+
name: string;
|
|
1043
|
+
message: string;
|
|
1044
|
+
stack?: string;
|
|
1045
|
+
cause?: unknown;
|
|
1046
|
+
};
|
|
1047
|
+
instanceOf(obj: any): obj is {
|
|
1048
|
+
readonly tag: ChainServiceError_Tags.InvalidAddress;
|
|
1049
|
+
readonly inner: Readonly<[string]>;
|
|
1050
|
+
/**
|
|
1051
|
+
* @private
|
|
1052
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1053
|
+
*/
|
|
1054
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1055
|
+
name: string;
|
|
1056
|
+
message: string;
|
|
1057
|
+
stack?: string;
|
|
1058
|
+
cause?: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
hasInner(obj: any): obj is {
|
|
1061
|
+
readonly tag: ChainServiceError_Tags.InvalidAddress;
|
|
1062
|
+
readonly inner: Readonly<[string]>;
|
|
1063
|
+
/**
|
|
1064
|
+
* @private
|
|
1065
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1066
|
+
*/
|
|
1067
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1068
|
+
name: string;
|
|
1069
|
+
message: string;
|
|
1070
|
+
stack?: string;
|
|
1071
|
+
cause?: unknown;
|
|
1072
|
+
};
|
|
1073
|
+
getInner(obj: {
|
|
1074
|
+
readonly tag: ChainServiceError_Tags.InvalidAddress;
|
|
1075
|
+
readonly inner: Readonly<[string]>;
|
|
1076
|
+
/**
|
|
1077
|
+
* @private
|
|
1078
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1081
|
+
name: string;
|
|
1082
|
+
message: string;
|
|
1083
|
+
stack?: string;
|
|
1084
|
+
cause?: unknown;
|
|
1085
|
+
}): Readonly<[string]>;
|
|
1086
|
+
isError(error: unknown): error is Error;
|
|
1087
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1088
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1089
|
+
stackTraceLimit: number;
|
|
1090
|
+
};
|
|
1091
|
+
ServiceConnectivity: {
|
|
1092
|
+
new (v0: string): {
|
|
1093
|
+
readonly tag: ChainServiceError_Tags.ServiceConnectivity;
|
|
1094
|
+
readonly inner: Readonly<[string]>;
|
|
1095
|
+
/**
|
|
1096
|
+
* @private
|
|
1097
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1098
|
+
*/
|
|
1099
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1100
|
+
name: string;
|
|
1101
|
+
message: string;
|
|
1102
|
+
stack?: string;
|
|
1103
|
+
cause?: unknown;
|
|
1104
|
+
};
|
|
1105
|
+
"new"(v0: string): {
|
|
1106
|
+
readonly tag: ChainServiceError_Tags.ServiceConnectivity;
|
|
1107
|
+
readonly inner: Readonly<[string]>;
|
|
1108
|
+
/**
|
|
1109
|
+
* @private
|
|
1110
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1111
|
+
*/
|
|
1112
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1113
|
+
name: string;
|
|
1114
|
+
message: string;
|
|
1115
|
+
stack?: string;
|
|
1116
|
+
cause?: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
instanceOf(obj: any): obj is {
|
|
1119
|
+
readonly tag: ChainServiceError_Tags.ServiceConnectivity;
|
|
1120
|
+
readonly inner: Readonly<[string]>;
|
|
1121
|
+
/**
|
|
1122
|
+
* @private
|
|
1123
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1124
|
+
*/
|
|
1125
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1126
|
+
name: string;
|
|
1127
|
+
message: string;
|
|
1128
|
+
stack?: string;
|
|
1129
|
+
cause?: unknown;
|
|
1130
|
+
};
|
|
1131
|
+
hasInner(obj: any): obj is {
|
|
1132
|
+
readonly tag: ChainServiceError_Tags.ServiceConnectivity;
|
|
1133
|
+
readonly inner: Readonly<[string]>;
|
|
1134
|
+
/**
|
|
1135
|
+
* @private
|
|
1136
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1137
|
+
*/
|
|
1138
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1139
|
+
name: string;
|
|
1140
|
+
message: string;
|
|
1141
|
+
stack?: string;
|
|
1142
|
+
cause?: unknown;
|
|
1143
|
+
};
|
|
1144
|
+
getInner(obj: {
|
|
1145
|
+
readonly tag: ChainServiceError_Tags.ServiceConnectivity;
|
|
1146
|
+
readonly inner: Readonly<[string]>;
|
|
1147
|
+
/**
|
|
1148
|
+
* @private
|
|
1149
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1150
|
+
*/
|
|
1151
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1152
|
+
name: string;
|
|
1153
|
+
message: string;
|
|
1154
|
+
stack?: string;
|
|
1155
|
+
cause?: unknown;
|
|
1156
|
+
}): Readonly<[string]>;
|
|
1157
|
+
isError(error: unknown): error is Error;
|
|
1158
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1159
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1160
|
+
stackTraceLimit: number;
|
|
1161
|
+
};
|
|
1162
|
+
Generic: {
|
|
1163
|
+
new (v0: string): {
|
|
1164
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
1165
|
+
readonly inner: Readonly<[string]>;
|
|
1166
|
+
/**
|
|
1167
|
+
* @private
|
|
1168
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1169
|
+
*/
|
|
1170
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1171
|
+
name: string;
|
|
1172
|
+
message: string;
|
|
1173
|
+
stack?: string;
|
|
1174
|
+
cause?: unknown;
|
|
1175
|
+
};
|
|
1176
|
+
"new"(v0: string): {
|
|
1177
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
1178
|
+
readonly inner: Readonly<[string]>;
|
|
1179
|
+
/**
|
|
1180
|
+
* @private
|
|
1181
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1182
|
+
*/
|
|
1183
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1184
|
+
name: string;
|
|
1185
|
+
message: string;
|
|
1186
|
+
stack?: string;
|
|
1187
|
+
cause?: unknown;
|
|
1188
|
+
};
|
|
1189
|
+
instanceOf(obj: any): obj is {
|
|
1190
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
1191
|
+
readonly inner: Readonly<[string]>;
|
|
1192
|
+
/**
|
|
1193
|
+
* @private
|
|
1194
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1195
|
+
*/
|
|
1196
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1197
|
+
name: string;
|
|
1198
|
+
message: string;
|
|
1199
|
+
stack?: string;
|
|
1200
|
+
cause?: unknown;
|
|
1201
|
+
};
|
|
1202
|
+
hasInner(obj: any): obj is {
|
|
1203
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
1204
|
+
readonly inner: Readonly<[string]>;
|
|
1205
|
+
/**
|
|
1206
|
+
* @private
|
|
1207
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1208
|
+
*/
|
|
1209
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1210
|
+
name: string;
|
|
1211
|
+
message: string;
|
|
1212
|
+
stack?: string;
|
|
1213
|
+
cause?: unknown;
|
|
1214
|
+
};
|
|
1215
|
+
getInner(obj: {
|
|
1216
|
+
readonly tag: ChainServiceError_Tags.Generic;
|
|
1217
|
+
readonly inner: Readonly<[string]>;
|
|
1218
|
+
/**
|
|
1219
|
+
* @private
|
|
1220
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1221
|
+
*/
|
|
1222
|
+
readonly [uniffiTypeNameSymbol]: "ChainServiceError";
|
|
1223
|
+
name: string;
|
|
1224
|
+
message: string;
|
|
1225
|
+
stack?: string;
|
|
1226
|
+
cause?: unknown;
|
|
1227
|
+
}): Readonly<[string]>;
|
|
1228
|
+
isError(error: unknown): error is Error;
|
|
1229
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1230
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1231
|
+
stackTraceLimit: number;
|
|
1232
|
+
};
|
|
1233
|
+
}>;
|
|
1234
|
+
export type ChainServiceError = InstanceType<(typeof ChainServiceError)[keyof Omit<typeof ChainServiceError, 'instanceOf'>]>;
|
|
1235
|
+
export declare enum DepositClaimError_Tags {
|
|
1236
|
+
DepositClaimFeeExceeded = "DepositClaimFeeExceeded",
|
|
1237
|
+
MissingUtxo = "MissingUtxo",
|
|
1238
|
+
Generic = "Generic"
|
|
1239
|
+
}
|
|
1240
|
+
export declare const DepositClaimError: Readonly<{
|
|
1241
|
+
instanceOf: (obj: any) => obj is DepositClaimError;
|
|
1242
|
+
DepositClaimFeeExceeded: {
|
|
1243
|
+
new (inner: {
|
|
1244
|
+
tx: string;
|
|
1245
|
+
vout: number;
|
|
1246
|
+
maxFee: Fee;
|
|
1247
|
+
actualFee: bigint;
|
|
1248
|
+
}): {
|
|
1249
|
+
readonly tag: DepositClaimError_Tags.DepositClaimFeeExceeded;
|
|
1250
|
+
readonly inner: Readonly<{
|
|
1251
|
+
tx: string;
|
|
1252
|
+
vout: number;
|
|
1253
|
+
maxFee: Fee;
|
|
1254
|
+
actualFee: bigint;
|
|
1255
|
+
}>;
|
|
1256
|
+
/**
|
|
1257
|
+
* @private
|
|
1258
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1259
|
+
*/
|
|
1260
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1261
|
+
};
|
|
1262
|
+
"new"(inner: {
|
|
1263
|
+
tx: string;
|
|
1264
|
+
vout: number;
|
|
1265
|
+
maxFee: Fee;
|
|
1266
|
+
actualFee: bigint;
|
|
1267
|
+
}): {
|
|
1268
|
+
readonly tag: DepositClaimError_Tags.DepositClaimFeeExceeded;
|
|
1269
|
+
readonly inner: Readonly<{
|
|
1270
|
+
tx: string;
|
|
1271
|
+
vout: number;
|
|
1272
|
+
maxFee: Fee;
|
|
1273
|
+
actualFee: bigint;
|
|
1274
|
+
}>;
|
|
1275
|
+
/**
|
|
1276
|
+
* @private
|
|
1277
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1278
|
+
*/
|
|
1279
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1280
|
+
};
|
|
1281
|
+
instanceOf(obj: any): obj is {
|
|
1282
|
+
readonly tag: DepositClaimError_Tags.DepositClaimFeeExceeded;
|
|
1283
|
+
readonly inner: Readonly<{
|
|
1284
|
+
tx: string;
|
|
1285
|
+
vout: number;
|
|
1286
|
+
maxFee: Fee;
|
|
1287
|
+
actualFee: bigint;
|
|
1288
|
+
}>;
|
|
1289
|
+
/**
|
|
1290
|
+
* @private
|
|
1291
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1292
|
+
*/
|
|
1293
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
MissingUtxo: {
|
|
1297
|
+
new (inner: {
|
|
1298
|
+
tx: string;
|
|
1299
|
+
vout: number;
|
|
1300
|
+
}): {
|
|
1301
|
+
readonly tag: DepositClaimError_Tags.MissingUtxo;
|
|
1302
|
+
readonly inner: Readonly<{
|
|
1303
|
+
tx: string;
|
|
1304
|
+
vout: number;
|
|
1305
|
+
}>;
|
|
1306
|
+
/**
|
|
1307
|
+
* @private
|
|
1308
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1309
|
+
*/
|
|
1310
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1311
|
+
};
|
|
1312
|
+
"new"(inner: {
|
|
1313
|
+
tx: string;
|
|
1314
|
+
vout: number;
|
|
1315
|
+
}): {
|
|
1316
|
+
readonly tag: DepositClaimError_Tags.MissingUtxo;
|
|
1317
|
+
readonly inner: Readonly<{
|
|
1318
|
+
tx: string;
|
|
1319
|
+
vout: number;
|
|
1320
|
+
}>;
|
|
1321
|
+
/**
|
|
1322
|
+
* @private
|
|
1323
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1324
|
+
*/
|
|
1325
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1326
|
+
};
|
|
1327
|
+
instanceOf(obj: any): obj is {
|
|
1328
|
+
readonly tag: DepositClaimError_Tags.MissingUtxo;
|
|
1329
|
+
readonly inner: Readonly<{
|
|
1330
|
+
tx: string;
|
|
1331
|
+
vout: number;
|
|
1332
|
+
}>;
|
|
1333
|
+
/**
|
|
1334
|
+
* @private
|
|
1335
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1336
|
+
*/
|
|
1337
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
Generic: {
|
|
1341
|
+
new (inner: {
|
|
1342
|
+
message: string;
|
|
1343
|
+
}): {
|
|
1344
|
+
readonly tag: DepositClaimError_Tags.Generic;
|
|
1345
|
+
readonly inner: Readonly<{
|
|
1346
|
+
message: string;
|
|
1347
|
+
}>;
|
|
1348
|
+
/**
|
|
1349
|
+
* @private
|
|
1350
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1351
|
+
*/
|
|
1352
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1353
|
+
};
|
|
1354
|
+
"new"(inner: {
|
|
1355
|
+
message: string;
|
|
1356
|
+
}): {
|
|
1357
|
+
readonly tag: DepositClaimError_Tags.Generic;
|
|
1358
|
+
readonly inner: Readonly<{
|
|
1359
|
+
message: string;
|
|
1360
|
+
}>;
|
|
1361
|
+
/**
|
|
1362
|
+
* @private
|
|
1363
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1364
|
+
*/
|
|
1365
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1366
|
+
};
|
|
1367
|
+
instanceOf(obj: any): obj is {
|
|
1368
|
+
readonly tag: DepositClaimError_Tags.Generic;
|
|
1369
|
+
readonly inner: Readonly<{
|
|
1370
|
+
message: string;
|
|
1371
|
+
}>;
|
|
1372
|
+
/**
|
|
1373
|
+
* @private
|
|
1374
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly [uniffiTypeNameSymbol]: "DepositClaimError";
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
}>;
|
|
1380
|
+
export type DepositClaimError = InstanceType<(typeof DepositClaimError)[keyof Omit<typeof DepositClaimError, 'instanceOf'>]>;
|
|
1381
|
+
export declare enum Fee_Tags {
|
|
1382
|
+
Fixed = "Fixed",
|
|
1383
|
+
Rate = "Rate"
|
|
1384
|
+
}
|
|
1385
|
+
export declare const Fee: Readonly<{
|
|
1386
|
+
instanceOf: (obj: any) => obj is Fee;
|
|
1387
|
+
Fixed: {
|
|
1388
|
+
new (inner: {
|
|
1389
|
+
amount: bigint;
|
|
1390
|
+
}): {
|
|
1391
|
+
readonly tag: Fee_Tags.Fixed;
|
|
1392
|
+
readonly inner: Readonly<{
|
|
1393
|
+
amount: bigint;
|
|
1394
|
+
}>;
|
|
1395
|
+
/**
|
|
1396
|
+
* @private
|
|
1397
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1398
|
+
*/
|
|
1399
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1400
|
+
};
|
|
1401
|
+
"new"(inner: {
|
|
1402
|
+
amount: bigint;
|
|
1403
|
+
}): {
|
|
1404
|
+
readonly tag: Fee_Tags.Fixed;
|
|
1405
|
+
readonly inner: Readonly<{
|
|
1406
|
+
amount: bigint;
|
|
1407
|
+
}>;
|
|
1408
|
+
/**
|
|
1409
|
+
* @private
|
|
1410
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1411
|
+
*/
|
|
1412
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1413
|
+
};
|
|
1414
|
+
instanceOf(obj: any): obj is {
|
|
1415
|
+
readonly tag: Fee_Tags.Fixed;
|
|
1416
|
+
readonly inner: Readonly<{
|
|
1417
|
+
amount: bigint;
|
|
1418
|
+
}>;
|
|
1419
|
+
/**
|
|
1420
|
+
* @private
|
|
1421
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1422
|
+
*/
|
|
1423
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
Rate: {
|
|
1427
|
+
new (inner: {
|
|
1428
|
+
satPerVbyte: bigint;
|
|
1429
|
+
}): {
|
|
1430
|
+
readonly tag: Fee_Tags.Rate;
|
|
1431
|
+
readonly inner: Readonly<{
|
|
1432
|
+
satPerVbyte: bigint;
|
|
1433
|
+
}>;
|
|
1434
|
+
/**
|
|
1435
|
+
* @private
|
|
1436
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1437
|
+
*/
|
|
1438
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1439
|
+
};
|
|
1440
|
+
"new"(inner: {
|
|
1441
|
+
satPerVbyte: bigint;
|
|
1442
|
+
}): {
|
|
1443
|
+
readonly tag: Fee_Tags.Rate;
|
|
1444
|
+
readonly inner: Readonly<{
|
|
1445
|
+
satPerVbyte: bigint;
|
|
1446
|
+
}>;
|
|
1447
|
+
/**
|
|
1448
|
+
* @private
|
|
1449
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1450
|
+
*/
|
|
1451
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1452
|
+
};
|
|
1453
|
+
instanceOf(obj: any): obj is {
|
|
1454
|
+
readonly tag: Fee_Tags.Rate;
|
|
1455
|
+
readonly inner: Readonly<{
|
|
1456
|
+
satPerVbyte: bigint;
|
|
1457
|
+
}>;
|
|
1458
|
+
/**
|
|
1459
|
+
* @private
|
|
1460
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1461
|
+
*/
|
|
1462
|
+
readonly [uniffiTypeNameSymbol]: "Fee";
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
}>;
|
|
1466
|
+
export type Fee = InstanceType<(typeof Fee)[keyof Omit<typeof Fee, 'instanceOf'>]>;
|
|
1467
|
+
export declare enum Network {
|
|
1468
|
+
Mainnet = 0,
|
|
1469
|
+
Regtest = 1
|
|
1470
|
+
}
|
|
1471
|
+
export declare enum OnchainConfirmationSpeed {
|
|
1472
|
+
Fast = 0,
|
|
1473
|
+
Medium = 1,
|
|
1474
|
+
Slow = 2
|
|
1475
|
+
}
|
|
1476
|
+
export declare enum PaymentDetails_Tags {
|
|
1477
|
+
Spark = "Spark",
|
|
1478
|
+
Lightning = "Lightning",
|
|
1479
|
+
Withdraw = "Withdraw",
|
|
1480
|
+
Deposit = "Deposit"
|
|
1481
|
+
}
|
|
1482
|
+
export declare const PaymentDetails: Readonly<{
|
|
1483
|
+
instanceOf: (obj: any) => obj is PaymentDetails;
|
|
1484
|
+
Spark: {
|
|
1485
|
+
new (): {
|
|
1486
|
+
readonly tag: PaymentDetails_Tags.Spark;
|
|
1487
|
+
/**
|
|
1488
|
+
* @private
|
|
1489
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1490
|
+
*/
|
|
1491
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1492
|
+
};
|
|
1493
|
+
"new"(): {
|
|
1494
|
+
readonly tag: PaymentDetails_Tags.Spark;
|
|
1495
|
+
/**
|
|
1496
|
+
* @private
|
|
1497
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1498
|
+
*/
|
|
1499
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1500
|
+
};
|
|
1501
|
+
instanceOf(obj: any): obj is {
|
|
1502
|
+
readonly tag: PaymentDetails_Tags.Spark;
|
|
1503
|
+
/**
|
|
1504
|
+
* @private
|
|
1505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1506
|
+
*/
|
|
1507
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
Lightning: {
|
|
1511
|
+
new (inner: {
|
|
1512
|
+
/**
|
|
1513
|
+
* Represents the invoice description
|
|
1514
|
+
*/ description: string | undefined;
|
|
1515
|
+
/**
|
|
1516
|
+
* The preimage of the paid invoice (proof of payment).
|
|
1517
|
+
*/ preimage: string | undefined;
|
|
1518
|
+
/**
|
|
1519
|
+
* Represents the Bolt11/Bolt12 invoice associated with a payment
|
|
1520
|
+
* In the case of a Send payment, this is the invoice paid by the user
|
|
1521
|
+
* In the case of a Receive payment, this is the invoice paid to the user
|
|
1522
|
+
*/ invoice: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* The payment hash of the invoice
|
|
1525
|
+
*/ paymentHash: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* The invoice destination/payee pubkey
|
|
1528
|
+
*/ destinationPubkey: string;
|
|
1529
|
+
/**
|
|
1530
|
+
* Lnurl payment information if this was an lnurl payment.
|
|
1531
|
+
*/ lnurlPayInfo: LnurlPayInfo | undefined;
|
|
1532
|
+
}): {
|
|
1533
|
+
readonly tag: PaymentDetails_Tags.Lightning;
|
|
1534
|
+
readonly inner: Readonly<{
|
|
1535
|
+
description: string | undefined;
|
|
1536
|
+
preimage: string | undefined;
|
|
1537
|
+
invoice: string;
|
|
1538
|
+
paymentHash: string;
|
|
1539
|
+
destinationPubkey: string;
|
|
1540
|
+
lnurlPayInfo: LnurlPayInfo | undefined;
|
|
1541
|
+
}>;
|
|
1542
|
+
/**
|
|
1543
|
+
* @private
|
|
1544
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1545
|
+
*/
|
|
1546
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1547
|
+
};
|
|
1548
|
+
"new"(inner: {
|
|
1549
|
+
/**
|
|
1550
|
+
* Represents the invoice description
|
|
1551
|
+
*/ description: string | undefined;
|
|
1552
|
+
/**
|
|
1553
|
+
* The preimage of the paid invoice (proof of payment).
|
|
1554
|
+
*/ preimage: string | undefined;
|
|
1555
|
+
/**
|
|
1556
|
+
* Represents the Bolt11/Bolt12 invoice associated with a payment
|
|
1557
|
+
* In the case of a Send payment, this is the invoice paid by the user
|
|
1558
|
+
* In the case of a Receive payment, this is the invoice paid to the user
|
|
1559
|
+
*/ invoice: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* The payment hash of the invoice
|
|
1562
|
+
*/ paymentHash: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* The invoice destination/payee pubkey
|
|
1565
|
+
*/ destinationPubkey: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Lnurl payment information if this was an lnurl payment.
|
|
1568
|
+
*/ lnurlPayInfo: LnurlPayInfo | undefined;
|
|
1569
|
+
}): {
|
|
1570
|
+
readonly tag: PaymentDetails_Tags.Lightning;
|
|
1571
|
+
readonly inner: Readonly<{
|
|
1572
|
+
description: string | undefined;
|
|
1573
|
+
preimage: string | undefined;
|
|
1574
|
+
invoice: string;
|
|
1575
|
+
paymentHash: string;
|
|
1576
|
+
destinationPubkey: string;
|
|
1577
|
+
lnurlPayInfo: LnurlPayInfo | undefined;
|
|
1578
|
+
}>;
|
|
1579
|
+
/**
|
|
1580
|
+
* @private
|
|
1581
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1582
|
+
*/
|
|
1583
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1584
|
+
};
|
|
1585
|
+
instanceOf(obj: any): obj is {
|
|
1586
|
+
readonly tag: PaymentDetails_Tags.Lightning;
|
|
1587
|
+
readonly inner: Readonly<{
|
|
1588
|
+
description: string | undefined;
|
|
1589
|
+
preimage: string | undefined;
|
|
1590
|
+
invoice: string;
|
|
1591
|
+
paymentHash: string;
|
|
1592
|
+
destinationPubkey: string;
|
|
1593
|
+
lnurlPayInfo: LnurlPayInfo | undefined;
|
|
1594
|
+
}>;
|
|
1595
|
+
/**
|
|
1596
|
+
* @private
|
|
1597
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1598
|
+
*/
|
|
1599
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
Withdraw: {
|
|
1603
|
+
new (inner: {
|
|
1604
|
+
txId: string;
|
|
1605
|
+
}): {
|
|
1606
|
+
readonly tag: PaymentDetails_Tags.Withdraw;
|
|
1607
|
+
readonly inner: Readonly<{
|
|
1608
|
+
txId: string;
|
|
1609
|
+
}>;
|
|
1610
|
+
/**
|
|
1611
|
+
* @private
|
|
1612
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1613
|
+
*/
|
|
1614
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1615
|
+
};
|
|
1616
|
+
"new"(inner: {
|
|
1617
|
+
txId: string;
|
|
1618
|
+
}): {
|
|
1619
|
+
readonly tag: PaymentDetails_Tags.Withdraw;
|
|
1620
|
+
readonly inner: Readonly<{
|
|
1621
|
+
txId: string;
|
|
1622
|
+
}>;
|
|
1623
|
+
/**
|
|
1624
|
+
* @private
|
|
1625
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1626
|
+
*/
|
|
1627
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1628
|
+
};
|
|
1629
|
+
instanceOf(obj: any): obj is {
|
|
1630
|
+
readonly tag: PaymentDetails_Tags.Withdraw;
|
|
1631
|
+
readonly inner: Readonly<{
|
|
1632
|
+
txId: string;
|
|
1633
|
+
}>;
|
|
1634
|
+
/**
|
|
1635
|
+
* @private
|
|
1636
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1637
|
+
*/
|
|
1638
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
Deposit: {
|
|
1642
|
+
new (inner: {
|
|
1643
|
+
txId: string;
|
|
1644
|
+
}): {
|
|
1645
|
+
readonly tag: PaymentDetails_Tags.Deposit;
|
|
1646
|
+
readonly inner: Readonly<{
|
|
1647
|
+
txId: string;
|
|
1648
|
+
}>;
|
|
1649
|
+
/**
|
|
1650
|
+
* @private
|
|
1651
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1652
|
+
*/
|
|
1653
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1654
|
+
};
|
|
1655
|
+
"new"(inner: {
|
|
1656
|
+
txId: string;
|
|
1657
|
+
}): {
|
|
1658
|
+
readonly tag: PaymentDetails_Tags.Deposit;
|
|
1659
|
+
readonly inner: Readonly<{
|
|
1660
|
+
txId: string;
|
|
1661
|
+
}>;
|
|
1662
|
+
/**
|
|
1663
|
+
* @private
|
|
1664
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1665
|
+
*/
|
|
1666
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1667
|
+
};
|
|
1668
|
+
instanceOf(obj: any): obj is {
|
|
1669
|
+
readonly tag: PaymentDetails_Tags.Deposit;
|
|
1670
|
+
readonly inner: Readonly<{
|
|
1671
|
+
txId: string;
|
|
1672
|
+
}>;
|
|
1673
|
+
/**
|
|
1674
|
+
* @private
|
|
1675
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1676
|
+
*/
|
|
1677
|
+
readonly [uniffiTypeNameSymbol]: "PaymentDetails";
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
}>;
|
|
1681
|
+
export type PaymentDetails = InstanceType<(typeof PaymentDetails)[keyof Omit<typeof PaymentDetails, 'instanceOf'>]>;
|
|
1682
|
+
export declare enum PaymentMethod {
|
|
1683
|
+
Lightning = 0,
|
|
1684
|
+
Spark = 1,
|
|
1685
|
+
Deposit = 2,
|
|
1686
|
+
Withdraw = 3,
|
|
1687
|
+
Unknown = 4
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* The status of a payment
|
|
1691
|
+
*/
|
|
1692
|
+
export declare enum PaymentStatus {
|
|
1693
|
+
/**
|
|
1694
|
+
* Payment is completed successfully
|
|
1695
|
+
*/
|
|
1696
|
+
Completed = 0,
|
|
1697
|
+
/**
|
|
1698
|
+
* Payment is in progress
|
|
1699
|
+
*/
|
|
1700
|
+
Pending = 1,
|
|
1701
|
+
/**
|
|
1702
|
+
* Payment has failed
|
|
1703
|
+
*/
|
|
1704
|
+
Failed = 2
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* The type of payment
|
|
1708
|
+
*/
|
|
1709
|
+
export declare enum PaymentType {
|
|
1710
|
+
/**
|
|
1711
|
+
* Payment sent from this wallet
|
|
1712
|
+
*/
|
|
1713
|
+
Send = 0,
|
|
1714
|
+
/**
|
|
1715
|
+
* Payment received to this wallet
|
|
1716
|
+
*/
|
|
1717
|
+
Receive = 1
|
|
1718
|
+
}
|
|
1719
|
+
export declare enum ReceivePaymentMethod_Tags {
|
|
1720
|
+
SparkAddress = "SparkAddress",
|
|
1721
|
+
BitcoinAddress = "BitcoinAddress",
|
|
1722
|
+
Bolt11Invoice = "Bolt11Invoice"
|
|
1723
|
+
}
|
|
1724
|
+
export declare const ReceivePaymentMethod: Readonly<{
|
|
1725
|
+
instanceOf: (obj: any) => obj is ReceivePaymentMethod;
|
|
1726
|
+
SparkAddress: {
|
|
1727
|
+
new (): {
|
|
1728
|
+
readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
|
|
1729
|
+
/**
|
|
1730
|
+
* @private
|
|
1731
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1732
|
+
*/
|
|
1733
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1734
|
+
};
|
|
1735
|
+
"new"(): {
|
|
1736
|
+
readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
|
|
1737
|
+
/**
|
|
1738
|
+
* @private
|
|
1739
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1740
|
+
*/
|
|
1741
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1742
|
+
};
|
|
1743
|
+
instanceOf(obj: any): obj is {
|
|
1744
|
+
readonly tag: ReceivePaymentMethod_Tags.SparkAddress;
|
|
1745
|
+
/**
|
|
1746
|
+
* @private
|
|
1747
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1748
|
+
*/
|
|
1749
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
BitcoinAddress: {
|
|
1753
|
+
new (): {
|
|
1754
|
+
readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
|
|
1755
|
+
/**
|
|
1756
|
+
* @private
|
|
1757
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1758
|
+
*/
|
|
1759
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1760
|
+
};
|
|
1761
|
+
"new"(): {
|
|
1762
|
+
readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
|
|
1763
|
+
/**
|
|
1764
|
+
* @private
|
|
1765
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1766
|
+
*/
|
|
1767
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1768
|
+
};
|
|
1769
|
+
instanceOf(obj: any): obj is {
|
|
1770
|
+
readonly tag: ReceivePaymentMethod_Tags.BitcoinAddress;
|
|
1771
|
+
/**
|
|
1772
|
+
* @private
|
|
1773
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1774
|
+
*/
|
|
1775
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1778
|
+
Bolt11Invoice: {
|
|
1779
|
+
new (inner: {
|
|
1780
|
+
description: string;
|
|
1781
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
1782
|
+
}): {
|
|
1783
|
+
readonly tag: ReceivePaymentMethod_Tags.Bolt11Invoice;
|
|
1784
|
+
readonly inner: Readonly<{
|
|
1785
|
+
description: string;
|
|
1786
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
1787
|
+
}>;
|
|
1788
|
+
/**
|
|
1789
|
+
* @private
|
|
1790
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1791
|
+
*/
|
|
1792
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1793
|
+
};
|
|
1794
|
+
"new"(inner: {
|
|
1795
|
+
description: string;
|
|
1796
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
1797
|
+
}): {
|
|
1798
|
+
readonly tag: ReceivePaymentMethod_Tags.Bolt11Invoice;
|
|
1799
|
+
readonly inner: Readonly<{
|
|
1800
|
+
description: string;
|
|
1801
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
1802
|
+
}>;
|
|
1803
|
+
/**
|
|
1804
|
+
* @private
|
|
1805
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1806
|
+
*/
|
|
1807
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1808
|
+
};
|
|
1809
|
+
instanceOf(obj: any): obj is {
|
|
1810
|
+
readonly tag: ReceivePaymentMethod_Tags.Bolt11Invoice;
|
|
1811
|
+
readonly inner: Readonly<{
|
|
1812
|
+
description: string;
|
|
1813
|
+
amountSats: /*u64*/ bigint | undefined;
|
|
1814
|
+
}>;
|
|
1815
|
+
/**
|
|
1816
|
+
* @private
|
|
1817
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1818
|
+
*/
|
|
1819
|
+
readonly [uniffiTypeNameSymbol]: "ReceivePaymentMethod";
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
}>;
|
|
1823
|
+
export type ReceivePaymentMethod = InstanceType<(typeof ReceivePaymentMethod)[keyof Omit<typeof ReceivePaymentMethod, 'instanceOf'>]>;
|
|
1824
|
+
export declare enum SdkError_Tags {
|
|
1825
|
+
SparkError = "SparkError",
|
|
1826
|
+
InvalidUuid = "InvalidUuid",
|
|
1827
|
+
InvalidInput = "InvalidInput",
|
|
1828
|
+
NetworkError = "NetworkError",
|
|
1829
|
+
StorageError = "StorageError",
|
|
1830
|
+
ChainServiceError = "ChainServiceError",
|
|
1831
|
+
DepositClaimFeeExceeded = "DepositClaimFeeExceeded",
|
|
1832
|
+
MissingUtxo = "MissingUtxo",
|
|
1833
|
+
LnurlError = "LnurlError",
|
|
1834
|
+
Generic = "Generic"
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Error type for the `BreezSdk`
|
|
1838
|
+
*/
|
|
1839
|
+
export declare const SdkError: Readonly<{
|
|
1840
|
+
instanceOf: (obj: any) => obj is SdkError;
|
|
1841
|
+
SparkError: {
|
|
1842
|
+
new (v0: string): {
|
|
1843
|
+
readonly tag: SdkError_Tags.SparkError;
|
|
1844
|
+
readonly inner: Readonly<[string]>;
|
|
1845
|
+
/**
|
|
1846
|
+
* @private
|
|
1847
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1848
|
+
*/
|
|
1849
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1850
|
+
name: string;
|
|
1851
|
+
message: string;
|
|
1852
|
+
stack?: string;
|
|
1853
|
+
cause?: unknown;
|
|
1854
|
+
};
|
|
1855
|
+
"new"(v0: string): {
|
|
1856
|
+
readonly tag: SdkError_Tags.SparkError;
|
|
1857
|
+
readonly inner: Readonly<[string]>;
|
|
1858
|
+
/**
|
|
1859
|
+
* @private
|
|
1860
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1861
|
+
*/
|
|
1862
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1863
|
+
name: string;
|
|
1864
|
+
message: string;
|
|
1865
|
+
stack?: string;
|
|
1866
|
+
cause?: unknown;
|
|
1867
|
+
};
|
|
1868
|
+
instanceOf(obj: any): obj is {
|
|
1869
|
+
readonly tag: SdkError_Tags.SparkError;
|
|
1870
|
+
readonly inner: Readonly<[string]>;
|
|
1871
|
+
/**
|
|
1872
|
+
* @private
|
|
1873
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1874
|
+
*/
|
|
1875
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1876
|
+
name: string;
|
|
1877
|
+
message: string;
|
|
1878
|
+
stack?: string;
|
|
1879
|
+
cause?: unknown;
|
|
1880
|
+
};
|
|
1881
|
+
hasInner(obj: any): obj is {
|
|
1882
|
+
readonly tag: SdkError_Tags.SparkError;
|
|
1883
|
+
readonly inner: Readonly<[string]>;
|
|
1884
|
+
/**
|
|
1885
|
+
* @private
|
|
1886
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1887
|
+
*/
|
|
1888
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1889
|
+
name: string;
|
|
1890
|
+
message: string;
|
|
1891
|
+
stack?: string;
|
|
1892
|
+
cause?: unknown;
|
|
1893
|
+
};
|
|
1894
|
+
getInner(obj: {
|
|
1895
|
+
readonly tag: SdkError_Tags.SparkError;
|
|
1896
|
+
readonly inner: Readonly<[string]>;
|
|
1897
|
+
/**
|
|
1898
|
+
* @private
|
|
1899
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1900
|
+
*/
|
|
1901
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1902
|
+
name: string;
|
|
1903
|
+
message: string;
|
|
1904
|
+
stack?: string;
|
|
1905
|
+
cause?: unknown;
|
|
1906
|
+
}): Readonly<[string]>;
|
|
1907
|
+
isError(error: unknown): error is Error;
|
|
1908
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1909
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1910
|
+
stackTraceLimit: number;
|
|
1911
|
+
};
|
|
1912
|
+
InvalidUuid: {
|
|
1913
|
+
new (v0: string): {
|
|
1914
|
+
readonly tag: SdkError_Tags.InvalidUuid;
|
|
1915
|
+
readonly inner: Readonly<[string]>;
|
|
1916
|
+
/**
|
|
1917
|
+
* @private
|
|
1918
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1919
|
+
*/
|
|
1920
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1921
|
+
name: string;
|
|
1922
|
+
message: string;
|
|
1923
|
+
stack?: string;
|
|
1924
|
+
cause?: unknown;
|
|
1925
|
+
};
|
|
1926
|
+
"new"(v0: string): {
|
|
1927
|
+
readonly tag: SdkError_Tags.InvalidUuid;
|
|
1928
|
+
readonly inner: Readonly<[string]>;
|
|
1929
|
+
/**
|
|
1930
|
+
* @private
|
|
1931
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1932
|
+
*/
|
|
1933
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1934
|
+
name: string;
|
|
1935
|
+
message: string;
|
|
1936
|
+
stack?: string;
|
|
1937
|
+
cause?: unknown;
|
|
1938
|
+
};
|
|
1939
|
+
instanceOf(obj: any): obj is {
|
|
1940
|
+
readonly tag: SdkError_Tags.InvalidUuid;
|
|
1941
|
+
readonly inner: Readonly<[string]>;
|
|
1942
|
+
/**
|
|
1943
|
+
* @private
|
|
1944
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1945
|
+
*/
|
|
1946
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1947
|
+
name: string;
|
|
1948
|
+
message: string;
|
|
1949
|
+
stack?: string;
|
|
1950
|
+
cause?: unknown;
|
|
1951
|
+
};
|
|
1952
|
+
hasInner(obj: any): obj is {
|
|
1953
|
+
readonly tag: SdkError_Tags.InvalidUuid;
|
|
1954
|
+
readonly inner: Readonly<[string]>;
|
|
1955
|
+
/**
|
|
1956
|
+
* @private
|
|
1957
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1958
|
+
*/
|
|
1959
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1960
|
+
name: string;
|
|
1961
|
+
message: string;
|
|
1962
|
+
stack?: string;
|
|
1963
|
+
cause?: unknown;
|
|
1964
|
+
};
|
|
1965
|
+
getInner(obj: {
|
|
1966
|
+
readonly tag: SdkError_Tags.InvalidUuid;
|
|
1967
|
+
readonly inner: Readonly<[string]>;
|
|
1968
|
+
/**
|
|
1969
|
+
* @private
|
|
1970
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1971
|
+
*/
|
|
1972
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1973
|
+
name: string;
|
|
1974
|
+
message: string;
|
|
1975
|
+
stack?: string;
|
|
1976
|
+
cause?: unknown;
|
|
1977
|
+
}): Readonly<[string]>;
|
|
1978
|
+
isError(error: unknown): error is Error;
|
|
1979
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1980
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1981
|
+
stackTraceLimit: number;
|
|
1982
|
+
};
|
|
1983
|
+
InvalidInput: {
|
|
1984
|
+
new (v0: string): {
|
|
1985
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
1986
|
+
readonly inner: Readonly<[string]>;
|
|
1987
|
+
/**
|
|
1988
|
+
* @private
|
|
1989
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1990
|
+
*/
|
|
1991
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1992
|
+
name: string;
|
|
1993
|
+
message: string;
|
|
1994
|
+
stack?: string;
|
|
1995
|
+
cause?: unknown;
|
|
1996
|
+
};
|
|
1997
|
+
"new"(v0: string): {
|
|
1998
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
1999
|
+
readonly inner: Readonly<[string]>;
|
|
2000
|
+
/**
|
|
2001
|
+
* @private
|
|
2002
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2003
|
+
*/
|
|
2004
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2005
|
+
name: string;
|
|
2006
|
+
message: string;
|
|
2007
|
+
stack?: string;
|
|
2008
|
+
cause?: unknown;
|
|
2009
|
+
};
|
|
2010
|
+
instanceOf(obj: any): obj is {
|
|
2011
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
2012
|
+
readonly inner: Readonly<[string]>;
|
|
2013
|
+
/**
|
|
2014
|
+
* @private
|
|
2015
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2016
|
+
*/
|
|
2017
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2018
|
+
name: string;
|
|
2019
|
+
message: string;
|
|
2020
|
+
stack?: string;
|
|
2021
|
+
cause?: unknown;
|
|
2022
|
+
};
|
|
2023
|
+
hasInner(obj: any): obj is {
|
|
2024
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
2025
|
+
readonly inner: Readonly<[string]>;
|
|
2026
|
+
/**
|
|
2027
|
+
* @private
|
|
2028
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2029
|
+
*/
|
|
2030
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2031
|
+
name: string;
|
|
2032
|
+
message: string;
|
|
2033
|
+
stack?: string;
|
|
2034
|
+
cause?: unknown;
|
|
2035
|
+
};
|
|
2036
|
+
getInner(obj: {
|
|
2037
|
+
readonly tag: SdkError_Tags.InvalidInput;
|
|
2038
|
+
readonly inner: Readonly<[string]>;
|
|
2039
|
+
/**
|
|
2040
|
+
* @private
|
|
2041
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2042
|
+
*/
|
|
2043
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2044
|
+
name: string;
|
|
2045
|
+
message: string;
|
|
2046
|
+
stack?: string;
|
|
2047
|
+
cause?: unknown;
|
|
2048
|
+
}): Readonly<[string]>;
|
|
2049
|
+
isError(error: unknown): error is Error;
|
|
2050
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2051
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2052
|
+
stackTraceLimit: number;
|
|
2053
|
+
};
|
|
2054
|
+
NetworkError: {
|
|
2055
|
+
new (v0: string): {
|
|
2056
|
+
readonly tag: SdkError_Tags.NetworkError;
|
|
2057
|
+
readonly inner: Readonly<[string]>;
|
|
2058
|
+
/**
|
|
2059
|
+
* @private
|
|
2060
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2061
|
+
*/
|
|
2062
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2063
|
+
name: string;
|
|
2064
|
+
message: string;
|
|
2065
|
+
stack?: string;
|
|
2066
|
+
cause?: unknown;
|
|
2067
|
+
};
|
|
2068
|
+
"new"(v0: string): {
|
|
2069
|
+
readonly tag: SdkError_Tags.NetworkError;
|
|
2070
|
+
readonly inner: Readonly<[string]>;
|
|
2071
|
+
/**
|
|
2072
|
+
* @private
|
|
2073
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2074
|
+
*/
|
|
2075
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2076
|
+
name: string;
|
|
2077
|
+
message: string;
|
|
2078
|
+
stack?: string;
|
|
2079
|
+
cause?: unknown;
|
|
2080
|
+
};
|
|
2081
|
+
instanceOf(obj: any): obj is {
|
|
2082
|
+
readonly tag: SdkError_Tags.NetworkError;
|
|
2083
|
+
readonly inner: Readonly<[string]>;
|
|
2084
|
+
/**
|
|
2085
|
+
* @private
|
|
2086
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2087
|
+
*/
|
|
2088
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2089
|
+
name: string;
|
|
2090
|
+
message: string;
|
|
2091
|
+
stack?: string;
|
|
2092
|
+
cause?: unknown;
|
|
2093
|
+
};
|
|
2094
|
+
hasInner(obj: any): obj is {
|
|
2095
|
+
readonly tag: SdkError_Tags.NetworkError;
|
|
2096
|
+
readonly inner: Readonly<[string]>;
|
|
2097
|
+
/**
|
|
2098
|
+
* @private
|
|
2099
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2100
|
+
*/
|
|
2101
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2102
|
+
name: string;
|
|
2103
|
+
message: string;
|
|
2104
|
+
stack?: string;
|
|
2105
|
+
cause?: unknown;
|
|
2106
|
+
};
|
|
2107
|
+
getInner(obj: {
|
|
2108
|
+
readonly tag: SdkError_Tags.NetworkError;
|
|
2109
|
+
readonly inner: Readonly<[string]>;
|
|
2110
|
+
/**
|
|
2111
|
+
* @private
|
|
2112
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2113
|
+
*/
|
|
2114
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2115
|
+
name: string;
|
|
2116
|
+
message: string;
|
|
2117
|
+
stack?: string;
|
|
2118
|
+
cause?: unknown;
|
|
2119
|
+
}): Readonly<[string]>;
|
|
2120
|
+
isError(error: unknown): error is Error;
|
|
2121
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2122
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2123
|
+
stackTraceLimit: number;
|
|
2124
|
+
};
|
|
2125
|
+
StorageError: {
|
|
2126
|
+
new (v0: string): {
|
|
2127
|
+
readonly tag: SdkError_Tags.StorageError;
|
|
2128
|
+
readonly inner: Readonly<[string]>;
|
|
2129
|
+
/**
|
|
2130
|
+
* @private
|
|
2131
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2132
|
+
*/
|
|
2133
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2134
|
+
name: string;
|
|
2135
|
+
message: string;
|
|
2136
|
+
stack?: string;
|
|
2137
|
+
cause?: unknown;
|
|
2138
|
+
};
|
|
2139
|
+
"new"(v0: string): {
|
|
2140
|
+
readonly tag: SdkError_Tags.StorageError;
|
|
2141
|
+
readonly inner: Readonly<[string]>;
|
|
2142
|
+
/**
|
|
2143
|
+
* @private
|
|
2144
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2145
|
+
*/
|
|
2146
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2147
|
+
name: string;
|
|
2148
|
+
message: string;
|
|
2149
|
+
stack?: string;
|
|
2150
|
+
cause?: unknown;
|
|
2151
|
+
};
|
|
2152
|
+
instanceOf(obj: any): obj is {
|
|
2153
|
+
readonly tag: SdkError_Tags.StorageError;
|
|
2154
|
+
readonly inner: Readonly<[string]>;
|
|
2155
|
+
/**
|
|
2156
|
+
* @private
|
|
2157
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2158
|
+
*/
|
|
2159
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2160
|
+
name: string;
|
|
2161
|
+
message: string;
|
|
2162
|
+
stack?: string;
|
|
2163
|
+
cause?: unknown;
|
|
2164
|
+
};
|
|
2165
|
+
hasInner(obj: any): obj is {
|
|
2166
|
+
readonly tag: SdkError_Tags.StorageError;
|
|
2167
|
+
readonly inner: Readonly<[string]>;
|
|
2168
|
+
/**
|
|
2169
|
+
* @private
|
|
2170
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2171
|
+
*/
|
|
2172
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2173
|
+
name: string;
|
|
2174
|
+
message: string;
|
|
2175
|
+
stack?: string;
|
|
2176
|
+
cause?: unknown;
|
|
2177
|
+
};
|
|
2178
|
+
getInner(obj: {
|
|
2179
|
+
readonly tag: SdkError_Tags.StorageError;
|
|
2180
|
+
readonly inner: Readonly<[string]>;
|
|
2181
|
+
/**
|
|
2182
|
+
* @private
|
|
2183
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2184
|
+
*/
|
|
2185
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2186
|
+
name: string;
|
|
2187
|
+
message: string;
|
|
2188
|
+
stack?: string;
|
|
2189
|
+
cause?: unknown;
|
|
2190
|
+
}): Readonly<[string]>;
|
|
2191
|
+
isError(error: unknown): error is Error;
|
|
2192
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2193
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2194
|
+
stackTraceLimit: number;
|
|
2195
|
+
};
|
|
2196
|
+
ChainServiceError: {
|
|
2197
|
+
new (v0: string): {
|
|
2198
|
+
readonly tag: SdkError_Tags.ChainServiceError;
|
|
2199
|
+
readonly inner: Readonly<[string]>;
|
|
2200
|
+
/**
|
|
2201
|
+
* @private
|
|
2202
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2203
|
+
*/
|
|
2204
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2205
|
+
name: string;
|
|
2206
|
+
message: string;
|
|
2207
|
+
stack?: string;
|
|
2208
|
+
cause?: unknown;
|
|
2209
|
+
};
|
|
2210
|
+
"new"(v0: string): {
|
|
2211
|
+
readonly tag: SdkError_Tags.ChainServiceError;
|
|
2212
|
+
readonly inner: Readonly<[string]>;
|
|
2213
|
+
/**
|
|
2214
|
+
* @private
|
|
2215
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2216
|
+
*/
|
|
2217
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2218
|
+
name: string;
|
|
2219
|
+
message: string;
|
|
2220
|
+
stack?: string;
|
|
2221
|
+
cause?: unknown;
|
|
2222
|
+
};
|
|
2223
|
+
instanceOf(obj: any): obj is {
|
|
2224
|
+
readonly tag: SdkError_Tags.ChainServiceError;
|
|
2225
|
+
readonly inner: Readonly<[string]>;
|
|
2226
|
+
/**
|
|
2227
|
+
* @private
|
|
2228
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2229
|
+
*/
|
|
2230
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2231
|
+
name: string;
|
|
2232
|
+
message: string;
|
|
2233
|
+
stack?: string;
|
|
2234
|
+
cause?: unknown;
|
|
2235
|
+
};
|
|
2236
|
+
hasInner(obj: any): obj is {
|
|
2237
|
+
readonly tag: SdkError_Tags.ChainServiceError;
|
|
2238
|
+
readonly inner: Readonly<[string]>;
|
|
2239
|
+
/**
|
|
2240
|
+
* @private
|
|
2241
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2242
|
+
*/
|
|
2243
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2244
|
+
name: string;
|
|
2245
|
+
message: string;
|
|
2246
|
+
stack?: string;
|
|
2247
|
+
cause?: unknown;
|
|
2248
|
+
};
|
|
2249
|
+
getInner(obj: {
|
|
2250
|
+
readonly tag: SdkError_Tags.ChainServiceError;
|
|
2251
|
+
readonly inner: Readonly<[string]>;
|
|
2252
|
+
/**
|
|
2253
|
+
* @private
|
|
2254
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2255
|
+
*/
|
|
2256
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2257
|
+
name: string;
|
|
2258
|
+
message: string;
|
|
2259
|
+
stack?: string;
|
|
2260
|
+
cause?: unknown;
|
|
2261
|
+
}): Readonly<[string]>;
|
|
2262
|
+
isError(error: unknown): error is Error;
|
|
2263
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2264
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2265
|
+
stackTraceLimit: number;
|
|
2266
|
+
};
|
|
2267
|
+
DepositClaimFeeExceeded: {
|
|
2268
|
+
new (inner: {
|
|
2269
|
+
tx: string;
|
|
2270
|
+
vout: number;
|
|
2271
|
+
maxFee: Fee;
|
|
2272
|
+
actualFee: bigint;
|
|
2273
|
+
}): {
|
|
2274
|
+
readonly tag: SdkError_Tags.DepositClaimFeeExceeded;
|
|
2275
|
+
readonly inner: Readonly<{
|
|
2276
|
+
tx: string;
|
|
2277
|
+
vout: number;
|
|
2278
|
+
maxFee: Fee;
|
|
2279
|
+
actualFee: bigint;
|
|
2280
|
+
}>;
|
|
2281
|
+
/**
|
|
2282
|
+
* @private
|
|
2283
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2284
|
+
*/
|
|
2285
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2286
|
+
name: string;
|
|
2287
|
+
message: string;
|
|
2288
|
+
stack?: string;
|
|
2289
|
+
cause?: unknown;
|
|
2290
|
+
};
|
|
2291
|
+
"new"(inner: {
|
|
2292
|
+
tx: string;
|
|
2293
|
+
vout: number;
|
|
2294
|
+
maxFee: Fee;
|
|
2295
|
+
actualFee: bigint;
|
|
2296
|
+
}): {
|
|
2297
|
+
readonly tag: SdkError_Tags.DepositClaimFeeExceeded;
|
|
2298
|
+
readonly inner: Readonly<{
|
|
2299
|
+
tx: string;
|
|
2300
|
+
vout: number;
|
|
2301
|
+
maxFee: Fee;
|
|
2302
|
+
actualFee: bigint;
|
|
2303
|
+
}>;
|
|
2304
|
+
/**
|
|
2305
|
+
* @private
|
|
2306
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2307
|
+
*/
|
|
2308
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2309
|
+
name: string;
|
|
2310
|
+
message: string;
|
|
2311
|
+
stack?: string;
|
|
2312
|
+
cause?: unknown;
|
|
2313
|
+
};
|
|
2314
|
+
instanceOf(obj: any): obj is {
|
|
2315
|
+
readonly tag: SdkError_Tags.DepositClaimFeeExceeded;
|
|
2316
|
+
readonly inner: Readonly<{
|
|
2317
|
+
tx: string;
|
|
2318
|
+
vout: number;
|
|
2319
|
+
maxFee: Fee;
|
|
2320
|
+
actualFee: bigint;
|
|
2321
|
+
}>;
|
|
2322
|
+
/**
|
|
2323
|
+
* @private
|
|
2324
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2325
|
+
*/
|
|
2326
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2327
|
+
name: string;
|
|
2328
|
+
message: string;
|
|
2329
|
+
stack?: string;
|
|
2330
|
+
cause?: unknown;
|
|
2331
|
+
};
|
|
2332
|
+
hasInner(obj: any): obj is {
|
|
2333
|
+
readonly tag: SdkError_Tags.DepositClaimFeeExceeded;
|
|
2334
|
+
readonly inner: Readonly<{
|
|
2335
|
+
tx: string;
|
|
2336
|
+
vout: number;
|
|
2337
|
+
maxFee: Fee;
|
|
2338
|
+
actualFee: bigint;
|
|
2339
|
+
}>;
|
|
2340
|
+
/**
|
|
2341
|
+
* @private
|
|
2342
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2343
|
+
*/
|
|
2344
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2345
|
+
name: string;
|
|
2346
|
+
message: string;
|
|
2347
|
+
stack?: string;
|
|
2348
|
+
cause?: unknown;
|
|
2349
|
+
};
|
|
2350
|
+
getInner(obj: {
|
|
2351
|
+
readonly tag: SdkError_Tags.DepositClaimFeeExceeded;
|
|
2352
|
+
readonly inner: Readonly<{
|
|
2353
|
+
tx: string;
|
|
2354
|
+
vout: number;
|
|
2355
|
+
maxFee: Fee;
|
|
2356
|
+
actualFee: bigint;
|
|
2357
|
+
}>;
|
|
2358
|
+
/**
|
|
2359
|
+
* @private
|
|
2360
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2361
|
+
*/
|
|
2362
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2363
|
+
name: string;
|
|
2364
|
+
message: string;
|
|
2365
|
+
stack?: string;
|
|
2366
|
+
cause?: unknown;
|
|
2367
|
+
}): Readonly<{
|
|
2368
|
+
tx: string;
|
|
2369
|
+
vout: number;
|
|
2370
|
+
maxFee: Fee;
|
|
2371
|
+
actualFee: bigint;
|
|
2372
|
+
}>;
|
|
2373
|
+
isError(error: unknown): error is Error;
|
|
2374
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2375
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2376
|
+
stackTraceLimit: number;
|
|
2377
|
+
};
|
|
2378
|
+
MissingUtxo: {
|
|
2379
|
+
new (inner: {
|
|
2380
|
+
tx: string;
|
|
2381
|
+
vout: number;
|
|
2382
|
+
}): {
|
|
2383
|
+
readonly tag: SdkError_Tags.MissingUtxo;
|
|
2384
|
+
readonly inner: Readonly<{
|
|
2385
|
+
tx: string;
|
|
2386
|
+
vout: number;
|
|
2387
|
+
}>;
|
|
2388
|
+
/**
|
|
2389
|
+
* @private
|
|
2390
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2391
|
+
*/
|
|
2392
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2393
|
+
name: string;
|
|
2394
|
+
message: string;
|
|
2395
|
+
stack?: string;
|
|
2396
|
+
cause?: unknown;
|
|
2397
|
+
};
|
|
2398
|
+
"new"(inner: {
|
|
2399
|
+
tx: string;
|
|
2400
|
+
vout: number;
|
|
2401
|
+
}): {
|
|
2402
|
+
readonly tag: SdkError_Tags.MissingUtxo;
|
|
2403
|
+
readonly inner: Readonly<{
|
|
2404
|
+
tx: string;
|
|
2405
|
+
vout: number;
|
|
2406
|
+
}>;
|
|
2407
|
+
/**
|
|
2408
|
+
* @private
|
|
2409
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2410
|
+
*/
|
|
2411
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2412
|
+
name: string;
|
|
2413
|
+
message: string;
|
|
2414
|
+
stack?: string;
|
|
2415
|
+
cause?: unknown;
|
|
2416
|
+
};
|
|
2417
|
+
instanceOf(obj: any): obj is {
|
|
2418
|
+
readonly tag: SdkError_Tags.MissingUtxo;
|
|
2419
|
+
readonly inner: Readonly<{
|
|
2420
|
+
tx: string;
|
|
2421
|
+
vout: number;
|
|
2422
|
+
}>;
|
|
2423
|
+
/**
|
|
2424
|
+
* @private
|
|
2425
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2426
|
+
*/
|
|
2427
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2428
|
+
name: string;
|
|
2429
|
+
message: string;
|
|
2430
|
+
stack?: string;
|
|
2431
|
+
cause?: unknown;
|
|
2432
|
+
};
|
|
2433
|
+
hasInner(obj: any): obj is {
|
|
2434
|
+
readonly tag: SdkError_Tags.MissingUtxo;
|
|
2435
|
+
readonly inner: Readonly<{
|
|
2436
|
+
tx: string;
|
|
2437
|
+
vout: number;
|
|
2438
|
+
}>;
|
|
2439
|
+
/**
|
|
2440
|
+
* @private
|
|
2441
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2442
|
+
*/
|
|
2443
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2444
|
+
name: string;
|
|
2445
|
+
message: string;
|
|
2446
|
+
stack?: string;
|
|
2447
|
+
cause?: unknown;
|
|
2448
|
+
};
|
|
2449
|
+
getInner(obj: {
|
|
2450
|
+
readonly tag: SdkError_Tags.MissingUtxo;
|
|
2451
|
+
readonly inner: Readonly<{
|
|
2452
|
+
tx: string;
|
|
2453
|
+
vout: number;
|
|
2454
|
+
}>;
|
|
2455
|
+
/**
|
|
2456
|
+
* @private
|
|
2457
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2458
|
+
*/
|
|
2459
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2460
|
+
name: string;
|
|
2461
|
+
message: string;
|
|
2462
|
+
stack?: string;
|
|
2463
|
+
cause?: unknown;
|
|
2464
|
+
}): Readonly<{
|
|
2465
|
+
tx: string;
|
|
2466
|
+
vout: number;
|
|
2467
|
+
}>;
|
|
2468
|
+
isError(error: unknown): error is Error;
|
|
2469
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2470
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2471
|
+
stackTraceLimit: number;
|
|
2472
|
+
};
|
|
2473
|
+
LnurlError: {
|
|
2474
|
+
new (v0: string): {
|
|
2475
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
2476
|
+
readonly inner: Readonly<[string]>;
|
|
2477
|
+
/**
|
|
2478
|
+
* @private
|
|
2479
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2480
|
+
*/
|
|
2481
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2482
|
+
name: string;
|
|
2483
|
+
message: string;
|
|
2484
|
+
stack?: string;
|
|
2485
|
+
cause?: unknown;
|
|
2486
|
+
};
|
|
2487
|
+
"new"(v0: string): {
|
|
2488
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
2489
|
+
readonly inner: Readonly<[string]>;
|
|
2490
|
+
/**
|
|
2491
|
+
* @private
|
|
2492
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2493
|
+
*/
|
|
2494
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2495
|
+
name: string;
|
|
2496
|
+
message: string;
|
|
2497
|
+
stack?: string;
|
|
2498
|
+
cause?: unknown;
|
|
2499
|
+
};
|
|
2500
|
+
instanceOf(obj: any): obj is {
|
|
2501
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
2502
|
+
readonly inner: Readonly<[string]>;
|
|
2503
|
+
/**
|
|
2504
|
+
* @private
|
|
2505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2506
|
+
*/
|
|
2507
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2508
|
+
name: string;
|
|
2509
|
+
message: string;
|
|
2510
|
+
stack?: string;
|
|
2511
|
+
cause?: unknown;
|
|
2512
|
+
};
|
|
2513
|
+
hasInner(obj: any): obj is {
|
|
2514
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
2515
|
+
readonly inner: Readonly<[string]>;
|
|
2516
|
+
/**
|
|
2517
|
+
* @private
|
|
2518
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2519
|
+
*/
|
|
2520
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2521
|
+
name: string;
|
|
2522
|
+
message: string;
|
|
2523
|
+
stack?: string;
|
|
2524
|
+
cause?: unknown;
|
|
2525
|
+
};
|
|
2526
|
+
getInner(obj: {
|
|
2527
|
+
readonly tag: SdkError_Tags.LnurlError;
|
|
2528
|
+
readonly inner: Readonly<[string]>;
|
|
2529
|
+
/**
|
|
2530
|
+
* @private
|
|
2531
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2532
|
+
*/
|
|
2533
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2534
|
+
name: string;
|
|
2535
|
+
message: string;
|
|
2536
|
+
stack?: string;
|
|
2537
|
+
cause?: unknown;
|
|
2538
|
+
}): Readonly<[string]>;
|
|
2539
|
+
isError(error: unknown): error is Error;
|
|
2540
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2541
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2542
|
+
stackTraceLimit: number;
|
|
2543
|
+
};
|
|
2544
|
+
Generic: {
|
|
2545
|
+
new (v0: string): {
|
|
2546
|
+
readonly tag: SdkError_Tags.Generic;
|
|
2547
|
+
readonly inner: Readonly<[string]>;
|
|
2548
|
+
/**
|
|
2549
|
+
* @private
|
|
2550
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2551
|
+
*/
|
|
2552
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2553
|
+
name: string;
|
|
2554
|
+
message: string;
|
|
2555
|
+
stack?: string;
|
|
2556
|
+
cause?: unknown;
|
|
2557
|
+
};
|
|
2558
|
+
"new"(v0: string): {
|
|
2559
|
+
readonly tag: SdkError_Tags.Generic;
|
|
2560
|
+
readonly inner: Readonly<[string]>;
|
|
2561
|
+
/**
|
|
2562
|
+
* @private
|
|
2563
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2564
|
+
*/
|
|
2565
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2566
|
+
name: string;
|
|
2567
|
+
message: string;
|
|
2568
|
+
stack?: string;
|
|
2569
|
+
cause?: unknown;
|
|
2570
|
+
};
|
|
2571
|
+
instanceOf(obj: any): obj is {
|
|
2572
|
+
readonly tag: SdkError_Tags.Generic;
|
|
2573
|
+
readonly inner: Readonly<[string]>;
|
|
2574
|
+
/**
|
|
2575
|
+
* @private
|
|
2576
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2577
|
+
*/
|
|
2578
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2579
|
+
name: string;
|
|
2580
|
+
message: string;
|
|
2581
|
+
stack?: string;
|
|
2582
|
+
cause?: unknown;
|
|
2583
|
+
};
|
|
2584
|
+
hasInner(obj: any): obj is {
|
|
2585
|
+
readonly tag: SdkError_Tags.Generic;
|
|
2586
|
+
readonly inner: Readonly<[string]>;
|
|
2587
|
+
/**
|
|
2588
|
+
* @private
|
|
2589
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2590
|
+
*/
|
|
2591
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2592
|
+
name: string;
|
|
2593
|
+
message: string;
|
|
2594
|
+
stack?: string;
|
|
2595
|
+
cause?: unknown;
|
|
2596
|
+
};
|
|
2597
|
+
getInner(obj: {
|
|
2598
|
+
readonly tag: SdkError_Tags.Generic;
|
|
2599
|
+
readonly inner: Readonly<[string]>;
|
|
2600
|
+
/**
|
|
2601
|
+
* @private
|
|
2602
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2603
|
+
*/
|
|
2604
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
2605
|
+
name: string;
|
|
2606
|
+
message: string;
|
|
2607
|
+
stack?: string;
|
|
2608
|
+
cause?: unknown;
|
|
2609
|
+
}): Readonly<[string]>;
|
|
2610
|
+
isError(error: unknown): error is Error;
|
|
2611
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2612
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2613
|
+
stackTraceLimit: number;
|
|
2614
|
+
};
|
|
2615
|
+
}>;
|
|
2616
|
+
/**
|
|
2617
|
+
* Error type for the `BreezSdk`
|
|
2618
|
+
*/
|
|
2619
|
+
export type SdkError = InstanceType<(typeof SdkError)[keyof Omit<typeof SdkError, 'instanceOf'>]>;
|
|
2620
|
+
export declare enum SdkEvent_Tags {
|
|
2621
|
+
Synced = "Synced",
|
|
2622
|
+
ClaimDepositsFailed = "ClaimDepositsFailed",
|
|
2623
|
+
ClaimDepositsSucceeded = "ClaimDepositsSucceeded",
|
|
2624
|
+
PaymentSucceeded = "PaymentSucceeded"
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Events emitted by the SDK
|
|
2628
|
+
*/
|
|
2629
|
+
export declare const SdkEvent: Readonly<{
|
|
2630
|
+
instanceOf: (obj: any) => obj is SdkEvent;
|
|
2631
|
+
Synced: {
|
|
2632
|
+
new (): {
|
|
2633
|
+
readonly tag: SdkEvent_Tags.Synced;
|
|
2634
|
+
/**
|
|
2635
|
+
* @private
|
|
2636
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2637
|
+
*/
|
|
2638
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2639
|
+
};
|
|
2640
|
+
"new"(): {
|
|
2641
|
+
readonly tag: SdkEvent_Tags.Synced;
|
|
2642
|
+
/**
|
|
2643
|
+
* @private
|
|
2644
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2645
|
+
*/
|
|
2646
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2647
|
+
};
|
|
2648
|
+
instanceOf(obj: any): obj is {
|
|
2649
|
+
readonly tag: SdkEvent_Tags.Synced;
|
|
2650
|
+
/**
|
|
2651
|
+
* @private
|
|
2652
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2653
|
+
*/
|
|
2654
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2655
|
+
};
|
|
2656
|
+
};
|
|
2657
|
+
ClaimDepositsFailed: {
|
|
2658
|
+
new (inner: {
|
|
2659
|
+
unclaimedDeposits: Array<DepositInfo>;
|
|
2660
|
+
}): {
|
|
2661
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsFailed;
|
|
2662
|
+
readonly inner: Readonly<{
|
|
2663
|
+
unclaimedDeposits: Array<DepositInfo>;
|
|
2664
|
+
}>;
|
|
2665
|
+
/**
|
|
2666
|
+
* @private
|
|
2667
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2668
|
+
*/
|
|
2669
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2670
|
+
};
|
|
2671
|
+
"new"(inner: {
|
|
2672
|
+
unclaimedDeposits: Array<DepositInfo>;
|
|
2673
|
+
}): {
|
|
2674
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsFailed;
|
|
2675
|
+
readonly inner: Readonly<{
|
|
2676
|
+
unclaimedDeposits: Array<DepositInfo>;
|
|
2677
|
+
}>;
|
|
2678
|
+
/**
|
|
2679
|
+
* @private
|
|
2680
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2681
|
+
*/
|
|
2682
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2683
|
+
};
|
|
2684
|
+
instanceOf(obj: any): obj is {
|
|
2685
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsFailed;
|
|
2686
|
+
readonly inner: Readonly<{
|
|
2687
|
+
unclaimedDeposits: Array<DepositInfo>;
|
|
2688
|
+
}>;
|
|
2689
|
+
/**
|
|
2690
|
+
* @private
|
|
2691
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2692
|
+
*/
|
|
2693
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2694
|
+
};
|
|
2695
|
+
};
|
|
2696
|
+
ClaimDepositsSucceeded: {
|
|
2697
|
+
new (inner: {
|
|
2698
|
+
claimedDeposits: Array<DepositInfo>;
|
|
2699
|
+
}): {
|
|
2700
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsSucceeded;
|
|
2701
|
+
readonly inner: Readonly<{
|
|
2702
|
+
claimedDeposits: Array<DepositInfo>;
|
|
2703
|
+
}>;
|
|
2704
|
+
/**
|
|
2705
|
+
* @private
|
|
2706
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2707
|
+
*/
|
|
2708
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2709
|
+
};
|
|
2710
|
+
"new"(inner: {
|
|
2711
|
+
claimedDeposits: Array<DepositInfo>;
|
|
2712
|
+
}): {
|
|
2713
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsSucceeded;
|
|
2714
|
+
readonly inner: Readonly<{
|
|
2715
|
+
claimedDeposits: Array<DepositInfo>;
|
|
2716
|
+
}>;
|
|
2717
|
+
/**
|
|
2718
|
+
* @private
|
|
2719
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2720
|
+
*/
|
|
2721
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2722
|
+
};
|
|
2723
|
+
instanceOf(obj: any): obj is {
|
|
2724
|
+
readonly tag: SdkEvent_Tags.ClaimDepositsSucceeded;
|
|
2725
|
+
readonly inner: Readonly<{
|
|
2726
|
+
claimedDeposits: Array<DepositInfo>;
|
|
2727
|
+
}>;
|
|
2728
|
+
/**
|
|
2729
|
+
* @private
|
|
2730
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2731
|
+
*/
|
|
2732
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2735
|
+
PaymentSucceeded: {
|
|
2736
|
+
new (inner: {
|
|
2737
|
+
payment: Payment;
|
|
2738
|
+
}): {
|
|
2739
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
2740
|
+
readonly inner: Readonly<{
|
|
2741
|
+
payment: Payment;
|
|
2742
|
+
}>;
|
|
2743
|
+
/**
|
|
2744
|
+
* @private
|
|
2745
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2746
|
+
*/
|
|
2747
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2748
|
+
};
|
|
2749
|
+
"new"(inner: {
|
|
2750
|
+
payment: Payment;
|
|
2751
|
+
}): {
|
|
2752
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
2753
|
+
readonly inner: Readonly<{
|
|
2754
|
+
payment: Payment;
|
|
2755
|
+
}>;
|
|
2756
|
+
/**
|
|
2757
|
+
* @private
|
|
2758
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2759
|
+
*/
|
|
2760
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2761
|
+
};
|
|
2762
|
+
instanceOf(obj: any): obj is {
|
|
2763
|
+
readonly tag: SdkEvent_Tags.PaymentSucceeded;
|
|
2764
|
+
readonly inner: Readonly<{
|
|
2765
|
+
payment: Payment;
|
|
2766
|
+
}>;
|
|
2767
|
+
/**
|
|
2768
|
+
* @private
|
|
2769
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2770
|
+
*/
|
|
2771
|
+
readonly [uniffiTypeNameSymbol]: "SdkEvent";
|
|
2772
|
+
};
|
|
2773
|
+
};
|
|
2774
|
+
}>;
|
|
2775
|
+
/**
|
|
2776
|
+
* Events emitted by the SDK
|
|
2777
|
+
*/
|
|
2778
|
+
export type SdkEvent = InstanceType<(typeof SdkEvent)[keyof Omit<typeof SdkEvent, 'instanceOf'>]>;
|
|
2779
|
+
export declare enum SendPaymentMethod_Tags {
|
|
2780
|
+
BitcoinAddress = "BitcoinAddress",
|
|
2781
|
+
Bolt11Invoice = "Bolt11Invoice",
|
|
2782
|
+
SparkAddress = "SparkAddress"
|
|
2783
|
+
}
|
|
2784
|
+
export declare const SendPaymentMethod: Readonly<{
|
|
2785
|
+
instanceOf: (obj: any) => obj is SendPaymentMethod;
|
|
2786
|
+
BitcoinAddress: {
|
|
2787
|
+
new (inner: {
|
|
2788
|
+
address: BitcoinAddressDetails;
|
|
2789
|
+
feeQuote: SendOnchainFeeQuote;
|
|
2790
|
+
}): {
|
|
2791
|
+
readonly tag: SendPaymentMethod_Tags.BitcoinAddress;
|
|
2792
|
+
readonly inner: Readonly<{
|
|
2793
|
+
address: BitcoinAddressDetails;
|
|
2794
|
+
feeQuote: SendOnchainFeeQuote;
|
|
2795
|
+
}>;
|
|
2796
|
+
/**
|
|
2797
|
+
* @private
|
|
2798
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2799
|
+
*/
|
|
2800
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2801
|
+
};
|
|
2802
|
+
"new"(inner: {
|
|
2803
|
+
address: BitcoinAddressDetails;
|
|
2804
|
+
feeQuote: SendOnchainFeeQuote;
|
|
2805
|
+
}): {
|
|
2806
|
+
readonly tag: SendPaymentMethod_Tags.BitcoinAddress;
|
|
2807
|
+
readonly inner: Readonly<{
|
|
2808
|
+
address: BitcoinAddressDetails;
|
|
2809
|
+
feeQuote: SendOnchainFeeQuote;
|
|
2810
|
+
}>;
|
|
2811
|
+
/**
|
|
2812
|
+
* @private
|
|
2813
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2814
|
+
*/
|
|
2815
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2816
|
+
};
|
|
2817
|
+
instanceOf(obj: any): obj is {
|
|
2818
|
+
readonly tag: SendPaymentMethod_Tags.BitcoinAddress;
|
|
2819
|
+
readonly inner: Readonly<{
|
|
2820
|
+
address: BitcoinAddressDetails;
|
|
2821
|
+
feeQuote: SendOnchainFeeQuote;
|
|
2822
|
+
}>;
|
|
2823
|
+
/**
|
|
2824
|
+
* @private
|
|
2825
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2826
|
+
*/
|
|
2827
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
Bolt11Invoice: {
|
|
2831
|
+
new (inner: {
|
|
2832
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
2833
|
+
sparkTransferFeeSats: /*u64*/ bigint | undefined;
|
|
2834
|
+
lightningFeeSats: bigint;
|
|
2835
|
+
}): {
|
|
2836
|
+
readonly tag: SendPaymentMethod_Tags.Bolt11Invoice;
|
|
2837
|
+
readonly inner: Readonly<{
|
|
2838
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
2839
|
+
sparkTransferFeeSats: /*u64*/ bigint | undefined;
|
|
2840
|
+
lightningFeeSats: bigint;
|
|
2841
|
+
}>;
|
|
2842
|
+
/**
|
|
2843
|
+
* @private
|
|
2844
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2845
|
+
*/
|
|
2846
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2847
|
+
};
|
|
2848
|
+
"new"(inner: {
|
|
2849
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
2850
|
+
sparkTransferFeeSats: /*u64*/ bigint | undefined;
|
|
2851
|
+
lightningFeeSats: bigint;
|
|
2852
|
+
}): {
|
|
2853
|
+
readonly tag: SendPaymentMethod_Tags.Bolt11Invoice;
|
|
2854
|
+
readonly inner: Readonly<{
|
|
2855
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
2856
|
+
sparkTransferFeeSats: /*u64*/ bigint | undefined;
|
|
2857
|
+
lightningFeeSats: bigint;
|
|
2858
|
+
}>;
|
|
2859
|
+
/**
|
|
2860
|
+
* @private
|
|
2861
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2862
|
+
*/
|
|
2863
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2864
|
+
};
|
|
2865
|
+
instanceOf(obj: any): obj is {
|
|
2866
|
+
readonly tag: SendPaymentMethod_Tags.Bolt11Invoice;
|
|
2867
|
+
readonly inner: Readonly<{
|
|
2868
|
+
invoiceDetails: Bolt11InvoiceDetails;
|
|
2869
|
+
sparkTransferFeeSats: /*u64*/ bigint | undefined;
|
|
2870
|
+
lightningFeeSats: bigint;
|
|
2871
|
+
}>;
|
|
2872
|
+
/**
|
|
2873
|
+
* @private
|
|
2874
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2875
|
+
*/
|
|
2876
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2877
|
+
};
|
|
2878
|
+
};
|
|
2879
|
+
SparkAddress: {
|
|
2880
|
+
new (inner: {
|
|
2881
|
+
address: string;
|
|
2882
|
+
feeSats: bigint;
|
|
2883
|
+
}): {
|
|
2884
|
+
readonly tag: SendPaymentMethod_Tags.SparkAddress;
|
|
2885
|
+
readonly inner: Readonly<{
|
|
2886
|
+
address: string;
|
|
2887
|
+
feeSats: bigint;
|
|
2888
|
+
}>;
|
|
2889
|
+
/**
|
|
2890
|
+
* @private
|
|
2891
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2892
|
+
*/
|
|
2893
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2894
|
+
};
|
|
2895
|
+
"new"(inner: {
|
|
2896
|
+
address: string;
|
|
2897
|
+
feeSats: bigint;
|
|
2898
|
+
}): {
|
|
2899
|
+
readonly tag: SendPaymentMethod_Tags.SparkAddress;
|
|
2900
|
+
readonly inner: Readonly<{
|
|
2901
|
+
address: string;
|
|
2902
|
+
feeSats: bigint;
|
|
2903
|
+
}>;
|
|
2904
|
+
/**
|
|
2905
|
+
* @private
|
|
2906
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2907
|
+
*/
|
|
2908
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2909
|
+
};
|
|
2910
|
+
instanceOf(obj: any): obj is {
|
|
2911
|
+
readonly tag: SendPaymentMethod_Tags.SparkAddress;
|
|
2912
|
+
readonly inner: Readonly<{
|
|
2913
|
+
address: string;
|
|
2914
|
+
feeSats: bigint;
|
|
2915
|
+
}>;
|
|
2916
|
+
/**
|
|
2917
|
+
* @private
|
|
2918
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2919
|
+
*/
|
|
2920
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentMethod";
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
2923
|
+
}>;
|
|
2924
|
+
export type SendPaymentMethod = InstanceType<(typeof SendPaymentMethod)[keyof Omit<typeof SendPaymentMethod, 'instanceOf'>]>;
|
|
2925
|
+
export declare enum SendPaymentOptions_Tags {
|
|
2926
|
+
BitcoinAddress = "BitcoinAddress",
|
|
2927
|
+
Bolt11Invoice = "Bolt11Invoice"
|
|
2928
|
+
}
|
|
2929
|
+
export declare const SendPaymentOptions: Readonly<{
|
|
2930
|
+
instanceOf: (obj: any) => obj is SendPaymentOptions;
|
|
2931
|
+
BitcoinAddress: {
|
|
2932
|
+
new (inner: {
|
|
2933
|
+
confirmationSpeed: OnchainConfirmationSpeed;
|
|
2934
|
+
}): {
|
|
2935
|
+
readonly tag: SendPaymentOptions_Tags.BitcoinAddress;
|
|
2936
|
+
readonly inner: Readonly<{
|
|
2937
|
+
confirmationSpeed: OnchainConfirmationSpeed;
|
|
2938
|
+
}>;
|
|
2939
|
+
/**
|
|
2940
|
+
* @private
|
|
2941
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2942
|
+
*/
|
|
2943
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
2944
|
+
};
|
|
2945
|
+
"new"(inner: {
|
|
2946
|
+
confirmationSpeed: OnchainConfirmationSpeed;
|
|
2947
|
+
}): {
|
|
2948
|
+
readonly tag: SendPaymentOptions_Tags.BitcoinAddress;
|
|
2949
|
+
readonly inner: Readonly<{
|
|
2950
|
+
confirmationSpeed: OnchainConfirmationSpeed;
|
|
2951
|
+
}>;
|
|
2952
|
+
/**
|
|
2953
|
+
* @private
|
|
2954
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2955
|
+
*/
|
|
2956
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
2957
|
+
};
|
|
2958
|
+
instanceOf(obj: any): obj is {
|
|
2959
|
+
readonly tag: SendPaymentOptions_Tags.BitcoinAddress;
|
|
2960
|
+
readonly inner: Readonly<{
|
|
2961
|
+
confirmationSpeed: OnchainConfirmationSpeed;
|
|
2962
|
+
}>;
|
|
2963
|
+
/**
|
|
2964
|
+
* @private
|
|
2965
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2966
|
+
*/
|
|
2967
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
2968
|
+
};
|
|
2969
|
+
};
|
|
2970
|
+
Bolt11Invoice: {
|
|
2971
|
+
new (inner: {
|
|
2972
|
+
useSpark: boolean;
|
|
2973
|
+
}): {
|
|
2974
|
+
readonly tag: SendPaymentOptions_Tags.Bolt11Invoice;
|
|
2975
|
+
readonly inner: Readonly<{
|
|
2976
|
+
useSpark: boolean;
|
|
2977
|
+
}>;
|
|
2978
|
+
/**
|
|
2979
|
+
* @private
|
|
2980
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2981
|
+
*/
|
|
2982
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
2983
|
+
};
|
|
2984
|
+
"new"(inner: {
|
|
2985
|
+
useSpark: boolean;
|
|
2986
|
+
}): {
|
|
2987
|
+
readonly tag: SendPaymentOptions_Tags.Bolt11Invoice;
|
|
2988
|
+
readonly inner: Readonly<{
|
|
2989
|
+
useSpark: boolean;
|
|
2990
|
+
}>;
|
|
2991
|
+
/**
|
|
2992
|
+
* @private
|
|
2993
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2994
|
+
*/
|
|
2995
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
2996
|
+
};
|
|
2997
|
+
instanceOf(obj: any): obj is {
|
|
2998
|
+
readonly tag: SendPaymentOptions_Tags.Bolt11Invoice;
|
|
2999
|
+
readonly inner: Readonly<{
|
|
3000
|
+
useSpark: boolean;
|
|
3001
|
+
}>;
|
|
3002
|
+
/**
|
|
3003
|
+
* @private
|
|
3004
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3005
|
+
*/
|
|
3006
|
+
readonly [uniffiTypeNameSymbol]: "SendPaymentOptions";
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
}>;
|
|
3010
|
+
export type SendPaymentOptions = InstanceType<(typeof SendPaymentOptions)[keyof Omit<typeof SendPaymentOptions, 'instanceOf'>]>;
|
|
3011
|
+
export declare enum StorageError_Tags {
|
|
3012
|
+
Implementation = "Implementation",
|
|
3013
|
+
InitializationError = "InitializationError",
|
|
3014
|
+
Serialization = "Serialization"
|
|
3015
|
+
}
|
|
3016
|
+
/**
|
|
3017
|
+
* Errors that can occur during storage operations
|
|
3018
|
+
*/
|
|
3019
|
+
export declare const StorageError: Readonly<{
|
|
3020
|
+
instanceOf: (obj: any) => obj is StorageError;
|
|
3021
|
+
Implementation: {
|
|
3022
|
+
new (v0: string): {
|
|
3023
|
+
readonly tag: StorageError_Tags.Implementation;
|
|
3024
|
+
readonly inner: Readonly<[string]>;
|
|
3025
|
+
/**
|
|
3026
|
+
* @private
|
|
3027
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3028
|
+
*/
|
|
3029
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3030
|
+
name: string;
|
|
3031
|
+
message: string;
|
|
3032
|
+
stack?: string;
|
|
3033
|
+
cause?: unknown;
|
|
3034
|
+
};
|
|
3035
|
+
"new"(v0: string): {
|
|
3036
|
+
readonly tag: StorageError_Tags.Implementation;
|
|
3037
|
+
readonly inner: Readonly<[string]>;
|
|
3038
|
+
/**
|
|
3039
|
+
* @private
|
|
3040
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3041
|
+
*/
|
|
3042
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3043
|
+
name: string;
|
|
3044
|
+
message: string;
|
|
3045
|
+
stack?: string;
|
|
3046
|
+
cause?: unknown;
|
|
3047
|
+
};
|
|
3048
|
+
instanceOf(obj: any): obj is {
|
|
3049
|
+
readonly tag: StorageError_Tags.Implementation;
|
|
3050
|
+
readonly inner: Readonly<[string]>;
|
|
3051
|
+
/**
|
|
3052
|
+
* @private
|
|
3053
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3054
|
+
*/
|
|
3055
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3056
|
+
name: string;
|
|
3057
|
+
message: string;
|
|
3058
|
+
stack?: string;
|
|
3059
|
+
cause?: unknown;
|
|
3060
|
+
};
|
|
3061
|
+
hasInner(obj: any): obj is {
|
|
3062
|
+
readonly tag: StorageError_Tags.Implementation;
|
|
3063
|
+
readonly inner: Readonly<[string]>;
|
|
3064
|
+
/**
|
|
3065
|
+
* @private
|
|
3066
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3067
|
+
*/
|
|
3068
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3069
|
+
name: string;
|
|
3070
|
+
message: string;
|
|
3071
|
+
stack?: string;
|
|
3072
|
+
cause?: unknown;
|
|
3073
|
+
};
|
|
3074
|
+
getInner(obj: {
|
|
3075
|
+
readonly tag: StorageError_Tags.Implementation;
|
|
3076
|
+
readonly inner: Readonly<[string]>;
|
|
3077
|
+
/**
|
|
3078
|
+
* @private
|
|
3079
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3080
|
+
*/
|
|
3081
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3082
|
+
name: string;
|
|
3083
|
+
message: string;
|
|
3084
|
+
stack?: string;
|
|
3085
|
+
cause?: unknown;
|
|
3086
|
+
}): Readonly<[string]>;
|
|
3087
|
+
isError(error: unknown): error is Error;
|
|
3088
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3089
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
3090
|
+
stackTraceLimit: number;
|
|
3091
|
+
};
|
|
3092
|
+
InitializationError: {
|
|
3093
|
+
new (v0: string): {
|
|
3094
|
+
readonly tag: StorageError_Tags.InitializationError;
|
|
3095
|
+
readonly inner: Readonly<[string]>;
|
|
3096
|
+
/**
|
|
3097
|
+
* @private
|
|
3098
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3099
|
+
*/
|
|
3100
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3101
|
+
name: string;
|
|
3102
|
+
message: string;
|
|
3103
|
+
stack?: string;
|
|
3104
|
+
cause?: unknown;
|
|
3105
|
+
};
|
|
3106
|
+
"new"(v0: string): {
|
|
3107
|
+
readonly tag: StorageError_Tags.InitializationError;
|
|
3108
|
+
readonly inner: Readonly<[string]>;
|
|
3109
|
+
/**
|
|
3110
|
+
* @private
|
|
3111
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3112
|
+
*/
|
|
3113
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3114
|
+
name: string;
|
|
3115
|
+
message: string;
|
|
3116
|
+
stack?: string;
|
|
3117
|
+
cause?: unknown;
|
|
3118
|
+
};
|
|
3119
|
+
instanceOf(obj: any): obj is {
|
|
3120
|
+
readonly tag: StorageError_Tags.InitializationError;
|
|
3121
|
+
readonly inner: Readonly<[string]>;
|
|
3122
|
+
/**
|
|
3123
|
+
* @private
|
|
3124
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3125
|
+
*/
|
|
3126
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3127
|
+
name: string;
|
|
3128
|
+
message: string;
|
|
3129
|
+
stack?: string;
|
|
3130
|
+
cause?: unknown;
|
|
3131
|
+
};
|
|
3132
|
+
hasInner(obj: any): obj is {
|
|
3133
|
+
readonly tag: StorageError_Tags.InitializationError;
|
|
3134
|
+
readonly inner: Readonly<[string]>;
|
|
3135
|
+
/**
|
|
3136
|
+
* @private
|
|
3137
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3138
|
+
*/
|
|
3139
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3140
|
+
name: string;
|
|
3141
|
+
message: string;
|
|
3142
|
+
stack?: string;
|
|
3143
|
+
cause?: unknown;
|
|
3144
|
+
};
|
|
3145
|
+
getInner(obj: {
|
|
3146
|
+
readonly tag: StorageError_Tags.InitializationError;
|
|
3147
|
+
readonly inner: Readonly<[string]>;
|
|
3148
|
+
/**
|
|
3149
|
+
* @private
|
|
3150
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3151
|
+
*/
|
|
3152
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3153
|
+
name: string;
|
|
3154
|
+
message: string;
|
|
3155
|
+
stack?: string;
|
|
3156
|
+
cause?: unknown;
|
|
3157
|
+
}): Readonly<[string]>;
|
|
3158
|
+
isError(error: unknown): error is Error;
|
|
3159
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3160
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
3161
|
+
stackTraceLimit: number;
|
|
3162
|
+
};
|
|
3163
|
+
Serialization: {
|
|
3164
|
+
new (v0: string): {
|
|
3165
|
+
readonly tag: StorageError_Tags.Serialization;
|
|
3166
|
+
readonly inner: Readonly<[string]>;
|
|
3167
|
+
/**
|
|
3168
|
+
* @private
|
|
3169
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3170
|
+
*/
|
|
3171
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3172
|
+
name: string;
|
|
3173
|
+
message: string;
|
|
3174
|
+
stack?: string;
|
|
3175
|
+
cause?: unknown;
|
|
3176
|
+
};
|
|
3177
|
+
"new"(v0: string): {
|
|
3178
|
+
readonly tag: StorageError_Tags.Serialization;
|
|
3179
|
+
readonly inner: Readonly<[string]>;
|
|
3180
|
+
/**
|
|
3181
|
+
* @private
|
|
3182
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3183
|
+
*/
|
|
3184
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3185
|
+
name: string;
|
|
3186
|
+
message: string;
|
|
3187
|
+
stack?: string;
|
|
3188
|
+
cause?: unknown;
|
|
3189
|
+
};
|
|
3190
|
+
instanceOf(obj: any): obj is {
|
|
3191
|
+
readonly tag: StorageError_Tags.Serialization;
|
|
3192
|
+
readonly inner: Readonly<[string]>;
|
|
3193
|
+
/**
|
|
3194
|
+
* @private
|
|
3195
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3196
|
+
*/
|
|
3197
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3198
|
+
name: string;
|
|
3199
|
+
message: string;
|
|
3200
|
+
stack?: string;
|
|
3201
|
+
cause?: unknown;
|
|
3202
|
+
};
|
|
3203
|
+
hasInner(obj: any): obj is {
|
|
3204
|
+
readonly tag: StorageError_Tags.Serialization;
|
|
3205
|
+
readonly inner: Readonly<[string]>;
|
|
3206
|
+
/**
|
|
3207
|
+
* @private
|
|
3208
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3209
|
+
*/
|
|
3210
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3211
|
+
name: string;
|
|
3212
|
+
message: string;
|
|
3213
|
+
stack?: string;
|
|
3214
|
+
cause?: unknown;
|
|
3215
|
+
};
|
|
3216
|
+
getInner(obj: {
|
|
3217
|
+
readonly tag: StorageError_Tags.Serialization;
|
|
3218
|
+
readonly inner: Readonly<[string]>;
|
|
3219
|
+
/**
|
|
3220
|
+
* @private
|
|
3221
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3222
|
+
*/
|
|
3223
|
+
readonly [uniffiTypeNameSymbol]: "StorageError";
|
|
3224
|
+
name: string;
|
|
3225
|
+
message: string;
|
|
3226
|
+
stack?: string;
|
|
3227
|
+
cause?: unknown;
|
|
3228
|
+
}): Readonly<[string]>;
|
|
3229
|
+
isError(error: unknown): error is Error;
|
|
3230
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
3231
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
3232
|
+
stackTraceLimit: number;
|
|
3233
|
+
};
|
|
3234
|
+
}>;
|
|
3235
|
+
/**
|
|
3236
|
+
* Errors that can occur during storage operations
|
|
3237
|
+
*/
|
|
3238
|
+
export type StorageError = InstanceType<(typeof StorageError)[keyof Omit<typeof StorageError, 'instanceOf'>]>;
|
|
3239
|
+
export declare enum UpdateDepositPayload_Tags {
|
|
3240
|
+
ClaimError = "ClaimError",
|
|
3241
|
+
Refund = "Refund"
|
|
3242
|
+
}
|
|
3243
|
+
export declare const UpdateDepositPayload: Readonly<{
|
|
3244
|
+
instanceOf: (obj: any) => obj is UpdateDepositPayload;
|
|
3245
|
+
ClaimError: {
|
|
3246
|
+
new (inner: {
|
|
3247
|
+
error: DepositClaimError;
|
|
3248
|
+
}): {
|
|
3249
|
+
readonly tag: UpdateDepositPayload_Tags.ClaimError;
|
|
3250
|
+
readonly inner: Readonly<{
|
|
3251
|
+
error: DepositClaimError;
|
|
3252
|
+
}>;
|
|
3253
|
+
/**
|
|
3254
|
+
* @private
|
|
3255
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3256
|
+
*/
|
|
3257
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3258
|
+
};
|
|
3259
|
+
"new"(inner: {
|
|
3260
|
+
error: DepositClaimError;
|
|
3261
|
+
}): {
|
|
3262
|
+
readonly tag: UpdateDepositPayload_Tags.ClaimError;
|
|
3263
|
+
readonly inner: Readonly<{
|
|
3264
|
+
error: DepositClaimError;
|
|
3265
|
+
}>;
|
|
3266
|
+
/**
|
|
3267
|
+
* @private
|
|
3268
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3269
|
+
*/
|
|
3270
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3271
|
+
};
|
|
3272
|
+
instanceOf(obj: any): obj is {
|
|
3273
|
+
readonly tag: UpdateDepositPayload_Tags.ClaimError;
|
|
3274
|
+
readonly inner: Readonly<{
|
|
3275
|
+
error: DepositClaimError;
|
|
3276
|
+
}>;
|
|
3277
|
+
/**
|
|
3278
|
+
* @private
|
|
3279
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3280
|
+
*/
|
|
3281
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3282
|
+
};
|
|
3283
|
+
};
|
|
3284
|
+
Refund: {
|
|
3285
|
+
new (inner: {
|
|
3286
|
+
refundTxid: string;
|
|
3287
|
+
refundTx: string;
|
|
3288
|
+
}): {
|
|
3289
|
+
readonly tag: UpdateDepositPayload_Tags.Refund;
|
|
3290
|
+
readonly inner: Readonly<{
|
|
3291
|
+
refundTxid: string;
|
|
3292
|
+
refundTx: string;
|
|
3293
|
+
}>;
|
|
3294
|
+
/**
|
|
3295
|
+
* @private
|
|
3296
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3297
|
+
*/
|
|
3298
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3299
|
+
};
|
|
3300
|
+
"new"(inner: {
|
|
3301
|
+
refundTxid: string;
|
|
3302
|
+
refundTx: string;
|
|
3303
|
+
}): {
|
|
3304
|
+
readonly tag: UpdateDepositPayload_Tags.Refund;
|
|
3305
|
+
readonly inner: Readonly<{
|
|
3306
|
+
refundTxid: string;
|
|
3307
|
+
refundTx: string;
|
|
3308
|
+
}>;
|
|
3309
|
+
/**
|
|
3310
|
+
* @private
|
|
3311
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3312
|
+
*/
|
|
3313
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3314
|
+
};
|
|
3315
|
+
instanceOf(obj: any): obj is {
|
|
3316
|
+
readonly tag: UpdateDepositPayload_Tags.Refund;
|
|
3317
|
+
readonly inner: Readonly<{
|
|
3318
|
+
refundTxid: string;
|
|
3319
|
+
refundTx: string;
|
|
3320
|
+
}>;
|
|
3321
|
+
/**
|
|
3322
|
+
* @private
|
|
3323
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3324
|
+
*/
|
|
3325
|
+
readonly [uniffiTypeNameSymbol]: "UpdateDepositPayload";
|
|
3326
|
+
};
|
|
3327
|
+
};
|
|
3328
|
+
}>;
|
|
3329
|
+
export type UpdateDepositPayload = InstanceType<(typeof UpdateDepositPayload)[keyof Omit<typeof UpdateDepositPayload, 'instanceOf'>]>;
|
|
3330
|
+
export interface BitcoinChainService {
|
|
3331
|
+
getAddressUtxos(address: string, asyncOpts_?: {
|
|
3332
|
+
signal: AbortSignal;
|
|
3333
|
+
}): Promise<Array<Utxo>>;
|
|
3334
|
+
getTransactionHex(txid: string, asyncOpts_?: {
|
|
3335
|
+
signal: AbortSignal;
|
|
3336
|
+
}): Promise<string>;
|
|
3337
|
+
broadcastTransaction(tx: string, asyncOpts_?: {
|
|
3338
|
+
signal: AbortSignal;
|
|
3339
|
+
}): Promise<void>;
|
|
3340
|
+
}
|
|
3341
|
+
export declare class BitcoinChainServiceImpl extends UniffiAbstractObject implements BitcoinChainService {
|
|
3342
|
+
readonly [uniffiTypeNameSymbol] = "BitcoinChainServiceImpl";
|
|
3343
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3344
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3345
|
+
private constructor();
|
|
3346
|
+
getAddressUtxos(address: string, asyncOpts_?: {
|
|
3347
|
+
signal: AbortSignal;
|
|
3348
|
+
}): Promise<Array<Utxo>>;
|
|
3349
|
+
getTransactionHex(txid: string, asyncOpts_?: {
|
|
3350
|
+
signal: AbortSignal;
|
|
3351
|
+
}): Promise<string>;
|
|
3352
|
+
broadcastTransaction(tx: string, asyncOpts_?: {
|
|
3353
|
+
signal: AbortSignal;
|
|
3354
|
+
}): Promise<void>;
|
|
3355
|
+
/**
|
|
3356
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3357
|
+
*/
|
|
3358
|
+
uniffiDestroy(): void;
|
|
3359
|
+
static instanceOf(obj: any): obj is BitcoinChainServiceImpl;
|
|
3360
|
+
}
|
|
3361
|
+
/**
|
|
3362
|
+
* `BreezSDK` is a wrapper around `SparkSDK` that provides a more structured API
|
|
3363
|
+
* with request/response objects and comprehensive error handling.
|
|
3364
|
+
*/
|
|
3365
|
+
export interface BreezSdkInterface {
|
|
3366
|
+
/**
|
|
3367
|
+
* Registers a listener to receive SDK events
|
|
3368
|
+
*
|
|
3369
|
+
* # Arguments
|
|
3370
|
+
*
|
|
3371
|
+
* * `listener` - An implementation of the `EventListener` trait
|
|
3372
|
+
*
|
|
3373
|
+
* # Returns
|
|
3374
|
+
*
|
|
3375
|
+
* A unique identifier for the listener, which can be used to remove it later
|
|
3376
|
+
*/
|
|
3377
|
+
addEventListener(listener: EventListener): string;
|
|
3378
|
+
checkLightningAddressAvailable(req: CheckLightningAddressRequest, asyncOpts_?: {
|
|
3379
|
+
signal: AbortSignal;
|
|
3380
|
+
}): Promise<boolean>;
|
|
3381
|
+
claimDeposit(request: ClaimDepositRequest, asyncOpts_?: {
|
|
3382
|
+
signal: AbortSignal;
|
|
3383
|
+
}): Promise<ClaimDepositResponse>;
|
|
3384
|
+
deleteLightningAddress(asyncOpts_?: {
|
|
3385
|
+
signal: AbortSignal;
|
|
3386
|
+
}): Promise<void>;
|
|
3387
|
+
/**
|
|
3388
|
+
* Stops the SDK's background tasks
|
|
3389
|
+
*
|
|
3390
|
+
* This method stops the background tasks started by the `start()` method.
|
|
3391
|
+
* It should be called before your application terminates to ensure proper cleanup.
|
|
3392
|
+
*
|
|
3393
|
+
* # Returns
|
|
3394
|
+
*
|
|
3395
|
+
* Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
3396
|
+
*/
|
|
3397
|
+
disconnect(): void;
|
|
3398
|
+
/**
|
|
3399
|
+
* Returns the balance of the wallet in satoshis
|
|
3400
|
+
*/
|
|
3401
|
+
getInfo(request: GetInfoRequest, asyncOpts_?: {
|
|
3402
|
+
signal: AbortSignal;
|
|
3403
|
+
}): Promise<GetInfoResponse>;
|
|
3404
|
+
getLightningAddress(asyncOpts_?: {
|
|
3405
|
+
signal: AbortSignal;
|
|
3406
|
+
}): Promise<LightningAddressInfo | undefined>;
|
|
3407
|
+
getPayment(request: GetPaymentRequest, asyncOpts_?: {
|
|
3408
|
+
signal: AbortSignal;
|
|
3409
|
+
}): Promise<GetPaymentResponse>;
|
|
3410
|
+
/**
|
|
3411
|
+
* Lists payments from the storage with pagination
|
|
3412
|
+
*
|
|
3413
|
+
* This method provides direct access to the payment history stored in the database.
|
|
3414
|
+
* It returns payments in reverse chronological order (newest first).
|
|
3415
|
+
*
|
|
3416
|
+
* # Arguments
|
|
3417
|
+
*
|
|
3418
|
+
* * `request` - Contains pagination parameters (offset and limit)
|
|
3419
|
+
*
|
|
3420
|
+
* # Returns
|
|
3421
|
+
*
|
|
3422
|
+
* * `Ok(ListPaymentsResponse)` - Contains the list of payments if successful
|
|
3423
|
+
* * `Err(SdkError)` - If there was an error accessing the storage
|
|
3424
|
+
|
|
3425
|
+
*/
|
|
3426
|
+
listPayments(request: ListPaymentsRequest, asyncOpts_?: {
|
|
3427
|
+
signal: AbortSignal;
|
|
3428
|
+
}): Promise<ListPaymentsResponse>;
|
|
3429
|
+
listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
|
|
3430
|
+
signal: AbortSignal;
|
|
3431
|
+
}): Promise<ListUnclaimedDepositsResponse>;
|
|
3432
|
+
lnurlPay(request: LnurlPayRequest, asyncOpts_?: {
|
|
3433
|
+
signal: AbortSignal;
|
|
3434
|
+
}): Promise<LnurlPayResponse>;
|
|
3435
|
+
pollLightningSendPayment(paymentId: string): void;
|
|
3436
|
+
prepareLnurlPay(request: PrepareLnurlPayRequest, asyncOpts_?: {
|
|
3437
|
+
signal: AbortSignal;
|
|
3438
|
+
}): Promise<PrepareLnurlPayResponse>;
|
|
3439
|
+
prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
|
|
3440
|
+
signal: AbortSignal;
|
|
3441
|
+
}): Promise<PrepareSendPaymentResponse>;
|
|
3442
|
+
receivePayment(request: ReceivePaymentRequest, asyncOpts_?: {
|
|
3443
|
+
signal: AbortSignal;
|
|
3444
|
+
}): Promise<ReceivePaymentResponse>;
|
|
3445
|
+
/**
|
|
3446
|
+
* Attempts to recover a lightning address from the lnurl server.
|
|
3447
|
+
*/
|
|
3448
|
+
recoverLightningAddress(asyncOpts_?: {
|
|
3449
|
+
signal: AbortSignal;
|
|
3450
|
+
}): Promise<LightningAddressInfo | undefined>;
|
|
3451
|
+
refundDeposit(request: RefundDepositRequest, asyncOpts_?: {
|
|
3452
|
+
signal: AbortSignal;
|
|
3453
|
+
}): Promise<RefundDepositResponse>;
|
|
3454
|
+
registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
|
|
3455
|
+
signal: AbortSignal;
|
|
3456
|
+
}): Promise<LightningAddressInfo>;
|
|
3457
|
+
/**
|
|
3458
|
+
* Removes a previously registered event listener
|
|
3459
|
+
*
|
|
3460
|
+
* # Arguments
|
|
3461
|
+
*
|
|
3462
|
+
* * `id` - The listener ID returned from `add_event_listener`
|
|
3463
|
+
*
|
|
3464
|
+
* # Returns
|
|
3465
|
+
*
|
|
3466
|
+
* `true` if the listener was found and removed, `false` otherwise
|
|
3467
|
+
*/
|
|
3468
|
+
removeEventListener(id: string): boolean;
|
|
3469
|
+
sendPayment(request: SendPaymentRequest, asyncOpts_?: {
|
|
3470
|
+
signal: AbortSignal;
|
|
3471
|
+
}): Promise<SendPaymentResponse>;
|
|
3472
|
+
sendPaymentInternal(request: SendPaymentRequest, suppressPaymentEvent: boolean, asyncOpts_?: {
|
|
3473
|
+
signal: AbortSignal;
|
|
3474
|
+
}): Promise<SendPaymentResponse>;
|
|
3475
|
+
/**
|
|
3476
|
+
* Synchronizes the wallet with the Spark network
|
|
3477
|
+
*/
|
|
3478
|
+
syncWallet(request: SyncWalletRequest): SyncWalletResponse;
|
|
3479
|
+
}
|
|
3480
|
+
/**
|
|
3481
|
+
* `BreezSDK` is a wrapper around `SparkSDK` that provides a more structured API
|
|
3482
|
+
* with request/response objects and comprehensive error handling.
|
|
3483
|
+
*/
|
|
3484
|
+
export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkInterface {
|
|
3485
|
+
readonly [uniffiTypeNameSymbol] = "BreezSdk";
|
|
3486
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3487
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3488
|
+
private constructor();
|
|
3489
|
+
/**
|
|
3490
|
+
* Registers a listener to receive SDK events
|
|
3491
|
+
*
|
|
3492
|
+
* # Arguments
|
|
3493
|
+
*
|
|
3494
|
+
* * `listener` - An implementation of the `EventListener` trait
|
|
3495
|
+
*
|
|
3496
|
+
* # Returns
|
|
3497
|
+
*
|
|
3498
|
+
* A unique identifier for the listener, which can be used to remove it later
|
|
3499
|
+
*/
|
|
3500
|
+
addEventListener(listener: EventListener): string;
|
|
3501
|
+
checkLightningAddressAvailable(req: CheckLightningAddressRequest, asyncOpts_?: {
|
|
3502
|
+
signal: AbortSignal;
|
|
3503
|
+
}): Promise<boolean>;
|
|
3504
|
+
claimDeposit(request: ClaimDepositRequest, asyncOpts_?: {
|
|
3505
|
+
signal: AbortSignal;
|
|
3506
|
+
}): Promise<ClaimDepositResponse>;
|
|
3507
|
+
deleteLightningAddress(asyncOpts_?: {
|
|
3508
|
+
signal: AbortSignal;
|
|
3509
|
+
}): Promise<void>;
|
|
3510
|
+
/**
|
|
3511
|
+
* Stops the SDK's background tasks
|
|
3512
|
+
*
|
|
3513
|
+
* This method stops the background tasks started by the `start()` method.
|
|
3514
|
+
* It should be called before your application terminates to ensure proper cleanup.
|
|
3515
|
+
*
|
|
3516
|
+
* # Returns
|
|
3517
|
+
*
|
|
3518
|
+
* Result containing either success or an `SdkError` if the background task couldn't be stopped
|
|
3519
|
+
*/
|
|
3520
|
+
disconnect(): void;
|
|
3521
|
+
/**
|
|
3522
|
+
* Returns the balance of the wallet in satoshis
|
|
3523
|
+
*/
|
|
3524
|
+
getInfo(request: GetInfoRequest, asyncOpts_?: {
|
|
3525
|
+
signal: AbortSignal;
|
|
3526
|
+
}): Promise<GetInfoResponse>;
|
|
3527
|
+
getLightningAddress(asyncOpts_?: {
|
|
3528
|
+
signal: AbortSignal;
|
|
3529
|
+
}): Promise<LightningAddressInfo | undefined>;
|
|
3530
|
+
getPayment(request: GetPaymentRequest, asyncOpts_?: {
|
|
3531
|
+
signal: AbortSignal;
|
|
3532
|
+
}): Promise<GetPaymentResponse>;
|
|
3533
|
+
/**
|
|
3534
|
+
* Lists payments from the storage with pagination
|
|
3535
|
+
*
|
|
3536
|
+
* This method provides direct access to the payment history stored in the database.
|
|
3537
|
+
* It returns payments in reverse chronological order (newest first).
|
|
3538
|
+
*
|
|
3539
|
+
* # Arguments
|
|
3540
|
+
*
|
|
3541
|
+
* * `request` - Contains pagination parameters (offset and limit)
|
|
3542
|
+
*
|
|
3543
|
+
* # Returns
|
|
3544
|
+
*
|
|
3545
|
+
* * `Ok(ListPaymentsResponse)` - Contains the list of payments if successful
|
|
3546
|
+
* * `Err(SdkError)` - If there was an error accessing the storage
|
|
3547
|
+
|
|
3548
|
+
*/
|
|
3549
|
+
listPayments(request: ListPaymentsRequest, asyncOpts_?: {
|
|
3550
|
+
signal: AbortSignal;
|
|
3551
|
+
}): Promise<ListPaymentsResponse>;
|
|
3552
|
+
listUnclaimedDeposits(request: ListUnclaimedDepositsRequest, asyncOpts_?: {
|
|
3553
|
+
signal: AbortSignal;
|
|
3554
|
+
}): Promise<ListUnclaimedDepositsResponse>;
|
|
3555
|
+
lnurlPay(request: LnurlPayRequest, asyncOpts_?: {
|
|
3556
|
+
signal: AbortSignal;
|
|
3557
|
+
}): Promise<LnurlPayResponse>;
|
|
3558
|
+
pollLightningSendPayment(paymentId: string): void;
|
|
3559
|
+
prepareLnurlPay(request: PrepareLnurlPayRequest, asyncOpts_?: {
|
|
3560
|
+
signal: AbortSignal;
|
|
3561
|
+
}): Promise<PrepareLnurlPayResponse>;
|
|
3562
|
+
prepareSendPayment(request: PrepareSendPaymentRequest, asyncOpts_?: {
|
|
3563
|
+
signal: AbortSignal;
|
|
3564
|
+
}): Promise<PrepareSendPaymentResponse>;
|
|
3565
|
+
receivePayment(request: ReceivePaymentRequest, asyncOpts_?: {
|
|
3566
|
+
signal: AbortSignal;
|
|
3567
|
+
}): Promise<ReceivePaymentResponse>;
|
|
3568
|
+
/**
|
|
3569
|
+
* Attempts to recover a lightning address from the lnurl server.
|
|
3570
|
+
*/
|
|
3571
|
+
recoverLightningAddress(asyncOpts_?: {
|
|
3572
|
+
signal: AbortSignal;
|
|
3573
|
+
}): Promise<LightningAddressInfo | undefined>;
|
|
3574
|
+
refundDeposit(request: RefundDepositRequest, asyncOpts_?: {
|
|
3575
|
+
signal: AbortSignal;
|
|
3576
|
+
}): Promise<RefundDepositResponse>;
|
|
3577
|
+
registerLightningAddress(request: RegisterLightningAddressRequest, asyncOpts_?: {
|
|
3578
|
+
signal: AbortSignal;
|
|
3579
|
+
}): Promise<LightningAddressInfo>;
|
|
3580
|
+
/**
|
|
3581
|
+
* Removes a previously registered event listener
|
|
3582
|
+
*
|
|
3583
|
+
* # Arguments
|
|
3584
|
+
*
|
|
3585
|
+
* * `id` - The listener ID returned from `add_event_listener`
|
|
3586
|
+
*
|
|
3587
|
+
* # Returns
|
|
3588
|
+
*
|
|
3589
|
+
* `true` if the listener was found and removed, `false` otherwise
|
|
3590
|
+
*/
|
|
3591
|
+
removeEventListener(id: string): boolean;
|
|
3592
|
+
sendPayment(request: SendPaymentRequest, asyncOpts_?: {
|
|
3593
|
+
signal: AbortSignal;
|
|
3594
|
+
}): Promise<SendPaymentResponse>;
|
|
3595
|
+
sendPaymentInternal(request: SendPaymentRequest, suppressPaymentEvent: boolean, asyncOpts_?: {
|
|
3596
|
+
signal: AbortSignal;
|
|
3597
|
+
}): Promise<SendPaymentResponse>;
|
|
3598
|
+
/**
|
|
3599
|
+
* Synchronizes the wallet with the Spark network
|
|
3600
|
+
*/
|
|
3601
|
+
syncWallet(request: SyncWalletRequest): SyncWalletResponse;
|
|
3602
|
+
/**
|
|
3603
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3604
|
+
*/
|
|
3605
|
+
uniffiDestroy(): void;
|
|
3606
|
+
static instanceOf(obj: any): obj is BreezSdk;
|
|
3607
|
+
}
|
|
3608
|
+
/**
|
|
3609
|
+
* Builder for creating `BreezSdk` instances with customizable components.
|
|
3610
|
+
*/
|
|
3611
|
+
export interface SdkBuilderInterface {
|
|
3612
|
+
/**
|
|
3613
|
+
* Builds the `BreezSdk` instance with the configured components.
|
|
3614
|
+
*/
|
|
3615
|
+
build(asyncOpts_?: {
|
|
3616
|
+
signal: AbortSignal;
|
|
3617
|
+
}): Promise<BreezSdkInterface>;
|
|
3618
|
+
/**
|
|
3619
|
+
* Sets the chain service to be used by the SDK.
|
|
3620
|
+
* Arguments:
|
|
3621
|
+
* - `chain_service`: The chain service to be used.
|
|
3622
|
+
*/
|
|
3623
|
+
withChainService(chainService: BitcoinChainService, asyncOpts_?: {
|
|
3624
|
+
signal: AbortSignal;
|
|
3625
|
+
}): Promise<void>;
|
|
3626
|
+
withLnurlClient(lnurlClient: RestClient, asyncOpts_?: {
|
|
3627
|
+
signal: AbortSignal;
|
|
3628
|
+
}): Promise<void>;
|
|
3629
|
+
/**
|
|
3630
|
+
* Sets the REST chain service to be used by the SDK.
|
|
3631
|
+
* Arguments:
|
|
3632
|
+
* - `url`: The base URL of the REST API.
|
|
3633
|
+
* - `credentials`: Optional credentials for basic authentication.
|
|
3634
|
+
*/
|
|
3635
|
+
withRestChainService(url: string, credentials: Credentials | undefined, asyncOpts_?: {
|
|
3636
|
+
signal: AbortSignal;
|
|
3637
|
+
}): Promise<void>;
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* Builder for creating `BreezSdk` instances with customizable components.
|
|
3641
|
+
*/
|
|
3642
|
+
export declare class SdkBuilder extends UniffiAbstractObject implements SdkBuilderInterface {
|
|
3643
|
+
readonly [uniffiTypeNameSymbol] = "SdkBuilder";
|
|
3644
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3645
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3646
|
+
/**
|
|
3647
|
+
* Creates a new `SdkBuilder` with the provided configuration.
|
|
3648
|
+
* Arguments:
|
|
3649
|
+
* - `config`: The configuration to be used.
|
|
3650
|
+
* - `mnemonic`: The mnemonic phrase for the wallet.
|
|
3651
|
+
* - `storage`: The storage backend to be used.
|
|
3652
|
+
*/
|
|
3653
|
+
constructor(config: Config, mnemonic: string, storage: Storage);
|
|
3654
|
+
/**
|
|
3655
|
+
* Builds the `BreezSdk` instance with the configured components.
|
|
3656
|
+
*/
|
|
3657
|
+
build(asyncOpts_?: {
|
|
3658
|
+
signal: AbortSignal;
|
|
3659
|
+
}): Promise<BreezSdkInterface>;
|
|
3660
|
+
/**
|
|
3661
|
+
* Sets the chain service to be used by the SDK.
|
|
3662
|
+
* Arguments:
|
|
3663
|
+
* - `chain_service`: The chain service to be used.
|
|
3664
|
+
*/
|
|
3665
|
+
withChainService(chainService: BitcoinChainService, asyncOpts_?: {
|
|
3666
|
+
signal: AbortSignal;
|
|
3667
|
+
}): Promise<void>;
|
|
3668
|
+
withLnurlClient(lnurlClient: RestClient, asyncOpts_?: {
|
|
3669
|
+
signal: AbortSignal;
|
|
3670
|
+
}): Promise<void>;
|
|
3671
|
+
/**
|
|
3672
|
+
* Sets the REST chain service to be used by the SDK.
|
|
3673
|
+
* Arguments:
|
|
3674
|
+
* - `url`: The base URL of the REST API.
|
|
3675
|
+
* - `credentials`: Optional credentials for basic authentication.
|
|
3676
|
+
*/
|
|
3677
|
+
withRestChainService(url: string, credentials: Credentials | undefined, asyncOpts_?: {
|
|
3678
|
+
signal: AbortSignal;
|
|
3679
|
+
}): Promise<void>;
|
|
3680
|
+
/**
|
|
3681
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3682
|
+
*/
|
|
3683
|
+
uniffiDestroy(): void;
|
|
3684
|
+
static instanceOf(obj: any): obj is SdkBuilder;
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* Trait for persistent storage
|
|
3688
|
+
*/
|
|
3689
|
+
export interface Storage {
|
|
3690
|
+
deleteCachedItem(key: string, asyncOpts_?: {
|
|
3691
|
+
signal: AbortSignal;
|
|
3692
|
+
}): Promise<void>;
|
|
3693
|
+
getCachedItem(key: string, asyncOpts_?: {
|
|
3694
|
+
signal: AbortSignal;
|
|
3695
|
+
}): Promise<string | undefined>;
|
|
3696
|
+
setCachedItem(key: string, value: string, asyncOpts_?: {
|
|
3697
|
+
signal: AbortSignal;
|
|
3698
|
+
}): Promise<void>;
|
|
3699
|
+
/**
|
|
3700
|
+
* Lists payments with pagination
|
|
3701
|
+
*
|
|
3702
|
+
* # Arguments
|
|
3703
|
+
*
|
|
3704
|
+
* * `offset` - Number of records to skip
|
|
3705
|
+
* * `limit` - Maximum number of records to return
|
|
3706
|
+
*
|
|
3707
|
+
* # Returns
|
|
3708
|
+
*
|
|
3709
|
+
* A vector of payments or a `StorageError`
|
|
3710
|
+
*/
|
|
3711
|
+
listPayments(offset: /*u32*/ number | undefined, limit: /*u32*/ number | undefined, asyncOpts_?: {
|
|
3712
|
+
signal: AbortSignal;
|
|
3713
|
+
}): Promise<Array<Payment>>;
|
|
3714
|
+
/**
|
|
3715
|
+
* Inserts a payment into storage
|
|
3716
|
+
*
|
|
3717
|
+
* # Arguments
|
|
3718
|
+
*
|
|
3719
|
+
* * `payment` - The payment to insert
|
|
3720
|
+
*
|
|
3721
|
+
* # Returns
|
|
3722
|
+
*
|
|
3723
|
+
* Success or a `StorageError`
|
|
3724
|
+
*/
|
|
3725
|
+
insertPayment(payment: Payment, asyncOpts_?: {
|
|
3726
|
+
signal: AbortSignal;
|
|
3727
|
+
}): Promise<void>;
|
|
3728
|
+
/**
|
|
3729
|
+
* Inserts payment metadata into storage
|
|
3730
|
+
*
|
|
3731
|
+
* # Arguments
|
|
3732
|
+
*
|
|
3733
|
+
* * `payment_id` - The ID of the payment
|
|
3734
|
+
* * `metadata` - The metadata to insert
|
|
3735
|
+
*
|
|
3736
|
+
* # Returns
|
|
3737
|
+
*
|
|
3738
|
+
* Success or a `StorageError`
|
|
3739
|
+
*/
|
|
3740
|
+
setPaymentMetadata(paymentId: string, metadata: PaymentMetadata, asyncOpts_?: {
|
|
3741
|
+
signal: AbortSignal;
|
|
3742
|
+
}): Promise<void>;
|
|
3743
|
+
/**
|
|
3744
|
+
* Gets a payment by its ID
|
|
3745
|
+
* # Arguments
|
|
3746
|
+
*
|
|
3747
|
+
* * `id` - The ID of the payment to retrieve
|
|
3748
|
+
*
|
|
3749
|
+
* # Returns
|
|
3750
|
+
*
|
|
3751
|
+
* The payment if found or None if not found
|
|
3752
|
+
*/
|
|
3753
|
+
getPaymentById(id: string, asyncOpts_?: {
|
|
3754
|
+
signal: AbortSignal;
|
|
3755
|
+
}): Promise<Payment>;
|
|
3756
|
+
/**
|
|
3757
|
+
* Add a deposit to storage
|
|
3758
|
+
* # Arguments
|
|
3759
|
+
*
|
|
3760
|
+
* * `txid` - The transaction ID of the deposit
|
|
3761
|
+
* * `vout` - The output index of the deposit
|
|
3762
|
+
* * `amount_sats` - The amount of the deposit in sats
|
|
3763
|
+
*
|
|
3764
|
+
* # Returns
|
|
3765
|
+
*
|
|
3766
|
+
* Success or a `StorageError`
|
|
3767
|
+
*/
|
|
3768
|
+
addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
|
|
3769
|
+
signal: AbortSignal;
|
|
3770
|
+
}): Promise<void>;
|
|
3771
|
+
/**
|
|
3772
|
+
* Removes an unclaimed deposit from storage
|
|
3773
|
+
* # Arguments
|
|
3774
|
+
*
|
|
3775
|
+
* * `txid` - The transaction ID of the deposit
|
|
3776
|
+
* * `vout` - The output index of the deposit
|
|
3777
|
+
*
|
|
3778
|
+
* # Returns
|
|
3779
|
+
*
|
|
3780
|
+
* Success or a `StorageError`
|
|
3781
|
+
*/
|
|
3782
|
+
deleteDeposit(txid: string, vout: number, asyncOpts_?: {
|
|
3783
|
+
signal: AbortSignal;
|
|
3784
|
+
}): Promise<void>;
|
|
3785
|
+
/**
|
|
3786
|
+
* Lists all unclaimed deposits from storage
|
|
3787
|
+
* # Returns
|
|
3788
|
+
*
|
|
3789
|
+
* A vector of `DepositInfo` or a `StorageError`
|
|
3790
|
+
*/
|
|
3791
|
+
listDeposits(asyncOpts_?: {
|
|
3792
|
+
signal: AbortSignal;
|
|
3793
|
+
}): Promise<Array<DepositInfo>>;
|
|
3794
|
+
/**
|
|
3795
|
+
* Updates or inserts unclaimed deposit details
|
|
3796
|
+
* # Arguments
|
|
3797
|
+
*
|
|
3798
|
+
* * `txid` - The transaction ID of the deposit
|
|
3799
|
+
* * `vout` - The output index of the deposit
|
|
3800
|
+
* * `payload` - The payload for the update
|
|
3801
|
+
*
|
|
3802
|
+
* # Returns
|
|
3803
|
+
*
|
|
3804
|
+
* Success or a `StorageError`
|
|
3805
|
+
*/
|
|
3806
|
+
updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
|
|
3807
|
+
signal: AbortSignal;
|
|
3808
|
+
}): Promise<void>;
|
|
3809
|
+
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Trait for persistent storage
|
|
3812
|
+
*/
|
|
3813
|
+
export declare class StorageImpl extends UniffiAbstractObject implements Storage {
|
|
3814
|
+
readonly [uniffiTypeNameSymbol] = "StorageImpl";
|
|
3815
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
3816
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
3817
|
+
private constructor();
|
|
3818
|
+
deleteCachedItem(key: string, asyncOpts_?: {
|
|
3819
|
+
signal: AbortSignal;
|
|
3820
|
+
}): Promise<void>;
|
|
3821
|
+
getCachedItem(key: string, asyncOpts_?: {
|
|
3822
|
+
signal: AbortSignal;
|
|
3823
|
+
}): Promise<string | undefined>;
|
|
3824
|
+
setCachedItem(key: string, value: string, asyncOpts_?: {
|
|
3825
|
+
signal: AbortSignal;
|
|
3826
|
+
}): Promise<void>;
|
|
3827
|
+
/**
|
|
3828
|
+
* Lists payments with pagination
|
|
3829
|
+
*
|
|
3830
|
+
* # Arguments
|
|
3831
|
+
*
|
|
3832
|
+
* * `offset` - Number of records to skip
|
|
3833
|
+
* * `limit` - Maximum number of records to return
|
|
3834
|
+
*
|
|
3835
|
+
* # Returns
|
|
3836
|
+
*
|
|
3837
|
+
* A vector of payments or a `StorageError`
|
|
3838
|
+
*/
|
|
3839
|
+
listPayments(offset: /*u32*/ number | undefined, limit: /*u32*/ number | undefined, asyncOpts_?: {
|
|
3840
|
+
signal: AbortSignal;
|
|
3841
|
+
}): Promise<Array<Payment>>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Inserts a payment into storage
|
|
3844
|
+
*
|
|
3845
|
+
* # Arguments
|
|
3846
|
+
*
|
|
3847
|
+
* * `payment` - The payment to insert
|
|
3848
|
+
*
|
|
3849
|
+
* # Returns
|
|
3850
|
+
*
|
|
3851
|
+
* Success or a `StorageError`
|
|
3852
|
+
*/
|
|
3853
|
+
insertPayment(payment: Payment, asyncOpts_?: {
|
|
3854
|
+
signal: AbortSignal;
|
|
3855
|
+
}): Promise<void>;
|
|
3856
|
+
/**
|
|
3857
|
+
* Inserts payment metadata into storage
|
|
3858
|
+
*
|
|
3859
|
+
* # Arguments
|
|
3860
|
+
*
|
|
3861
|
+
* * `payment_id` - The ID of the payment
|
|
3862
|
+
* * `metadata` - The metadata to insert
|
|
3863
|
+
*
|
|
3864
|
+
* # Returns
|
|
3865
|
+
*
|
|
3866
|
+
* Success or a `StorageError`
|
|
3867
|
+
*/
|
|
3868
|
+
setPaymentMetadata(paymentId: string, metadata: PaymentMetadata, asyncOpts_?: {
|
|
3869
|
+
signal: AbortSignal;
|
|
3870
|
+
}): Promise<void>;
|
|
3871
|
+
/**
|
|
3872
|
+
* Gets a payment by its ID
|
|
3873
|
+
* # Arguments
|
|
3874
|
+
*
|
|
3875
|
+
* * `id` - The ID of the payment to retrieve
|
|
3876
|
+
*
|
|
3877
|
+
* # Returns
|
|
3878
|
+
*
|
|
3879
|
+
* The payment if found or None if not found
|
|
3880
|
+
*/
|
|
3881
|
+
getPaymentById(id: string, asyncOpts_?: {
|
|
3882
|
+
signal: AbortSignal;
|
|
3883
|
+
}): Promise<Payment>;
|
|
3884
|
+
/**
|
|
3885
|
+
* Add a deposit to storage
|
|
3886
|
+
* # Arguments
|
|
3887
|
+
*
|
|
3888
|
+
* * `txid` - The transaction ID of the deposit
|
|
3889
|
+
* * `vout` - The output index of the deposit
|
|
3890
|
+
* * `amount_sats` - The amount of the deposit in sats
|
|
3891
|
+
*
|
|
3892
|
+
* # Returns
|
|
3893
|
+
*
|
|
3894
|
+
* Success or a `StorageError`
|
|
3895
|
+
*/
|
|
3896
|
+
addDeposit(txid: string, vout: number, amountSats: bigint, asyncOpts_?: {
|
|
3897
|
+
signal: AbortSignal;
|
|
3898
|
+
}): Promise<void>;
|
|
3899
|
+
/**
|
|
3900
|
+
* Removes an unclaimed deposit from storage
|
|
3901
|
+
* # Arguments
|
|
3902
|
+
*
|
|
3903
|
+
* * `txid` - The transaction ID of the deposit
|
|
3904
|
+
* * `vout` - The output index of the deposit
|
|
3905
|
+
*
|
|
3906
|
+
* # Returns
|
|
3907
|
+
*
|
|
3908
|
+
* Success or a `StorageError`
|
|
3909
|
+
*/
|
|
3910
|
+
deleteDeposit(txid: string, vout: number, asyncOpts_?: {
|
|
3911
|
+
signal: AbortSignal;
|
|
3912
|
+
}): Promise<void>;
|
|
3913
|
+
/**
|
|
3914
|
+
* Lists all unclaimed deposits from storage
|
|
3915
|
+
* # Returns
|
|
3916
|
+
*
|
|
3917
|
+
* A vector of `DepositInfo` or a `StorageError`
|
|
3918
|
+
*/
|
|
3919
|
+
listDeposits(asyncOpts_?: {
|
|
3920
|
+
signal: AbortSignal;
|
|
3921
|
+
}): Promise<Array<DepositInfo>>;
|
|
3922
|
+
/**
|
|
3923
|
+
* Updates or inserts unclaimed deposit details
|
|
3924
|
+
* # Arguments
|
|
3925
|
+
*
|
|
3926
|
+
* * `txid` - The transaction ID of the deposit
|
|
3927
|
+
* * `vout` - The output index of the deposit
|
|
3928
|
+
* * `payload` - The payload for the update
|
|
3929
|
+
*
|
|
3930
|
+
* # Returns
|
|
3931
|
+
*
|
|
3932
|
+
* Success or a `StorageError`
|
|
3933
|
+
*/
|
|
3934
|
+
updateDeposit(txid: string, vout: number, payload: UpdateDepositPayload, asyncOpts_?: {
|
|
3935
|
+
signal: AbortSignal;
|
|
3936
|
+
}): Promise<void>;
|
|
3937
|
+
/**
|
|
3938
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3939
|
+
*/
|
|
3940
|
+
uniffiDestroy(): void;
|
|
3941
|
+
static instanceOf(obj: any): obj is StorageImpl;
|
|
3942
|
+
}
|
|
3943
|
+
/**
|
|
3944
|
+
* This should be called before anything else.
|
|
3945
|
+
*
|
|
3946
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
3947
|
+
*
|
|
3948
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
3949
|
+
* and when the bindings were generated.
|
|
3950
|
+
*
|
|
3951
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
3952
|
+
*/
|
|
3953
|
+
declare function uniffiEnsureInitialized(): void;
|
|
3954
|
+
declare const _default: Readonly<{
|
|
3955
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
3956
|
+
converters: {
|
|
3957
|
+
FfiConverterTypeBitcoinChainService: FfiConverterObjectWithCallbacks<BitcoinChainService>;
|
|
3958
|
+
FfiConverterTypeBreezSdk: FfiConverterObject<BreezSdkInterface>;
|
|
3959
|
+
FfiConverterTypeCheckLightningAddressRequest: {
|
|
3960
|
+
read(from: RustBuffer): CheckLightningAddressRequest;
|
|
3961
|
+
write(value: CheckLightningAddressRequest, into: RustBuffer): void;
|
|
3962
|
+
allocationSize(value: CheckLightningAddressRequest): number;
|
|
3963
|
+
lift(value: UniffiByteArray): CheckLightningAddressRequest;
|
|
3964
|
+
lower(value: CheckLightningAddressRequest): UniffiByteArray;
|
|
3965
|
+
};
|
|
3966
|
+
FfiConverterTypeClaimDepositRequest: {
|
|
3967
|
+
read(from: RustBuffer): ClaimDepositRequest;
|
|
3968
|
+
write(value: ClaimDepositRequest, into: RustBuffer): void;
|
|
3969
|
+
allocationSize(value: ClaimDepositRequest): number;
|
|
3970
|
+
lift(value: UniffiByteArray): ClaimDepositRequest;
|
|
3971
|
+
lower(value: ClaimDepositRequest): UniffiByteArray;
|
|
3972
|
+
};
|
|
3973
|
+
FfiConverterTypeClaimDepositResponse: {
|
|
3974
|
+
read(from: RustBuffer): ClaimDepositResponse;
|
|
3975
|
+
write(value: ClaimDepositResponse, into: RustBuffer): void;
|
|
3976
|
+
allocationSize(value: ClaimDepositResponse): number;
|
|
3977
|
+
lift(value: UniffiByteArray): ClaimDepositResponse;
|
|
3978
|
+
lower(value: ClaimDepositResponse): UniffiByteArray;
|
|
3979
|
+
};
|
|
3980
|
+
FfiConverterTypeConfig: {
|
|
3981
|
+
read(from: RustBuffer): Config;
|
|
3982
|
+
write(value: Config, into: RustBuffer): void;
|
|
3983
|
+
allocationSize(value: Config): number;
|
|
3984
|
+
lift(value: UniffiByteArray): Config;
|
|
3985
|
+
lower(value: Config): UniffiByteArray;
|
|
3986
|
+
};
|
|
3987
|
+
FfiConverterTypeConnectRequest: {
|
|
3988
|
+
read(from: RustBuffer): ConnectRequest;
|
|
3989
|
+
write(value: ConnectRequest, into: RustBuffer): void;
|
|
3990
|
+
allocationSize(value: ConnectRequest): number;
|
|
3991
|
+
lift(value: UniffiByteArray): ConnectRequest;
|
|
3992
|
+
lower(value: ConnectRequest): UniffiByteArray;
|
|
3993
|
+
};
|
|
3994
|
+
FfiConverterTypeCredentials: {
|
|
3995
|
+
read(from: RustBuffer): Credentials;
|
|
3996
|
+
write(value: Credentials, into: RustBuffer): void;
|
|
3997
|
+
allocationSize(value: Credentials): number;
|
|
3998
|
+
lift(value: UniffiByteArray): Credentials;
|
|
3999
|
+
lower(value: Credentials): UniffiByteArray;
|
|
4000
|
+
};
|
|
4001
|
+
FfiConverterTypeDepositClaimError: {
|
|
4002
|
+
read(from: RustBuffer): DepositClaimError;
|
|
4003
|
+
write(value: DepositClaimError, into: RustBuffer): void;
|
|
4004
|
+
allocationSize(value: DepositClaimError): number;
|
|
4005
|
+
lift(value: UniffiByteArray): DepositClaimError;
|
|
4006
|
+
lower(value: DepositClaimError): UniffiByteArray;
|
|
4007
|
+
};
|
|
4008
|
+
FfiConverterTypeDepositInfo: {
|
|
4009
|
+
read(from: RustBuffer): DepositInfo;
|
|
4010
|
+
write(value: DepositInfo, into: RustBuffer): void;
|
|
4011
|
+
allocationSize(value: DepositInfo): number;
|
|
4012
|
+
lift(value: UniffiByteArray): DepositInfo;
|
|
4013
|
+
lower(value: DepositInfo): UniffiByteArray;
|
|
4014
|
+
};
|
|
4015
|
+
FfiConverterTypeFee: {
|
|
4016
|
+
read(from: RustBuffer): Fee;
|
|
4017
|
+
write(value: Fee, into: RustBuffer): void;
|
|
4018
|
+
allocationSize(value: Fee): number;
|
|
4019
|
+
lift(value: UniffiByteArray): Fee;
|
|
4020
|
+
lower(value: Fee): UniffiByteArray;
|
|
4021
|
+
};
|
|
4022
|
+
FfiConverterTypeGetInfoRequest: {
|
|
4023
|
+
read(from: RustBuffer): GetInfoRequest;
|
|
4024
|
+
write(value: GetInfoRequest, into: RustBuffer): void;
|
|
4025
|
+
allocationSize(value: GetInfoRequest): number;
|
|
4026
|
+
lift(value: UniffiByteArray): GetInfoRequest;
|
|
4027
|
+
lower(value: GetInfoRequest): UniffiByteArray;
|
|
4028
|
+
};
|
|
4029
|
+
FfiConverterTypeGetInfoResponse: {
|
|
4030
|
+
read(from: RustBuffer): GetInfoResponse;
|
|
4031
|
+
write(value: GetInfoResponse, into: RustBuffer): void;
|
|
4032
|
+
allocationSize(value: GetInfoResponse): number;
|
|
4033
|
+
lift(value: UniffiByteArray): GetInfoResponse;
|
|
4034
|
+
lower(value: GetInfoResponse): UniffiByteArray;
|
|
4035
|
+
};
|
|
4036
|
+
FfiConverterTypeGetPaymentRequest: {
|
|
4037
|
+
read(from: RustBuffer): GetPaymentRequest;
|
|
4038
|
+
write(value: GetPaymentRequest, into: RustBuffer): void;
|
|
4039
|
+
allocationSize(value: GetPaymentRequest): number;
|
|
4040
|
+
lift(value: UniffiByteArray): GetPaymentRequest;
|
|
4041
|
+
lower(value: GetPaymentRequest): UniffiByteArray;
|
|
4042
|
+
};
|
|
4043
|
+
FfiConverterTypeGetPaymentResponse: {
|
|
4044
|
+
read(from: RustBuffer): GetPaymentResponse;
|
|
4045
|
+
write(value: GetPaymentResponse, into: RustBuffer): void;
|
|
4046
|
+
allocationSize(value: GetPaymentResponse): number;
|
|
4047
|
+
lift(value: UniffiByteArray): GetPaymentResponse;
|
|
4048
|
+
lower(value: GetPaymentResponse): UniffiByteArray;
|
|
4049
|
+
};
|
|
4050
|
+
FfiConverterTypeLightningAddressInfo: {
|
|
4051
|
+
read(from: RustBuffer): LightningAddressInfo;
|
|
4052
|
+
write(value: LightningAddressInfo, into: RustBuffer): void;
|
|
4053
|
+
allocationSize(value: LightningAddressInfo): number;
|
|
4054
|
+
lift(value: UniffiByteArray): LightningAddressInfo;
|
|
4055
|
+
lower(value: LightningAddressInfo): UniffiByteArray;
|
|
4056
|
+
};
|
|
4057
|
+
FfiConverterTypeListPaymentsRequest: {
|
|
4058
|
+
read(from: RustBuffer): ListPaymentsRequest;
|
|
4059
|
+
write(value: ListPaymentsRequest, into: RustBuffer): void;
|
|
4060
|
+
allocationSize(value: ListPaymentsRequest): number;
|
|
4061
|
+
lift(value: UniffiByteArray): ListPaymentsRequest;
|
|
4062
|
+
lower(value: ListPaymentsRequest): UniffiByteArray;
|
|
4063
|
+
};
|
|
4064
|
+
FfiConverterTypeListPaymentsResponse: {
|
|
4065
|
+
read(from: RustBuffer): ListPaymentsResponse;
|
|
4066
|
+
write(value: ListPaymentsResponse, into: RustBuffer): void;
|
|
4067
|
+
allocationSize(value: ListPaymentsResponse): number;
|
|
4068
|
+
lift(value: UniffiByteArray): ListPaymentsResponse;
|
|
4069
|
+
lower(value: ListPaymentsResponse): UniffiByteArray;
|
|
4070
|
+
};
|
|
4071
|
+
FfiConverterTypeListUnclaimedDepositsRequest: {
|
|
4072
|
+
read(from: RustBuffer): ListUnclaimedDepositsRequest;
|
|
4073
|
+
write(value: ListUnclaimedDepositsRequest, into: RustBuffer): void;
|
|
4074
|
+
allocationSize(value: ListUnclaimedDepositsRequest): number;
|
|
4075
|
+
lift(value: UniffiByteArray): ListUnclaimedDepositsRequest;
|
|
4076
|
+
lower(value: ListUnclaimedDepositsRequest): UniffiByteArray;
|
|
4077
|
+
};
|
|
4078
|
+
FfiConverterTypeListUnclaimedDepositsResponse: {
|
|
4079
|
+
read(from: RustBuffer): ListUnclaimedDepositsResponse;
|
|
4080
|
+
write(value: ListUnclaimedDepositsResponse, into: RustBuffer): void;
|
|
4081
|
+
allocationSize(value: ListUnclaimedDepositsResponse): number;
|
|
4082
|
+
lift(value: UniffiByteArray): ListUnclaimedDepositsResponse;
|
|
4083
|
+
lower(value: ListUnclaimedDepositsResponse): UniffiByteArray;
|
|
4084
|
+
};
|
|
4085
|
+
FfiConverterTypeLnurlPayInfo: {
|
|
4086
|
+
read(from: RustBuffer): LnurlPayInfo;
|
|
4087
|
+
write(value: LnurlPayInfo, into: RustBuffer): void;
|
|
4088
|
+
allocationSize(value: LnurlPayInfo): number;
|
|
4089
|
+
lift(value: UniffiByteArray): LnurlPayInfo;
|
|
4090
|
+
lower(value: LnurlPayInfo): UniffiByteArray;
|
|
4091
|
+
};
|
|
4092
|
+
FfiConverterTypeLnurlPayRequest: {
|
|
4093
|
+
read(from: RustBuffer): LnurlPayRequest;
|
|
4094
|
+
write(value: LnurlPayRequest, into: RustBuffer): void;
|
|
4095
|
+
allocationSize(value: LnurlPayRequest): number;
|
|
4096
|
+
lift(value: UniffiByteArray): LnurlPayRequest;
|
|
4097
|
+
lower(value: LnurlPayRequest): UniffiByteArray;
|
|
4098
|
+
};
|
|
4099
|
+
FfiConverterTypeLnurlPayResponse: {
|
|
4100
|
+
read(from: RustBuffer): LnurlPayResponse;
|
|
4101
|
+
write(value: LnurlPayResponse, into: RustBuffer): void;
|
|
4102
|
+
allocationSize(value: LnurlPayResponse): number;
|
|
4103
|
+
lift(value: UniffiByteArray): LnurlPayResponse;
|
|
4104
|
+
lower(value: LnurlPayResponse): UniffiByteArray;
|
|
4105
|
+
};
|
|
4106
|
+
FfiConverterTypeLogEntry: {
|
|
4107
|
+
read(from: RustBuffer): LogEntry;
|
|
4108
|
+
write(value: LogEntry, into: RustBuffer): void;
|
|
4109
|
+
allocationSize(value: LogEntry): number;
|
|
4110
|
+
lift(value: UniffiByteArray): LogEntry;
|
|
4111
|
+
lower(value: LogEntry): UniffiByteArray;
|
|
4112
|
+
};
|
|
4113
|
+
FfiConverterTypeNetwork: {
|
|
4114
|
+
read(from: RustBuffer): Network;
|
|
4115
|
+
write(value: Network, into: RustBuffer): void;
|
|
4116
|
+
allocationSize(value: Network): number;
|
|
4117
|
+
lift(value: UniffiByteArray): Network;
|
|
4118
|
+
lower(value: Network): UniffiByteArray;
|
|
4119
|
+
};
|
|
4120
|
+
FfiConverterTypeOnchainConfirmationSpeed: {
|
|
4121
|
+
read(from: RustBuffer): OnchainConfirmationSpeed;
|
|
4122
|
+
write(value: OnchainConfirmationSpeed, into: RustBuffer): void;
|
|
4123
|
+
allocationSize(value: OnchainConfirmationSpeed): number;
|
|
4124
|
+
lift(value: UniffiByteArray): OnchainConfirmationSpeed;
|
|
4125
|
+
lower(value: OnchainConfirmationSpeed): UniffiByteArray;
|
|
4126
|
+
};
|
|
4127
|
+
FfiConverterTypePayment: {
|
|
4128
|
+
read(from: RustBuffer): Payment;
|
|
4129
|
+
write(value: Payment, into: RustBuffer): void;
|
|
4130
|
+
allocationSize(value: Payment): number;
|
|
4131
|
+
lift(value: UniffiByteArray): Payment;
|
|
4132
|
+
lower(value: Payment): UniffiByteArray;
|
|
4133
|
+
};
|
|
4134
|
+
FfiConverterTypePaymentDetails: {
|
|
4135
|
+
read(from: RustBuffer): PaymentDetails;
|
|
4136
|
+
write(value: PaymentDetails, into: RustBuffer): void;
|
|
4137
|
+
allocationSize(value: PaymentDetails): number;
|
|
4138
|
+
lift(value: UniffiByteArray): PaymentDetails;
|
|
4139
|
+
lower(value: PaymentDetails): UniffiByteArray;
|
|
4140
|
+
};
|
|
4141
|
+
FfiConverterTypePaymentMetadata: {
|
|
4142
|
+
read(from: RustBuffer): PaymentMetadata;
|
|
4143
|
+
write(value: PaymentMetadata, into: RustBuffer): void;
|
|
4144
|
+
allocationSize(value: PaymentMetadata): number;
|
|
4145
|
+
lift(value: UniffiByteArray): PaymentMetadata;
|
|
4146
|
+
lower(value: PaymentMetadata): UniffiByteArray;
|
|
4147
|
+
};
|
|
4148
|
+
FfiConverterTypePaymentMethod: {
|
|
4149
|
+
read(from: RustBuffer): PaymentMethod;
|
|
4150
|
+
write(value: PaymentMethod, into: RustBuffer): void;
|
|
4151
|
+
allocationSize(value: PaymentMethod): number;
|
|
4152
|
+
lift(value: UniffiByteArray): PaymentMethod;
|
|
4153
|
+
lower(value: PaymentMethod): UniffiByteArray;
|
|
4154
|
+
};
|
|
4155
|
+
FfiConverterTypePaymentStatus: {
|
|
4156
|
+
read(from: RustBuffer): PaymentStatus;
|
|
4157
|
+
write(value: PaymentStatus, into: RustBuffer): void;
|
|
4158
|
+
allocationSize(value: PaymentStatus): number;
|
|
4159
|
+
lift(value: UniffiByteArray): PaymentStatus;
|
|
4160
|
+
lower(value: PaymentStatus): UniffiByteArray;
|
|
4161
|
+
};
|
|
4162
|
+
FfiConverterTypePaymentType: {
|
|
4163
|
+
read(from: RustBuffer): PaymentType;
|
|
4164
|
+
write(value: PaymentType, into: RustBuffer): void;
|
|
4165
|
+
allocationSize(value: PaymentType): number;
|
|
4166
|
+
lift(value: UniffiByteArray): PaymentType;
|
|
4167
|
+
lower(value: PaymentType): UniffiByteArray;
|
|
4168
|
+
};
|
|
4169
|
+
FfiConverterTypePrepareLnurlPayRequest: {
|
|
4170
|
+
read(from: RustBuffer): PrepareLnurlPayRequest;
|
|
4171
|
+
write(value: PrepareLnurlPayRequest, into: RustBuffer): void;
|
|
4172
|
+
allocationSize(value: PrepareLnurlPayRequest): number;
|
|
4173
|
+
lift(value: UniffiByteArray): PrepareLnurlPayRequest;
|
|
4174
|
+
lower(value: PrepareLnurlPayRequest): UniffiByteArray;
|
|
4175
|
+
};
|
|
4176
|
+
FfiConverterTypePrepareLnurlPayResponse: {
|
|
4177
|
+
read(from: RustBuffer): PrepareLnurlPayResponse;
|
|
4178
|
+
write(value: PrepareLnurlPayResponse, into: RustBuffer): void;
|
|
4179
|
+
allocationSize(value: PrepareLnurlPayResponse): number;
|
|
4180
|
+
lift(value: UniffiByteArray): PrepareLnurlPayResponse;
|
|
4181
|
+
lower(value: PrepareLnurlPayResponse): UniffiByteArray;
|
|
4182
|
+
};
|
|
4183
|
+
FfiConverterTypePrepareSendPaymentRequest: {
|
|
4184
|
+
read(from: RustBuffer): PrepareSendPaymentRequest;
|
|
4185
|
+
write(value: PrepareSendPaymentRequest, into: RustBuffer): void;
|
|
4186
|
+
allocationSize(value: PrepareSendPaymentRequest): number;
|
|
4187
|
+
lift(value: UniffiByteArray): PrepareSendPaymentRequest;
|
|
4188
|
+
lower(value: PrepareSendPaymentRequest): UniffiByteArray;
|
|
4189
|
+
};
|
|
4190
|
+
FfiConverterTypePrepareSendPaymentResponse: {
|
|
4191
|
+
read(from: RustBuffer): PrepareSendPaymentResponse;
|
|
4192
|
+
write(value: PrepareSendPaymentResponse, into: RustBuffer): void;
|
|
4193
|
+
allocationSize(value: PrepareSendPaymentResponse): number;
|
|
4194
|
+
lift(value: UniffiByteArray): PrepareSendPaymentResponse;
|
|
4195
|
+
lower(value: PrepareSendPaymentResponse): UniffiByteArray;
|
|
4196
|
+
};
|
|
4197
|
+
FfiConverterTypeReceivePaymentMethod: {
|
|
4198
|
+
read(from: RustBuffer): ReceivePaymentMethod;
|
|
4199
|
+
write(value: ReceivePaymentMethod, into: RustBuffer): void;
|
|
4200
|
+
allocationSize(value: ReceivePaymentMethod): number;
|
|
4201
|
+
lift(value: UniffiByteArray): ReceivePaymentMethod;
|
|
4202
|
+
lower(value: ReceivePaymentMethod): UniffiByteArray;
|
|
4203
|
+
};
|
|
4204
|
+
FfiConverterTypeReceivePaymentRequest: {
|
|
4205
|
+
read(from: RustBuffer): ReceivePaymentRequest;
|
|
4206
|
+
write(value: ReceivePaymentRequest, into: RustBuffer): void;
|
|
4207
|
+
allocationSize(value: ReceivePaymentRequest): number;
|
|
4208
|
+
lift(value: UniffiByteArray): ReceivePaymentRequest;
|
|
4209
|
+
lower(value: ReceivePaymentRequest): UniffiByteArray;
|
|
4210
|
+
};
|
|
4211
|
+
FfiConverterTypeReceivePaymentResponse: {
|
|
4212
|
+
read(from: RustBuffer): ReceivePaymentResponse;
|
|
4213
|
+
write(value: ReceivePaymentResponse, into: RustBuffer): void;
|
|
4214
|
+
allocationSize(value: ReceivePaymentResponse): number;
|
|
4215
|
+
lift(value: UniffiByteArray): ReceivePaymentResponse;
|
|
4216
|
+
lower(value: ReceivePaymentResponse): UniffiByteArray;
|
|
4217
|
+
};
|
|
4218
|
+
FfiConverterTypeRefundDepositRequest: {
|
|
4219
|
+
read(from: RustBuffer): RefundDepositRequest;
|
|
4220
|
+
write(value: RefundDepositRequest, into: RustBuffer): void;
|
|
4221
|
+
allocationSize(value: RefundDepositRequest): number;
|
|
4222
|
+
lift(value: UniffiByteArray): RefundDepositRequest;
|
|
4223
|
+
lower(value: RefundDepositRequest): UniffiByteArray;
|
|
4224
|
+
};
|
|
4225
|
+
FfiConverterTypeRefundDepositResponse: {
|
|
4226
|
+
read(from: RustBuffer): RefundDepositResponse;
|
|
4227
|
+
write(value: RefundDepositResponse, into: RustBuffer): void;
|
|
4228
|
+
allocationSize(value: RefundDepositResponse): number;
|
|
4229
|
+
lift(value: UniffiByteArray): RefundDepositResponse;
|
|
4230
|
+
lower(value: RefundDepositResponse): UniffiByteArray;
|
|
4231
|
+
};
|
|
4232
|
+
FfiConverterTypeRegisterLightningAddressRequest: {
|
|
4233
|
+
read(from: RustBuffer): RegisterLightningAddressRequest;
|
|
4234
|
+
write(value: RegisterLightningAddressRequest, into: RustBuffer): void;
|
|
4235
|
+
allocationSize(value: RegisterLightningAddressRequest): number;
|
|
4236
|
+
lift(value: UniffiByteArray): RegisterLightningAddressRequest;
|
|
4237
|
+
lower(value: RegisterLightningAddressRequest): UniffiByteArray;
|
|
4238
|
+
};
|
|
4239
|
+
FfiConverterTypeSdkBuilder: FfiConverterObject<SdkBuilderInterface>;
|
|
4240
|
+
FfiConverterTypeSdkEvent: {
|
|
4241
|
+
read(from: RustBuffer): SdkEvent;
|
|
4242
|
+
write(value: SdkEvent, into: RustBuffer): void;
|
|
4243
|
+
allocationSize(value: SdkEvent): number;
|
|
4244
|
+
lift(value: UniffiByteArray): SdkEvent;
|
|
4245
|
+
lower(value: SdkEvent): UniffiByteArray;
|
|
4246
|
+
};
|
|
4247
|
+
FfiConverterTypeSendOnchainFeeQuote: {
|
|
4248
|
+
read(from: RustBuffer): SendOnchainFeeQuote;
|
|
4249
|
+
write(value: SendOnchainFeeQuote, into: RustBuffer): void;
|
|
4250
|
+
allocationSize(value: SendOnchainFeeQuote): number;
|
|
4251
|
+
lift(value: UniffiByteArray): SendOnchainFeeQuote;
|
|
4252
|
+
lower(value: SendOnchainFeeQuote): UniffiByteArray;
|
|
4253
|
+
};
|
|
4254
|
+
FfiConverterTypeSendOnchainSpeedFeeQuote: {
|
|
4255
|
+
read(from: RustBuffer): SendOnchainSpeedFeeQuote;
|
|
4256
|
+
write(value: SendOnchainSpeedFeeQuote, into: RustBuffer): void;
|
|
4257
|
+
allocationSize(value: SendOnchainSpeedFeeQuote): number;
|
|
4258
|
+
lift(value: UniffiByteArray): SendOnchainSpeedFeeQuote;
|
|
4259
|
+
lower(value: SendOnchainSpeedFeeQuote): UniffiByteArray;
|
|
4260
|
+
};
|
|
4261
|
+
FfiConverterTypeSendPaymentMethod: {
|
|
4262
|
+
read(from: RustBuffer): SendPaymentMethod;
|
|
4263
|
+
write(value: SendPaymentMethod, into: RustBuffer): void;
|
|
4264
|
+
allocationSize(value: SendPaymentMethod): number;
|
|
4265
|
+
lift(value: UniffiByteArray): SendPaymentMethod;
|
|
4266
|
+
lower(value: SendPaymentMethod): UniffiByteArray;
|
|
4267
|
+
};
|
|
4268
|
+
FfiConverterTypeSendPaymentOptions: {
|
|
4269
|
+
read(from: RustBuffer): SendPaymentOptions;
|
|
4270
|
+
write(value: SendPaymentOptions, into: RustBuffer): void;
|
|
4271
|
+
allocationSize(value: SendPaymentOptions): number;
|
|
4272
|
+
lift(value: UniffiByteArray): SendPaymentOptions;
|
|
4273
|
+
lower(value: SendPaymentOptions): UniffiByteArray;
|
|
4274
|
+
};
|
|
4275
|
+
FfiConverterTypeSendPaymentRequest: {
|
|
4276
|
+
read(from: RustBuffer): SendPaymentRequest;
|
|
4277
|
+
write(value: SendPaymentRequest, into: RustBuffer): void;
|
|
4278
|
+
allocationSize(value: SendPaymentRequest): number;
|
|
4279
|
+
lift(value: UniffiByteArray): SendPaymentRequest;
|
|
4280
|
+
lower(value: SendPaymentRequest): UniffiByteArray;
|
|
4281
|
+
};
|
|
4282
|
+
FfiConverterTypeSendPaymentResponse: {
|
|
4283
|
+
read(from: RustBuffer): SendPaymentResponse;
|
|
4284
|
+
write(value: SendPaymentResponse, into: RustBuffer): void;
|
|
4285
|
+
allocationSize(value: SendPaymentResponse): number;
|
|
4286
|
+
lift(value: UniffiByteArray): SendPaymentResponse;
|
|
4287
|
+
lower(value: SendPaymentResponse): UniffiByteArray;
|
|
4288
|
+
};
|
|
4289
|
+
FfiConverterTypeStorage: FfiConverterObjectWithCallbacks<Storage>;
|
|
4290
|
+
FfiConverterTypeSyncWalletRequest: {
|
|
4291
|
+
read(from: RustBuffer): SyncWalletRequest;
|
|
4292
|
+
write(value: SyncWalletRequest, into: RustBuffer): void;
|
|
4293
|
+
allocationSize(value: SyncWalletRequest): number;
|
|
4294
|
+
lift(value: UniffiByteArray): SyncWalletRequest;
|
|
4295
|
+
lower(value: SyncWalletRequest): UniffiByteArray;
|
|
4296
|
+
};
|
|
4297
|
+
FfiConverterTypeSyncWalletResponse: {
|
|
4298
|
+
read(from: RustBuffer): SyncWalletResponse;
|
|
4299
|
+
write(value: SyncWalletResponse, into: RustBuffer): void;
|
|
4300
|
+
allocationSize(value: SyncWalletResponse): number;
|
|
4301
|
+
lift(value: UniffiByteArray): SyncWalletResponse;
|
|
4302
|
+
lower(value: SyncWalletResponse): UniffiByteArray;
|
|
4303
|
+
};
|
|
4304
|
+
FfiConverterTypeTxStatus: {
|
|
4305
|
+
read(from: RustBuffer): TxStatus;
|
|
4306
|
+
write(value: TxStatus, into: RustBuffer): void;
|
|
4307
|
+
allocationSize(value: TxStatus): number;
|
|
4308
|
+
lift(value: UniffiByteArray): TxStatus;
|
|
4309
|
+
lower(value: TxStatus): UniffiByteArray;
|
|
4310
|
+
};
|
|
4311
|
+
FfiConverterTypeUpdateDepositPayload: {
|
|
4312
|
+
read(from: RustBuffer): UpdateDepositPayload;
|
|
4313
|
+
write(value: UpdateDepositPayload, into: RustBuffer): void;
|
|
4314
|
+
allocationSize(value: UpdateDepositPayload): number;
|
|
4315
|
+
lift(value: UniffiByteArray): UpdateDepositPayload;
|
|
4316
|
+
lower(value: UpdateDepositPayload): UniffiByteArray;
|
|
4317
|
+
};
|
|
4318
|
+
FfiConverterTypeUtxo: {
|
|
4319
|
+
read(from: RustBuffer): Utxo;
|
|
4320
|
+
write(value: Utxo, into: RustBuffer): void;
|
|
4321
|
+
allocationSize(value: Utxo): number;
|
|
4322
|
+
lift(value: UniffiByteArray): Utxo;
|
|
4323
|
+
lower(value: Utxo): UniffiByteArray;
|
|
4324
|
+
};
|
|
4325
|
+
};
|
|
4326
|
+
}>;
|
|
4327
|
+
export default _default;
|
|
4328
|
+
//# sourceMappingURL=breez_sdk_spark.d.ts.map
|