@breeztech/breez-sdk-spark 0.13.9-debug → 0.13.11-dev1

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