@breeztech/breez-sdk-spark 0.13.8-debug → 0.13.10-dev

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.
@@ -1,401 +1,137 @@
1
+ /* @ts-self-types="./breez_sdk_spark_wasm.d.ts" */
1
2
 
2
-
3
- let WASM_VECTOR_LEN = 0;
4
-
5
- let cachedUint8ArrayMemory0 = null;
6
-
7
- function getUint8ArrayMemory0() {
8
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
3
+ export class BreezSdk {
4
+ static __wrap(ptr) {
5
+ const obj = Object.create(BreezSdk.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ BreezSdkFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
10
9
  }
11
- return cachedUint8ArrayMemory0;
12
- }
13
-
14
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
15
-
16
- const encodeString = function (arg, view) {
17
- return cachedTextEncoder.encodeInto(arg, view);
18
- };
19
-
20
- function passStringToWasm0(arg, malloc, realloc) {
21
-
22
- if (realloc === undefined) {
23
- const buf = cachedTextEncoder.encode(arg);
24
- const ptr = malloc(buf.length, 1) >>> 0;
25
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
26
- WASM_VECTOR_LEN = buf.length;
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ BreezSdkFinalization.unregister(this);
27
14
  return ptr;
28
15
  }
29
-
30
- let len = arg.length;
31
- let ptr = malloc(len, 1) >>> 0;
32
-
33
- const mem = getUint8ArrayMemory0();
34
-
35
- let offset = 0;
36
-
37
- for (; offset < len; offset++) {
38
- const code = arg.charCodeAt(offset);
39
- if (code > 0x7F) break;
40
- mem[ptr + offset] = code;
41
- }
42
-
43
- if (offset !== len) {
44
- if (offset !== 0) {
45
- arg = arg.slice(offset);
46
- }
47
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
48
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
49
- const ret = encodeString(arg, view);
50
-
51
- offset += ret.written;
52
- ptr = realloc(ptr, len, offset, 1) >>> 0;
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_breezsdk_free(ptr, 0);
53
19
  }
54
-
55
- WASM_VECTOR_LEN = offset;
56
- return ptr;
57
- }
58
-
59
- let cachedDataViewMemory0 = null;
60
-
61
- function getDataViewMemory0() {
62
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
63
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
20
+ /**
21
+ * @param {AddContactRequest} request
22
+ * @returns {Promise<Contact>}
23
+ */
24
+ addContact(request) {
25
+ const ret = wasm.breezsdk_addContact(this.__wbg_ptr, request);
26
+ return ret;
64
27
  }
65
- return cachedDataViewMemory0;
66
- }
67
-
68
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
69
-
70
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
71
-
72
- function getStringFromWasm0(ptr, len) {
73
- ptr = ptr >>> 0;
74
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
75
- }
76
-
77
- function addToExternrefTable0(obj) {
78
- const idx = wasm.__externref_table_alloc();
79
- wasm.__wbindgen_export_5.set(idx, obj);
80
- return idx;
81
- }
82
-
83
- function handleError(f, args) {
84
- try {
85
- return f.apply(this, args);
86
- } catch (e) {
87
- const idx = addToExternrefTable0(e);
88
- wasm.__wbindgen_exn_store(idx);
28
+ /**
29
+ * @param {EventListener} listener
30
+ * @returns {Promise<string>}
31
+ */
32
+ addEventListener(listener) {
33
+ const ret = wasm.breezsdk_addEventListener(this.__wbg_ptr, listener);
34
+ return ret;
89
35
  }
90
- }
91
-
92
- function getArrayJsValueFromWasm0(ptr, len) {
93
- ptr = ptr >>> 0;
94
- const mem = getDataViewMemory0();
95
- const result = [];
96
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
97
- result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
36
+ /**
37
+ * @param {BuyBitcoinRequest} request
38
+ * @returns {Promise<BuyBitcoinResponse>}
39
+ */
40
+ buyBitcoin(request) {
41
+ const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
42
+ return ret;
98
43
  }
99
- wasm.__externref_drop_slice(ptr, len);
100
- return result;
101
- }
102
-
103
- function isLikeNone(x) {
104
- return x === undefined || x === null;
105
- }
106
-
107
- function getArrayU8FromWasm0(ptr, len) {
108
- ptr = ptr >>> 0;
109
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
110
- }
111
-
112
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
113
- ? { register: () => {}, unregister: () => {} }
114
- : new FinalizationRegistry(state => {
115
- wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b)
116
- });
117
-
118
- function makeMutClosure(arg0, arg1, dtor, f) {
119
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
120
- const real = (...args) => {
121
- // First up with a closure we increment the internal reference
122
- // count. This ensures that the Rust closure environment won't
123
- // be deallocated while we're invoking it.
124
- state.cnt++;
125
- const a = state.a;
126
- state.a = 0;
127
- try {
128
- return f(a, state.b, ...args);
129
- } finally {
130
- if (--state.cnt === 0) {
131
- wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
132
- CLOSURE_DTORS.unregister(state);
133
- } else {
134
- state.a = a;
135
- }
136
- }
137
- };
138
- real.original = state;
139
- CLOSURE_DTORS.register(real, state, state);
140
- return real;
141
- }
142
-
143
- function debugString(val) {
144
- // primitive types
145
- const type = typeof val;
146
- if (type == 'number' || type == 'boolean' || val == null) {
147
- return `${val}`;
44
+ /**
45
+ * @returns {Promise<void>}
46
+ */
47
+ cancelLeafOptimization() {
48
+ const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
49
+ return ret;
148
50
  }
149
- if (type == 'string') {
150
- return `"${val}"`;
51
+ /**
52
+ * @param {CheckLightningAddressRequest} request
53
+ * @returns {Promise<boolean>}
54
+ */
55
+ checkLightningAddressAvailable(request) {
56
+ const ret = wasm.breezsdk_checkLightningAddressAvailable(this.__wbg_ptr, request);
57
+ return ret;
151
58
  }
152
- if (type == 'symbol') {
153
- const description = val.description;
154
- if (description == null) {
155
- return 'Symbol';
156
- } else {
157
- return `Symbol(${description})`;
158
- }
59
+ /**
60
+ * @param {CheckMessageRequest} request
61
+ * @returns {Promise<CheckMessageResponse>}
62
+ */
63
+ checkMessage(request) {
64
+ const ret = wasm.breezsdk_checkMessage(this.__wbg_ptr, request);
65
+ return ret;
159
66
  }
160
- if (type == 'function') {
161
- const name = val.name;
162
- if (typeof name == 'string' && name.length > 0) {
163
- return `Function(${name})`;
164
- } else {
165
- return 'Function';
166
- }
67
+ /**
68
+ * @param {ClaimDepositRequest} request
69
+ * @returns {Promise<ClaimDepositResponse>}
70
+ */
71
+ claimDeposit(request) {
72
+ const ret = wasm.breezsdk_claimDeposit(this.__wbg_ptr, request);
73
+ return ret;
167
74
  }
168
- // objects
169
- if (Array.isArray(val)) {
170
- const length = val.length;
171
- let debug = '[';
172
- if (length > 0) {
173
- debug += debugString(val[0]);
174
- }
175
- for(let i = 1; i < length; i++) {
176
- debug += ', ' + debugString(val[i]);
177
- }
178
- debug += ']';
179
- return debug;
75
+ /**
76
+ * @param {ClaimHtlcPaymentRequest} request
77
+ * @returns {Promise<ClaimHtlcPaymentResponse>}
78
+ */
79
+ claimHtlcPayment(request) {
80
+ const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
81
+ return ret;
180
82
  }
181
- // Test for built-in
182
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
183
- let className;
184
- if (builtInMatches && builtInMatches.length > 1) {
185
- className = builtInMatches[1];
186
- } else {
187
- // Failed to match the standard '[object ClassName]'
188
- return toString.call(val);
83
+ /**
84
+ * @param {string} id
85
+ * @returns {Promise<void>}
86
+ */
87
+ deleteContact(id) {
88
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
89
+ const len0 = WASM_VECTOR_LEN;
90
+ const ret = wasm.breezsdk_deleteContact(this.__wbg_ptr, ptr0, len0);
91
+ return ret;
189
92
  }
190
- if (className == 'Object') {
191
- // we're a user defined class or Object
192
- // JSON.stringify avoids problems with cycles, and is generally much
193
- // easier than looping through ownProperties of `val`.
194
- try {
195
- return 'Object(' + JSON.stringify(val) + ')';
196
- } catch (_) {
197
- return 'Object';
198
- }
93
+ /**
94
+ * @returns {Promise<void>}
95
+ */
96
+ deleteLightningAddress() {
97
+ const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
98
+ return ret;
199
99
  }
200
- // errors
201
- if (val instanceof Error) {
202
- return `${val.name}: ${val.message}\n${val.stack}`;
203
- }
204
- // TODO we could test for more things here, like `Set`s and `Map`s.
205
- return className;
206
- }
207
- /**
208
- * Creates a default PostgreSQL storage configuration with sensible defaults.
209
- *
210
- * Default values (from pg.Pool):
211
- * - `maxPoolSize`: 10
212
- * - `createTimeoutSecs`: 0 (no timeout)
213
- * - `recycleTimeoutSecs`: 10 (10 seconds idle before disconnect)
214
- * @param {string} connection_string
215
- * @returns {PostgresStorageConfig}
216
- */
217
- export function defaultPostgresStorageConfig(connection_string) {
218
- const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
219
- const len0 = WASM_VECTOR_LEN;
220
- const ret = wasm.defaultPostgresStorageConfig(ptr0, len0);
221
- return ret;
222
- }
223
-
224
- /**
225
- * @param {Network} network
226
- * @returns {Config}
227
- */
228
- export function defaultConfig(network) {
229
- const ret = wasm.defaultConfig(network);
230
- return ret;
231
- }
232
-
233
- /**
234
- * @param {ConnectRequest} request
235
- * @returns {Promise<BreezSdk>}
236
- */
237
- export function connect(request) {
238
- const ret = wasm.connect(request);
239
- return ret;
240
- }
241
-
242
- function takeFromExternrefTable0(idx) {
243
- const value = wasm.__wbindgen_export_5.get(idx);
244
- wasm.__externref_table_dealloc(idx);
245
- return value;
246
- }
247
- /**
248
- * @param {string} mnemonic
249
- * @param {string | null | undefined} passphrase
250
- * @param {Network} network
251
- * @param {KeySetConfig | null} [key_set_config]
252
- * @returns {DefaultSigner}
253
- */
254
- export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
255
- const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
256
- const len0 = WASM_VECTOR_LEN;
257
- var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
258
- var len1 = WASM_VECTOR_LEN;
259
- const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
260
- if (ret[2]) {
261
- throw takeFromExternrefTable0(ret[1]);
262
- }
263
- return DefaultSigner.__wrap(ret[0]);
264
- }
265
-
266
- /**
267
- * @param {Logger} logger
268
- * @param {string | null} [filter]
269
- * @returns {Promise<void>}
270
- */
271
- export function initLogging(logger, filter) {
272
- var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
- var len0 = WASM_VECTOR_LEN;
274
- const ret = wasm.initLogging(logger, ptr0, len0);
275
- return ret;
276
- }
277
-
278
- /**
279
- * Creates a default external signer from a mnemonic phrase.
280
- *
281
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
282
- * @returns {Promise<SparkStatus>}
283
- */
284
- export function getSparkStatus() {
285
- const ret = wasm.getSparkStatus();
286
- return ret;
287
- }
288
-
289
- /**
290
- * @param {Config} config
291
- * @param {ExternalSigner} signer
292
- * @param {string} storage_dir
293
- * @returns {Promise<BreezSdk>}
294
- */
295
- export function connectWithSigner(config, signer, storage_dir) {
296
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
297
- const len0 = WASM_VECTOR_LEN;
298
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
299
- return ret;
300
- }
301
-
302
- function passArray8ToWasm0(arg, malloc) {
303
- const ptr = malloc(arg.length * 1, 1) >>> 0;
304
- getUint8ArrayMemory0().set(arg, ptr / 1);
305
- WASM_VECTOR_LEN = arg.length;
306
- return ptr;
307
- }
308
- /**
309
- * Entry point invoked by JavaScript in a worker.
310
- * @param {number} ptr
311
- */
312
- export function task_worker_entry_point(ptr) {
313
- const ret = wasm.task_worker_entry_point(ptr);
314
- if (ret[1]) {
315
- throw takeFromExternrefTable0(ret[0]);
316
- }
317
- }
318
-
319
- function __wbg_adapter_68(arg0, arg1, arg2) {
320
- wasm.closure388_externref_shim(arg0, arg1, arg2);
321
- }
322
-
323
- function __wbg_adapter_73(arg0, arg1) {
324
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1015faeeadd5b26c(arg0, arg1);
325
- }
326
-
327
- function __wbg_adapter_445(arg0, arg1, arg2, arg3) {
328
- wasm.closure668_externref_shim(arg0, arg1, arg2, arg3);
329
- }
330
-
331
- const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
332
-
333
- const __wbindgen_enum_ReadableStreamType = ["bytes"];
334
-
335
- const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
336
-
337
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
338
-
339
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
340
-
341
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
342
-
343
- const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
344
-
345
- const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
346
- ? { register: () => {}, unregister: () => {} }
347
- : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr >>> 0, 1));
348
-
349
- export class BreezSdk {
350
-
351
- static __wrap(ptr) {
352
- ptr = ptr >>> 0;
353
- const obj = Object.create(BreezSdk.prototype);
354
- obj.__wbg_ptr = ptr;
355
- BreezSdkFinalization.register(obj, obj.__wbg_ptr, obj);
356
- return obj;
357
- }
358
-
359
- __destroy_into_raw() {
360
- const ptr = this.__wbg_ptr;
361
- this.__wbg_ptr = 0;
362
- BreezSdkFinalization.unregister(this);
363
- return ptr;
364
- }
365
-
366
- free() {
367
- const ptr = this.__destroy_into_raw();
368
- wasm.__wbg_breezsdk_free(ptr, 0);
100
+ /**
101
+ * @returns {Promise<void>}
102
+ */
103
+ disconnect() {
104
+ const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
105
+ return ret;
369
106
  }
370
107
  /**
371
- * @returns {Promise<void>}
108
+ * @param {FetchConversionLimitsRequest} request
109
+ * @returns {Promise<FetchConversionLimitsResponse>}
372
110
  */
373
- disconnect() {
374
- const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
111
+ fetchConversionLimits(request) {
112
+ const ret = wasm.breezsdk_fetchConversionLimits(this.__wbg_ptr, request);
375
113
  return ret;
376
114
  }
377
115
  /**
378
- * @param {LnurlAuthRequestDetails} request_data
379
- * @returns {Promise<LnurlCallbackStatus>}
116
+ * @param {GetInfoRequest} request
117
+ * @returns {Promise<GetInfoResponse>}
380
118
  */
381
- lnurlAuth(request_data) {
382
- const ret = wasm.breezsdk_lnurlAuth(this.__wbg_ptr, request_data);
119
+ getInfo(request) {
120
+ const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
383
121
  return ret;
384
122
  }
385
123
  /**
386
- * @param {AddContactRequest} request
387
- * @returns {Promise<Contact>}
124
+ * @returns {OptimizationProgress}
388
125
  */
389
- addContact(request) {
390
- const ret = wasm.breezsdk_addContact(this.__wbg_ptr, request);
126
+ getLeafOptimizationProgress() {
127
+ const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
391
128
  return ret;
392
129
  }
393
130
  /**
394
- * @param {BuyBitcoinRequest} request
395
- * @returns {Promise<BuyBitcoinResponse>}
131
+ * @returns {Promise<LightningAddressInfo | undefined>}
396
132
  */
397
- buyBitcoin(request) {
398
- const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
133
+ getLightningAddress() {
134
+ const ret = wasm.breezsdk_getLightningAddress(this.__wbg_ptr);
399
135
  return ret;
400
136
  }
401
137
  /**
@@ -407,51 +143,47 @@ export class BreezSdk {
407
143
  return ret;
408
144
  }
409
145
  /**
410
- * @param {SyncWalletRequest} request
411
- * @returns {Promise<SyncWalletResponse>}
146
+ * @returns {TokenIssuer}
412
147
  */
413
- syncWallet(request) {
414
- const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
415
- return ret;
148
+ getTokenIssuer() {
149
+ const ret = wasm.breezsdk_getTokenIssuer(this.__wbg_ptr);
150
+ return TokenIssuer.__wrap(ret);
416
151
  }
417
152
  /**
418
- * @param {SendPaymentRequest} request
419
- * @returns {Promise<SendPaymentResponse>}
153
+ * @param {GetTokensMetadataRequest} request
154
+ * @returns {Promise<GetTokensMetadataResponse>}
420
155
  */
421
- sendPayment(request) {
422
- const ret = wasm.breezsdk_sendPayment(this.__wbg_ptr, request);
156
+ getTokensMetadata(request) {
157
+ const ret = wasm.breezsdk_getTokensMetadata(this.__wbg_ptr, request);
423
158
  return ret;
424
159
  }
425
160
  /**
426
- * @param {SignMessageRequest} request
427
- * @returns {Promise<SignMessageResponse>}
161
+ * @returns {Promise<UserSettings>}
428
162
  */
429
- signMessage(request) {
430
- const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
163
+ getUserSettings() {
164
+ const ret = wasm.breezsdk_getUserSettings(this.__wbg_ptr);
431
165
  return ret;
432
166
  }
433
167
  /**
434
- * @param {CheckMessageRequest} request
435
- * @returns {Promise<CheckMessageResponse>}
168
+ * @param {ListContactsRequest} request
169
+ * @returns {Promise<Contact[]>}
436
170
  */
437
- checkMessage(request) {
438
- const ret = wasm.breezsdk_checkMessage(this.__wbg_ptr, request);
171
+ listContacts(request) {
172
+ const ret = wasm.breezsdk_listContacts(this.__wbg_ptr, request);
439
173
  return ret;
440
174
  }
441
175
  /**
442
- * @param {ClaimDepositRequest} request
443
- * @returns {Promise<ClaimDepositResponse>}
176
+ * @returns {Promise<ListFiatCurrenciesResponse>}
444
177
  */
445
- claimDeposit(request) {
446
- const ret = wasm.breezsdk_claimDeposit(this.__wbg_ptr, request);
178
+ listFiatCurrencies() {
179
+ const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
447
180
  return ret;
448
181
  }
449
182
  /**
450
- * @param {ListContactsRequest} request
451
- * @returns {Promise<Contact[]>}
183
+ * @returns {Promise<ListFiatRatesResponse>}
452
184
  */
453
- listContacts(request) {
454
- const ret = wasm.breezsdk_listContacts(this.__wbg_ptr, request);
185
+ listFiatRates() {
186
+ const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
455
187
  return ret;
456
188
  }
457
189
  /**
@@ -463,88 +195,52 @@ export class BreezSdk {
463
195
  return ret;
464
196
  }
465
197
  /**
466
- * @returns {Promise<Webhook[]>}
198
+ * @param {ListUnclaimedDepositsRequest} request
199
+ * @returns {Promise<ListUnclaimedDepositsResponse>}
467
200
  */
468
- listWebhooks() {
469
- const ret = wasm.breezsdk_listWebhooks(this.__wbg_ptr);
201
+ listUnclaimedDeposits(request) {
202
+ const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
470
203
  return ret;
471
204
  }
472
205
  /**
473
- * @param {string} id
474
- * @returns {Promise<void>}
206
+ * @returns {Promise<Webhook[]>}
475
207
  */
476
- deleteContact(id) {
477
- const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
478
- const len0 = WASM_VECTOR_LEN;
479
- const ret = wasm.breezsdk_deleteContact(this.__wbg_ptr, ptr0, len0);
208
+ listWebhooks() {
209
+ const ret = wasm.breezsdk_listWebhooks(this.__wbg_ptr);
480
210
  return ret;
481
211
  }
482
212
  /**
483
- * @param {LnurlWithdrawRequest} request
484
- * @returns {Promise<LnurlWithdrawResponse>}
213
+ * @param {LnurlAuthRequestDetails} request_data
214
+ * @returns {Promise<LnurlCallbackStatus>}
485
215
  */
486
- lnurlWithdraw(request) {
487
- const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
216
+ lnurlAuth(request_data) {
217
+ const ret = wasm.breezsdk_lnurlAuth(this.__wbg_ptr, request_data);
488
218
  return ret;
489
219
  }
490
220
  /**
491
- * @param {RefundDepositRequest} request
492
- * @returns {Promise<RefundDepositResponse>}
493
- */
494
- refundDeposit(request) {
495
- const ret = wasm.breezsdk_refundDeposit(this.__wbg_ptr, request);
496
- return ret;
497
- }
498
- /**
499
- * @param {UpdateContactRequest} request
500
- * @returns {Promise<Contact>}
501
- */
502
- updateContact(request) {
503
- const ret = wasm.breezsdk_updateContact(this.__wbg_ptr, request);
504
- return ret;
505
- }
506
- /**
507
- * @returns {Promise<ListFiatRatesResponse>}
508
- */
509
- listFiatRates() {
510
- const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
511
- return ret;
512
- }
513
- /**
514
- * @param {ReceivePaymentRequest} request
515
- * @returns {Promise<ReceivePaymentResponse>}
516
- */
517
- receivePayment(request) {
518
- const ret = wasm.breezsdk_receivePayment(this.__wbg_ptr, request);
519
- return ret;
520
- }
521
- /**
522
- * @returns {TokenIssuer}
523
- */
524
- getTokenIssuer() {
525
- const ret = wasm.breezsdk_getTokenIssuer(this.__wbg_ptr);
526
- return TokenIssuer.__wrap(ret);
527
- }
528
- /**
529
- * @returns {Promise<RecommendedFees>}
221
+ * @param {LnurlPayRequest} request
222
+ * @returns {Promise<LnurlPayResponse>}
530
223
  */
531
- recommendedFees() {
532
- const ret = wasm.breezsdk_recommendedFees(this.__wbg_ptr);
224
+ lnurlPay(request) {
225
+ const ret = wasm.breezsdk_lnurlPay(this.__wbg_ptr, request);
533
226
  return ret;
534
227
  }
535
228
  /**
536
- * @param {RegisterWebhookRequest} request
537
- * @returns {Promise<RegisterWebhookResponse>}
229
+ * @param {LnurlWithdrawRequest} request
230
+ * @returns {Promise<LnurlWithdrawResponse>}
538
231
  */
539
- registerWebhook(request) {
540
- const ret = wasm.breezsdk_registerWebhook(this.__wbg_ptr, request);
232
+ lnurlWithdraw(request) {
233
+ const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
541
234
  return ret;
542
235
  }
543
236
  /**
544
- * @returns {Promise<UserSettings>}
237
+ * @param {string} input
238
+ * @returns {Promise<InputType>}
545
239
  */
546
- getUserSettings() {
547
- const ret = wasm.breezsdk_getUserSettings(this.__wbg_ptr);
240
+ parse(input) {
241
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
242
+ const len0 = WASM_VECTOR_LEN;
243
+ const ret = wasm.breezsdk_parse(this.__wbg_ptr, ptr0, len0);
548
244
  return ret;
549
245
  }
550
246
  /**
@@ -556,65 +252,50 @@ export class BreezSdk {
556
252
  return ret;
557
253
  }
558
254
  /**
559
- * @param {EventListener} listener
560
- * @returns {Promise<string>}
561
- */
562
- addEventListener(listener) {
563
- const ret = wasm.breezsdk_addEventListener(this.__wbg_ptr, listener);
564
- return ret;
565
- }
566
- /**
567
- * @param {ClaimHtlcPaymentRequest} request
568
- * @returns {Promise<ClaimHtlcPaymentResponse>}
569
- */
570
- claimHtlcPayment(request) {
571
- const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
572
- return ret;
573
- }
574
- /**
575
- * @param {UnregisterWebhookRequest} request
576
- * @returns {Promise<void>}
255
+ * @param {PrepareSendPaymentRequest} request
256
+ * @returns {Promise<PrepareSendPaymentResponse>}
577
257
  */
578
- unregisterWebhook(request) {
579
- const ret = wasm.breezsdk_unregisterWebhook(this.__wbg_ptr, request);
258
+ prepareSendPayment(request) {
259
+ const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
580
260
  return ret;
581
261
  }
582
262
  /**
583
- * @param {GetTokensMetadataRequest} request
584
- * @returns {Promise<GetTokensMetadataResponse>}
263
+ * @param {ReceivePaymentRequest} request
264
+ * @returns {Promise<ReceivePaymentResponse>}
585
265
  */
586
- getTokensMetadata(request) {
587
- const ret = wasm.breezsdk_getTokensMetadata(this.__wbg_ptr, request);
266
+ receivePayment(request) {
267
+ const ret = wasm.breezsdk_receivePayment(this.__wbg_ptr, request);
588
268
  return ret;
589
269
  }
590
270
  /**
591
- * @returns {Promise<ListFiatCurrenciesResponse>}
271
+ * @returns {Promise<RecommendedFees>}
592
272
  */
593
- listFiatCurrencies() {
594
- const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
273
+ recommendedFees() {
274
+ const ret = wasm.breezsdk_recommendedFees(this.__wbg_ptr);
595
275
  return ret;
596
276
  }
597
277
  /**
598
- * @param {PrepareSendPaymentRequest} request
599
- * @returns {Promise<PrepareSendPaymentResponse>}
278
+ * @param {RefundDepositRequest} request
279
+ * @returns {Promise<RefundDepositResponse>}
600
280
  */
601
- prepareSendPayment(request) {
602
- const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
281
+ refundDeposit(request) {
282
+ const ret = wasm.breezsdk_refundDeposit(this.__wbg_ptr, request);
603
283
  return ret;
604
284
  }
605
285
  /**
606
- * @param {UpdateUserSettingsRequest} request
607
- * @returns {Promise<void>}
286
+ * @param {RegisterLightningAddressRequest} request
287
+ * @returns {Promise<LightningAddressInfo>}
608
288
  */
609
- updateUserSettings(request) {
610
- const ret = wasm.breezsdk_updateUserSettings(this.__wbg_ptr, request);
289
+ registerLightningAddress(request) {
290
+ const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
611
291
  return ret;
612
292
  }
613
293
  /**
614
- * @returns {Promise<LightningAddressInfo | undefined>}
294
+ * @param {RegisterWebhookRequest} request
295
+ * @returns {Promise<RegisterWebhookResponse>}
615
296
  */
616
- getLightningAddress() {
617
- const ret = wasm.breezsdk_getLightningAddress(this.__wbg_ptr);
297
+ registerWebhook(request) {
298
+ const ret = wasm.breezsdk_registerWebhook(this.__wbg_ptr, request);
618
299
  return ret;
619
300
  }
620
301
  /**
@@ -628,19 +309,19 @@ export class BreezSdk {
628
309
  return ret;
629
310
  }
630
311
  /**
631
- * @param {FetchConversionLimitsRequest} request
632
- * @returns {Promise<FetchConversionLimitsResponse>}
312
+ * @param {SendPaymentRequest} request
313
+ * @returns {Promise<SendPaymentResponse>}
633
314
  */
634
- fetchConversionLimits(request) {
635
- const ret = wasm.breezsdk_fetchConversionLimits(this.__wbg_ptr, request);
315
+ sendPayment(request) {
316
+ const ret = wasm.breezsdk_sendPayment(this.__wbg_ptr, request);
636
317
  return ret;
637
318
  }
638
319
  /**
639
- * @param {ListUnclaimedDepositsRequest} request
640
- * @returns {Promise<ListUnclaimedDepositsResponse>}
320
+ * @param {SignMessageRequest} request
321
+ * @returns {Promise<SignMessageResponse>}
641
322
  */
642
- listUnclaimedDeposits(request) {
643
- const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
323
+ signMessage(request) {
324
+ const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
644
325
  return ret;
645
326
  }
646
327
  /**
@@ -651,141 +332,90 @@ export class BreezSdk {
651
332
  return ret;
652
333
  }
653
334
  /**
654
- * @returns {Promise<void>}
335
+ * @param {SyncWalletRequest} request
336
+ * @returns {Promise<SyncWalletResponse>}
655
337
  */
656
- cancelLeafOptimization() {
657
- const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
338
+ syncWallet(request) {
339
+ const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
658
340
  return ret;
659
341
  }
660
342
  /**
343
+ * @param {UnregisterWebhookRequest} request
661
344
  * @returns {Promise<void>}
662
345
  */
663
- deleteLightningAddress() {
664
- const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
665
- return ret;
666
- }
667
- /**
668
- * @param {RegisterLightningAddressRequest} request
669
- * @returns {Promise<LightningAddressInfo>}
670
- */
671
- registerLightningAddress(request) {
672
- const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
673
- return ret;
674
- }
675
- /**
676
- * @returns {OptimizationProgress}
677
- */
678
- getLeafOptimizationProgress() {
679
- const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
680
- return ret;
681
- }
682
- /**
683
- * @param {CheckLightningAddressRequest} request
684
- * @returns {Promise<boolean>}
685
- */
686
- checkLightningAddressAvailable(request) {
687
- const ret = wasm.breezsdk_checkLightningAddressAvailable(this.__wbg_ptr, request);
688
- return ret;
689
- }
690
- /**
691
- * @param {string} input
692
- * @returns {Promise<InputType>}
693
- */
694
- parse(input) {
695
- const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
696
- const len0 = WASM_VECTOR_LEN;
697
- const ret = wasm.breezsdk_parse(this.__wbg_ptr, ptr0, len0);
346
+ unregisterWebhook(request) {
347
+ const ret = wasm.breezsdk_unregisterWebhook(this.__wbg_ptr, request);
698
348
  return ret;
699
349
  }
700
350
  /**
701
- * @param {GetInfoRequest} request
702
- * @returns {Promise<GetInfoResponse>}
351
+ * @param {UpdateContactRequest} request
352
+ * @returns {Promise<Contact>}
703
353
  */
704
- getInfo(request) {
705
- const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
354
+ updateContact(request) {
355
+ const ret = wasm.breezsdk_updateContact(this.__wbg_ptr, request);
706
356
  return ret;
707
357
  }
708
358
  /**
709
- * @param {LnurlPayRequest} request
710
- * @returns {Promise<LnurlPayResponse>}
359
+ * @param {UpdateUserSettingsRequest} request
360
+ * @returns {Promise<void>}
711
361
  */
712
- lnurlPay(request) {
713
- const ret = wasm.breezsdk_lnurlPay(this.__wbg_ptr, request);
362
+ updateUserSettings(request) {
363
+ const ret = wasm.breezsdk_updateUserSettings(this.__wbg_ptr, request);
714
364
  return ret;
715
365
  }
716
366
  }
367
+ if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
717
368
 
718
- const DefaultSignerFinalization = (typeof FinalizationRegistry === 'undefined')
719
- ? { register: () => {}, unregister: () => {} }
720
- : new FinalizationRegistry(ptr => wasm.__wbg_defaultsigner_free(ptr >>> 0, 1));
721
369
  /**
722
370
  * A default signer implementation that wraps the core SDK's ExternalSigner.
723
371
  * This is returned by `defaultExternalSigner` and can be passed to `connectWithSigner`.
724
372
  */
725
373
  export class DefaultSigner {
726
-
727
374
  static __wrap(ptr) {
728
- ptr = ptr >>> 0;
729
375
  const obj = Object.create(DefaultSigner.prototype);
730
376
  obj.__wbg_ptr = ptr;
731
377
  DefaultSignerFinalization.register(obj, obj.__wbg_ptr, obj);
732
378
  return obj;
733
379
  }
734
-
735
380
  __destroy_into_raw() {
736
381
  const ptr = this.__wbg_ptr;
737
382
  this.__wbg_ptr = 0;
738
383
  DefaultSignerFinalization.unregister(this);
739
384
  return ptr;
740
385
  }
741
-
742
386
  free() {
743
387
  const ptr = this.__destroy_into_raw();
744
388
  wasm.__wbg_defaultsigner_free(ptr, 0);
745
389
  }
746
390
  /**
747
- * @param {MessageBytes} message
748
- * @param {string} path
749
- * @returns {Promise<EcdsaSignatureBytes>}
750
- */
751
- signEcdsa(message, path) {
752
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
753
- const len0 = WASM_VECTOR_LEN;
754
- const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
755
- return ret;
756
- }
757
- /**
758
- * @param {ExternalSignFrostRequest} request
759
- * @returns {Promise<ExternalFrostSignatureShare>}
391
+ * @param {ExternalAggregateFrostRequest} request
392
+ * @returns {Promise<ExternalFrostSignature>}
760
393
  */
761
- signFrost(request) {
762
- const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
394
+ aggregateFrost(request) {
395
+ const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
763
396
  return ret;
764
397
  }
765
398
  /**
766
399
  * @param {Uint8Array} message
767
400
  * @param {string} path
768
- * @returns {Promise<HashedMessageBytes>}
401
+ * @returns {Promise<Uint8Array>}
769
402
  */
770
- hmacSha256(message, path) {
403
+ decryptEcies(message, path) {
771
404
  const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
772
405
  const len0 = WASM_VECTOR_LEN;
773
406
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
774
407
  const len1 = WASM_VECTOR_LEN;
775
- const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
408
+ const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
776
409
  return ret;
777
410
  }
778
411
  /**
779
- * @param {Uint8Array} message
780
412
  * @param {string} path
781
- * @returns {Promise<Uint8Array>}
413
+ * @returns {Promise<PublicKeyBytes>}
782
414
  */
783
- decryptEcies(message, path) {
784
- const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
415
+ derivePublicKey(path) {
416
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
785
417
  const len0 = WASM_VECTOR_LEN;
786
- const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
- const len1 = WASM_VECTOR_LEN;
788
- const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
418
+ const ret = wasm.defaultsigner_derivePublicKey(this.__wbg_ptr, ptr0, len0);
789
419
  return ret;
790
420
  }
791
421
  /**
@@ -802,43 +432,47 @@ export class DefaultSigner {
802
432
  return ret;
803
433
  }
804
434
  /**
805
- * @param {ExternalAggregateFrostRequest} request
806
- * @returns {Promise<ExternalFrostSignature>}
435
+ * @param {ExternalEncryptedSecret} private_key
436
+ * @param {PublicKeyBytes} receiver_public_key
437
+ * @returns {Promise<Uint8Array>}
807
438
  */
808
- aggregateFrost(request) {
809
- const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
439
+ encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
440
+ const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
810
441
  return ret;
811
442
  }
812
443
  /**
813
- * @param {ExternalSecretSource} signing_key
814
- * @param {ExternalSecretSource} new_signing_key
815
- * @returns {Promise<ExternalSecretSource>}
444
+ * @returns {Promise<ExternalEncryptedSecret>}
816
445
  */
817
- subtractSecrets(signing_key, new_signing_key) {
818
- const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
446
+ generateRandomSecret() {
447
+ const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
819
448
  return ret;
820
449
  }
821
450
  /**
822
- * @param {string} path
451
+ * @returns {Promise<ExternalFrostCommitments>}
452
+ */
453
+ generateRandomSigningCommitment() {
454
+ const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
455
+ return ret;
456
+ }
457
+ /**
458
+ * @param {ExternalTreeNodeId} id
823
459
  * @returns {Promise<PublicKeyBytes>}
824
460
  */
825
- derivePublicKey(path) {
826
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
827
- const len0 = WASM_VECTOR_LEN;
828
- const ret = wasm.defaultsigner_derivePublicKey(this.__wbg_ptr, ptr0, len0);
461
+ getPublicKeyForNode(id) {
462
+ const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
829
463
  return ret;
830
464
  }
831
465
  /**
832
- * @param {Uint8Array} hash
466
+ * @param {Uint8Array} message
833
467
  * @param {string} path
834
- * @returns {Promise<SchnorrSignatureBytes>}
468
+ * @returns {Promise<HashedMessageBytes>}
835
469
  */
836
- signHashSchnorr(hash, path) {
837
- const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
470
+ hmacSha256(message, path) {
471
+ const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
838
472
  const len0 = WASM_VECTOR_LEN;
839
473
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
840
474
  const len1 = WASM_VECTOR_LEN;
841
- const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
475
+ const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
842
476
  return ret;
843
477
  }
844
478
  /**
@@ -851,21 +485,6 @@ export class DefaultSigner {
851
485
  }
852
486
  return takeFromExternrefTable0(ret[0]);
853
487
  }
854
- /**
855
- * @param {number} index
856
- * @returns {Promise<SecretBytes>}
857
- */
858
- staticDepositSecret(index) {
859
- const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
860
- return ret;
861
- }
862
- /**
863
- * @returns {Promise<ExternalEncryptedSecret>}
864
- */
865
- generateRandomSecret() {
866
- const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
867
- return ret;
868
- }
869
488
  /**
870
489
  * @param {ExternalSecretSource} private_key
871
490
  * @returns {Promise<PublicKeyBytes>}
@@ -874,6 +493,17 @@ export class DefaultSigner {
874
493
  const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
875
494
  return ret;
876
495
  }
496
+ /**
497
+ * @param {MessageBytes} message
498
+ * @param {string} path
499
+ * @returns {Promise<EcdsaSignatureBytes>}
500
+ */
501
+ signEcdsa(message, path) {
502
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
503
+ const len0 = WASM_VECTOR_LEN;
504
+ const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
505
+ return ret;
506
+ }
877
507
  /**
878
508
  * @param {MessageBytes} message
879
509
  * @param {string} path
@@ -886,11 +516,24 @@ export class DefaultSigner {
886
516
  return ret;
887
517
  }
888
518
  /**
889
- * @param {ExternalTreeNodeId} id
890
- * @returns {Promise<PublicKeyBytes>}
519
+ * @param {ExternalSignFrostRequest} request
520
+ * @returns {Promise<ExternalFrostSignatureShare>}
891
521
  */
892
- getPublicKeyForNode(id) {
893
- const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
522
+ signFrost(request) {
523
+ const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
524
+ return ret;
525
+ }
526
+ /**
527
+ * @param {Uint8Array} hash
528
+ * @param {string} path
529
+ * @returns {Promise<SchnorrSignatureBytes>}
530
+ */
531
+ signHashSchnorr(hash, path) {
532
+ const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
533
+ const len0 = WASM_VECTOR_LEN;
534
+ const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
535
+ const len1 = WASM_VECTOR_LEN;
536
+ const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
894
537
  return ret;
895
538
  }
896
539
  /**
@@ -905,51 +548,47 @@ export class DefaultSigner {
905
548
  }
906
549
  /**
907
550
  * @param {number} index
908
- * @returns {Promise<PublicKeyBytes>}
551
+ * @returns {Promise<SecretBytes>}
909
552
  */
910
- staticDepositSigningKey(index) {
911
- const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
553
+ staticDepositSecret(index) {
554
+ const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
912
555
  return ret;
913
556
  }
914
557
  /**
915
- * @param {ExternalEncryptedSecret} private_key
916
- * @param {PublicKeyBytes} receiver_public_key
917
- * @returns {Promise<Uint8Array>}
558
+ * @param {number} index
559
+ * @returns {Promise<ExternalSecretSource>}
918
560
  */
919
- encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
920
- const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
561
+ staticDepositSecretEncrypted(index) {
562
+ const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
921
563
  return ret;
922
564
  }
923
565
  /**
924
566
  * @param {number} index
925
- * @returns {Promise<ExternalSecretSource>}
567
+ * @returns {Promise<PublicKeyBytes>}
926
568
  */
927
- staticDepositSecretEncrypted(index) {
928
- const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
569
+ staticDepositSigningKey(index) {
570
+ const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
929
571
  return ret;
930
572
  }
931
573
  /**
932
- * @returns {Promise<ExternalFrostCommitments>}
574
+ * @param {ExternalSecretSource} signing_key
575
+ * @param {ExternalSecretSource} new_signing_key
576
+ * @returns {Promise<ExternalSecretSource>}
933
577
  */
934
- generateRandomSigningCommitment() {
935
- const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
578
+ subtractSecrets(signing_key, new_signing_key) {
579
+ const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
936
580
  return ret;
937
581
  }
938
582
  }
939
-
940
- const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
941
- ? { register: () => {}, unregister: () => {} }
942
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
583
+ if (Symbol.dispose) DefaultSigner.prototype[Symbol.dispose] = DefaultSigner.prototype.free;
943
584
 
944
585
  export class IntoUnderlyingByteSource {
945
-
946
586
  __destroy_into_raw() {
947
587
  const ptr = this.__wbg_ptr;
948
588
  this.__wbg_ptr = 0;
949
589
  IntoUnderlyingByteSourceFinalization.unregister(this);
950
590
  return ptr;
951
591
  }
952
-
953
592
  free() {
954
593
  const ptr = this.__destroy_into_raw();
955
594
  wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
@@ -961,6 +600,10 @@ export class IntoUnderlyingByteSource {
961
600
  const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
962
601
  return ret >>> 0;
963
602
  }
603
+ cancel() {
604
+ const ptr = this.__destroy_into_raw();
605
+ wasm.intounderlyingbytesource_cancel(ptr);
606
+ }
964
607
  /**
965
608
  * @param {ReadableByteStreamController} controller
966
609
  * @returns {Promise<any>}
@@ -982,25 +625,16 @@ export class IntoUnderlyingByteSource {
982
625
  const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
983
626
  return __wbindgen_enum_ReadableStreamType[ret];
984
627
  }
985
- cancel() {
986
- const ptr = this.__destroy_into_raw();
987
- wasm.intounderlyingbytesource_cancel(ptr);
988
- }
989
628
  }
990
-
991
- const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
992
- ? { register: () => {}, unregister: () => {} }
993
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
629
+ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
994
630
 
995
631
  export class IntoUnderlyingSink {
996
-
997
632
  __destroy_into_raw() {
998
633
  const ptr = this.__wbg_ptr;
999
634
  this.__wbg_ptr = 0;
1000
635
  IntoUnderlyingSinkFinalization.unregister(this);
1001
636
  return ptr;
1002
637
  }
1003
-
1004
638
  free() {
1005
639
  const ptr = this.__destroy_into_raw();
1006
640
  wasm.__wbg_intounderlyingsink_free(ptr, 0);
@@ -1031,24 +665,23 @@ export class IntoUnderlyingSink {
1031
665
  return ret;
1032
666
  }
1033
667
  }
1034
-
1035
- const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
1036
- ? { register: () => {}, unregister: () => {} }
1037
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
668
+ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
1038
669
 
1039
670
  export class IntoUnderlyingSource {
1040
-
1041
671
  __destroy_into_raw() {
1042
672
  const ptr = this.__wbg_ptr;
1043
673
  this.__wbg_ptr = 0;
1044
674
  IntoUnderlyingSourceFinalization.unregister(this);
1045
675
  return ptr;
1046
676
  }
1047
-
1048
677
  free() {
1049
678
  const ptr = this.__destroy_into_raw();
1050
679
  wasm.__wbg_intounderlyingsource_free(ptr, 0);
1051
680
  }
681
+ cancel() {
682
+ const ptr = this.__destroy_into_raw();
683
+ wasm.intounderlyingsource_cancel(ptr);
684
+ }
1052
685
  /**
1053
686
  * @param {ReadableStreamDefaultController} controller
1054
687
  * @returns {Promise<any>}
@@ -1057,15 +690,9 @@ export class IntoUnderlyingSource {
1057
690
  const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
1058
691
  return ret;
1059
692
  }
1060
- cancel() {
1061
- const ptr = this.__destroy_into_raw();
1062
- wasm.intounderlyingsource_cancel(ptr);
1063
- }
1064
693
  }
694
+ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
1065
695
 
1066
- const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
1067
- ? { register: () => {}, unregister: () => {} }
1068
- : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr >>> 0, 1));
1069
696
  /**
1070
697
  * Passkey-based wallet operations using WebAuthn PRF extension.
1071
698
  *
@@ -1073,14 +700,12 @@ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
1073
700
  * wallet derivation and label management via Nostr relays.
1074
701
  */
1075
702
  export class Passkey {
1076
-
1077
703
  __destroy_into_raw() {
1078
704
  const ptr = this.__wbg_ptr;
1079
705
  this.__wbg_ptr = 0;
1080
706
  PasskeyFinalization.unregister(this);
1081
707
  return ptr;
1082
708
  }
1083
-
1084
709
  free() {
1085
710
  const ptr = this.__destroy_into_raw();
1086
711
  wasm.__wbg_passkey_free(ptr, 0);
@@ -1100,6 +725,14 @@ export class Passkey {
1100
725
  const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
1101
726
  return ret;
1102
727
  }
728
+ /**
729
+ * Check if passkey PRF is available on this device.
730
+ * @returns {Promise<boolean>}
731
+ */
732
+ isAvailable() {
733
+ const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
734
+ return ret;
735
+ }
1103
736
  /**
1104
737
  * List all labels published to Nostr for this passkey's identity.
1105
738
  *
@@ -1110,6 +743,20 @@ export class Passkey {
1110
743
  const ret = wasm.passkey_listLabels(this.__wbg_ptr);
1111
744
  return ret;
1112
745
  }
746
+ /**
747
+ * Create a new `Passkey` instance.
748
+ *
749
+ * @param prfProvider - Platform implementation of passkey PRF operations
750
+ * @param relayConfig - Optional configuration for Nostr relay connections
751
+ * @param {PasskeyPrfProvider} prf_provider
752
+ * @param {NostrRelayConfig | null} [relay_config]
753
+ */
754
+ constructor(prf_provider, relay_config) {
755
+ const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
756
+ this.__wbg_ptr = ret;
757
+ PasskeyFinalization.register(this, this.__wbg_ptr, this);
758
+ return this;
759
+ }
1113
760
  /**
1114
761
  * Publish a label to Nostr relays for this passkey's identity.
1115
762
  *
@@ -1124,71 +771,41 @@ export class Passkey {
1124
771
  const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
1125
772
  return ret;
1126
773
  }
1127
- /**
1128
- * Check if passkey PRF is available on this device.
1129
- * @returns {Promise<boolean>}
1130
- */
1131
- isAvailable() {
1132
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
1133
- return ret;
1134
- }
1135
- /**
1136
- * Create a new `Passkey` instance.
1137
- *
1138
- * @param prfProvider - Platform implementation of passkey PRF operations
1139
- * @param relayConfig - Optional configuration for Nostr relay connections
1140
- * @param {PasskeyPrfProvider} prf_provider
1141
- * @param {NostrRelayConfig | null} [relay_config]
1142
- */
1143
- constructor(prf_provider, relay_config) {
1144
- const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
1145
- this.__wbg_ptr = ret >>> 0;
1146
- PasskeyFinalization.register(this, this.__wbg_ptr, this);
1147
- return this;
1148
- }
1149
774
  }
1150
-
1151
- const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
1152
- ? { register: () => {}, unregister: () => {} }
1153
- : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
775
+ if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
1154
776
 
1155
777
  export class SdkBuilder {
1156
-
1157
778
  static __wrap(ptr) {
1158
- ptr = ptr >>> 0;
1159
779
  const obj = Object.create(SdkBuilder.prototype);
1160
780
  obj.__wbg_ptr = ptr;
1161
781
  SdkBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
1162
782
  return obj;
1163
783
  }
1164
-
1165
784
  __destroy_into_raw() {
1166
785
  const ptr = this.__wbg_ptr;
1167
786
  this.__wbg_ptr = 0;
1168
787
  SdkBuilderFinalization.unregister(this);
1169
788
  return ptr;
1170
789
  }
1171
-
1172
790
  free() {
1173
791
  const ptr = this.__destroy_into_raw();
1174
792
  wasm.__wbg_sdkbuilder_free(ptr, 0);
1175
793
  }
1176
794
  /**
1177
- * @param {KeySetConfig} config
1178
- * @returns {SdkBuilder}
795
+ * @returns {Promise<BreezSdk>}
1179
796
  */
1180
- withKeySet(config) {
797
+ build() {
1181
798
  const ptr = this.__destroy_into_raw();
1182
- const ret = wasm.sdkbuilder_withKeySet(ptr, config);
1183
- return SdkBuilder.__wrap(ret);
799
+ const ret = wasm.sdkbuilder_build(ptr);
800
+ return ret;
1184
801
  }
1185
802
  /**
1186
- * @param {Storage} storage
803
+ * @param {Config} config
804
+ * @param {Seed} seed
1187
805
  * @returns {SdkBuilder}
1188
806
  */
1189
- withStorage(storage) {
1190
- const ptr = this.__destroy_into_raw();
1191
- const ret = wasm.sdkbuilder_withStorage(ptr, storage);
807
+ static new(config, seed) {
808
+ const ret = wasm.sdkbuilder_new(config, seed);
1192
809
  return SdkBuilder.__wrap(ret);
1193
810
  }
1194
811
  /**
@@ -1201,42 +818,51 @@ export class SdkBuilder {
1201
818
  return SdkBuilder.__wrap(ret);
1202
819
  }
1203
820
  /**
1204
- * @param {FiatService} fiat_service
821
+ * @param {BitcoinChainService} chain_service
1205
822
  * @returns {SdkBuilder}
1206
823
  */
1207
- withFiatService(fiat_service) {
824
+ withChainService(chain_service) {
1208
825
  const ptr = this.__destroy_into_raw();
1209
- const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
826
+ const ret = wasm.sdkbuilder_withChainService(ptr, chain_service);
1210
827
  return SdkBuilder.__wrap(ret);
1211
828
  }
1212
829
  /**
1213
- * @param {RestClient} lnurl_client
830
+ * @param {string} storage_dir
831
+ * @returns {Promise<SdkBuilder>}
832
+ */
833
+ withDefaultStorage(storage_dir) {
834
+ const ptr = this.__destroy_into_raw();
835
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
836
+ const len0 = WASM_VECTOR_LEN;
837
+ const ret = wasm.sdkbuilder_withDefaultStorage(ptr, ptr0, len0);
838
+ return ret;
839
+ }
840
+ /**
841
+ * @param {FiatService} fiat_service
1214
842
  * @returns {SdkBuilder}
1215
843
  */
1216
- withLnurlClient(lnurl_client) {
844
+ withFiatService(fiat_service) {
1217
845
  const ptr = this.__destroy_into_raw();
1218
- const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
846
+ const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
1219
847
  return SdkBuilder.__wrap(ret);
1220
848
  }
1221
849
  /**
1222
- * @param {BitcoinChainService} chain_service
850
+ * @param {KeySetConfig} config
1223
851
  * @returns {SdkBuilder}
1224
852
  */
1225
- withChainService(chain_service) {
853
+ withKeySet(config) {
1226
854
  const ptr = this.__destroy_into_raw();
1227
- const ret = wasm.sdkbuilder_withChainService(ptr, chain_service);
855
+ const ret = wasm.sdkbuilder_withKeySet(ptr, config);
1228
856
  return SdkBuilder.__wrap(ret);
1229
857
  }
1230
858
  /**
1231
- * @param {string} storage_dir
1232
- * @returns {Promise<SdkBuilder>}
859
+ * @param {RestClient} lnurl_client
860
+ * @returns {SdkBuilder}
1233
861
  */
1234
- withDefaultStorage(storage_dir) {
862
+ withLnurlClient(lnurl_client) {
1235
863
  const ptr = this.__destroy_into_raw();
1236
- const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1237
- const len0 = WASM_VECTOR_LEN;
1238
- const ret = wasm.sdkbuilder_withDefaultStorage(ptr, ptr0, len0);
1239
- return ret;
864
+ const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
865
+ return SdkBuilder.__wrap(ret);
1240
866
  }
1241
867
  /**
1242
868
  * @param {PaymentObserver} payment_observer
@@ -1270,45 +896,30 @@ export class SdkBuilder {
1270
896
  return SdkBuilder.__wrap(ret);
1271
897
  }
1272
898
  /**
1273
- * @param {Config} config
1274
- * @param {Seed} seed
899
+ * @param {Storage} storage
1275
900
  * @returns {SdkBuilder}
1276
901
  */
1277
- static new(config, seed) {
1278
- const ret = wasm.sdkbuilder_new(config, seed);
902
+ withStorage(storage) {
903
+ const ptr = this.__destroy_into_raw();
904
+ const ret = wasm.sdkbuilder_withStorage(ptr, storage);
1279
905
  return SdkBuilder.__wrap(ret);
1280
906
  }
1281
- /**
1282
- * @returns {Promise<BreezSdk>}
1283
- */
1284
- build() {
1285
- const ptr = this.__destroy_into_raw();
1286
- const ret = wasm.sdkbuilder_build(ptr);
1287
- return ret;
1288
- }
1289
907
  }
1290
-
1291
- const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
1292
- ? { register: () => {}, unregister: () => {} }
1293
- : new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
908
+ if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
1294
909
 
1295
910
  export class TokenIssuer {
1296
-
1297
911
  static __wrap(ptr) {
1298
- ptr = ptr >>> 0;
1299
912
  const obj = Object.create(TokenIssuer.prototype);
1300
913
  obj.__wbg_ptr = ptr;
1301
914
  TokenIssuerFinalization.register(obj, obj.__wbg_ptr, obj);
1302
915
  return obj;
1303
916
  }
1304
-
1305
917
  __destroy_into_raw() {
1306
918
  const ptr = this.__wbg_ptr;
1307
919
  this.__wbg_ptr = 0;
1308
920
  TokenIssuerFinalization.unregister(this);
1309
921
  return ptr;
1310
922
  }
1311
-
1312
923
  free() {
1313
924
  const ptr = this.__destroy_into_raw();
1314
925
  wasm.__wbg_tokenissuer_free(ptr, 0);
@@ -1321,14 +932,6 @@ export class TokenIssuer {
1321
932
  const ret = wasm.tokenissuer_burnIssuerToken(this.__wbg_ptr, request);
1322
933
  return ret;
1323
934
  }
1324
- /**
1325
- * @param {MintIssuerTokenRequest} request
1326
- * @returns {Promise<Payment>}
1327
- */
1328
- mintIssuerToken(request) {
1329
- const ret = wasm.tokenissuer_mintIssuerToken(this.__wbg_ptr, request);
1330
- return ret;
1331
- }
1332
935
  /**
1333
936
  * @param {CreateIssuerTokenRequest} request
1334
937
  * @returns {Promise<TokenMetadata>}
@@ -1345,14 +948,6 @@ export class TokenIssuer {
1345
948
  const ret = wasm.tokenissuer_freezeIssuerToken(this.__wbg_ptr, request);
1346
949
  return ret;
1347
950
  }
1348
- /**
1349
- * @param {UnfreezeIssuerTokenRequest} request
1350
- * @returns {Promise<UnfreezeIssuerTokenResponse>}
1351
- */
1352
- unfreezeIssuerToken(request) {
1353
- const ret = wasm.tokenissuer_unfreezeIssuerToken(this.__wbg_ptr, request);
1354
- return ret;
1355
- }
1356
951
  /**
1357
952
  * @returns {Promise<TokenBalance>}
1358
953
  */
@@ -1367,28 +962,241 @@ export class TokenIssuer {
1367
962
  const ret = wasm.tokenissuer_getIssuerTokenMetadata(this.__wbg_ptr);
1368
963
  return ret;
1369
964
  }
965
+ /**
966
+ * @param {MintIssuerTokenRequest} request
967
+ * @returns {Promise<Payment>}
968
+ */
969
+ mintIssuerToken(request) {
970
+ const ret = wasm.tokenissuer_mintIssuerToken(this.__wbg_ptr, request);
971
+ return ret;
972
+ }
973
+ /**
974
+ * @param {UnfreezeIssuerTokenRequest} request
975
+ * @returns {Promise<UnfreezeIssuerTokenResponse>}
976
+ */
977
+ unfreezeIssuerToken(request) {
978
+ const ret = wasm.tokenissuer_unfreezeIssuerToken(this.__wbg_ptr, request);
979
+ return ret;
980
+ }
981
+ }
982
+ if (Symbol.dispose) TokenIssuer.prototype[Symbol.dispose] = TokenIssuer.prototype.free;
983
+
984
+ /**
985
+ * @param {ConnectRequest} request
986
+ * @returns {Promise<BreezSdk>}
987
+ */
988
+ export function connect(request) {
989
+ const ret = wasm.connect(request);
990
+ return ret;
991
+ }
992
+
993
+ /**
994
+ * @param {Config} config
995
+ * @param {ExternalSigner} signer
996
+ * @param {string} storage_dir
997
+ * @returns {Promise<BreezSdk>}
998
+ */
999
+ export function connectWithSigner(config, signer, storage_dir) {
1000
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1001
+ const len0 = WASM_VECTOR_LEN;
1002
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
1003
+ return ret;
1004
+ }
1005
+
1006
+ /**
1007
+ * @param {Network} network
1008
+ * @returns {Config}
1009
+ */
1010
+ export function defaultConfig(network) {
1011
+ const ret = wasm.defaultConfig(network);
1012
+ return ret;
1013
+ }
1014
+
1015
+ /**
1016
+ * @param {string} mnemonic
1017
+ * @param {string | null | undefined} passphrase
1018
+ * @param {Network} network
1019
+ * @param {KeySetConfig | null} [key_set_config]
1020
+ * @returns {DefaultSigner}
1021
+ */
1022
+ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
1023
+ const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1024
+ const len0 = WASM_VECTOR_LEN;
1025
+ var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1026
+ var len1 = WASM_VECTOR_LEN;
1027
+ const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
1028
+ if (ret[2]) {
1029
+ throw takeFromExternrefTable0(ret[1]);
1030
+ }
1031
+ return DefaultSigner.__wrap(ret[0]);
1032
+ }
1033
+
1034
+ /**
1035
+ * Creates a default PostgreSQL storage configuration with sensible defaults.
1036
+ *
1037
+ * Default values (from pg.Pool):
1038
+ * - `maxPoolSize`: 10
1039
+ * - `createTimeoutSecs`: 0 (no timeout)
1040
+ * - `recycleTimeoutSecs`: 10 (10 seconds idle before disconnect)
1041
+ * @param {string} connection_string
1042
+ * @returns {PostgresStorageConfig}
1043
+ */
1044
+ export function defaultPostgresStorageConfig(connection_string) {
1045
+ const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1046
+ const len0 = WASM_VECTOR_LEN;
1047
+ const ret = wasm.defaultPostgresStorageConfig(ptr0, len0);
1048
+ return ret;
1049
+ }
1050
+
1051
+ /**
1052
+ * Creates a default external signer from a mnemonic phrase.
1053
+ *
1054
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
1055
+ * @returns {Promise<SparkStatus>}
1056
+ */
1057
+ export function getSparkStatus() {
1058
+ const ret = wasm.getSparkStatus();
1059
+ return ret;
1060
+ }
1061
+
1062
+ /**
1063
+ * @param {Logger} logger
1064
+ * @param {string | null} [filter]
1065
+ * @returns {Promise<void>}
1066
+ */
1067
+ export function initLogging(logger, filter) {
1068
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1069
+ var len0 = WASM_VECTOR_LEN;
1070
+ const ret = wasm.initLogging(logger, ptr0, len0);
1071
+ return ret;
1370
1072
  }
1371
1073
 
1372
- const imports = {
1373
- __wbindgen_placeholder__: {
1374
- __wbg_BigInt_470dd987b8190f8e: function(arg0) {
1074
+ /**
1075
+ * Entry point invoked by JavaScript in a worker.
1076
+ * @param {number} ptr
1077
+ */
1078
+ export function task_worker_entry_point(ptr) {
1079
+ const ret = wasm.task_worker_entry_point(ptr);
1080
+ if (ret[1]) {
1081
+ throw takeFromExternrefTable0(ret[0]);
1082
+ }
1083
+ }
1084
+ function __wbg_get_imports() {
1085
+ const import0 = {
1086
+ __proto__: null,
1087
+ __wbg_BigInt_ae200e93cacbd2b3: function(arg0) {
1375
1088
  const ret = BigInt(arg0);
1376
1089
  return ret;
1377
1090
  },
1378
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
1091
+ __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
1092
+ const ret = Error(getStringFromWasm0(arg0, arg1));
1093
+ return ret;
1094
+ },
1095
+ __wbg_Number_a3d737fd183f7dca: function(arg0) {
1096
+ const ret = Number(arg0);
1097
+ return ret;
1098
+ },
1099
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
1379
1100
  const ret = String(arg1);
1380
1101
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1381
1102
  const len1 = WASM_VECTOR_LEN;
1382
1103
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1383
1104
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1384
1105
  },
1385
- __wbg_abort_410ec47a64ac6117: function(arg0, arg1) {
1106
+ __wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b: function(arg0, arg1) {
1107
+ const v = arg1;
1108
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1109
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1110
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1111
+ },
1112
+ __wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) {
1113
+ const v = arg0;
1114
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1115
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1116
+ },
1117
+ __wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
1118
+ const ret = debugString(arg1);
1119
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1120
+ const len1 = WASM_VECTOR_LEN;
1121
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1122
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1123
+ },
1124
+ __wbg___wbindgen_in_2617fa76397620d3: function(arg0, arg1) {
1125
+ const ret = arg0 in arg1;
1126
+ return ret;
1127
+ },
1128
+ __wbg___wbindgen_is_bigint_d6a8167cac401b95: function(arg0) {
1129
+ const ret = typeof(arg0) === 'bigint';
1130
+ return ret;
1131
+ },
1132
+ __wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
1133
+ const ret = typeof(arg0) === 'function';
1134
+ return ret;
1135
+ },
1136
+ __wbg___wbindgen_is_null_066086be3abe9bb3: function(arg0) {
1137
+ const ret = arg0 === null;
1138
+ return ret;
1139
+ },
1140
+ __wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
1141
+ const val = arg0;
1142
+ const ret = typeof(val) === 'object' && val !== null;
1143
+ return ret;
1144
+ },
1145
+ __wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
1146
+ const ret = typeof(arg0) === 'string';
1147
+ return ret;
1148
+ },
1149
+ __wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
1150
+ const ret = arg0 === undefined;
1151
+ return ret;
1152
+ },
1153
+ __wbg___wbindgen_jsval_eq_403eaa3610500a25: function(arg0, arg1) {
1154
+ const ret = arg0 === arg1;
1155
+ return ret;
1156
+ },
1157
+ __wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62: function(arg0, arg1) {
1158
+ const ret = arg0 == arg1;
1159
+ return ret;
1160
+ },
1161
+ __wbg___wbindgen_lt_c483cc694de67c3e: function(arg0, arg1) {
1162
+ const ret = arg0 < arg1;
1163
+ return ret;
1164
+ },
1165
+ __wbg___wbindgen_neg_9b4d71823e3bc513: function(arg0) {
1166
+ const ret = -arg0;
1167
+ return ret;
1168
+ },
1169
+ __wbg___wbindgen_number_get_dd6d69a6079f26f1: function(arg0, arg1) {
1170
+ const obj = arg1;
1171
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1172
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1173
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1174
+ },
1175
+ __wbg___wbindgen_shr_d8f8268f18c7a1c3: function(arg0, arg1) {
1176
+ const ret = arg0 >> arg1;
1177
+ return ret;
1178
+ },
1179
+ __wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
1180
+ const obj = arg1;
1181
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1182
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1183
+ var len1 = WASM_VECTOR_LEN;
1184
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1185
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1186
+ },
1187
+ __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
1188
+ throw new Error(getStringFromWasm0(arg0, arg1));
1189
+ },
1190
+ __wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) {
1191
+ arg0._wbg_cb_unref();
1192
+ },
1193
+ __wbg_abort_43913e33ecb83d0d: function(arg0, arg1) {
1386
1194
  arg0.abort(arg1);
1387
1195
  },
1388
- __wbg_abort_775ef1d17fc65868: function(arg0) {
1196
+ __wbg_abort_87eb7f23cf4b73d1: function(arg0) {
1389
1197
  arg0.abort();
1390
1198
  },
1391
- __wbg_addDeposit_42b1593db58de120: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1199
+ __wbg_addDeposit_a506b5a5bf8c1cbc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1392
1200
  let deferred0_0;
1393
1201
  let deferred0_1;
1394
1202
  try {
@@ -1399,29 +1207,29 @@ const imports = {
1399
1207
  } finally {
1400
1208
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1401
1209
  }
1402
- }, arguments) },
1403
- __wbg_addLeaves_226f98499cdaa66d: function() { return handleError(function (arg0, arg1) {
1210
+ }, arguments); },
1211
+ __wbg_addLeaves_96b8c0f05f6b2a00: function() { return handleError(function (arg0, arg1) {
1404
1212
  const ret = arg0.addLeaves(arg1);
1405
1213
  return ret;
1406
- }, arguments) },
1407
- __wbg_aggregateFrost_053f2d54394422d5: function() { return handleError(function (arg0, arg1) {
1214
+ }, arguments); },
1215
+ __wbg_aggregateFrost_8eb928d3bf25ad91: function() { return handleError(function (arg0, arg1) {
1408
1216
  const ret = arg0.aggregateFrost(arg1);
1409
1217
  return ret;
1410
- }, arguments) },
1411
- __wbg_append_8c7dd8d641a5f01b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1218
+ }, arguments); },
1219
+ __wbg_append_8df396311184f750: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1412
1220
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1413
- }, arguments) },
1414
- __wbg_arrayBuffer_d1b44c4390db422f: function() { return handleError(function (arg0) {
1221
+ }, arguments); },
1222
+ __wbg_arrayBuffer_87e3ac06d961f7a0: function() { return handleError(function (arg0) {
1415
1223
  const ret = arg0.arrayBuffer();
1416
1224
  return ret;
1417
- }, arguments) },
1418
- __wbg_beforeSend_57747b03876e1d28: function() { return handleError(function (arg0, arg1, arg2) {
1225
+ }, arguments); },
1226
+ __wbg_beforeSend_e8a50acd6afd73ed: function() { return handleError(function (arg0, arg1, arg2) {
1419
1227
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1420
1228
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1421
1229
  const ret = arg0.beforeSend(v0);
1422
1230
  return ret;
1423
- }, arguments) },
1424
- __wbg_body_0b8fd1fe671660df: function(arg0) {
1231
+ }, arguments); },
1232
+ __wbg_body_6929614c20dfa7b0: function(arg0) {
1425
1233
  const ret = arg0.body;
1426
1234
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1427
1235
  },
@@ -1429,7 +1237,7 @@ const imports = {
1429
1237
  const ret = BreezSdk.__wrap(arg0);
1430
1238
  return ret;
1431
1239
  },
1432
- __wbg_broadcastTransaction_67533cdbfe67273e: function() { return handleError(function (arg0, arg1, arg2) {
1240
+ __wbg_broadcastTransaction_f298d093a11def5e: function() { return handleError(function (arg0, arg1, arg2) {
1433
1241
  let deferred0_0;
1434
1242
  let deferred0_1;
1435
1243
  try {
@@ -1440,121 +1248,117 @@ const imports = {
1440
1248
  } finally {
1441
1249
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1442
1250
  }
1443
- }, arguments) },
1444
- __wbg_buffer_09165b52af8c5237: function(arg0) {
1251
+ }, arguments); },
1252
+ __wbg_buffer_9ee17426fe5a5d65: function(arg0) {
1445
1253
  const ret = arg0.buffer;
1446
1254
  return ret;
1447
1255
  },
1448
- __wbg_buffer_609cc3eee51ed158: function(arg0) {
1449
- const ret = arg0.buffer;
1450
- return ret;
1451
- },
1452
- __wbg_byobRequest_77d9adf63337edfb: function(arg0) {
1256
+ __wbg_byobRequest_178b64c09a0bee03: function(arg0) {
1453
1257
  const ret = arg0.byobRequest;
1454
1258
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1455
1259
  },
1456
- __wbg_byteLength_e674b853d9c77e1d: function(arg0) {
1260
+ __wbg_byteLength_1f57c71e64ee0180: function(arg0) {
1457
1261
  const ret = arg0.byteLength;
1458
1262
  return ret;
1459
1263
  },
1460
- __wbg_byteOffset_fd862df290ef848d: function(arg0) {
1264
+ __wbg_byteOffset_648d0af273024f3d: function(arg0) {
1461
1265
  const ret = arg0.byteOffset;
1462
1266
  return ret;
1463
1267
  },
1464
- __wbg_call_672a4d21634d4a24: function() { return handleError(function (arg0, arg1) {
1465
- const ret = arg0.call(arg1);
1466
- return ret;
1467
- }, arguments) },
1468
- __wbg_call_7cccdd69e0791ae2: function() { return handleError(function (arg0, arg1, arg2) {
1268
+ __wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
1469
1269
  const ret = arg0.call(arg1, arg2);
1470
1270
  return ret;
1471
- }, arguments) },
1472
- __wbg_cancelReservation_038a18dbc15a13b5: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1271
+ }, arguments); },
1272
+ __wbg_call_add9e5a76382e668: function() { return handleError(function (arg0, arg1) {
1273
+ const ret = arg0.call(arg1);
1274
+ return ret;
1275
+ }, arguments); },
1276
+ __wbg_cancelReservation_d3cadf13ef3b466b: function() { return handleError(function (arg0, arg1, arg2) {
1473
1277
  let deferred0_0;
1474
1278
  let deferred0_1;
1475
1279
  try {
1476
1280
  deferred0_0 = arg1;
1477
1281
  deferred0_1 = arg2;
1478
- const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
1282
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1479
1283
  return ret;
1480
1284
  } finally {
1481
1285
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1482
1286
  }
1483
- }, arguments) },
1484
- __wbg_cancelReservation_fd3065607b457424: function() { return handleError(function (arg0, arg1, arg2) {
1287
+ }, arguments); },
1288
+ __wbg_cancelReservation_fdc08ad6bfe4ea81: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1485
1289
  let deferred0_0;
1486
1290
  let deferred0_1;
1487
1291
  try {
1488
1292
  deferred0_0 = arg1;
1489
1293
  deferred0_1 = arg2;
1490
- const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1294
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
1491
1295
  return ret;
1492
1296
  } finally {
1493
1297
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1494
1298
  }
1495
- }, arguments) },
1496
- __wbg_cancel_8a308660caa6cadf: function(arg0) {
1299
+ }, arguments); },
1300
+ __wbg_cancel_f97a3ee5a8b30eef: function(arg0) {
1497
1301
  const ret = arg0.cancel();
1498
1302
  return ret;
1499
1303
  },
1500
- __wbg_catch_a6e601879b2610e9: function(arg0, arg1) {
1304
+ __wbg_catch_f939343cb181958c: function(arg0, arg1) {
1501
1305
  const ret = arg0.catch(arg1);
1502
1306
  return ret;
1503
1307
  },
1504
- __wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
1308
+ __wbg_clearTimeout_113b1cde814ec762: function(arg0) {
1505
1309
  const ret = clearTimeout(arg0);
1506
1310
  return ret;
1507
1311
  },
1508
- __wbg_clearTimeout_6222fede17abcb1a: function(arg0) {
1312
+ __wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
1509
1313
  const ret = clearTimeout(arg0);
1510
1314
  return ret;
1511
1315
  },
1512
- __wbg_close_2893b7d056a0627d: function() { return handleError(function (arg0) {
1316
+ __wbg_close_63e009c5a75f5597: function() { return handleError(function (arg0) {
1513
1317
  arg0.close();
1514
- }, arguments) },
1515
- __wbg_close_304cc1fef3466669: function() { return handleError(function (arg0) {
1318
+ }, arguments); },
1319
+ __wbg_close_931d0c62e2aab92c: function() { return handleError(function (arg0) {
1516
1320
  arg0.close();
1517
- }, arguments) },
1518
- __wbg_close_5ce03e29be453811: function() { return handleError(function (arg0) {
1321
+ }, arguments); },
1322
+ __wbg_close_de471367367aa5cb: function() { return handleError(function (arg0) {
1519
1323
  arg0.close();
1520
- }, arguments) },
1521
- __wbg_code_cfd8f6868bdaed9b: function(arg0) {
1324
+ }, arguments); },
1325
+ __wbg_code_be6f339819ebb2c4: function(arg0) {
1522
1326
  const ret = arg0.code;
1523
1327
  return ret;
1524
1328
  },
1525
- __wbg_code_f4ec1e6e2e1b0417: function(arg0) {
1329
+ __wbg_code_f1d2ddc1fbbb5aad: function(arg0) {
1526
1330
  const ret = arg0.code;
1527
1331
  return ret;
1528
1332
  },
1529
- __wbg_createDefaultStorage_458aa01b5eaead27: function() { return handleError(function (arg0, arg1, arg2) {
1333
+ __wbg_createDefaultStorage_0d66fd24fb8cc6f3: function() { return handleError(function (arg0, arg1, arg2) {
1530
1334
  const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
1531
1335
  return ret;
1532
- }, arguments) },
1533
- __wbg_createPostgresPool_8b4003e9db8e9432: function() { return handleError(function (arg0) {
1336
+ }, arguments); },
1337
+ __wbg_createPostgresPool_3c396c7ab2f0eab2: function() { return handleError(function (arg0) {
1534
1338
  const ret = createPostgresPool(arg0);
1535
1339
  return ret;
1536
- }, arguments) },
1537
- __wbg_createPostgresStorageWithPool_77aa64bddd7440db: function() { return handleError(function (arg0, arg1) {
1340
+ }, arguments); },
1341
+ __wbg_createPostgresStorageWithPool_9effb8c7315e402a: function() { return handleError(function (arg0, arg1) {
1538
1342
  const ret = createPostgresStorageWithPool(arg0, arg1);
1539
1343
  return ret;
1540
- }, arguments) },
1541
- __wbg_createPostgresTokenStoreWithPool_5e7b75f5975d8b94: function() { return handleError(function (arg0, arg1) {
1344
+ }, arguments); },
1345
+ __wbg_createPostgresTokenStoreWithPool_810f67a7b8eced70: function() { return handleError(function (arg0, arg1) {
1542
1346
  const ret = createPostgresTokenStoreWithPool(arg0, arg1);
1543
1347
  return ret;
1544
- }, arguments) },
1545
- __wbg_createPostgresTreeStoreWithPool_55e19122e69fb9e3: function() { return handleError(function (arg0, arg1) {
1348
+ }, arguments); },
1349
+ __wbg_createPostgresTreeStoreWithPool_d6f7ade37b9e1ecc: function() { return handleError(function (arg0, arg1) {
1546
1350
  const ret = createPostgresTreeStoreWithPool(arg0, arg1);
1547
1351
  return ret;
1548
- }, arguments) },
1549
- __wbg_crypto_574e78ad8b13b65f: function(arg0) {
1352
+ }, arguments); },
1353
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
1550
1354
  const ret = arg0.crypto;
1551
1355
  return ret;
1552
1356
  },
1553
- __wbg_data_432d9c3df2630942: function(arg0) {
1357
+ __wbg_data_4a14fad4c5f216c4: function(arg0) {
1554
1358
  const ret = arg0.data;
1555
1359
  return ret;
1556
1360
  },
1557
- __wbg_deleteCachedItem_ff3c84380e94360b: function() { return handleError(function (arg0, arg1, arg2) {
1361
+ __wbg_deleteCachedItem_b8fbe3ebea21ed7e: function() { return handleError(function (arg0, arg1, arg2) {
1558
1362
  let deferred0_0;
1559
1363
  let deferred0_1;
1560
1364
  try {
@@ -1565,8 +1369,8 @@ const imports = {
1565
1369
  } finally {
1566
1370
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1567
1371
  }
1568
- }, arguments) },
1569
- __wbg_deleteContact_04d635b32c469d83: function() { return handleError(function (arg0, arg1, arg2) {
1372
+ }, arguments); },
1373
+ __wbg_deleteContact_415ef25ea1d91dff: function() { return handleError(function (arg0, arg1, arg2) {
1570
1374
  let deferred0_0;
1571
1375
  let deferred0_1;
1572
1376
  try {
@@ -1577,8 +1381,8 @@ const imports = {
1577
1381
  } finally {
1578
1382
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1579
1383
  }
1580
- }, arguments) },
1581
- __wbg_deleteDeposit_72ec826e7c3c3ccf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1384
+ }, arguments); },
1385
+ __wbg_deleteDeposit_f62650143b0453b9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1582
1386
  let deferred0_0;
1583
1387
  let deferred0_1;
1584
1388
  try {
@@ -1589,8 +1393,8 @@ const imports = {
1589
1393
  } finally {
1590
1394
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1591
1395
  }
1592
- }, arguments) },
1593
- __wbg_deleteRequest_7be0a74a10deac70: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1396
+ }, arguments); },
1397
+ __wbg_deleteRequest_597243024c6ce08c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1594
1398
  let deferred0_0;
1595
1399
  let deferred0_1;
1596
1400
  try {
@@ -1606,8 +1410,8 @@ const imports = {
1606
1410
  } finally {
1607
1411
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1608
1412
  }
1609
- }, arguments) },
1610
- __wbg_derivePrfSeed_8584c0fcf554b593: function() { return handleError(function (arg0, arg1, arg2) {
1413
+ }, arguments); },
1414
+ __wbg_derivePrfSeed_7a4ec7d929c9bcca: function() { return handleError(function (arg0, arg1, arg2) {
1611
1415
  let deferred0_0;
1612
1416
  let deferred0_1;
1613
1417
  try {
@@ -1618,8 +1422,8 @@ const imports = {
1618
1422
  } finally {
1619
1423
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1620
1424
  }
1621
- }, arguments) },
1622
- __wbg_derivePublicKey_736fb57b6852f201: function() { return handleError(function (arg0, arg1, arg2) {
1425
+ }, arguments); },
1426
+ __wbg_derivePublicKey_bab57284cd981e9a: function() { return handleError(function (arg0, arg1, arg2) {
1623
1427
  let deferred0_0;
1624
1428
  let deferred0_1;
1625
1429
  try {
@@ -1630,12 +1434,12 @@ const imports = {
1630
1434
  } finally {
1631
1435
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1632
1436
  }
1633
- }, arguments) },
1634
- __wbg_done_769e5ede4b31c67b: function(arg0) {
1437
+ }, arguments); },
1438
+ __wbg_done_b1afd6201ac045e0: function(arg0) {
1635
1439
  const ret = arg0.done;
1636
1440
  return ret;
1637
1441
  },
1638
- __wbg_eciesDecrypt_f54e495a0988c2cc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1442
+ __wbg_eciesDecrypt_986d793295625dc9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1639
1443
  let deferred1_0;
1640
1444
  let deferred1_1;
1641
1445
  try {
@@ -1648,8 +1452,8 @@ const imports = {
1648
1452
  } finally {
1649
1453
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1650
1454
  }
1651
- }, arguments) },
1652
- __wbg_eciesEncrypt_d1c5b3c6a4602a28: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1455
+ }, arguments); },
1456
+ __wbg_eciesEncrypt_95486f45d5d74f6a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1653
1457
  let deferred1_0;
1654
1458
  let deferred1_1;
1655
1459
  try {
@@ -1662,46 +1466,46 @@ const imports = {
1662
1466
  } finally {
1663
1467
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1664
1468
  }
1665
- }, arguments) },
1666
- __wbg_encryptPrivateKeyForReceiver_346eec1080ebe04c: function() { return handleError(function (arg0, arg1, arg2) {
1469
+ }, arguments); },
1470
+ __wbg_encryptPrivateKeyForReceiver_a5414ece502e2eec: function() { return handleError(function (arg0, arg1, arg2) {
1667
1471
  const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
1668
1472
  return ret;
1669
- }, arguments) },
1670
- __wbg_enqueue_bb16ba72f537dc9e: function() { return handleError(function (arg0, arg1) {
1473
+ }, arguments); },
1474
+ __wbg_enqueue_6c7cd543c0f3828e: function() { return handleError(function (arg0, arg1) {
1671
1475
  arg0.enqueue(arg1);
1672
- }, arguments) },
1673
- __wbg_entries_3265d4158b33e5dc: function(arg0) {
1476
+ }, arguments); },
1477
+ __wbg_entries_bb9843ba73dc70d6: function(arg0) {
1674
1478
  const ret = Object.entries(arg0);
1675
1479
  return ret;
1676
1480
  },
1677
- __wbg_error_e98c298703cffa97: function(arg0, arg1) {
1481
+ __wbg_error_ba2b2915aeba36d8: function(arg0, arg1) {
1678
1482
  console.error(getStringFromWasm0(arg0, arg1));
1679
1483
  },
1680
- __wbg_fetchFiatCurrencies_d11be091c7fac943: function() { return handleError(function (arg0) {
1484
+ __wbg_fetchFiatCurrencies_8afa0468f01bf013: function() { return handleError(function (arg0) {
1681
1485
  const ret = arg0.fetchFiatCurrencies();
1682
1486
  return ret;
1683
- }, arguments) },
1684
- __wbg_fetchFiatRates_a5bc2d1be56de4a7: function() { return handleError(function (arg0) {
1487
+ }, arguments); },
1488
+ __wbg_fetchFiatRates_89205e79f984cee8: function() { return handleError(function (arg0) {
1685
1489
  const ret = arg0.fetchFiatRates();
1686
1490
  return ret;
1687
- }, arguments) },
1688
- __wbg_fetch_07cd86dd296a5a63: function(arg0, arg1, arg2) {
1689
- const ret = arg0.fetch(arg1, arg2);
1690
- return ret;
1691
- },
1692
- __wbg_fetch_509096533071c657: function(arg0, arg1) {
1491
+ }, arguments); },
1492
+ __wbg_fetch_1a030943aa8e0c38: function(arg0, arg1) {
1693
1493
  const ret = arg0.fetch(arg1);
1694
1494
  return ret;
1695
1495
  },
1696
- __wbg_fetch_769f3df592e37b75: function(arg0, arg1) {
1496
+ __wbg_fetch_217f3dd51c581eee: function(arg0, arg1) {
1697
1497
  const ret = fetch(arg0, arg1);
1698
1498
  return ret;
1699
1499
  },
1700
- __wbg_fetch_f156d10be9a5c88a: function(arg0) {
1500
+ __wbg_fetch_9dad4fe911207b37: function(arg0) {
1701
1501
  const ret = fetch(arg0);
1702
1502
  return ret;
1703
1503
  },
1704
- __wbg_finalizeReservation_86ee8385c17e015b: function() { return handleError(function (arg0, arg1, arg2) {
1504
+ __wbg_fetch_a851d393d6b4492c: function(arg0, arg1, arg2) {
1505
+ const ret = arg0.fetch(arg1, arg2);
1506
+ return ret;
1507
+ },
1508
+ __wbg_finalizeReservation_10f99a20bf634639: function() { return handleError(function (arg0, arg1, arg2) {
1705
1509
  let deferred0_0;
1706
1510
  let deferred0_1;
1707
1511
  try {
@@ -1712,8 +1516,8 @@ const imports = {
1712
1516
  } finally {
1713
1517
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1714
1518
  }
1715
- }, arguments) },
1716
- __wbg_finalizeReservation_a8fad570b7fe5185: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1519
+ }, arguments); },
1520
+ __wbg_finalizeReservation_aa324ddf4b195930: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1717
1521
  let deferred0_0;
1718
1522
  let deferred0_1;
1719
1523
  try {
@@ -1724,16 +1528,16 @@ const imports = {
1724
1528
  } finally {
1725
1529
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1726
1530
  }
1727
- }, arguments) },
1728
- __wbg_generateFrostSigningCommitments_0630bbabc5b72b42: function() { return handleError(function (arg0) {
1531
+ }, arguments); },
1532
+ __wbg_generateFrostSigningCommitments_1e8b83b2bed675c9: function() { return handleError(function (arg0) {
1729
1533
  const ret = arg0.generateFrostSigningCommitments();
1730
1534
  return ret;
1731
- }, arguments) },
1732
- __wbg_generateRandomSecret_3dcc7ca4a61a1d4d: function() { return handleError(function (arg0) {
1535
+ }, arguments); },
1536
+ __wbg_generateRandomSecret_432432761a2594b7: function() { return handleError(function (arg0) {
1733
1537
  const ret = arg0.generateRandomSecret();
1734
1538
  return ret;
1735
- }, arguments) },
1736
- __wbg_getAddressUtxos_328ceb8b4a63a6da: function() { return handleError(function (arg0, arg1, arg2) {
1539
+ }, arguments); },
1540
+ __wbg_getAddressUtxos_9526b6d8078b867e: function() { return handleError(function (arg0, arg1, arg2) {
1737
1541
  let deferred0_0;
1738
1542
  let deferred0_1;
1739
1543
  try {
@@ -1744,12 +1548,12 @@ const imports = {
1744
1548
  } finally {
1745
1549
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1746
1550
  }
1747
- }, arguments) },
1748
- __wbg_getAvailableBalance_c24d30be8dc60bd5: function() { return handleError(function (arg0) {
1551
+ }, arguments); },
1552
+ __wbg_getAvailableBalance_6f4e670b89ade6d0: function() { return handleError(function (arg0) {
1749
1553
  const ret = arg0.getAvailableBalance();
1750
1554
  return ret;
1751
- }, arguments) },
1752
- __wbg_getCachedItem_de40d6348815c7b9: function() { return handleError(function (arg0, arg1, arg2) {
1555
+ }, arguments); },
1556
+ __wbg_getCachedItem_b89cba4db943ef67: function() { return handleError(function (arg0, arg1, arg2) {
1753
1557
  let deferred0_0;
1754
1558
  let deferred0_1;
1755
1559
  try {
@@ -1760,8 +1564,8 @@ const imports = {
1760
1564
  } finally {
1761
1565
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1762
1566
  }
1763
- }, arguments) },
1764
- __wbg_getContact_b7300737e5dee01b: function() { return handleError(function (arg0, arg1, arg2) {
1567
+ }, arguments); },
1568
+ __wbg_getContact_35b5c6f2fa25cf9e: function() { return handleError(function (arg0, arg1, arg2) {
1765
1569
  let deferred0_0;
1766
1570
  let deferred0_1;
1767
1571
  try {
@@ -1772,12 +1576,12 @@ const imports = {
1772
1576
  } finally {
1773
1577
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1774
1578
  }
1775
- }, arguments) },
1776
- __wbg_getLeaves_c94a1c927d239738: function() { return handleError(function (arg0) {
1579
+ }, arguments); },
1580
+ __wbg_getLeaves_5259dc2b9de80ff0: function() { return handleError(function (arg0) {
1777
1581
  const ret = arg0.getLeaves();
1778
1582
  return ret;
1779
- }, arguments) },
1780
- __wbg_getPaymentById_c23144bfc404b2fc: function() { return handleError(function (arg0, arg1, arg2) {
1583
+ }, arguments); },
1584
+ __wbg_getPaymentById_6d677ada5879df99: function() { return handleError(function (arg0, arg1, arg2) {
1781
1585
  let deferred0_0;
1782
1586
  let deferred0_1;
1783
1587
  try {
@@ -1788,8 +1592,8 @@ const imports = {
1788
1592
  } finally {
1789
1593
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1790
1594
  }
1791
- }, arguments) },
1792
- __wbg_getPaymentByInvoice_afddfcbefa5508b0: function() { return handleError(function (arg0, arg1, arg2) {
1595
+ }, arguments); },
1596
+ __wbg_getPaymentByInvoice_82ae971724979f3a: function() { return handleError(function (arg0, arg1, arg2) {
1793
1597
  let deferred0_0;
1794
1598
  let deferred0_1;
1795
1599
  try {
@@ -1800,32 +1604,32 @@ const imports = {
1800
1604
  } finally {
1801
1605
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1802
1606
  }
1803
- }, arguments) },
1804
- __wbg_getPaymentsByParentIds_0f8f8e0097a07321: function() { return handleError(function (arg0, arg1, arg2) {
1607
+ }, arguments); },
1608
+ __wbg_getPaymentsByParentIds_7ab066452766ae6d: function() { return handleError(function (arg0, arg1, arg2) {
1805
1609
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1806
1610
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1807
1611
  const ret = arg0.getPaymentsByParentIds(v0);
1808
1612
  return ret;
1809
- }, arguments) },
1810
- __wbg_getPublicKeyForNode_5ddb3378904e4ad4: function() { return handleError(function (arg0, arg1) {
1613
+ }, arguments); },
1614
+ __wbg_getPublicKeyForNode_1c1b34ec571148c2: function() { return handleError(function (arg0, arg1) {
1811
1615
  const ret = arg0.getPublicKeyForNode(arg1);
1812
1616
  return ret;
1813
- }, arguments) },
1814
- __wbg_getPublicKeyFromSecretSource_9e324c0b205a9f99: function() { return handleError(function (arg0, arg1) {
1617
+ }, arguments); },
1618
+ __wbg_getPublicKeyFromSecretSource_cecb0b3d2ce521bd: function() { return handleError(function (arg0, arg1) {
1815
1619
  const ret = arg0.getPublicKeyFromSecretSource(arg1);
1816
1620
  return ret;
1817
- }, arguments) },
1818
- __wbg_getRandomValues_b8f5dbd5f3995a9e: function() { return handleError(function (arg0, arg1) {
1621
+ }, arguments); },
1622
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
1819
1623
  arg0.getRandomValues(arg1);
1820
- }, arguments) },
1821
- __wbg_getRandomValues_e14bd3de0db61032: function() { return handleError(function (arg0, arg1) {
1624
+ }, arguments); },
1625
+ __wbg_getRandomValues_ef12552bf5acd2fe: function() { return handleError(function (arg0, arg1) {
1822
1626
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1823
- }, arguments) },
1824
- __wbg_getReader_48e00749fe3f6089: function() { return handleError(function (arg0) {
1627
+ }, arguments); },
1628
+ __wbg_getReader_b4b1868fbca77dbe: function() { return handleError(function (arg0) {
1825
1629
  const ret = arg0.getReader();
1826
1630
  return ret;
1827
- }, arguments) },
1828
- __wbg_getRequest_4ab87a8cbe18fa22: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1631
+ }, arguments); },
1632
+ __wbg_getRequest_9153d27d6c51b5c7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1829
1633
  let deferred0_0;
1830
1634
  let deferred0_1;
1831
1635
  try {
@@ -1836,28 +1640,28 @@ const imports = {
1836
1640
  } finally {
1837
1641
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1838
1642
  }
1839
- }, arguments) },
1840
- __wbg_getStaticDepositPrivateKey_203e6f4eb4116ce0: function() { return handleError(function (arg0, arg1) {
1643
+ }, arguments); },
1644
+ __wbg_getStaticDepositPrivateKey_82943f7a0fe1208d: function() { return handleError(function (arg0, arg1) {
1841
1645
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1842
1646
  return ret;
1843
- }, arguments) },
1844
- __wbg_getStaticDepositPublicKey_4551dec44c20efe6: function() { return handleError(function (arg0, arg1) {
1647
+ }, arguments); },
1648
+ __wbg_getStaticDepositPublicKey_8424ddc7bb238008: function() { return handleError(function (arg0, arg1) {
1845
1649
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1846
1650
  return ret;
1847
- }, arguments) },
1848
- __wbg_getStaticDepositSecretSource_8e310c718339e400: function() { return handleError(function (arg0, arg1) {
1651
+ }, arguments); },
1652
+ __wbg_getStaticDepositSecretSource_86007c41c79d2bea: function() { return handleError(function (arg0, arg1) {
1849
1653
  const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
1850
1654
  return ret;
1851
- }, arguments) },
1852
- __wbg_getTokenBalances_2e44f820b2d89c1e: function() { return handleError(function (arg0) {
1655
+ }, arguments); },
1656
+ __wbg_getTokenBalances_b788cda26e92f342: function() { return handleError(function (arg0) {
1853
1657
  const ret = arg0.getTokenBalances();
1854
1658
  return ret;
1855
- }, arguments) },
1856
- __wbg_getTokenOutputs_f51d6f5d47330273: function() { return handleError(function (arg0, arg1) {
1659
+ }, arguments); },
1660
+ __wbg_getTokenOutputs_f30e221535c83db6: function() { return handleError(function (arg0, arg1) {
1857
1661
  const ret = arg0.getTokenOutputs(arg1);
1858
1662
  return ret;
1859
- }, arguments) },
1860
- __wbg_getTransactionHex_973b8d0555c60f99: function() { return handleError(function (arg0, arg1, arg2) {
1663
+ }, arguments); },
1664
+ __wbg_getTransactionHex_c65f4b9ee4eb9b96: function() { return handleError(function (arg0, arg1, arg2) {
1861
1665
  let deferred0_0;
1862
1666
  let deferred0_1;
1863
1667
  try {
@@ -1868,8 +1672,8 @@ const imports = {
1868
1672
  } finally {
1869
1673
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1870
1674
  }
1871
- }, arguments) },
1872
- __wbg_getTransactionStatus_731f0ef840c27f99: function() { return handleError(function (arg0, arg1, arg2) {
1675
+ }, arguments); },
1676
+ __wbg_getTransactionStatus_32c49e1985e35d63: function() { return handleError(function (arg0, arg1, arg2) {
1873
1677
  let deferred0_0;
1874
1678
  let deferred0_1;
1875
1679
  try {
@@ -1880,36 +1684,40 @@ const imports = {
1880
1684
  } finally {
1881
1685
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1882
1686
  }
1883
- }, arguments) },
1884
- __wbg_get_67b2ba62fc30de12: function() { return handleError(function (arg0, arg1) {
1885
- const ret = Reflect.get(arg0, arg1);
1886
- return ret;
1887
- }, arguments) },
1888
- __wbg_get_b9b93047fe3cf45b: function(arg0, arg1) {
1687
+ }, arguments); },
1688
+ __wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
1889
1689
  const ret = arg0[arg1 >>> 0];
1890
1690
  return ret;
1891
1691
  },
1892
- __wbg_getdone_d47073731acd3e74: function(arg0) {
1692
+ __wbg_get_9cfea9b7bbf12a15: function() { return handleError(function (arg0, arg1) {
1693
+ const ret = Reflect.get(arg0, arg1);
1694
+ return ret;
1695
+ }, arguments); },
1696
+ __wbg_get_done_2088079830fb242e: function(arg0) {
1893
1697
  const ret = arg0.done;
1894
1698
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1895
1699
  },
1896
- __wbg_getvalue_009dcd63692bee1f: function(arg0) {
1700
+ __wbg_get_unchecked_be562b1421656321: function(arg0, arg1) {
1701
+ const ret = arg0[arg1 >>> 0];
1702
+ return ret;
1703
+ },
1704
+ __wbg_get_value_52f4b39f58a812ed: function(arg0) {
1897
1705
  const ret = arg0.value;
1898
1706
  return ret;
1899
1707
  },
1900
- __wbg_getwithrefkey_1dc361bd10053bfe: function(arg0, arg1) {
1708
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
1901
1709
  const ret = arg0[arg1];
1902
1710
  return ret;
1903
1711
  },
1904
- __wbg_has_a5ea9117f258a0ec: function() { return handleError(function (arg0, arg1) {
1712
+ __wbg_has_3a6f31f647e0ba22: function() { return handleError(function (arg0, arg1) {
1905
1713
  const ret = Reflect.has(arg0, arg1);
1906
1714
  return ret;
1907
- }, arguments) },
1908
- __wbg_headers_9cb51cfd2ac780a4: function(arg0) {
1715
+ }, arguments); },
1716
+ __wbg_headers_de17f740bce997ae: function(arg0) {
1909
1717
  const ret = arg0.headers;
1910
1718
  return ret;
1911
1719
  },
1912
- __wbg_hmacSha256_c6633de6089f686f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1720
+ __wbg_hmacSha256_44b56787dc85796b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1913
1721
  let deferred1_0;
1914
1722
  let deferred1_1;
1915
1723
  try {
@@ -1922,16 +1730,16 @@ const imports = {
1922
1730
  } finally {
1923
1731
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1924
1732
  }
1925
- }, arguments) },
1926
- __wbg_identityPublicKey_c8b35005055a3df0: function() { return handleError(function (arg0) {
1733
+ }, arguments); },
1734
+ __wbg_identityPublicKey_157f9d906d49e5c4: function() { return handleError(function (arg0) {
1927
1735
  const ret = arg0.identityPublicKey();
1928
1736
  return ret;
1929
- }, arguments) },
1930
- __wbg_insertContact_33c214012213409d: function() { return handleError(function (arg0, arg1) {
1737
+ }, arguments); },
1738
+ __wbg_insertContact_cc39397cb8e88ff8: function() { return handleError(function (arg0, arg1) {
1931
1739
  const ret = arg0.insertContact(arg1);
1932
1740
  return ret;
1933
- }, arguments) },
1934
- __wbg_insertPaymentMetadata_0c4ebdcde694d29b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1741
+ }, arguments); },
1742
+ __wbg_insertPaymentMetadata_0ce664b21d71c9f8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1935
1743
  let deferred0_0;
1936
1744
  let deferred0_1;
1937
1745
  try {
@@ -1942,16 +1750,16 @@ const imports = {
1942
1750
  } finally {
1943
1751
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1944
1752
  }
1945
- }, arguments) },
1946
- __wbg_insertPayment_2afe3300c5f86ccf: function() { return handleError(function (arg0, arg1) {
1753
+ }, arguments); },
1754
+ __wbg_insertPayment_830c37c6efef1f8a: function() { return handleError(function (arg0, arg1) {
1947
1755
  const ret = arg0.insertPayment(arg1);
1948
1756
  return ret;
1949
- }, arguments) },
1950
- __wbg_insertTokenOutputs_043ceea065ff8f65: function() { return handleError(function (arg0, arg1) {
1757
+ }, arguments); },
1758
+ __wbg_insertTokenOutputs_11b256443d099417: function() { return handleError(function (arg0, arg1) {
1951
1759
  const ret = arg0.insertTokenOutputs(arg1);
1952
1760
  return ret;
1953
- }, arguments) },
1954
- __wbg_instanceof_ArrayBuffer_e14585432e3737fc: function(arg0) {
1761
+ }, arguments); },
1762
+ __wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
1955
1763
  let result;
1956
1764
  try {
1957
1765
  result = arg0 instanceof ArrayBuffer;
@@ -1961,7 +1769,7 @@ const imports = {
1961
1769
  const ret = result;
1962
1770
  return ret;
1963
1771
  },
1964
- __wbg_instanceof_Blob_ca721ef3bdab15d1: function(arg0) {
1772
+ __wbg_instanceof_Blob_03470b25075ee8f1: function(arg0) {
1965
1773
  let result;
1966
1774
  try {
1967
1775
  result = arg0 instanceof Blob;
@@ -1971,7 +1779,7 @@ const imports = {
1971
1779
  const ret = result;
1972
1780
  return ret;
1973
1781
  },
1974
- __wbg_instanceof_DomException_ed1ccb7aaf39034c: function(arg0) {
1782
+ __wbg_instanceof_DomException_47098be3333e16f8: function(arg0) {
1975
1783
  let result;
1976
1784
  try {
1977
1785
  result = arg0 instanceof DOMException;
@@ -1981,7 +1789,7 @@ const imports = {
1981
1789
  const ret = result;
1982
1790
  return ret;
1983
1791
  },
1984
- __wbg_instanceof_Error_4d54113b22d20306: function(arg0) {
1792
+ __wbg_instanceof_Error_5e21755e9d9cbee5: function(arg0) {
1985
1793
  let result;
1986
1794
  try {
1987
1795
  result = arg0 instanceof Error;
@@ -1991,7 +1799,7 @@ const imports = {
1991
1799
  const ret = result;
1992
1800
  return ret;
1993
1801
  },
1994
- __wbg_instanceof_Map_f3469ce2244d2430: function(arg0) {
1802
+ __wbg_instanceof_Map_10d4edf60fcf9327: function(arg0) {
1995
1803
  let result;
1996
1804
  try {
1997
1805
  result = arg0 instanceof Map;
@@ -2001,7 +1809,7 @@ const imports = {
2001
1809
  const ret = result;
2002
1810
  return ret;
2003
1811
  },
2004
- __wbg_instanceof_Object_7f2dcef8f78644a4: function(arg0) {
1812
+ __wbg_instanceof_Object_af9351f8f1c6f0c4: function(arg0) {
2005
1813
  let result;
2006
1814
  try {
2007
1815
  result = arg0 instanceof Object;
@@ -2011,7 +1819,7 @@ const imports = {
2011
1819
  const ret = result;
2012
1820
  return ret;
2013
1821
  },
2014
- __wbg_instanceof_Response_f2cc20d9f7dfd644: function(arg0) {
1822
+ __wbg_instanceof_Response_370b83aa6c17e88a: function(arg0) {
2015
1823
  let result;
2016
1824
  try {
2017
1825
  result = arg0 instanceof Response;
@@ -2021,7 +1829,7 @@ const imports = {
2021
1829
  const ret = result;
2022
1830
  return ret;
2023
1831
  },
2024
- __wbg_instanceof_Uint8Array_17156bcf118086a9: function(arg0) {
1832
+ __wbg_instanceof_Uint8Array_57d77acd50e4c44d: function(arg0) {
2025
1833
  let result;
2026
1834
  try {
2027
1835
  result = arg0 instanceof Uint8Array;
@@ -2031,87 +1839,115 @@ const imports = {
2031
1839
  const ret = result;
2032
1840
  return ret;
2033
1841
  },
2034
- __wbg_isArray_a1eab7e0d067391b: function(arg0) {
1842
+ __wbg_isArray_c6c6ef8308995bcf: function(arg0) {
2035
1843
  const ret = Array.isArray(arg0);
2036
1844
  return ret;
2037
1845
  },
2038
- __wbg_isPrfAvailable_c13e727932109c6e: function() { return handleError(function (arg0) {
1846
+ __wbg_isPrfAvailable_f77f283e48e966e1: function() { return handleError(function (arg0) {
2039
1847
  const ret = arg0.isPrfAvailable();
2040
1848
  return ret;
2041
- }, arguments) },
2042
- __wbg_isSafeInteger_343e2beeeece1bb0: function(arg0) {
1849
+ }, arguments); },
1850
+ __wbg_isSafeInteger_3c56c421a5b4cce4: function(arg0) {
2043
1851
  const ret = Number.isSafeInteger(arg0);
2044
1852
  return ret;
2045
1853
  },
2046
- __wbg_iterator_9a24c88df860dc65: function() {
1854
+ __wbg_iterator_9d68985a1d096fc2: function() {
2047
1855
  const ret = Symbol.iterator;
2048
1856
  return ret;
2049
1857
  },
2050
- __wbg_length_a446193dc22c12f8: function(arg0) {
1858
+ __wbg_length_0a6ce016dc1460b0: function(arg0) {
2051
1859
  const ret = arg0.length;
2052
1860
  return ret;
2053
1861
  },
2054
- __wbg_length_e2d2a49132c1b256: function(arg0) {
1862
+ __wbg_length_ba3c032602efe310: function(arg0) {
2055
1863
  const ret = arg0.length;
2056
1864
  return ret;
2057
1865
  },
2058
- __wbg_listContacts_5b4d38a57743b713: function() { return handleError(function (arg0, arg1) {
1866
+ __wbg_listContacts_0afeb7e9554fdb74: function() { return handleError(function (arg0, arg1) {
2059
1867
  const ret = arg0.listContacts(arg1);
2060
1868
  return ret;
2061
- }, arguments) },
2062
- __wbg_listDeposits_7ca6e22afc06d560: function() { return handleError(function (arg0) {
1869
+ }, arguments); },
1870
+ __wbg_listDeposits_c2241448716e0b2b: function() { return handleError(function (arg0) {
2063
1871
  const ret = arg0.listDeposits();
2064
1872
  return ret;
2065
- }, arguments) },
2066
- __wbg_listPayments_d8c53ab09ffc756b: function() { return handleError(function (arg0, arg1) {
1873
+ }, arguments); },
1874
+ __wbg_listPayments_c1aab8442a6e2fe9: function() { return handleError(function (arg0, arg1) {
2067
1875
  const ret = arg0.listPayments(arg1);
2068
1876
  return ret;
2069
- }, arguments) },
2070
- __wbg_listTokensOutputs_4b4500bd5aca2c88: function() { return handleError(function (arg0) {
1877
+ }, arguments); },
1878
+ __wbg_listTokensOutputs_3fecc3251ae7b71c: function() { return handleError(function (arg0) {
2071
1879
  const ret = arg0.listTokensOutputs();
2072
1880
  return ret;
2073
- }, arguments) },
2074
- __wbg_log_62b3ddcc89229688: function(arg0, arg1) {
1881
+ }, arguments); },
1882
+ __wbg_log_cf86719f8acabfda: function(arg0, arg1) {
2075
1883
  arg0.log(arg1);
2076
1884
  },
2077
- __wbg_message_5c5d919204d42400: function(arg0, arg1) {
1885
+ __wbg_message_609b498da776cb30: function(arg0, arg1) {
2078
1886
  const ret = arg1.message;
2079
1887
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2080
1888
  const len1 = WASM_VECTOR_LEN;
2081
1889
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2082
1890
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2083
1891
  },
2084
- __wbg_message_97a2af9b89d693a3: function(arg0) {
1892
+ __wbg_message_d5628ca19de920d3: function(arg0) {
2085
1893
  const ret = arg0.message;
2086
1894
  return ret;
2087
1895
  },
2088
- __wbg_msCrypto_a61aeb35a24c1329: function(arg0) {
1896
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
2089
1897
  const ret = arg0.msCrypto;
2090
1898
  return ret;
2091
1899
  },
2092
- __wbg_name_0b327d569f00ebee: function(arg0) {
1900
+ __wbg_name_bf92195f4668ab6e: function(arg0) {
2093
1901
  const ret = arg0.name;
2094
1902
  return ret;
2095
1903
  },
2096
- __wbg_name_f2d27098bfd843e7: function(arg0, arg1) {
1904
+ __wbg_name_f19fb17a86413602: function(arg0, arg1) {
2097
1905
  const ret = arg1.name;
2098
1906
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2099
1907
  const len1 = WASM_VECTOR_LEN;
2100
1908
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2101
1909
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2102
1910
  },
2103
- __wbg_new_018dcc2d6c8c2f6a: function() { return handleError(function () {
1911
+ __wbg_new_18865c63fa645c6f: function() { return handleError(function () {
2104
1912
  const ret = new Headers();
2105
1913
  return ret;
2106
- }, arguments) },
2107
- __wbg_new_23a2665fac83c611: function(arg0, arg1) {
1914
+ }, arguments); },
1915
+ __wbg_new_2fad8ca02fd00684: function() {
1916
+ const ret = new Object();
1917
+ return ret;
1918
+ },
1919
+ __wbg_new_3baa8d9866155c79: function() {
1920
+ const ret = new Array();
1921
+ return ret;
1922
+ },
1923
+ __wbg_new_46ae4e4ff2a07a64: function() {
1924
+ const ret = new Map();
1925
+ return ret;
1926
+ },
1927
+ __wbg_new_51ff470dc2f61e27: function() { return handleError(function () {
1928
+ const ret = new AbortController();
1929
+ return ret;
1930
+ }, arguments); },
1931
+ __wbg_new_71b820e9c1f9ee88: function() { return handleError(function (arg0, arg1) {
1932
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
1933
+ return ret;
1934
+ }, arguments); },
1935
+ __wbg_new_8454eee672b2ba6e: function(arg0) {
1936
+ const ret = new Uint8Array(arg0);
1937
+ return ret;
1938
+ },
1939
+ __wbg_new_c9ea13ea803a692e: function(arg0, arg1) {
1940
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1941
+ return ret;
1942
+ },
1943
+ __wbg_new_eb8acd9352be84ba: function(arg0, arg1) {
2108
1944
  try {
2109
1945
  var state0 = {a: arg0, b: arg1};
2110
1946
  var cb0 = (arg0, arg1) => {
2111
1947
  const a = state0.a;
2112
1948
  state0.a = 0;
2113
1949
  try {
2114
- return __wbg_adapter_445(a, state0.b, arg0, arg1);
1950
+ return wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(a, state0.b, arg0, arg1);
2115
1951
  } finally {
2116
1952
  state0.a = a;
2117
1953
  }
@@ -2119,96 +1955,86 @@ const imports = {
2119
1955
  const ret = new Promise(cb0);
2120
1956
  return ret;
2121
1957
  } finally {
2122
- state0.a = state0.b = 0;
1958
+ state0.a = 0;
2123
1959
  }
2124
1960
  },
2125
- __wbg_new_405e22f390576ce2: function() {
2126
- const ret = new Object();
1961
+ __wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
1962
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2127
1963
  return ret;
2128
1964
  },
2129
- __wbg_new_5e0be73521bc8c17: function() {
2130
- const ret = new Map();
2131
- return ret;
2132
- },
2133
- __wbg_new_78feb108b6472713: function() {
2134
- const ret = new Array();
2135
- return ret;
2136
- },
2137
- __wbg_new_92c54fc74574ef55: function() { return handleError(function (arg0, arg1) {
2138
- const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
2139
- return ret;
2140
- }, arguments) },
2141
- __wbg_new_a12002a7f91c75be: function(arg0) {
2142
- const ret = new Uint8Array(arg0);
2143
- return ret;
2144
- },
2145
- __wbg_new_c68d7209be747379: function(arg0, arg1) {
2146
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2147
- return ret;
2148
- },
2149
- __wbg_new_e25e5aab09ff45db: function() { return handleError(function () {
2150
- const ret = new AbortController();
2151
- return ret;
2152
- }, arguments) },
2153
- __wbg_newnoargs_105ed471475aaf50: function(arg0, arg1) {
2154
- const ret = new Function(getStringFromWasm0(arg0, arg1));
2155
- return ret;
1965
+ __wbg_new_typed_1137602701dc87d4: function(arg0, arg1) {
1966
+ try {
1967
+ var state0 = {a: arg0, b: arg1};
1968
+ var cb0 = (arg0, arg1) => {
1969
+ const a = state0.a;
1970
+ state0.a = 0;
1971
+ try {
1972
+ return wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(a, state0.b, arg0, arg1);
1973
+ } finally {
1974
+ state0.a = a;
1975
+ }
1976
+ };
1977
+ const ret = new Promise(cb0);
1978
+ return ret;
1979
+ } finally {
1980
+ state0.a = 0;
1981
+ }
2156
1982
  },
2157
- __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a: function(arg0, arg1, arg2) {
1983
+ __wbg_new_with_byte_offset_and_length_643e5e9e2fb6b1ad: function(arg0, arg1, arg2) {
2158
1984
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
2159
1985
  return ret;
2160
1986
  },
2161
- __wbg_newwithlength_a381634e90c276d4: function(arg0) {
1987
+ __wbg_new_with_length_9011f5da794bf5d9: function(arg0) {
2162
1988
  const ret = new Uint8Array(arg0 >>> 0);
2163
1989
  return ret;
2164
1990
  },
2165
- __wbg_newwithstrandinit_06c535e0a867c635: function() { return handleError(function (arg0, arg1, arg2) {
1991
+ __wbg_new_with_str_and_init_da311e12114f4d1e: function() { return handleError(function (arg0, arg1, arg2) {
2166
1992
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
2167
1993
  return ret;
2168
- }, arguments) },
2169
- __wbg_next_25feadfc0913fea9: function(arg0) {
1994
+ }, arguments); },
1995
+ __wbg_next_261c3c48c6e309a5: function(arg0) {
2170
1996
  const ret = arg0.next;
2171
1997
  return ret;
2172
1998
  },
2173
- __wbg_next_6574e1a8a62d1055: function() { return handleError(function (arg0) {
1999
+ __wbg_next_aacee310bcfe6461: function() { return handleError(function (arg0) {
2174
2000
  const ret = arg0.next();
2175
2001
  return ret;
2176
- }, arguments) },
2177
- __wbg_node_905d3e251edff8a2: function(arg0) {
2002
+ }, arguments); },
2003
+ __wbg_node_84ea875411254db1: function(arg0) {
2178
2004
  const ret = arg0.node;
2179
2005
  return ret;
2180
2006
  },
2181
- __wbg_now_063c1184182e178a: function() { return handleError(function (arg0) {
2182
- const ret = arg0.now();
2007
+ __wbg_now_0cce8c6798af1870: function() { return handleError(function () {
2008
+ const ret = Date.now();
2183
2009
  return ret;
2184
- }, arguments) },
2185
- __wbg_now_2c95c9de01293173: function(arg0) {
2186
- const ret = arg0.now();
2010
+ }, arguments); },
2011
+ __wbg_now_4f457f10f864aec5: function() {
2012
+ const ret = Date.now();
2187
2013
  return ret;
2188
2014
  },
2189
- __wbg_now_6af59e24f5a53ad4: function() { return handleError(function () {
2190
- const ret = Date.now();
2015
+ __wbg_now_e7c6795a7f81e10f: function(arg0) {
2016
+ const ret = arg0.now();
2191
2017
  return ret;
2192
- }, arguments) },
2193
- __wbg_now_79892f24f17d010a: function() { return handleError(function (arg0) {
2018
+ },
2019
+ __wbg_now_ea3e9aca8593610d: function() { return handleError(function (arg0) {
2194
2020
  const ret = arg0.now();
2195
2021
  return ret;
2196
- }, arguments) },
2197
- __wbg_now_807e54c39636c349: function() {
2198
- const ret = Date.now();
2022
+ }, arguments); },
2023
+ __wbg_now_ee1e8589b4c39f9a: function() { return handleError(function (arg0) {
2024
+ const ret = arg0.now();
2199
2025
  return ret;
2200
- },
2201
- __wbg_onEvent_3a18bdd7cfd911cb: function(arg0, arg1) {
2026
+ }, arguments); },
2027
+ __wbg_onEvent_a70e8ec272c69a3a: function(arg0, arg1) {
2202
2028
  arg0.onEvent(arg1);
2203
2029
  },
2204
- __wbg_performance_7a3ffd0b17f663ad: function(arg0) {
2030
+ __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
2205
2031
  const ret = arg0.performance;
2206
2032
  return ret;
2207
2033
  },
2208
- __wbg_postMessage_83a8d58d3fcb6c13: function() { return handleError(function (arg0, arg1) {
2034
+ __wbg_postMessage_ead2ef5ee8c7a94e: function() { return handleError(function (arg0, arg1) {
2209
2035
  arg0.postMessage(arg1);
2210
- }, arguments) },
2211
- __wbg_postRequest_678f7531153ace01: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2036
+ }, arguments); },
2037
+ __wbg_postRequest_b7e02f7ec4d8b99b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2212
2038
  let deferred0_0;
2213
2039
  let deferred0_1;
2214
2040
  try {
@@ -2224,48 +2050,51 @@ const imports = {
2224
2050
  } finally {
2225
2051
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2226
2052
  }
2227
- }, arguments) },
2228
- __wbg_process_dc0fbacc7c1c06f7: function(arg0) {
2053
+ }, arguments); },
2054
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
2229
2055
  const ret = arg0.process;
2230
2056
  return ret;
2231
2057
  },
2232
- __wbg_queueMicrotask_97d92b4fcc8a61c5: function(arg0) {
2058
+ __wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
2059
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2060
+ },
2061
+ __wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
2233
2062
  queueMicrotask(arg0);
2234
2063
  },
2235
- __wbg_queueMicrotask_d3219def82552485: function(arg0) {
2064
+ __wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
2236
2065
  const ret = arg0.queueMicrotask;
2237
2066
  return ret;
2238
2067
  },
2239
- __wbg_randomFillSync_ac0988aba3254290: function() { return handleError(function (arg0, arg1) {
2068
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
2240
2069
  arg0.randomFillSync(arg1);
2241
- }, arguments) },
2242
- __wbg_read_a2434af1186cb56c: function(arg0) {
2070
+ }, arguments); },
2071
+ __wbg_read_ac2e4325f1799cbe: function(arg0) {
2243
2072
  const ret = arg0.read();
2244
2073
  return ret;
2245
2074
  },
2246
- __wbg_readyState_7ef6e63c349899ed: function(arg0) {
2075
+ __wbg_readyState_be3cc9403da6c6ae: function(arg0) {
2247
2076
  const ret = arg0.readyState;
2248
2077
  return ret;
2249
2078
  },
2250
- __wbg_reason_49f1cede8bcf23dd: function(arg0, arg1) {
2079
+ __wbg_reason_fe958bcb63725f3b: function(arg0, arg1) {
2251
2080
  const ret = arg1.reason;
2252
2081
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2253
2082
  const len1 = WASM_VECTOR_LEN;
2254
2083
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2255
2084
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2256
2085
  },
2257
- __wbg_recommendedFees_a61f331fce46523e: function() { return handleError(function (arg0) {
2086
+ __wbg_recommendedFees_eee625cd978e070a: function() { return handleError(function (arg0) {
2258
2087
  const ret = arg0.recommendedFees();
2259
2088
  return ret;
2260
- }, arguments) },
2261
- __wbg_releaseLock_091899af97991d2e: function(arg0) {
2089
+ }, arguments); },
2090
+ __wbg_releaseLock_9e0ebc0b5270a358: function(arg0) {
2262
2091
  arg0.releaseLock();
2263
2092
  },
2264
- __wbg_require_60cc747a6bc5215a: function() { return handleError(function () {
2093
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
2265
2094
  const ret = module.require;
2266
2095
  return ret;
2267
- }, arguments) },
2268
- __wbg_reserveTokenOutputs_6a190cf797e7d196: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2096
+ }, arguments); },
2097
+ __wbg_reserveTokenOutputs_233990fbd0ce963a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2269
2098
  let deferred0_0;
2270
2099
  let deferred0_1;
2271
2100
  let deferred1_0;
@@ -2281,25 +2110,25 @@ const imports = {
2281
2110
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2282
2111
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2283
2112
  }
2284
- }, arguments) },
2285
- __wbg_resolve_4851785c9c5f573d: function(arg0) {
2113
+ }, arguments); },
2114
+ __wbg_resolve_9feb5d906ca62419: function(arg0) {
2286
2115
  const ret = Promise.resolve(arg0);
2287
2116
  return ret;
2288
2117
  },
2289
- __wbg_respond_1f279fa9f8edcb1c: function() { return handleError(function (arg0, arg1) {
2118
+ __wbg_respond_e7e53102735b2ae2: function() { return handleError(function (arg0, arg1) {
2290
2119
  arg0.respond(arg1 >>> 0);
2291
- }, arguments) },
2120
+ }, arguments); },
2292
2121
  __wbg_sdkbuilder_new: function(arg0) {
2293
2122
  const ret = SdkBuilder.__wrap(arg0);
2294
2123
  return ret;
2295
2124
  },
2296
- __wbg_send_0293179ba074ffb4: function() { return handleError(function (arg0, arg1, arg2) {
2125
+ __wbg_send_0edb796d05cd3239: function() { return handleError(function (arg0, arg1, arg2) {
2297
2126
  arg0.send(getStringFromWasm0(arg1, arg2));
2298
- }, arguments) },
2299
- __wbg_send_fc0c204e8a1757f4: function() { return handleError(function (arg0, arg1, arg2) {
2127
+ }, arguments); },
2128
+ __wbg_send_c422d0aa0cb71d09: function() { return handleError(function (arg0, arg1, arg2) {
2300
2129
  arg0.send(getArrayU8FromWasm0(arg1, arg2));
2301
- }, arguments) },
2302
- __wbg_setCachedItem_91b03741dfb0b4c2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2130
+ }, arguments); },
2131
+ __wbg_setCachedItem_a09dafdd0852fcb6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2303
2132
  let deferred0_0;
2304
2133
  let deferred0_1;
2305
2134
  let deferred1_0;
@@ -2315,98 +2144,98 @@ const imports = {
2315
2144
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2316
2145
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2317
2146
  }
2318
- }, arguments) },
2319
- __wbg_setLeaves_d1c338c6d7d2ef28: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2147
+ }, arguments); },
2148
+ __wbg_setLeaves_3a013e3266762f4b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2320
2149
  const ret = arg0.setLeaves(arg1, arg2, arg3);
2321
2150
  return ret;
2322
- }, arguments) },
2323
- __wbg_setLnurlMetadata_0bf15cc7efb6cc11: function() { return handleError(function (arg0, arg1, arg2) {
2151
+ }, arguments); },
2152
+ __wbg_setLnurlMetadata_084b50d8b878f93f: function() { return handleError(function (arg0, arg1, arg2) {
2324
2153
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2325
2154
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
2326
2155
  const ret = arg0.setLnurlMetadata(v0);
2327
2156
  return ret;
2328
- }, arguments) },
2329
- __wbg_setTimeout_2b339866a2aa3789: function(arg0, arg1) {
2330
- const ret = setTimeout(arg0, arg1);
2331
- return ret;
2332
- },
2333
- __wbg_setTimeout_8f06012fba12034e: function(arg0, arg1) {
2157
+ }, arguments); },
2158
+ __wbg_setTimeout_3b5e32486c12c54e: function(arg0, arg1) {
2334
2159
  globalThis.setTimeout(arg0, arg1);
2335
2160
  },
2336
- __wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
2161
+ __wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
2337
2162
  const ret = setTimeout(arg0, arg1);
2338
2163
  return ret;
2339
- }, arguments) },
2340
- __wbg_setTokensOutputs_5b8449721027f347: function() { return handleError(function (arg0, arg1, arg2) {
2341
- const ret = arg0.setTokensOutputs(arg1, arg2);
2164
+ }, arguments); },
2165
+ __wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
2166
+ const ret = setTimeout(arg0, arg1);
2342
2167
  return ret;
2343
- }, arguments) },
2344
- __wbg_set_37837023f3d740e8: function(arg0, arg1, arg2) {
2345
- arg0[arg1 >>> 0] = arg2;
2346
2168
  },
2347
- __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
2169
+ __wbg_setTokensOutputs_dc61529ca8c6dbec: function() { return handleError(function (arg0, arg1, arg2) {
2170
+ const ret = arg0.setTokensOutputs(arg1, arg2);
2171
+ return ret;
2172
+ }, arguments); },
2173
+ __wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) {
2174
+ const ret = Reflect.set(arg0, arg1, arg2);
2175
+ return ret;
2176
+ }, arguments); },
2177
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
2348
2178
  arg0[arg1] = arg2;
2349
2179
  },
2350
- __wbg_set_65595bdd868b3009: function(arg0, arg1, arg2) {
2351
- arg0.set(arg1, arg2 >>> 0);
2352
- },
2353
- __wbg_set_8fc6bf8a5b1071d1: function(arg0, arg1, arg2) {
2180
+ __wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
2354
2181
  const ret = arg0.set(arg1, arg2);
2355
2182
  return ret;
2356
2183
  },
2357
- __wbg_set_bb8cecf6a62b9f46: function() { return handleError(function (arg0, arg1, arg2) {
2358
- const ret = Reflect.set(arg0, arg1, arg2);
2359
- return ret;
2360
- }, arguments) },
2361
- __wbg_setbinaryType_92fa1ffd873b327c: function(arg0, arg1) {
2184
+ __wbg_set_b0d9dc239ecdb765: function(arg0, arg1, arg2) {
2185
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
2186
+ },
2187
+ __wbg_set_binaryType_8564bdba0fbec720: function(arg0, arg1) {
2362
2188
  arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
2363
2189
  },
2364
- __wbg_setbody_5923b78a95eedf29: function(arg0, arg1) {
2190
+ __wbg_set_body_aaff4f5f9991f342: function(arg0, arg1) {
2365
2191
  arg0.body = arg1;
2366
2192
  },
2367
- __wbg_setcache_12f17c3a980650e4: function(arg0, arg1) {
2193
+ __wbg_set_cache_d1f2b7b4dfa39317: function(arg0, arg1) {
2368
2194
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
2369
2195
  },
2370
- __wbg_setcredentials_c3a22f1cd105a2c6: function(arg0, arg1) {
2196
+ __wbg_set_credentials_f31e4d30b974ce14: function(arg0, arg1) {
2371
2197
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
2372
2198
  },
2373
- __wbg_setheaders_834c0bdb6a8949ad: function(arg0, arg1) {
2199
+ __wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
2200
+ arg0[arg1 >>> 0] = arg2;
2201
+ },
2202
+ __wbg_set_headers_ae96049ea40e9eef: function(arg0, arg1) {
2374
2203
  arg0.headers = arg1;
2375
2204
  },
2376
- __wbg_setintegrity_564a2397cf837760: function(arg0, arg1, arg2) {
2205
+ __wbg_set_integrity_e20206ae8869d3fd: function(arg0, arg1, arg2) {
2377
2206
  arg0.integrity = getStringFromWasm0(arg1, arg2);
2378
2207
  },
2379
- __wbg_setmethod_3c5280fe5d890842: function(arg0, arg1, arg2) {
2208
+ __wbg_set_method_0eea8a5597775fa1: function(arg0, arg1, arg2) {
2380
2209
  arg0.method = getStringFromWasm0(arg1, arg2);
2381
2210
  },
2382
- __wbg_setmode_5dc300b865044b65: function(arg0, arg1) {
2211
+ __wbg_set_mode_9fe47bff60a1580d: function(arg0, arg1) {
2383
2212
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
2384
2213
  },
2385
- __wbg_setonclose_14fc475a49d488fc: function(arg0, arg1) {
2214
+ __wbg_set_onclose_f756840519cd20b5: function(arg0, arg1) {
2386
2215
  arg0.onclose = arg1;
2387
2216
  },
2388
- __wbg_setonerror_8639efe354b947cd: function(arg0, arg1) {
2217
+ __wbg_set_onerror_02f33de339f1fa31: function(arg0, arg1) {
2389
2218
  arg0.onerror = arg1;
2390
2219
  },
2391
- __wbg_setonmessage_6eccab530a8fb4c7: function(arg0, arg1) {
2220
+ __wbg_set_onmessage_d2ff0c1d20584625: function(arg0, arg1) {
2392
2221
  arg0.onmessage = arg1;
2393
2222
  },
2394
- __wbg_setonopen_2da654e1f39745d5: function(arg0, arg1) {
2223
+ __wbg_set_onopen_1da8a4f65e6180d2: function(arg0, arg1) {
2395
2224
  arg0.onopen = arg1;
2396
2225
  },
2397
- __wbg_setredirect_40e6a7f717a2f86a: function(arg0, arg1) {
2226
+ __wbg_set_redirect_d59447760eb3129d: function(arg0, arg1) {
2398
2227
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
2399
2228
  },
2400
- __wbg_setreferrer_fea46c1230e5e29a: function(arg0, arg1, arg2) {
2229
+ __wbg_set_referrer_d0e5dc091bbc9f75: function(arg0, arg1, arg2) {
2401
2230
  arg0.referrer = getStringFromWasm0(arg1, arg2);
2402
2231
  },
2403
- __wbg_setreferrerpolicy_b73612479f761b6f: function(arg0, arg1) {
2232
+ __wbg_set_referrer_policy_5afdd37afd73c769: function(arg0, arg1) {
2404
2233
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
2405
2234
  },
2406
- __wbg_setsignal_75b21ef3a81de905: function(arg0, arg1) {
2235
+ __wbg_set_signal_8c5cf4c3b27bd8a8: function(arg0, arg1) {
2407
2236
  arg0.signal = arg1;
2408
2237
  },
2409
- __wbg_signEcdsaRecoverable_756dd79f08e5ed39: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2238
+ __wbg_signEcdsaRecoverable_e1e9c5e2c8ec869f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2410
2239
  let deferred0_0;
2411
2240
  let deferred0_1;
2412
2241
  try {
@@ -2417,8 +2246,8 @@ const imports = {
2417
2246
  } finally {
2418
2247
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2419
2248
  }
2420
- }, arguments) },
2421
- __wbg_signEcdsa_0ebea9dfc3b7c28f: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2249
+ }, arguments); },
2250
+ __wbg_signEcdsa_99eb88e7d9907236: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2422
2251
  let deferred0_0;
2423
2252
  let deferred0_1;
2424
2253
  try {
@@ -2429,12 +2258,12 @@ const imports = {
2429
2258
  } finally {
2430
2259
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2431
2260
  }
2432
- }, arguments) },
2433
- __wbg_signFrost_06ac652135c4e862: function() { return handleError(function (arg0, arg1) {
2261
+ }, arguments); },
2262
+ __wbg_signFrost_df3d96ac20619b95: function() { return handleError(function (arg0, arg1) {
2434
2263
  const ret = arg0.signFrost(arg1);
2435
2264
  return ret;
2436
- }, arguments) },
2437
- __wbg_signHashSchnorr_390c51f0bbb70a7a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2265
+ }, arguments); },
2266
+ __wbg_signHashSchnorr_33c182cb4c2323d5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2438
2267
  let deferred1_0;
2439
2268
  let deferred1_1;
2440
2269
  try {
@@ -2447,109 +2276,109 @@ const imports = {
2447
2276
  } finally {
2448
2277
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2449
2278
  }
2450
- }, arguments) },
2451
- __wbg_signal_aaf9ad74119f20a4: function(arg0) {
2279
+ }, arguments); },
2280
+ __wbg_signal_4643ce883b92b553: function(arg0) {
2452
2281
  const ret = arg0.signal;
2453
2282
  return ret;
2454
2283
  },
2455
- __wbg_splitSecretWithProofs_1aba146de2c5eb0a: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2284
+ __wbg_splitSecretWithProofs_c9d51158a14af659: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2456
2285
  const ret = arg0.splitSecretWithProofs(arg1, arg2 >>> 0, arg3 >>> 0);
2457
2286
  return ret;
2458
- }, arguments) },
2459
- __wbg_static_accessor_GLOBAL_88a902d13a557d07: function() {
2460
- const ret = typeof global === 'undefined' ? null : global;
2287
+ }, arguments); },
2288
+ __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
2289
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2461
2290
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2462
2291
  },
2463
- __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0: function() {
2464
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2292
+ __wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
2293
+ const ret = typeof global === 'undefined' ? null : global;
2465
2294
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2466
2295
  },
2467
- __wbg_static_accessor_SELF_37c5d418e4bf5819: function() {
2296
+ __wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
2468
2297
  const ret = typeof self === 'undefined' ? null : self;
2469
2298
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2470
2299
  },
2471
- __wbg_static_accessor_WINDOW_5de37043a91a9c40: function() {
2300
+ __wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
2472
2301
  const ret = typeof window === 'undefined' ? null : window;
2473
2302
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2474
2303
  },
2475
- __wbg_status_f6360336ca686bf0: function(arg0) {
2304
+ __wbg_status_157e67ab07d01f8a: function(arg0) {
2476
2305
  const ret = arg0.status;
2477
2306
  return ret;
2478
2307
  },
2479
- __wbg_stringify_f7ed6987935b4a24: function() { return handleError(function (arg0) {
2308
+ __wbg_stringify_7fd5cae8859a6f10: function() { return handleError(function (arg0) {
2480
2309
  const ret = JSON.stringify(arg0);
2481
2310
  return ret;
2482
- }, arguments) },
2483
- __wbg_subarray_aa9065fa9dc5df96: function(arg0, arg1, arg2) {
2311
+ }, arguments); },
2312
+ __wbg_subarray_fbe3cef290e1fa43: function(arg0, arg1, arg2) {
2484
2313
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2485
2314
  return ret;
2486
2315
  },
2487
- __wbg_subtractPrivateKeys_2d63747d9fa64d4f: function() { return handleError(function (arg0, arg1, arg2) {
2316
+ __wbg_subtractPrivateKeys_c66265ac85e781b7: function() { return handleError(function (arg0, arg1, arg2) {
2488
2317
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2489
2318
  return ret;
2490
- }, arguments) },
2491
- __wbg_syncAddOutgoingChange_9d94d35ba215d3c9: function() { return handleError(function (arg0, arg1) {
2319
+ }, arguments); },
2320
+ __wbg_syncAddOutgoingChange_69db2a1430cbd55a: function() { return handleError(function (arg0, arg1) {
2492
2321
  const ret = arg0.syncAddOutgoingChange(arg1);
2493
2322
  return ret;
2494
- }, arguments) },
2495
- __wbg_syncCompleteOutgoingSync_959431da825d4042: function() { return handleError(function (arg0, arg1, arg2) {
2323
+ }, arguments); },
2324
+ __wbg_syncCompleteOutgoingSync_00c1d42ba5d7c93c: function() { return handleError(function (arg0, arg1, arg2) {
2496
2325
  const ret = arg0.syncCompleteOutgoingSync(arg1, BigInt.asUintN(64, arg2));
2497
2326
  return ret;
2498
- }, arguments) },
2499
- __wbg_syncDeleteIncomingRecord_ff76566691e4d7ca: function() { return handleError(function (arg0, arg1) {
2327
+ }, arguments); },
2328
+ __wbg_syncDeleteIncomingRecord_252fb75ae2bd4409: function() { return handleError(function (arg0, arg1) {
2500
2329
  const ret = arg0.syncDeleteIncomingRecord(arg1);
2501
2330
  return ret;
2502
- }, arguments) },
2503
- __wbg_syncGetIncomingRecords_a47bcdbce33f391b: function() { return handleError(function (arg0, arg1) {
2331
+ }, arguments); },
2332
+ __wbg_syncGetIncomingRecords_11f4eb6eba830ca1: function() { return handleError(function (arg0, arg1) {
2504
2333
  const ret = arg0.syncGetIncomingRecords(arg1 >>> 0);
2505
2334
  return ret;
2506
- }, arguments) },
2507
- __wbg_syncGetLastRevision_3c8cdf9b9d5acbc9: function() { return handleError(function (arg0) {
2335
+ }, arguments); },
2336
+ __wbg_syncGetLastRevision_f2613db6e3bc3fdb: function() { return handleError(function (arg0) {
2508
2337
  const ret = arg0.syncGetLastRevision();
2509
2338
  return ret;
2510
- }, arguments) },
2511
- __wbg_syncGetLatestOutgoingChange_1a359277ba2618e6: function() { return handleError(function (arg0) {
2339
+ }, arguments); },
2340
+ __wbg_syncGetLatestOutgoingChange_a0828a121ba8ef6a: function() { return handleError(function (arg0) {
2512
2341
  const ret = arg0.syncGetLatestOutgoingChange();
2513
2342
  return ret;
2514
- }, arguments) },
2515
- __wbg_syncGetPendingOutgoingChanges_d2f9a942e5bbaa06: function() { return handleError(function (arg0, arg1) {
2343
+ }, arguments); },
2344
+ __wbg_syncGetPendingOutgoingChanges_caff6e310e5774a0: function() { return handleError(function (arg0, arg1) {
2516
2345
  const ret = arg0.syncGetPendingOutgoingChanges(arg1 >>> 0);
2517
2346
  return ret;
2518
- }, arguments) },
2519
- __wbg_syncInsertIncomingRecords_dde4039dbc9cb38f: function() { return handleError(function (arg0, arg1, arg2) {
2347
+ }, arguments); },
2348
+ __wbg_syncInsertIncomingRecords_a606acc50dc8ccdb: function() { return handleError(function (arg0, arg1, arg2) {
2520
2349
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2521
2350
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
2522
2351
  const ret = arg0.syncInsertIncomingRecords(v0);
2523
2352
  return ret;
2524
- }, arguments) },
2525
- __wbg_syncUpdateRecordFromIncoming_a76ad82592bfdcb3: function() { return handleError(function (arg0, arg1) {
2353
+ }, arguments); },
2354
+ __wbg_syncUpdateRecordFromIncoming_47caaa75be4d3a9a: function() { return handleError(function (arg0, arg1) {
2526
2355
  const ret = arg0.syncUpdateRecordFromIncoming(arg1);
2527
2356
  return ret;
2528
- }, arguments) },
2529
- __wbg_text_7805bea50de2af49: function() { return handleError(function (arg0) {
2357
+ }, arguments); },
2358
+ __wbg_text_de416916b5c06490: function() { return handleError(function (arg0) {
2530
2359
  const ret = arg0.text();
2531
2360
  return ret;
2532
- }, arguments) },
2533
- __wbg_then_44b73946d2fb3e7d: function(arg0, arg1) {
2361
+ }, arguments); },
2362
+ __wbg_then_20a157d939b514f5: function(arg0, arg1) {
2534
2363
  const ret = arg0.then(arg1);
2535
2364
  return ret;
2536
2365
  },
2537
- __wbg_then_48b406749878a531: function(arg0, arg1, arg2) {
2366
+ __wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) {
2538
2367
  const ret = arg0.then(arg1, arg2);
2539
2368
  return ret;
2540
2369
  },
2541
- __wbg_toString_2f76f493957b63da: function(arg0, arg1, arg2) {
2370
+ __wbg_toString_15656af8d8e71f16: function(arg0, arg1, arg2) {
2542
2371
  const ret = arg1.toString(arg2);
2543
2372
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2544
2373
  const len1 = WASM_VECTOR_LEN;
2545
2374
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2546
2375
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2547
2376
  },
2548
- __wbg_toString_5285597960676b7b: function(arg0) {
2377
+ __wbg_toString_9ae74d2321992740: function(arg0) {
2549
2378
  const ret = arg0.toString();
2550
2379
  return ret;
2551
2380
  },
2552
- __wbg_tryReserveLeaves_9aacd30c9750a9df: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2381
+ __wbg_tryReserveLeaves_d2cd87cbc2a886d2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2553
2382
  let deferred0_0;
2554
2383
  let deferred0_1;
2555
2384
  try {
@@ -2560,8 +2389,8 @@ const imports = {
2560
2389
  } finally {
2561
2390
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2562
2391
  }
2563
- }, arguments) },
2564
- __wbg_updateDeposit_87746090235ed235: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2392
+ }, arguments); },
2393
+ __wbg_updateDeposit_efb96cf6e6fbe7b7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2565
2394
  let deferred0_0;
2566
2395
  let deferred0_1;
2567
2396
  try {
@@ -2572,8 +2401,8 @@ const imports = {
2572
2401
  } finally {
2573
2402
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2574
2403
  }
2575
- }, arguments) },
2576
- __wbg_updateReservation_7641cd63d1a894b8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2404
+ }, arguments); },
2405
+ __wbg_updateReservation_8d9f42570704dca1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2577
2406
  let deferred0_0;
2578
2407
  let deferred0_1;
2579
2408
  try {
@@ -2584,226 +2413,465 @@ const imports = {
2584
2413
  } finally {
2585
2414
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2586
2415
  }
2587
- }, arguments) },
2588
- __wbg_url_ae10c34ca209681d: function(arg0, arg1) {
2416
+ }, arguments); },
2417
+ __wbg_url_68fd9a221360e0db: function(arg0, arg1) {
2589
2418
  const ret = arg1.url;
2590
2419
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2591
2420
  const len1 = WASM_VECTOR_LEN;
2592
2421
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2593
2422
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2594
2423
  },
2595
- __wbg_url_ce9ab75bf9627ae4: function(arg0, arg1) {
2424
+ __wbg_url_a0e994e7d0317efc: function(arg0, arg1) {
2596
2425
  const ret = arg1.url;
2597
2426
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2598
2427
  const len1 = WASM_VECTOR_LEN;
2599
2428
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2600
2429
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2601
2430
  },
2602
- __wbg_value_cd1ffa7b1ab794f1: function(arg0) {
2431
+ __wbg_value_f852716acdeb3e82: function(arg0) {
2603
2432
  const ret = arg0.value;
2604
2433
  return ret;
2605
2434
  },
2606
- __wbg_versions_c01dfd4722a88165: function(arg0) {
2435
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
2607
2436
  const ret = arg0.versions;
2608
2437
  return ret;
2609
2438
  },
2610
- __wbg_view_fd8a56e8983f448d: function(arg0) {
2439
+ __wbg_view_16bd97d49793e1a9: function(arg0) {
2611
2440
  const ret = arg0.view;
2612
2441
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2613
2442
  },
2614
- __wbg_wasClean_605b4fd66d44354a: function(arg0) {
2443
+ __wbg_wasClean_92b4133f985dfae0: function(arg0) {
2615
2444
  const ret = arg0.wasClean;
2616
2445
  return ret;
2617
2446
  },
2618
- __wbindgen_array_new: function() {
2619
- const ret = [];
2620
- return ret;
2621
- },
2622
- __wbindgen_array_push: function(arg0, arg1) {
2623
- arg0.push(arg1);
2624
- },
2625
- __wbindgen_as_number: function(arg0) {
2626
- const ret = +arg0;
2627
- return ret;
2628
- },
2629
- __wbindgen_bigint_from_i64: function(arg0) {
2630
- const ret = arg0;
2631
- return ret;
2632
- },
2633
- __wbindgen_bigint_from_u128: function(arg0, arg1) {
2634
- const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
2635
- return ret;
2636
- },
2637
- __wbindgen_bigint_from_u64: function(arg0) {
2638
- const ret = BigInt.asUintN(64, arg0);
2639
- return ret;
2640
- },
2641
- __wbindgen_bigint_get_as_i64: function(arg0, arg1) {
2642
- const v = arg1;
2643
- const ret = typeof(v) === 'bigint' ? v : undefined;
2644
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
2645
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2646
- },
2647
- __wbindgen_boolean_get: function(arg0) {
2648
- const v = arg0;
2649
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
2650
- return ret;
2651
- },
2652
- __wbindgen_cb_drop: function(arg0) {
2653
- const obj = arg0.original;
2654
- if (obj.cnt-- == 1) {
2655
- obj.a = 0;
2656
- return true;
2657
- }
2658
- const ret = false;
2447
+ __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2448
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2449
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84);
2659
2450
  return ret;
2660
2451
  },
2661
- __wbindgen_closure_wrapper13524: function(arg0, arg1, arg2) {
2662
- const ret = makeMutClosure(arg0, arg1, 872, __wbg_adapter_73);
2452
+ __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2453
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2454
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
2663
2455
  return ret;
2664
2456
  },
2665
- __wbindgen_closure_wrapper15546: function(arg0, arg1, arg2) {
2666
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_68);
2457
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2458
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2459
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
2667
2460
  return ret;
2668
2461
  },
2669
- __wbindgen_closure_wrapper6018: function(arg0, arg1, arg2) {
2670
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_68);
2462
+ __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2463
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2464
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
2671
2465
  return ret;
2672
2466
  },
2673
- __wbindgen_closure_wrapper6025: function(arg0, arg1, arg2) {
2674
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_68);
2467
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2468
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2469
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4);
2675
2470
  return ret;
2676
2471
  },
2677
- __wbindgen_closure_wrapper7640: function(arg0, arg1, arg2) {
2678
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_73);
2679
- return ret;
2680
- },
2681
- __wbindgen_debug_string: function(arg0, arg1) {
2682
- const ret = debugString(arg1);
2683
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2684
- const len1 = WASM_VECTOR_LEN;
2685
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2686
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2687
- },
2688
- __wbindgen_error_new: function(arg0, arg1) {
2689
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2472
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2473
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2474
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5);
2690
2475
  return ret;
2691
2476
  },
2692
- __wbindgen_in: function(arg0, arg1) {
2693
- const ret = arg0 in arg1;
2477
+ __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2478
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2479
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6);
2694
2480
  return ret;
2695
2481
  },
2696
- __wbindgen_init_externref_table: function() {
2697
- const table = wasm.__wbindgen_export_5;
2698
- const offset = table.grow(4);
2699
- table.set(0, undefined);
2700
- table.set(offset + 0, undefined);
2701
- table.set(offset + 1, null);
2702
- table.set(offset + 2, true);
2703
- table.set(offset + 3, false);
2704
- ;
2705
- },
2706
- __wbindgen_is_bigint: function(arg0) {
2707
- const ret = typeof(arg0) === 'bigint';
2482
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2483
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 408, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2484
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
2708
2485
  return ret;
2709
2486
  },
2710
- __wbindgen_is_function: function(arg0) {
2711
- const ret = typeof(arg0) === 'function';
2712
- return ret;
2713
- },
2714
- __wbindgen_is_null: function(arg0) {
2715
- const ret = arg0 === null;
2716
- return ret;
2717
- },
2718
- __wbindgen_is_object: function(arg0) {
2719
- const val = arg0;
2720
- const ret = typeof(val) === 'object' && val !== null;
2721
- return ret;
2722
- },
2723
- __wbindgen_is_string: function(arg0) {
2724
- const ret = typeof(arg0) === 'string';
2487
+ __wbindgen_cast_0000000000000009: function(arg0) {
2488
+ // Cast intrinsic for `F64 -> Externref`.
2489
+ const ret = arg0;
2725
2490
  return ret;
2726
2491
  },
2727
- __wbindgen_is_undefined: function(arg0) {
2728
- const ret = arg0 === undefined;
2492
+ __wbindgen_cast_000000000000000a: function(arg0) {
2493
+ // Cast intrinsic for `I64 -> Externref`.
2494
+ const ret = arg0;
2729
2495
  return ret;
2730
2496
  },
2731
- __wbindgen_jsval_eq: function(arg0, arg1) {
2732
- const ret = arg0 === arg1;
2497
+ __wbindgen_cast_000000000000000b: function(arg0, arg1) {
2498
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2499
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2733
2500
  return ret;
2734
2501
  },
2735
- __wbindgen_jsval_loose_eq: function(arg0, arg1) {
2736
- const ret = arg0 == arg1;
2502
+ __wbindgen_cast_000000000000000c: function(arg0, arg1) {
2503
+ // Cast intrinsic for `Ref(String) -> Externref`.
2504
+ const ret = getStringFromWasm0(arg0, arg1);
2737
2505
  return ret;
2738
2506
  },
2739
- __wbindgen_lt: function(arg0, arg1) {
2740
- const ret = arg0 < arg1;
2507
+ __wbindgen_cast_000000000000000d: function(arg0, arg1) {
2508
+ // Cast intrinsic for `U128 -> Externref`.
2509
+ const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
2741
2510
  return ret;
2742
2511
  },
2743
- __wbindgen_memory: function() {
2744
- const ret = wasm.memory;
2512
+ __wbindgen_cast_000000000000000e: function(arg0) {
2513
+ // Cast intrinsic for `U64 -> Externref`.
2514
+ const ret = BigInt.asUintN(64, arg0);
2745
2515
  return ret;
2746
2516
  },
2747
- __wbindgen_neg: function(arg0) {
2748
- const ret = -arg0;
2517
+ __wbindgen_cast_000000000000000f: function(arg0, arg1) {
2518
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2519
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2520
+ // Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
2521
+ const ret = v0;
2749
2522
  return ret;
2750
2523
  },
2751
- __wbindgen_number_get: function(arg0, arg1) {
2752
- const obj = arg1;
2753
- const ret = typeof(obj) === 'number' ? obj : undefined;
2754
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2755
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2756
- },
2757
- __wbindgen_number_new: function(arg0) {
2758
- const ret = arg0;
2524
+ __wbindgen_cast_0000000000000010: function(arg0, arg1) {
2525
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2526
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2527
+ // Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
2528
+ const ret = v0;
2759
2529
  return ret;
2760
2530
  },
2761
- __wbindgen_shr: function(arg0, arg1) {
2762
- const ret = arg0 >> arg1;
2531
+ __wbindgen_cast_0000000000000011: function(arg0, arg1) {
2532
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2533
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2534
+ // Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
2535
+ const ret = v0;
2763
2536
  return ret;
2764
2537
  },
2765
- __wbindgen_string_get: function(arg0, arg1) {
2766
- const obj = arg1;
2767
- const ret = typeof(obj) === 'string' ? obj : undefined;
2768
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2769
- var len1 = WASM_VECTOR_LEN;
2770
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2771
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2772
- },
2773
- __wbindgen_string_new: function(arg0, arg1) {
2774
- const ret = getStringFromWasm0(arg0, arg1);
2538
+ __wbindgen_cast_0000000000000012: function(arg0, arg1) {
2539
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2540
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2541
+ // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
2542
+ const ret = v0;
2775
2543
  return ret;
2776
2544
  },
2777
- __wbindgen_throw: function(arg0, arg1) {
2778
- throw new Error(getStringFromWasm0(arg0, arg1));
2779
- },
2780
- __wbindgen_uint8_array_new: function(arg0, arg1) {
2545
+ __wbindgen_cast_0000000000000013: function(arg0, arg1) {
2781
2546
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
2782
2547
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
2548
+ // Cast intrinsic for `Vector(U8) -> Externref`.
2783
2549
  const ret = v0;
2784
2550
  return ret;
2785
2551
  },
2786
- },
2552
+ __wbindgen_init_externref_table: function() {
2553
+ const table = wasm.__wbindgen_externrefs;
2554
+ const offset = table.grow(4);
2555
+ table.set(0, undefined);
2556
+ table.set(offset + 0, undefined);
2557
+ table.set(offset + 1, null);
2558
+ table.set(offset + 2, true);
2559
+ table.set(offset + 3, false);
2560
+ },
2561
+ };
2562
+ return {
2563
+ __proto__: null,
2564
+ "./breez_sdk_spark_wasm_bg.js": import0,
2565
+ };
2566
+ }
2787
2567
 
2788
- };
2568
+ function wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1) {
2569
+ wasm.wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1);
2570
+ }
2789
2571
 
2790
- const wasm_url = new URL('breez_sdk_spark_wasm_bg.wasm', import.meta.url);
2791
- let wasmCode = '';
2792
- switch (wasm_url.protocol) {
2793
- case 'file:':
2794
- wasmCode = await Deno.readFile(wasm_url);
2795
- break
2796
- case 'https:':
2797
- case 'http:':
2798
- wasmCode = await (await fetch(wasm_url)).arrayBuffer();
2799
- break
2800
- default:
2801
- throw new Error(`Unsupported protocol: ${wasm_url.protocol}`);
2572
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
2573
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2);
2802
2574
  }
2803
2575
 
2804
- const wasmInstance = (await WebAssembly.instantiate(wasmCode, imports)).instance;
2805
- const wasm = wasmInstance.exports;
2806
- export const __wasm = wasm;
2576
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2(arg0, arg1, arg2) {
2577
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2(arg0, arg1, arg2);
2578
+ }
2807
2579
 
2808
- wasm.__wbindgen_start();
2580
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2) {
2581
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
2582
+ }
2583
+
2584
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84(arg0, arg1, arg2) {
2585
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84(arg0, arg1, arg2);
2586
+ if (ret[1]) {
2587
+ throw takeFromExternrefTable0(ret[0]);
2588
+ }
2589
+ }
2590
+
2591
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4(arg0, arg1, arg2) {
2592
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4(arg0, arg1, arg2);
2593
+ if (ret[1]) {
2594
+ throw takeFromExternrefTable0(ret[0]);
2595
+ }
2596
+ }
2597
+
2598
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5(arg0, arg1, arg2) {
2599
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5(arg0, arg1, arg2);
2600
+ if (ret[1]) {
2601
+ throw takeFromExternrefTable0(ret[0]);
2602
+ }
2603
+ }
2604
+
2605
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6(arg0, arg1, arg2) {
2606
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6(arg0, arg1, arg2);
2607
+ if (ret[1]) {
2608
+ throw takeFromExternrefTable0(ret[0]);
2609
+ }
2610
+ }
2611
+
2612
+ function wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(arg0, arg1, arg2, arg3) {
2613
+ wasm.wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(arg0, arg1, arg2, arg3);
2614
+ }
2615
+
2616
+
2617
+ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
2618
+
2619
+
2620
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
2621
+
2622
+
2623
+ const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
2624
+
2625
+
2626
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
2627
+
2628
+
2629
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
2630
+
2631
+
2632
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
2633
+
2634
+
2635
+ const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
2636
+ const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
2637
+ ? { register: () => {}, unregister: () => {} }
2638
+ : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
2639
+ const DefaultSignerFinalization = (typeof FinalizationRegistry === 'undefined')
2640
+ ? { register: () => {}, unregister: () => {} }
2641
+ : new FinalizationRegistry(ptr => wasm.__wbg_defaultsigner_free(ptr, 1));
2642
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
2643
+ ? { register: () => {}, unregister: () => {} }
2644
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
2645
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
2646
+ ? { register: () => {}, unregister: () => {} }
2647
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
2648
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
2649
+ ? { register: () => {}, unregister: () => {} }
2650
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
2651
+ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
2652
+ ? { register: () => {}, unregister: () => {} }
2653
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
2654
+ const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
2655
+ ? { register: () => {}, unregister: () => {} }
2656
+ : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
2657
+ const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
2658
+ ? { register: () => {}, unregister: () => {} }
2659
+ : new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
2660
+
2661
+ function addToExternrefTable0(obj) {
2662
+ const idx = wasm.__externref_table_alloc();
2663
+ wasm.__wbindgen_externrefs.set(idx, obj);
2664
+ return idx;
2665
+ }
2666
+
2667
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
2668
+ ? { register: () => {}, unregister: () => {} }
2669
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
2670
+
2671
+ function debugString(val) {
2672
+ // primitive types
2673
+ const type = typeof val;
2674
+ if (type == 'number' || type == 'boolean' || val == null) {
2675
+ return `${val}`;
2676
+ }
2677
+ if (type == 'string') {
2678
+ return `"${val}"`;
2679
+ }
2680
+ if (type == 'symbol') {
2681
+ const description = val.description;
2682
+ if (description == null) {
2683
+ return 'Symbol';
2684
+ } else {
2685
+ return `Symbol(${description})`;
2686
+ }
2687
+ }
2688
+ if (type == 'function') {
2689
+ const name = val.name;
2690
+ if (typeof name == 'string' && name.length > 0) {
2691
+ return `Function(${name})`;
2692
+ } else {
2693
+ return 'Function';
2694
+ }
2695
+ }
2696
+ // objects
2697
+ if (Array.isArray(val)) {
2698
+ const length = val.length;
2699
+ let debug = '[';
2700
+ if (length > 0) {
2701
+ debug += debugString(val[0]);
2702
+ }
2703
+ for(let i = 1; i < length; i++) {
2704
+ debug += ', ' + debugString(val[i]);
2705
+ }
2706
+ debug += ']';
2707
+ return debug;
2708
+ }
2709
+ // Test for built-in
2710
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
2711
+ let className;
2712
+ if (builtInMatches && builtInMatches.length > 1) {
2713
+ className = builtInMatches[1];
2714
+ } else {
2715
+ // Failed to match the standard '[object ClassName]'
2716
+ return toString.call(val);
2717
+ }
2718
+ if (className == 'Object') {
2719
+ // we're a user defined class or Object
2720
+ // JSON.stringify avoids problems with cycles, and is generally much
2721
+ // easier than looping through ownProperties of `val`.
2722
+ try {
2723
+ return 'Object(' + JSON.stringify(val) + ')';
2724
+ } catch (_) {
2725
+ return 'Object';
2726
+ }
2727
+ }
2728
+ // errors
2729
+ if (val instanceof Error) {
2730
+ return `${val.name}: ${val.message}\n${val.stack}`;
2731
+ }
2732
+ // TODO we could test for more things here, like `Set`s and `Map`s.
2733
+ return className;
2734
+ }
2735
+
2736
+ function getArrayJsValueFromWasm0(ptr, len) {
2737
+ ptr = ptr >>> 0;
2738
+ const mem = getDataViewMemory0();
2739
+ const result = [];
2740
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
2741
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
2742
+ }
2743
+ wasm.__externref_drop_slice(ptr, len);
2744
+ return result;
2745
+ }
2809
2746
 
2747
+ function getArrayU8FromWasm0(ptr, len) {
2748
+ ptr = ptr >>> 0;
2749
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2750
+ }
2751
+
2752
+ let cachedDataViewMemory0 = null;
2753
+ function getDataViewMemory0() {
2754
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
2755
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
2756
+ }
2757
+ return cachedDataViewMemory0;
2758
+ }
2759
+
2760
+ function getStringFromWasm0(ptr, len) {
2761
+ return decodeText(ptr >>> 0, len);
2762
+ }
2763
+
2764
+ let cachedUint8ArrayMemory0 = null;
2765
+ function getUint8ArrayMemory0() {
2766
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
2767
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
2768
+ }
2769
+ return cachedUint8ArrayMemory0;
2770
+ }
2771
+
2772
+ function handleError(f, args) {
2773
+ try {
2774
+ return f.apply(this, args);
2775
+ } catch (e) {
2776
+ const idx = addToExternrefTable0(e);
2777
+ wasm.__wbindgen_exn_store(idx);
2778
+ }
2779
+ }
2780
+
2781
+ function isLikeNone(x) {
2782
+ return x === undefined || x === null;
2783
+ }
2784
+
2785
+ function makeMutClosure(arg0, arg1, f) {
2786
+ const state = { a: arg0, b: arg1, cnt: 1 };
2787
+ const real = (...args) => {
2788
+
2789
+ // First up with a closure we increment the internal reference
2790
+ // count. This ensures that the Rust closure environment won't
2791
+ // be deallocated while we're invoking it.
2792
+ state.cnt++;
2793
+ const a = state.a;
2794
+ state.a = 0;
2795
+ try {
2796
+ return f(a, state.b, ...args);
2797
+ } finally {
2798
+ state.a = a;
2799
+ real._wbg_cb_unref();
2800
+ }
2801
+ };
2802
+ real._wbg_cb_unref = () => {
2803
+ if (--state.cnt === 0) {
2804
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
2805
+ state.a = 0;
2806
+ CLOSURE_DTORS.unregister(state);
2807
+ }
2808
+ };
2809
+ CLOSURE_DTORS.register(real, state, state);
2810
+ return real;
2811
+ }
2812
+
2813
+ function passArray8ToWasm0(arg, malloc) {
2814
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
2815
+ getUint8ArrayMemory0().set(arg, ptr / 1);
2816
+ WASM_VECTOR_LEN = arg.length;
2817
+ return ptr;
2818
+ }
2819
+
2820
+ function passStringToWasm0(arg, malloc, realloc) {
2821
+ if (realloc === undefined) {
2822
+ const buf = cachedTextEncoder.encode(arg);
2823
+ const ptr = malloc(buf.length, 1) >>> 0;
2824
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
2825
+ WASM_VECTOR_LEN = buf.length;
2826
+ return ptr;
2827
+ }
2828
+
2829
+ let len = arg.length;
2830
+ let ptr = malloc(len, 1) >>> 0;
2831
+
2832
+ const mem = getUint8ArrayMemory0();
2833
+
2834
+ let offset = 0;
2835
+
2836
+ for (; offset < len; offset++) {
2837
+ const code = arg.charCodeAt(offset);
2838
+ if (code > 0x7F) break;
2839
+ mem[ptr + offset] = code;
2840
+ }
2841
+ if (offset !== len) {
2842
+ if (offset !== 0) {
2843
+ arg = arg.slice(offset);
2844
+ }
2845
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
2846
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
2847
+ const ret = cachedTextEncoder.encodeInto(arg, view);
2848
+
2849
+ offset += ret.written;
2850
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
2851
+ }
2852
+
2853
+ WASM_VECTOR_LEN = offset;
2854
+ return ptr;
2855
+ }
2856
+
2857
+ function takeFromExternrefTable0(idx) {
2858
+ const value = wasm.__wbindgen_externrefs.get(idx);
2859
+ wasm.__externref_table_dealloc(idx);
2860
+ return value;
2861
+ }
2862
+
2863
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
2864
+ cachedTextDecoder.decode();
2865
+ function decodeText(ptr, len) {
2866
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
2867
+ }
2868
+
2869
+ const cachedTextEncoder = new TextEncoder();
2870
+
2871
+ let WASM_VECTOR_LEN = 0;
2872
+
2873
+ const wasmUrl = new URL('breez_sdk_spark_wasm_bg.wasm', import.meta.url);
2874
+ const wasmInstantiated = await WebAssembly.instantiateStreaming(fetch(wasmUrl), __wbg_get_imports());
2875
+ const wasmInstance = wasmInstantiated.instance;
2876
+ const wasm = wasmInstance.exports;
2877
+ wasm.__wbindgen_start();