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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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);
103
+ return ret;
104
+ }
105
+ /**
106
+ * @param {FetchConversionLimitsRequest} request
107
+ * @returns {Promise<FetchConversionLimitsResponse>}
108
+ */
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);
497
156
  return ret;
498
157
  }
499
158
  /**
500
- * @param {LnurlWithdrawRequest} request
501
- * @returns {Promise<LnurlWithdrawResponse>}
159
+ * @returns {Promise<UserSettings>}
502
160
  */
503
- lnurlWithdraw(request) {
504
- const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
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,128 +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);
407
+ return ret;
408
+ }
409
+ /**
410
+ * @param {string} path
411
+ * @returns {Promise<PublicKeyBytes>}
412
+ */
413
+ derivePublicKey(path) {
414
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
415
+ const len0 = WASM_VECTOR_LEN;
416
+ const ret = wasm.defaultsigner_derivePublicKey(this.__wbg_ptr, ptr0, len0);
793
417
  return ret;
794
418
  }
795
419
  /**
@@ -797,65 +421,56 @@ export class DefaultSigner {
797
421
  * @param {string} path
798
422
  * @returns {Promise<Uint8Array>}
799
423
  */
800
- decryptEcies(message, path) {
424
+ encryptEcies(message, path) {
801
425
  const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
802
426
  const len0 = WASM_VECTOR_LEN;
803
427
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
804
428
  const len1 = WASM_VECTOR_LEN;
805
- const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
429
+ const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
806
430
  return ret;
807
431
  }
808
432
  /**
809
- * @param {Uint8Array} message
810
- * @param {string} path
433
+ * @param {ExternalEncryptedSecret} private_key
434
+ * @param {PublicKeyBytes} receiver_public_key
811
435
  * @returns {Promise<Uint8Array>}
812
436
  */
813
- encryptEcies(message, path) {
814
- const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
815
- const len0 = WASM_VECTOR_LEN;
816
- const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
817
- const len1 = WASM_VECTOR_LEN;
818
- const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
437
+ encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
438
+ const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
819
439
  return ret;
820
440
  }
821
441
  /**
822
- * @param {ExternalAggregateFrostRequest} request
823
- * @returns {Promise<ExternalFrostSignature>}
442
+ * @returns {Promise<ExternalEncryptedSecret>}
824
443
  */
825
- aggregateFrost(request) {
826
- const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
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
  /**
@@ -1218,42 +816,51 @@ export class SdkBuilder {
1218
816
  return SdkBuilder.__wrap(ret);
1219
817
  }
1220
818
  /**
1221
- * @param {FiatService} fiat_service
819
+ * @param {BitcoinChainService} chain_service
1222
820
  * @returns {SdkBuilder}
1223
821
  */
1224
- withFiatService(fiat_service) {
822
+ withChainService(chain_service) {
1225
823
  const ptr = this.__destroy_into_raw();
1226
- const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
824
+ const ret = wasm.sdkbuilder_withChainService(ptr, chain_service);
1227
825
  return SdkBuilder.__wrap(ret);
1228
826
  }
1229
827
  /**
1230
- * @param {RestClient} lnurl_client
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
+ }
838
+ /**
839
+ * @param {FiatService} fiat_service
1231
840
  * @returns {SdkBuilder}
1232
841
  */
1233
- withLnurlClient(lnurl_client) {
842
+ withFiatService(fiat_service) {
1234
843
  const ptr = this.__destroy_into_raw();
1235
- const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
844
+ const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
1236
845
  return SdkBuilder.__wrap(ret);
1237
846
  }
1238
847
  /**
1239
- * @param {BitcoinChainService} chain_service
848
+ * @param {KeySetConfig} config
1240
849
  * @returns {SdkBuilder}
1241
850
  */
1242
- withChainService(chain_service) {
851
+ withKeySet(config) {
1243
852
  const ptr = this.__destroy_into_raw();
1244
- const ret = wasm.sdkbuilder_withChainService(ptr, chain_service);
853
+ const ret = wasm.sdkbuilder_withKeySet(ptr, config);
1245
854
  return SdkBuilder.__wrap(ret);
1246
855
  }
1247
856
  /**
1248
- * @param {string} storage_dir
1249
- * @returns {Promise<SdkBuilder>}
857
+ * @param {RestClient} lnurl_client
858
+ * @returns {SdkBuilder}
1250
859
  */
1251
- withDefaultStorage(storage_dir) {
1252
- 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;
860
+ withLnurlClient(lnurl_client) {
861
+ const ptr = this.__destroy_into_raw();
862
+ const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
863
+ return SdkBuilder.__wrap(ret);
1257
864
  }
1258
865
  /**
1259
866
  * @param {PaymentObserver} payment_observer
@@ -1287,45 +894,30 @@ export class SdkBuilder {
1287
894
  return SdkBuilder.__wrap(ret);
1288
895
  }
1289
896
  /**
1290
- * @param {Config} config
1291
- * @param {Seed} seed
897
+ * @param {Storage} storage
1292
898
  * @returns {SdkBuilder}
1293
899
  */
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() {
900
+ withStorage(storage) {
1302
901
  const ptr = this.__destroy_into_raw();
1303
- const ret = wasm.sdkbuilder_build(ptr);
1304
- return ret;
902
+ const ret = wasm.sdkbuilder_withStorage(ptr, storage);
903
+ return SdkBuilder.__wrap(ret);
1305
904
  }
1306
905
  }
1307
-
1308
- const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
1309
- ? { register: () => {}, unregister: () => {} }
1310
- : new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
906
+ if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
1311
907
 
1312
908
  export class TokenIssuer {
1313
-
1314
909
  static __wrap(ptr) {
1315
- ptr = ptr >>> 0;
1316
910
  const obj = Object.create(TokenIssuer.prototype);
1317
911
  obj.__wbg_ptr = ptr;
1318
912
  TokenIssuerFinalization.register(obj, obj.__wbg_ptr, obj);
1319
913
  return obj;
1320
914
  }
1321
-
1322
915
  __destroy_into_raw() {
1323
916
  const ptr = this.__wbg_ptr;
1324
917
  this.__wbg_ptr = 0;
1325
918
  TokenIssuerFinalization.unregister(this);
1326
919
  return ptr;
1327
920
  }
1328
-
1329
921
  free() {
1330
922
  const ptr = this.__destroy_into_raw();
1331
923
  wasm.__wbg_tokenissuer_free(ptr, 0);
@@ -1338,14 +930,6 @@ export class TokenIssuer {
1338
930
  const ret = wasm.tokenissuer_burnIssuerToken(this.__wbg_ptr, request);
1339
931
  return ret;
1340
932
  }
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
933
  /**
1350
934
  * @param {CreateIssuerTokenRequest} request
1351
935
  * @returns {Promise<TokenMetadata>}
@@ -1362,14 +946,6 @@ export class TokenIssuer {
1362
946
  const ret = wasm.tokenissuer_freezeIssuerToken(this.__wbg_ptr, request);
1363
947
  return ret;
1364
948
  }
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
949
  /**
1374
950
  * @returns {Promise<TokenBalance>}
1375
951
  */
@@ -1384,30 +960,238 @@ export class TokenIssuer {
1384
960
  const ret = wasm.tokenissuer_getIssuerTokenMetadata(this.__wbg_ptr);
1385
961
  return ret;
1386
962
  }
963
+ /**
964
+ * @param {MintIssuerTokenRequest} request
965
+ * @returns {Promise<Payment>}
966
+ */
967
+ mintIssuerToken(request) {
968
+ const ret = wasm.tokenissuer_mintIssuerToken(this.__wbg_ptr, request);
969
+ return ret;
970
+ }
971
+ /**
972
+ * @param {UnfreezeIssuerTokenRequest} request
973
+ * @returns {Promise<UnfreezeIssuerTokenResponse>}
974
+ */
975
+ unfreezeIssuerToken(request) {
976
+ const ret = wasm.tokenissuer_unfreezeIssuerToken(this.__wbg_ptr, request);
977
+ return ret;
978
+ }
1387
979
  }
980
+ if (Symbol.dispose) TokenIssuer.prototype[Symbol.dispose] = TokenIssuer.prototype.free;
1388
981
 
1389
- export function __wbg_BigInt_470dd987b8190f8e(arg0) {
1390
- const ret = BigInt(arg0);
982
+ /**
983
+ * @param {ConnectRequest} request
984
+ * @returns {Promise<BreezSdk>}
985
+ */
986
+ export function connect(request) {
987
+ const ret = wasm.connect(request);
988
+ return ret;
989
+ }
990
+
991
+ /**
992
+ * @param {Config} config
993
+ * @param {ExternalSigner} signer
994
+ * @param {string} storage_dir
995
+ * @returns {Promise<BreezSdk>}
996
+ */
997
+ export function connectWithSigner(config, signer, storage_dir) {
998
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
999
+ const len0 = WASM_VECTOR_LEN;
1000
+ const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
1001
+ return ret;
1002
+ }
1003
+
1004
+ /**
1005
+ * @param {Network} network
1006
+ * @returns {Config}
1007
+ */
1008
+ export function defaultConfig(network) {
1009
+ const ret = wasm.defaultConfig(network);
1010
+ return ret;
1011
+ }
1012
+
1013
+ /**
1014
+ * @param {string} mnemonic
1015
+ * @param {string | null | undefined} passphrase
1016
+ * @param {Network} network
1017
+ * @param {KeySetConfig | null} [key_set_config]
1018
+ * @returns {DefaultSigner}
1019
+ */
1020
+ export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
1021
+ const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1022
+ const len0 = WASM_VECTOR_LEN;
1023
+ var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1024
+ var len1 = WASM_VECTOR_LEN;
1025
+ const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
1026
+ if (ret[2]) {
1027
+ throw takeFromExternrefTable0(ret[1]);
1028
+ }
1029
+ return DefaultSigner.__wrap(ret[0]);
1030
+ }
1031
+
1032
+ /**
1033
+ * Creates a default PostgreSQL storage configuration with sensible defaults.
1034
+ *
1035
+ * Default values (from pg.Pool):
1036
+ * - `maxPoolSize`: 10
1037
+ * - `createTimeoutSecs`: 0 (no timeout)
1038
+ * - `recycleTimeoutSecs`: 10 (10 seconds idle before disconnect)
1039
+ * @param {string} connection_string
1040
+ * @returns {PostgresStorageConfig}
1041
+ */
1042
+ export function defaultPostgresStorageConfig(connection_string) {
1043
+ const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1044
+ const len0 = WASM_VECTOR_LEN;
1045
+ const ret = wasm.defaultPostgresStorageConfig(ptr0, len0);
1046
+ return ret;
1047
+ }
1048
+
1049
+ /**
1050
+ * Creates a default external signer from a mnemonic phrase.
1051
+ *
1052
+ * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
1053
+ * @returns {Promise<SparkStatus>}
1054
+ */
1055
+ export function getSparkStatus() {
1056
+ const ret = wasm.getSparkStatus();
1057
+ return ret;
1058
+ }
1059
+
1060
+ /**
1061
+ * @param {Logger} logger
1062
+ * @param {string | null} [filter]
1063
+ * @returns {Promise<void>}
1064
+ */
1065
+ export function initLogging(logger, filter) {
1066
+ var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1067
+ var len0 = WASM_VECTOR_LEN;
1068
+ const ret = wasm.initLogging(logger, ptr0, len0);
1391
1069
  return ret;
1392
- };
1070
+ }
1393
1071
 
1394
- export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
1072
+ /**
1073
+ * Entry point invoked by JavaScript in a worker.
1074
+ * @param {number} ptr
1075
+ */
1076
+ export function task_worker_entry_point(ptr) {
1077
+ const ret = wasm.task_worker_entry_point(ptr);
1078
+ if (ret[1]) {
1079
+ throw takeFromExternrefTable0(ret[0]);
1080
+ }
1081
+ }
1082
+ export function __wbg_BigInt_ae200e93cacbd2b3(arg0) {
1083
+ const ret = BigInt(arg0);
1084
+ return ret;
1085
+ }
1086
+ export function __wbg_Error_3639a60ed15f87e7(arg0, arg1) {
1087
+ const ret = Error(getStringFromWasm0(arg0, arg1));
1088
+ return ret;
1089
+ }
1090
+ export function __wbg_Number_a3d737fd183f7dca(arg0) {
1091
+ const ret = Number(arg0);
1092
+ return ret;
1093
+ }
1094
+ export function __wbg_String_8564e559799eccda(arg0, arg1) {
1395
1095
  const ret = String(arg1);
1396
1096
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1397
1097
  const len1 = WASM_VECTOR_LEN;
1398
1098
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1399
1099
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1400
- };
1401
-
1402
- export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
1100
+ }
1101
+ export function __wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b(arg0, arg1) {
1102
+ const v = arg1;
1103
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1104
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1105
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1106
+ }
1107
+ export function __wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b(arg0) {
1108
+ const v = arg0;
1109
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1110
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1111
+ }
1112
+ export function __wbg___wbindgen_debug_string_07cb72cfcc952e2b(arg0, arg1) {
1113
+ const ret = debugString(arg1);
1114
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1115
+ const len1 = WASM_VECTOR_LEN;
1116
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1117
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1118
+ }
1119
+ export function __wbg___wbindgen_in_2617fa76397620d3(arg0, arg1) {
1120
+ const ret = arg0 in arg1;
1121
+ return ret;
1122
+ }
1123
+ export function __wbg___wbindgen_is_bigint_d6a8167cac401b95(arg0) {
1124
+ const ret = typeof(arg0) === 'bigint';
1125
+ return ret;
1126
+ }
1127
+ export function __wbg___wbindgen_is_function_2f0fd7ceb86e64c5(arg0) {
1128
+ const ret = typeof(arg0) === 'function';
1129
+ return ret;
1130
+ }
1131
+ export function __wbg___wbindgen_is_null_066086be3abe9bb3(arg0) {
1132
+ const ret = arg0 === null;
1133
+ return ret;
1134
+ }
1135
+ export function __wbg___wbindgen_is_object_5b22ff2418063a9c(arg0) {
1136
+ const val = arg0;
1137
+ const ret = typeof(val) === 'object' && val !== null;
1138
+ return ret;
1139
+ }
1140
+ export function __wbg___wbindgen_is_string_eddc07a3efad52e6(arg0) {
1141
+ const ret = typeof(arg0) === 'string';
1142
+ return ret;
1143
+ }
1144
+ export function __wbg___wbindgen_is_undefined_244a92c34d3b6ec0(arg0) {
1145
+ const ret = arg0 === undefined;
1146
+ return ret;
1147
+ }
1148
+ export function __wbg___wbindgen_jsval_eq_403eaa3610500a25(arg0, arg1) {
1149
+ const ret = arg0 === arg1;
1150
+ return ret;
1151
+ }
1152
+ export function __wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62(arg0, arg1) {
1153
+ const ret = arg0 == arg1;
1154
+ return ret;
1155
+ }
1156
+ export function __wbg___wbindgen_lt_c483cc694de67c3e(arg0, arg1) {
1157
+ const ret = arg0 < arg1;
1158
+ return ret;
1159
+ }
1160
+ export function __wbg___wbindgen_neg_9b4d71823e3bc513(arg0) {
1161
+ const ret = -arg0;
1162
+ return ret;
1163
+ }
1164
+ export function __wbg___wbindgen_number_get_dd6d69a6079f26f1(arg0, arg1) {
1165
+ const obj = arg1;
1166
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1167
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1168
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1169
+ }
1170
+ export function __wbg___wbindgen_shr_d8f8268f18c7a1c3(arg0, arg1) {
1171
+ const ret = arg0 >> arg1;
1172
+ return ret;
1173
+ }
1174
+ export function __wbg___wbindgen_string_get_965592073e5d848c(arg0, arg1) {
1175
+ const obj = arg1;
1176
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1177
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1178
+ var len1 = WASM_VECTOR_LEN;
1179
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1180
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1181
+ }
1182
+ export function __wbg___wbindgen_throw_9c75d47bf9e7731e(arg0, arg1) {
1183
+ throw new Error(getStringFromWasm0(arg0, arg1));
1184
+ }
1185
+ export function __wbg__wbg_cb_unref_158e43e869788cdc(arg0) {
1186
+ arg0._wbg_cb_unref();
1187
+ }
1188
+ export function __wbg_abort_43913e33ecb83d0d(arg0, arg1) {
1403
1189
  arg0.abort(arg1);
1404
- };
1405
-
1406
- export function __wbg_abort_775ef1d17fc65868(arg0) {
1190
+ }
1191
+ export function __wbg_abort_87eb7f23cf4b73d1(arg0) {
1407
1192
  arg0.abort();
1408
- };
1409
-
1410
- export function __wbg_addDeposit_42b1593db58de120() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1193
+ }
1194
+ export function __wbg_addDeposit_a506b5a5bf8c1cbc() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1411
1195
  let deferred0_0;
1412
1196
  let deferred0_1;
1413
1197
  try {
@@ -1418,45 +1202,37 @@ export function __wbg_addDeposit_42b1593db58de120() { return handleError(functio
1418
1202
  } finally {
1419
1203
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1420
1204
  }
1421
- }, arguments) };
1422
-
1423
- export function __wbg_addLeaves_226f98499cdaa66d() { return handleError(function (arg0, arg1) {
1205
+ }, arguments); }
1206
+ export function __wbg_addLeaves_96b8c0f05f6b2a00() { return handleError(function (arg0, arg1) {
1424
1207
  const ret = arg0.addLeaves(arg1);
1425
1208
  return ret;
1426
- }, arguments) };
1427
-
1428
- export function __wbg_aggregateFrost_053f2d54394422d5() { return handleError(function (arg0, arg1) {
1209
+ }, arguments); }
1210
+ export function __wbg_aggregateFrost_8eb928d3bf25ad91() { return handleError(function (arg0, arg1) {
1429
1211
  const ret = arg0.aggregateFrost(arg1);
1430
1212
  return ret;
1431
- }, arguments) };
1432
-
1433
- export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1213
+ }, arguments); }
1214
+ export function __wbg_append_8df396311184f750() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1434
1215
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1435
- }, arguments) };
1436
-
1437
- export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
1216
+ }, arguments); }
1217
+ export function __wbg_arrayBuffer_87e3ac06d961f7a0() { return handleError(function (arg0) {
1438
1218
  const ret = arg0.arrayBuffer();
1439
1219
  return ret;
1440
- }, arguments) };
1441
-
1442
- export function __wbg_beforeSend_57747b03876e1d28() { return handleError(function (arg0, arg1, arg2) {
1220
+ }, arguments); }
1221
+ export function __wbg_beforeSend_e8a50acd6afd73ed() { return handleError(function (arg0, arg1, arg2) {
1443
1222
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1444
1223
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1445
1224
  const ret = arg0.beforeSend(v0);
1446
1225
  return ret;
1447
- }, arguments) };
1448
-
1449
- export function __wbg_body_0b8fd1fe671660df(arg0) {
1226
+ }, arguments); }
1227
+ export function __wbg_body_6929614c20dfa7b0(arg0) {
1450
1228
  const ret = arg0.body;
1451
1229
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1452
- };
1453
-
1230
+ }
1454
1231
  export function __wbg_breezsdk_new(arg0) {
1455
1232
  const ret = BreezSdk.__wrap(arg0);
1456
1233
  return ret;
1457
- };
1458
-
1459
- export function __wbg_broadcastTransaction_67533cdbfe67273e() { return handleError(function (arg0, arg1, arg2) {
1234
+ }
1235
+ export function __wbg_broadcastTransaction_f298d093a11def5e() { return handleError(function (arg0, arg1, arg2) {
1460
1236
  let deferred0_0;
1461
1237
  let deferred0_1;
1462
1238
  try {
@@ -1467,147 +1243,117 @@ export function __wbg_broadcastTransaction_67533cdbfe67273e() { return handleErr
1467
1243
  } finally {
1468
1244
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1469
1245
  }
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) {
1246
+ }, arguments); }
1247
+ export function __wbg_buffer_9ee17426fe5a5d65(arg0) {
1478
1248
  const ret = arg0.buffer;
1479
1249
  return ret;
1480
- };
1481
-
1482
- export function __wbg_byobRequest_77d9adf63337edfb(arg0) {
1250
+ }
1251
+ export function __wbg_byobRequest_178b64c09a0bee03(arg0) {
1483
1252
  const ret = arg0.byobRequest;
1484
1253
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1485
- };
1486
-
1487
- export function __wbg_byteLength_e674b853d9c77e1d(arg0) {
1254
+ }
1255
+ export function __wbg_byteLength_1f57c71e64ee0180(arg0) {
1488
1256
  const ret = arg0.byteLength;
1489
1257
  return ret;
1490
- };
1491
-
1492
- export function __wbg_byteOffset_fd862df290ef848d(arg0) {
1258
+ }
1259
+ export function __wbg_byteOffset_648d0af273024f3d(arg0) {
1493
1260
  const ret = arg0.byteOffset;
1494
1261
  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) {
1262
+ }
1263
+ export function __wbg_call_a41d6421b30a32c5() { return handleError(function (arg0, arg1, arg2) {
1503
1264
  const ret = arg0.call(arg1, arg2);
1504
1265
  return ret;
1505
- }, arguments) };
1506
-
1507
- export function __wbg_cancelReservation_038a18dbc15a13b5() { return handleError(function (arg0, arg1, arg2, arg3) {
1266
+ }, arguments); }
1267
+ export function __wbg_call_add9e5a76382e668() { return handleError(function (arg0, arg1) {
1268
+ const ret = arg0.call(arg1);
1269
+ return ret;
1270
+ }, arguments); }
1271
+ export function __wbg_cancelReservation_d3cadf13ef3b466b() { return handleError(function (arg0, arg1, arg2) {
1508
1272
  let deferred0_0;
1509
1273
  let deferred0_1;
1510
1274
  try {
1511
1275
  deferred0_0 = arg1;
1512
1276
  deferred0_1 = arg2;
1513
- const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
1277
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1514
1278
  return ret;
1515
1279
  } finally {
1516
1280
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1517
1281
  }
1518
- }, arguments) };
1519
-
1520
- export function __wbg_cancelReservation_fd3065607b457424() { return handleError(function (arg0, arg1, arg2) {
1282
+ }, arguments); }
1283
+ export function __wbg_cancelReservation_fdc08ad6bfe4ea81() { return handleError(function (arg0, arg1, arg2, arg3) {
1521
1284
  let deferred0_0;
1522
1285
  let deferred0_1;
1523
1286
  try {
1524
1287
  deferred0_0 = arg1;
1525
1288
  deferred0_1 = arg2;
1526
- const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
1289
+ const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2), arg3);
1527
1290
  return ret;
1528
1291
  } finally {
1529
1292
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1530
1293
  }
1531
- }, arguments) };
1532
-
1533
- export function __wbg_cancel_8a308660caa6cadf(arg0) {
1294
+ }, arguments); }
1295
+ export function __wbg_cancel_f97a3ee5a8b30eef(arg0) {
1534
1296
  const ret = arg0.cancel();
1535
1297
  return ret;
1536
- };
1537
-
1538
- export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
1298
+ }
1299
+ export function __wbg_catch_f939343cb181958c(arg0, arg1) {
1539
1300
  const ret = arg0.catch(arg1);
1540
1301
  return ret;
1541
- };
1542
-
1543
- export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
1302
+ }
1303
+ export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
1544
1304
  const ret = clearTimeout(arg0);
1545
1305
  return ret;
1546
- };
1547
-
1548
- export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
1306
+ }
1307
+ export function __wbg_clearTimeout_6b8d9a38b9263d65(arg0) {
1549
1308
  const ret = clearTimeout(arg0);
1550
1309
  return ret;
1551
- };
1552
-
1553
- export function __wbg_close_2893b7d056a0627d() { return handleError(function (arg0) {
1310
+ }
1311
+ export function __wbg_close_63e009c5a75f5597() { return handleError(function (arg0) {
1554
1312
  arg0.close();
1555
- }, arguments) };
1556
-
1557
- export function __wbg_close_304cc1fef3466669() { return handleError(function (arg0) {
1313
+ }, arguments); }
1314
+ export function __wbg_close_931d0c62e2aab92c() { return handleError(function (arg0) {
1558
1315
  arg0.close();
1559
- }, arguments) };
1560
-
1561
- export function __wbg_close_5ce03e29be453811() { return handleError(function (arg0) {
1316
+ }, arguments); }
1317
+ export function __wbg_close_de471367367aa5cb() { return handleError(function (arg0) {
1562
1318
  arg0.close();
1563
- }, arguments) };
1564
-
1565
- export function __wbg_code_cfd8f6868bdaed9b(arg0) {
1319
+ }, arguments); }
1320
+ export function __wbg_code_be6f339819ebb2c4(arg0) {
1566
1321
  const ret = arg0.code;
1567
1322
  return ret;
1568
- };
1569
-
1570
- export function __wbg_code_f4ec1e6e2e1b0417(arg0) {
1323
+ }
1324
+ export function __wbg_code_f1d2ddc1fbbb5aad(arg0) {
1571
1325
  const ret = arg0.code;
1572
1326
  return ret;
1573
- };
1574
-
1575
- export function __wbg_createDefaultStorage_458aa01b5eaead27() { return handleError(function (arg0, arg1, arg2) {
1327
+ }
1328
+ export function __wbg_createDefaultStorage_0d66fd24fb8cc6f3() { return handleError(function (arg0, arg1, arg2) {
1576
1329
  const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
1577
1330
  return ret;
1578
- }, arguments) };
1579
-
1580
- export function __wbg_createPostgresPool_8b4003e9db8e9432() { return handleError(function (arg0) {
1331
+ }, arguments); }
1332
+ export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError(function (arg0) {
1581
1333
  const ret = createPostgresPool(arg0);
1582
1334
  return ret;
1583
- }, arguments) };
1584
-
1585
- export function __wbg_createPostgresStorageWithPool_77aa64bddd7440db() { return handleError(function (arg0, arg1) {
1335
+ }, arguments); }
1336
+ export function __wbg_createPostgresStorageWithPool_9effb8c7315e402a() { return handleError(function (arg0, arg1) {
1586
1337
  const ret = createPostgresStorageWithPool(arg0, arg1);
1587
1338
  return ret;
1588
- }, arguments) };
1589
-
1590
- export function __wbg_createPostgresTokenStoreWithPool_5e7b75f5975d8b94() { return handleError(function (arg0, arg1) {
1339
+ }, arguments); }
1340
+ export function __wbg_createPostgresTokenStoreWithPool_810f67a7b8eced70() { return handleError(function (arg0, arg1) {
1591
1341
  const ret = createPostgresTokenStoreWithPool(arg0, arg1);
1592
1342
  return ret;
1593
- }, arguments) };
1594
-
1595
- export function __wbg_createPostgresTreeStoreWithPool_55e19122e69fb9e3() { return handleError(function (arg0, arg1) {
1343
+ }, arguments); }
1344
+ export function __wbg_createPostgresTreeStoreWithPool_d6f7ade37b9e1ecc() { return handleError(function (arg0, arg1) {
1596
1345
  const ret = createPostgresTreeStoreWithPool(arg0, arg1);
1597
1346
  return ret;
1598
- }, arguments) };
1599
-
1600
- export function __wbg_crypto_574e78ad8b13b65f(arg0) {
1347
+ }, arguments); }
1348
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
1601
1349
  const ret = arg0.crypto;
1602
1350
  return ret;
1603
- };
1604
-
1605
- export function __wbg_data_432d9c3df2630942(arg0) {
1351
+ }
1352
+ export function __wbg_data_4a14fad4c5f216c4(arg0) {
1606
1353
  const ret = arg0.data;
1607
1354
  return ret;
1608
- };
1609
-
1610
- export function __wbg_deleteCachedItem_ff3c84380e94360b() { return handleError(function (arg0, arg1, arg2) {
1355
+ }
1356
+ export function __wbg_deleteCachedItem_b8fbe3ebea21ed7e() { return handleError(function (arg0, arg1, arg2) {
1611
1357
  let deferred0_0;
1612
1358
  let deferred0_1;
1613
1359
  try {
@@ -1618,9 +1364,8 @@ export function __wbg_deleteCachedItem_ff3c84380e94360b() { return handleError(f
1618
1364
  } finally {
1619
1365
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1620
1366
  }
1621
- }, arguments) };
1622
-
1623
- export function __wbg_deleteContact_04d635b32c469d83() { return handleError(function (arg0, arg1, arg2) {
1367
+ }, arguments); }
1368
+ export function __wbg_deleteContact_415ef25ea1d91dff() { return handleError(function (arg0, arg1, arg2) {
1624
1369
  let deferred0_0;
1625
1370
  let deferred0_1;
1626
1371
  try {
@@ -1631,9 +1376,8 @@ export function __wbg_deleteContact_04d635b32c469d83() { return handleError(func
1631
1376
  } finally {
1632
1377
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1633
1378
  }
1634
- }, arguments) };
1635
-
1636
- export function __wbg_deleteDeposit_72ec826e7c3c3ccf() { return handleError(function (arg0, arg1, arg2, arg3) {
1379
+ }, arguments); }
1380
+ export function __wbg_deleteDeposit_f62650143b0453b9() { return handleError(function (arg0, arg1, arg2, arg3) {
1637
1381
  let deferred0_0;
1638
1382
  let deferred0_1;
1639
1383
  try {
@@ -1644,9 +1388,8 @@ export function __wbg_deleteDeposit_72ec826e7c3c3ccf() { return handleError(func
1644
1388
  } finally {
1645
1389
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1646
1390
  }
1647
- }, arguments) };
1648
-
1649
- export function __wbg_deleteRequest_7be0a74a10deac70() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1391
+ }, arguments); }
1392
+ export function __wbg_deleteRequest_597243024c6ce08c() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1650
1393
  let deferred0_0;
1651
1394
  let deferred0_1;
1652
1395
  try {
@@ -1662,9 +1405,8 @@ export function __wbg_deleteRequest_7be0a74a10deac70() { return handleError(func
1662
1405
  } finally {
1663
1406
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1664
1407
  }
1665
- }, arguments) };
1666
-
1667
- export function __wbg_derivePrfSeed_8584c0fcf554b593() { return handleError(function (arg0, arg1, arg2) {
1408
+ }, arguments); }
1409
+ export function __wbg_derivePrfSeed_7a4ec7d929c9bcca() { return handleError(function (arg0, arg1, arg2) {
1668
1410
  let deferred0_0;
1669
1411
  let deferred0_1;
1670
1412
  try {
@@ -1675,9 +1417,8 @@ export function __wbg_derivePrfSeed_8584c0fcf554b593() { return handleError(func
1675
1417
  } finally {
1676
1418
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1677
1419
  }
1678
- }, arguments) };
1679
-
1680
- export function __wbg_derivePublicKey_736fb57b6852f201() { return handleError(function (arg0, arg1, arg2) {
1420
+ }, arguments); }
1421
+ export function __wbg_derivePublicKey_bab57284cd981e9a() { return handleError(function (arg0, arg1, arg2) {
1681
1422
  let deferred0_0;
1682
1423
  let deferred0_1;
1683
1424
  try {
@@ -1688,14 +1429,12 @@ export function __wbg_derivePublicKey_736fb57b6852f201() { return handleError(fu
1688
1429
  } finally {
1689
1430
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1690
1431
  }
1691
- }, arguments) };
1692
-
1693
- export function __wbg_done_769e5ede4b31c67b(arg0) {
1432
+ }, arguments); }
1433
+ export function __wbg_done_b1afd6201ac045e0(arg0) {
1694
1434
  const ret = arg0.done;
1695
1435
  return ret;
1696
- };
1697
-
1698
- export function __wbg_eciesDecrypt_f54e495a0988c2cc() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1436
+ }
1437
+ export function __wbg_eciesDecrypt_986d793295625dc9() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1699
1438
  let deferred1_0;
1700
1439
  let deferred1_1;
1701
1440
  try {
@@ -1708,9 +1447,8 @@ export function __wbg_eciesDecrypt_f54e495a0988c2cc() { return handleError(funct
1708
1447
  } finally {
1709
1448
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1710
1449
  }
1711
- }, arguments) };
1712
-
1713
- export function __wbg_eciesEncrypt_d1c5b3c6a4602a28() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1450
+ }, arguments); }
1451
+ export function __wbg_eciesEncrypt_95486f45d5d74f6a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1714
1452
  let deferred1_0;
1715
1453
  let deferred1_1;
1716
1454
  try {
@@ -1723,57 +1461,46 @@ export function __wbg_eciesEncrypt_d1c5b3c6a4602a28() { return handleError(funct
1723
1461
  } finally {
1724
1462
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1725
1463
  }
1726
- }, arguments) };
1727
-
1728
- export function __wbg_encryptPrivateKeyForReceiver_346eec1080ebe04c() { return handleError(function (arg0, arg1, arg2) {
1464
+ }, arguments); }
1465
+ export function __wbg_encryptPrivateKeyForReceiver_a5414ece502e2eec() { return handleError(function (arg0, arg1, arg2) {
1729
1466
  const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
1730
1467
  return ret;
1731
- }, arguments) };
1732
-
1733
- export function __wbg_enqueue_bb16ba72f537dc9e() { return handleError(function (arg0, arg1) {
1468
+ }, arguments); }
1469
+ export function __wbg_enqueue_6c7cd543c0f3828e() { return handleError(function (arg0, arg1) {
1734
1470
  arg0.enqueue(arg1);
1735
- }, arguments) };
1736
-
1737
- export function __wbg_entries_3265d4158b33e5dc(arg0) {
1471
+ }, arguments); }
1472
+ export function __wbg_entries_bb9843ba73dc70d6(arg0) {
1738
1473
  const ret = Object.entries(arg0);
1739
1474
  return ret;
1740
- };
1741
-
1742
- export function __wbg_error_e98c298703cffa97(arg0, arg1) {
1475
+ }
1476
+ export function __wbg_error_ba2b2915aeba36d8(arg0, arg1) {
1743
1477
  console.error(getStringFromWasm0(arg0, arg1));
1744
- };
1745
-
1746
- export function __wbg_fetchFiatCurrencies_d11be091c7fac943() { return handleError(function (arg0) {
1478
+ }
1479
+ export function __wbg_fetchFiatCurrencies_8afa0468f01bf013() { return handleError(function (arg0) {
1747
1480
  const ret = arg0.fetchFiatCurrencies();
1748
1481
  return ret;
1749
- }, arguments) };
1750
-
1751
- export function __wbg_fetchFiatRates_a5bc2d1be56de4a7() { return handleError(function (arg0) {
1482
+ }, arguments); }
1483
+ export function __wbg_fetchFiatRates_89205e79f984cee8() { return handleError(function (arg0) {
1752
1484
  const ret = arg0.fetchFiatRates();
1753
1485
  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) {
1486
+ }, arguments); }
1487
+ export function __wbg_fetch_1a030943aa8e0c38(arg0, arg1) {
1762
1488
  const ret = arg0.fetch(arg1);
1763
1489
  return ret;
1764
- };
1765
-
1766
- export function __wbg_fetch_769f3df592e37b75(arg0, arg1) {
1490
+ }
1491
+ export function __wbg_fetch_217f3dd51c581eee(arg0, arg1) {
1767
1492
  const ret = fetch(arg0, arg1);
1768
1493
  return ret;
1769
- };
1770
-
1771
- export function __wbg_fetch_f156d10be9a5c88a(arg0) {
1494
+ }
1495
+ export function __wbg_fetch_9dad4fe911207b37(arg0) {
1772
1496
  const ret = fetch(arg0);
1773
1497
  return ret;
1774
- };
1775
-
1776
- export function __wbg_finalizeReservation_86ee8385c17e015b() { return handleError(function (arg0, arg1, arg2) {
1498
+ }
1499
+ export function __wbg_fetch_a851d393d6b4492c(arg0, arg1, arg2) {
1500
+ const ret = arg0.fetch(arg1, arg2);
1501
+ return ret;
1502
+ }
1503
+ export function __wbg_finalizeReservation_10f99a20bf634639() { return handleError(function (arg0, arg1, arg2) {
1777
1504
  let deferred0_0;
1778
1505
  let deferred0_1;
1779
1506
  try {
@@ -1784,9 +1511,8 @@ export function __wbg_finalizeReservation_86ee8385c17e015b() { return handleErro
1784
1511
  } finally {
1785
1512
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1786
1513
  }
1787
- }, arguments) };
1788
-
1789
- export function __wbg_finalizeReservation_a8fad570b7fe5185() { return handleError(function (arg0, arg1, arg2, arg3) {
1514
+ }, arguments); }
1515
+ export function __wbg_finalizeReservation_aa324ddf4b195930() { return handleError(function (arg0, arg1, arg2, arg3) {
1790
1516
  let deferred0_0;
1791
1517
  let deferred0_1;
1792
1518
  try {
@@ -1797,19 +1523,16 @@ export function __wbg_finalizeReservation_a8fad570b7fe5185() { return handleErro
1797
1523
  } finally {
1798
1524
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1799
1525
  }
1800
- }, arguments) };
1801
-
1802
- export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { return handleError(function (arg0) {
1526
+ }, arguments); }
1527
+ export function __wbg_generateFrostSigningCommitments_1e8b83b2bed675c9() { return handleError(function (arg0) {
1803
1528
  const ret = arg0.generateFrostSigningCommitments();
1804
1529
  return ret;
1805
- }, arguments) };
1806
-
1807
- export function __wbg_generateRandomSecret_3dcc7ca4a61a1d4d() { return handleError(function (arg0) {
1530
+ }, arguments); }
1531
+ export function __wbg_generateRandomSecret_432432761a2594b7() { return handleError(function (arg0) {
1808
1532
  const ret = arg0.generateRandomSecret();
1809
1533
  return ret;
1810
- }, arguments) };
1811
-
1812
- export function __wbg_getAddressUtxos_328ceb8b4a63a6da() { return handleError(function (arg0, arg1, arg2) {
1534
+ }, arguments); }
1535
+ export function __wbg_getAddressUtxos_9526b6d8078b867e() { return handleError(function (arg0, arg1, arg2) {
1813
1536
  let deferred0_0;
1814
1537
  let deferred0_1;
1815
1538
  try {
@@ -1820,14 +1543,12 @@ export function __wbg_getAddressUtxos_328ceb8b4a63a6da() { return handleError(fu
1820
1543
  } finally {
1821
1544
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1822
1545
  }
1823
- }, arguments) };
1824
-
1825
- export function __wbg_getAvailableBalance_c24d30be8dc60bd5() { return handleError(function (arg0) {
1546
+ }, arguments); }
1547
+ export function __wbg_getAvailableBalance_6f4e670b89ade6d0() { return handleError(function (arg0) {
1826
1548
  const ret = arg0.getAvailableBalance();
1827
1549
  return ret;
1828
- }, arguments) };
1829
-
1830
- export function __wbg_getCachedItem_de40d6348815c7b9() { return handleError(function (arg0, arg1, arg2) {
1550
+ }, arguments); }
1551
+ export function __wbg_getCachedItem_b89cba4db943ef67() { return handleError(function (arg0, arg1, arg2) {
1831
1552
  let deferred0_0;
1832
1553
  let deferred0_1;
1833
1554
  try {
@@ -1838,9 +1559,8 @@ export function __wbg_getCachedItem_de40d6348815c7b9() { return handleError(func
1838
1559
  } finally {
1839
1560
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1840
1561
  }
1841
- }, arguments) };
1842
-
1843
- export function __wbg_getContact_b7300737e5dee01b() { return handleError(function (arg0, arg1, arg2) {
1562
+ }, arguments); }
1563
+ export function __wbg_getContact_35b5c6f2fa25cf9e() { return handleError(function (arg0, arg1, arg2) {
1844
1564
  let deferred0_0;
1845
1565
  let deferred0_1;
1846
1566
  try {
@@ -1851,14 +1571,12 @@ export function __wbg_getContact_b7300737e5dee01b() { return handleError(functio
1851
1571
  } finally {
1852
1572
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1853
1573
  }
1854
- }, arguments) };
1855
-
1856
- export function __wbg_getLeaves_c94a1c927d239738() { return handleError(function (arg0) {
1574
+ }, arguments); }
1575
+ export function __wbg_getLeaves_5259dc2b9de80ff0() { return handleError(function (arg0) {
1857
1576
  const ret = arg0.getLeaves();
1858
1577
  return ret;
1859
- }, arguments) };
1860
-
1861
- export function __wbg_getPaymentById_c23144bfc404b2fc() { return handleError(function (arg0, arg1, arg2) {
1578
+ }, arguments); }
1579
+ export function __wbg_getPaymentById_6d677ada5879df99() { return handleError(function (arg0, arg1, arg2) {
1862
1580
  let deferred0_0;
1863
1581
  let deferred0_1;
1864
1582
  try {
@@ -1869,9 +1587,8 @@ export function __wbg_getPaymentById_c23144bfc404b2fc() { return handleError(fun
1869
1587
  } finally {
1870
1588
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1871
1589
  }
1872
- }, arguments) };
1873
-
1874
- export function __wbg_getPaymentByInvoice_afddfcbefa5508b0() { return handleError(function (arg0, arg1, arg2) {
1590
+ }, arguments); }
1591
+ export function __wbg_getPaymentByInvoice_82ae971724979f3a() { return handleError(function (arg0, arg1, arg2) {
1875
1592
  let deferred0_0;
1876
1593
  let deferred0_1;
1877
1594
  try {
@@ -1882,39 +1599,32 @@ export function __wbg_getPaymentByInvoice_afddfcbefa5508b0() { return handleErro
1882
1599
  } finally {
1883
1600
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1884
1601
  }
1885
- }, arguments) };
1886
-
1887
- export function __wbg_getPaymentsByParentIds_0f8f8e0097a07321() { return handleError(function (arg0, arg1, arg2) {
1602
+ }, arguments); }
1603
+ export function __wbg_getPaymentsByParentIds_7ab066452766ae6d() { return handleError(function (arg0, arg1, arg2) {
1888
1604
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1889
1605
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1890
1606
  const ret = arg0.getPaymentsByParentIds(v0);
1891
1607
  return ret;
1892
- }, arguments) };
1893
-
1894
- export function __wbg_getPublicKeyForNode_5ddb3378904e4ad4() { return handleError(function (arg0, arg1) {
1608
+ }, arguments); }
1609
+ export function __wbg_getPublicKeyForNode_1c1b34ec571148c2() { return handleError(function (arg0, arg1) {
1895
1610
  const ret = arg0.getPublicKeyForNode(arg1);
1896
1611
  return ret;
1897
- }, arguments) };
1898
-
1899
- export function __wbg_getPublicKeyFromSecretSource_9e324c0b205a9f99() { return handleError(function (arg0, arg1) {
1612
+ }, arguments); }
1613
+ export function __wbg_getPublicKeyFromSecretSource_cecb0b3d2ce521bd() { return handleError(function (arg0, arg1) {
1900
1614
  const ret = arg0.getPublicKeyFromSecretSource(arg1);
1901
1615
  return ret;
1902
- }, arguments) };
1903
-
1904
- export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
1616
+ }, arguments); }
1617
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
1905
1618
  arg0.getRandomValues(arg1);
1906
- }, arguments) };
1907
-
1908
- export function __wbg_getRandomValues_e14bd3de0db61032() { return handleError(function (arg0, arg1) {
1619
+ }, arguments); }
1620
+ export function __wbg_getRandomValues_ef12552bf5acd2fe() { return handleError(function (arg0, arg1) {
1909
1621
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1910
- }, arguments) };
1911
-
1912
- export function __wbg_getReader_48e00749fe3f6089() { return handleError(function (arg0) {
1622
+ }, arguments); }
1623
+ export function __wbg_getReader_b4b1868fbca77dbe() { return handleError(function (arg0) {
1913
1624
  const ret = arg0.getReader();
1914
1625
  return ret;
1915
- }, arguments) };
1916
-
1917
- export function __wbg_getRequest_4ab87a8cbe18fa22() { return handleError(function (arg0, arg1, arg2, arg3) {
1626
+ }, arguments); }
1627
+ export function __wbg_getRequest_9153d27d6c51b5c7() { return handleError(function (arg0, arg1, arg2, arg3) {
1918
1628
  let deferred0_0;
1919
1629
  let deferred0_1;
1920
1630
  try {
@@ -1925,34 +1635,28 @@ export function __wbg_getRequest_4ab87a8cbe18fa22() { return handleError(functio
1925
1635
  } finally {
1926
1636
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1927
1637
  }
1928
- }, arguments) };
1929
-
1930
- export function __wbg_getStaticDepositPrivateKey_203e6f4eb4116ce0() { return handleError(function (arg0, arg1) {
1638
+ }, arguments); }
1639
+ export function __wbg_getStaticDepositPrivateKey_82943f7a0fe1208d() { return handleError(function (arg0, arg1) {
1931
1640
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1932
1641
  return ret;
1933
- }, arguments) };
1934
-
1935
- export function __wbg_getStaticDepositPublicKey_4551dec44c20efe6() { return handleError(function (arg0, arg1) {
1642
+ }, arguments); }
1643
+ export function __wbg_getStaticDepositPublicKey_8424ddc7bb238008() { return handleError(function (arg0, arg1) {
1936
1644
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1937
1645
  return ret;
1938
- }, arguments) };
1939
-
1940
- export function __wbg_getStaticDepositSecretSource_8e310c718339e400() { return handleError(function (arg0, arg1) {
1646
+ }, arguments); }
1647
+ export function __wbg_getStaticDepositSecretSource_86007c41c79d2bea() { return handleError(function (arg0, arg1) {
1941
1648
  const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
1942
1649
  return ret;
1943
- }, arguments) };
1944
-
1945
- export function __wbg_getTokenBalances_2e44f820b2d89c1e() { return handleError(function (arg0) {
1650
+ }, arguments); }
1651
+ export function __wbg_getTokenBalances_b788cda26e92f342() { return handleError(function (arg0) {
1946
1652
  const ret = arg0.getTokenBalances();
1947
1653
  return ret;
1948
- }, arguments) };
1949
-
1950
- export function __wbg_getTokenOutputs_f51d6f5d47330273() { return handleError(function (arg0, arg1) {
1654
+ }, arguments); }
1655
+ export function __wbg_getTokenOutputs_f30e221535c83db6() { return handleError(function (arg0, arg1) {
1951
1656
  const ret = arg0.getTokenOutputs(arg1);
1952
1657
  return ret;
1953
- }, arguments) };
1954
-
1955
- export function __wbg_getTransactionHex_973b8d0555c60f99() { return handleError(function (arg0, arg1, arg2) {
1658
+ }, arguments); }
1659
+ export function __wbg_getTransactionHex_c65f4b9ee4eb9b96() { return handleError(function (arg0, arg1, arg2) {
1956
1660
  let deferred0_0;
1957
1661
  let deferred0_1;
1958
1662
  try {
@@ -1963,9 +1667,8 @@ export function __wbg_getTransactionHex_973b8d0555c60f99() { return handleError(
1963
1667
  } finally {
1964
1668
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1965
1669
  }
1966
- }, arguments) };
1967
-
1968
- export function __wbg_getTransactionStatus_731f0ef840c27f99() { return handleError(function (arg0, arg1, arg2) {
1670
+ }, arguments); }
1671
+ export function __wbg_getTransactionStatus_32c49e1985e35d63() { return handleError(function (arg0, arg1, arg2) {
1969
1672
  let deferred0_0;
1970
1673
  let deferred0_1;
1971
1674
  try {
@@ -1976,44 +1679,40 @@ export function __wbg_getTransactionStatus_731f0ef840c27f99() { return handleErr
1976
1679
  } finally {
1977
1680
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1978
1681
  }
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) {
1682
+ }, arguments); }
1683
+ export function __wbg_get_652f640b3b0b6e3e(arg0, arg1) {
1987
1684
  const ret = arg0[arg1 >>> 0];
1988
1685
  return ret;
1989
- };
1990
-
1991
- export function __wbg_getdone_d47073731acd3e74(arg0) {
1686
+ }
1687
+ export function __wbg_get_9cfea9b7bbf12a15() { return handleError(function (arg0, arg1) {
1688
+ const ret = Reflect.get(arg0, arg1);
1689
+ return ret;
1690
+ }, arguments); }
1691
+ export function __wbg_get_done_2088079830fb242e(arg0) {
1992
1692
  const ret = arg0.done;
1993
1693
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1994
- };
1995
-
1996
- export function __wbg_getvalue_009dcd63692bee1f(arg0) {
1694
+ }
1695
+ export function __wbg_get_unchecked_be562b1421656321(arg0, arg1) {
1696
+ const ret = arg0[arg1 >>> 0];
1697
+ return ret;
1698
+ }
1699
+ export function __wbg_get_value_52f4b39f58a812ed(arg0) {
1997
1700
  const ret = arg0.value;
1998
1701
  return ret;
1999
- };
2000
-
2001
- export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1702
+ }
1703
+ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
2002
1704
  const ret = arg0[arg1];
2003
1705
  return ret;
2004
- };
2005
-
2006
- export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
1706
+ }
1707
+ export function __wbg_has_3a6f31f647e0ba22() { return handleError(function (arg0, arg1) {
2007
1708
  const ret = Reflect.has(arg0, arg1);
2008
1709
  return ret;
2009
- }, arguments) };
2010
-
2011
- export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
1710
+ }, arguments); }
1711
+ export function __wbg_headers_de17f740bce997ae(arg0) {
2012
1712
  const ret = arg0.headers;
2013
1713
  return ret;
2014
- };
2015
-
2016
- export function __wbg_hmacSha256_c6633de6089f686f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1714
+ }
1715
+ export function __wbg_hmacSha256_44b56787dc85796b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2017
1716
  let deferred1_0;
2018
1717
  let deferred1_1;
2019
1718
  try {
@@ -2026,19 +1725,16 @@ export function __wbg_hmacSha256_c6633de6089f686f() { return handleError(functio
2026
1725
  } finally {
2027
1726
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2028
1727
  }
2029
- }, arguments) };
2030
-
2031
- export function __wbg_identityPublicKey_c8b35005055a3df0() { return handleError(function (arg0) {
1728
+ }, arguments); }
1729
+ export function __wbg_identityPublicKey_157f9d906d49e5c4() { return handleError(function (arg0) {
2032
1730
  const ret = arg0.identityPublicKey();
2033
1731
  return ret;
2034
- }, arguments) };
2035
-
2036
- export function __wbg_insertContact_33c214012213409d() { return handleError(function (arg0, arg1) {
1732
+ }, arguments); }
1733
+ export function __wbg_insertContact_cc39397cb8e88ff8() { return handleError(function (arg0, arg1) {
2037
1734
  const ret = arg0.insertContact(arg1);
2038
1735
  return ret;
2039
- }, arguments) };
2040
-
2041
- export function __wbg_insertPaymentMetadata_0c4ebdcde694d29b() { return handleError(function (arg0, arg1, arg2, arg3) {
1736
+ }, arguments); }
1737
+ export function __wbg_insertPaymentMetadata_0ce664b21d71c9f8() { return handleError(function (arg0, arg1, arg2, arg3) {
2042
1738
  let deferred0_0;
2043
1739
  let deferred0_1;
2044
1740
  try {
@@ -2049,19 +1745,16 @@ export function __wbg_insertPaymentMetadata_0c4ebdcde694d29b() { return handleEr
2049
1745
  } finally {
2050
1746
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2051
1747
  }
2052
- }, arguments) };
2053
-
2054
- export function __wbg_insertPayment_2afe3300c5f86ccf() { return handleError(function (arg0, arg1) {
1748
+ }, arguments); }
1749
+ export function __wbg_insertPayment_830c37c6efef1f8a() { return handleError(function (arg0, arg1) {
2055
1750
  const ret = arg0.insertPayment(arg1);
2056
1751
  return ret;
2057
- }, arguments) };
2058
-
2059
- export function __wbg_insertTokenOutputs_043ceea065ff8f65() { return handleError(function (arg0, arg1) {
1752
+ }, arguments); }
1753
+ export function __wbg_insertTokenOutputs_11b256443d099417() { return handleError(function (arg0, arg1) {
2060
1754
  const ret = arg0.insertTokenOutputs(arg1);
2061
1755
  return ret;
2062
- }, arguments) };
2063
-
2064
- export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
1756
+ }, arguments); }
1757
+ export function __wbg_instanceof_ArrayBuffer_eab9f28fbec23477(arg0) {
2065
1758
  let result;
2066
1759
  try {
2067
1760
  result = arg0 instanceof ArrayBuffer;
@@ -2070,9 +1763,8 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
2070
1763
  }
2071
1764
  const ret = result;
2072
1765
  return ret;
2073
- };
2074
-
2075
- export function __wbg_instanceof_Blob_ca721ef3bdab15d1(arg0) {
1766
+ }
1767
+ export function __wbg_instanceof_Blob_03470b25075ee8f1(arg0) {
2076
1768
  let result;
2077
1769
  try {
2078
1770
  result = arg0 instanceof Blob;
@@ -2081,9 +1773,8 @@ export function __wbg_instanceof_Blob_ca721ef3bdab15d1(arg0) {
2081
1773
  }
2082
1774
  const ret = result;
2083
1775
  return ret;
2084
- };
2085
-
2086
- export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
1776
+ }
1777
+ export function __wbg_instanceof_DomException_47098be3333e16f8(arg0) {
2087
1778
  let result;
2088
1779
  try {
2089
1780
  result = arg0 instanceof DOMException;
@@ -2092,9 +1783,8 @@ export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
2092
1783
  }
2093
1784
  const ret = result;
2094
1785
  return ret;
2095
- };
2096
-
2097
- export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
1786
+ }
1787
+ export function __wbg_instanceof_Error_5e21755e9d9cbee5(arg0) {
2098
1788
  let result;
2099
1789
  try {
2100
1790
  result = arg0 instanceof Error;
@@ -2103,9 +1793,8 @@ export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
2103
1793
  }
2104
1794
  const ret = result;
2105
1795
  return ret;
2106
- };
2107
-
2108
- export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
1796
+ }
1797
+ export function __wbg_instanceof_Map_10d4edf60fcf9327(arg0) {
2109
1798
  let result;
2110
1799
  try {
2111
1800
  result = arg0 instanceof Map;
@@ -2114,9 +1803,8 @@ export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
2114
1803
  }
2115
1804
  const ret = result;
2116
1805
  return ret;
2117
- };
2118
-
2119
- export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
1806
+ }
1807
+ export function __wbg_instanceof_Object_af9351f8f1c6f0c4(arg0) {
2120
1808
  let result;
2121
1809
  try {
2122
1810
  result = arg0 instanceof Object;
@@ -2125,9 +1813,8 @@ export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
2125
1813
  }
2126
1814
  const ret = result;
2127
1815
  return ret;
2128
- };
2129
-
2130
- export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
1816
+ }
1817
+ export function __wbg_instanceof_Response_370b83aa6c17e88a(arg0) {
2131
1818
  let result;
2132
1819
  try {
2133
1820
  result = arg0 instanceof Response;
@@ -2136,9 +1823,8 @@ export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
2136
1823
  }
2137
1824
  const ret = result;
2138
1825
  return ret;
2139
- };
2140
-
2141
- export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
1826
+ }
1827
+ export function __wbg_instanceof_Uint8Array_57d77acd50e4c44d(arg0) {
2142
1828
  let result;
2143
1829
  try {
2144
1830
  result = arg0 instanceof Uint8Array;
@@ -2147,106 +1833,116 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
2147
1833
  }
2148
1834
  const ret = result;
2149
1835
  return ret;
2150
- };
2151
-
2152
- export function __wbg_isArray_a1eab7e0d067391b(arg0) {
1836
+ }
1837
+ export function __wbg_isArray_c6c6ef8308995bcf(arg0) {
2153
1838
  const ret = Array.isArray(arg0);
2154
1839
  return ret;
2155
- };
2156
-
2157
- export function __wbg_isPrfAvailable_c13e727932109c6e() { return handleError(function (arg0) {
1840
+ }
1841
+ export function __wbg_isPrfAvailable_f77f283e48e966e1() { return handleError(function (arg0) {
2158
1842
  const ret = arg0.isPrfAvailable();
2159
1843
  return ret;
2160
- }, arguments) };
2161
-
2162
- export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1844
+ }, arguments); }
1845
+ export function __wbg_isSafeInteger_3c56c421a5b4cce4(arg0) {
2163
1846
  const ret = Number.isSafeInteger(arg0);
2164
1847
  return ret;
2165
- };
2166
-
2167
- export function __wbg_iterator_9a24c88df860dc65() {
1848
+ }
1849
+ export function __wbg_iterator_9d68985a1d096fc2() {
2168
1850
  const ret = Symbol.iterator;
2169
1851
  return ret;
2170
- };
2171
-
2172
- export function __wbg_length_a446193dc22c12f8(arg0) {
1852
+ }
1853
+ export function __wbg_length_0a6ce016dc1460b0(arg0) {
2173
1854
  const ret = arg0.length;
2174
1855
  return ret;
2175
- };
2176
-
2177
- export function __wbg_length_e2d2a49132c1b256(arg0) {
1856
+ }
1857
+ export function __wbg_length_ba3c032602efe310(arg0) {
2178
1858
  const ret = arg0.length;
2179
1859
  return ret;
2180
- };
2181
-
2182
- export function __wbg_listContacts_5b4d38a57743b713() { return handleError(function (arg0, arg1) {
1860
+ }
1861
+ export function __wbg_listContacts_0afeb7e9554fdb74() { return handleError(function (arg0, arg1) {
2183
1862
  const ret = arg0.listContacts(arg1);
2184
1863
  return ret;
2185
- }, arguments) };
2186
-
2187
- export function __wbg_listDeposits_7ca6e22afc06d560() { return handleError(function (arg0) {
1864
+ }, arguments); }
1865
+ export function __wbg_listDeposits_c2241448716e0b2b() { return handleError(function (arg0) {
2188
1866
  const ret = arg0.listDeposits();
2189
1867
  return ret;
2190
- }, arguments) };
2191
-
2192
- export function __wbg_listPayments_d8c53ab09ffc756b() { return handleError(function (arg0, arg1) {
1868
+ }, arguments); }
1869
+ export function __wbg_listPayments_c1aab8442a6e2fe9() { return handleError(function (arg0, arg1) {
2193
1870
  const ret = arg0.listPayments(arg1);
2194
1871
  return ret;
2195
- }, arguments) };
2196
-
2197
- export function __wbg_listTokensOutputs_4b4500bd5aca2c88() { return handleError(function (arg0) {
1872
+ }, arguments); }
1873
+ export function __wbg_listTokensOutputs_3fecc3251ae7b71c() { return handleError(function (arg0) {
2198
1874
  const ret = arg0.listTokensOutputs();
2199
1875
  return ret;
2200
- }, arguments) };
2201
-
2202
- export function __wbg_log_62b3ddcc89229688(arg0, arg1) {
1876
+ }, arguments); }
1877
+ export function __wbg_log_cf86719f8acabfda(arg0, arg1) {
2203
1878
  arg0.log(arg1);
2204
- };
2205
-
2206
- export function __wbg_message_5c5d919204d42400(arg0, arg1) {
1879
+ }
1880
+ export function __wbg_message_609b498da776cb30(arg0, arg1) {
2207
1881
  const ret = arg1.message;
2208
1882
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2209
1883
  const len1 = WASM_VECTOR_LEN;
2210
1884
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2211
1885
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2212
- };
2213
-
2214
- export function __wbg_message_97a2af9b89d693a3(arg0) {
1886
+ }
1887
+ export function __wbg_message_d5628ca19de920d3(arg0) {
2215
1888
  const ret = arg0.message;
2216
1889
  return ret;
2217
- };
2218
-
2219
- export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
1890
+ }
1891
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
2220
1892
  const ret = arg0.msCrypto;
2221
1893
  return ret;
2222
- };
2223
-
2224
- export function __wbg_name_0b327d569f00ebee(arg0) {
1894
+ }
1895
+ export function __wbg_name_bf92195f4668ab6e(arg0) {
2225
1896
  const ret = arg0.name;
2226
1897
  return ret;
2227
- };
2228
-
2229
- export function __wbg_name_f2d27098bfd843e7(arg0, arg1) {
1898
+ }
1899
+ export function __wbg_name_f19fb17a86413602(arg0, arg1) {
2230
1900
  const ret = arg1.name;
2231
1901
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2232
1902
  const len1 = WASM_VECTOR_LEN;
2233
1903
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2234
1904
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2235
- };
2236
-
2237
- export function __wbg_new_018dcc2d6c8c2f6a() { return handleError(function () {
1905
+ }
1906
+ export function __wbg_new_18865c63fa645c6f() { return handleError(function () {
2238
1907
  const ret = new Headers();
2239
1908
  return ret;
2240
- }, arguments) };
2241
-
2242
- export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1909
+ }, arguments); }
1910
+ export function __wbg_new_2fad8ca02fd00684() {
1911
+ const ret = new Object();
1912
+ return ret;
1913
+ }
1914
+ export function __wbg_new_3baa8d9866155c79() {
1915
+ const ret = new Array();
1916
+ return ret;
1917
+ }
1918
+ export function __wbg_new_46ae4e4ff2a07a64() {
1919
+ const ret = new Map();
1920
+ return ret;
1921
+ }
1922
+ export function __wbg_new_51ff470dc2f61e27() { return handleError(function () {
1923
+ const ret = new AbortController();
1924
+ return ret;
1925
+ }, arguments); }
1926
+ export function __wbg_new_71b820e9c1f9ee88() { return handleError(function (arg0, arg1) {
1927
+ const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
1928
+ return ret;
1929
+ }, arguments); }
1930
+ export function __wbg_new_8454eee672b2ba6e(arg0) {
1931
+ const ret = new Uint8Array(arg0);
1932
+ return ret;
1933
+ }
1934
+ export function __wbg_new_c9ea13ea803a692e(arg0, arg1) {
1935
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1936
+ return ret;
1937
+ }
1938
+ export function __wbg_new_eb8acd9352be84ba(arg0, arg1) {
2243
1939
  try {
2244
1940
  var state0 = {a: arg0, b: arg1};
2245
1941
  var cb0 = (arg0, arg1) => {
2246
1942
  const a = state0.a;
2247
1943
  state0.a = 0;
2248
1944
  try {
2249
- return __wbg_adapter_445(a, state0.b, arg0, arg1);
1945
+ return wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(a, state0.b, arg0, arg1);
2250
1946
  } finally {
2251
1947
  state0.a = a;
2252
1948
  }
@@ -2254,119 +1950,86 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
2254
1950
  const ret = new Promise(cb0);
2255
1951
  return ret;
2256
1952
  } finally {
2257
- state0.a = state0.b = 0;
1953
+ state0.a = 0;
2258
1954
  }
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));
1955
+ }
1956
+ export function __wbg_new_from_slice_5a173c243af2e823(arg0, arg1) {
1957
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2298
1958
  return ret;
2299
- };
2300
-
2301
- export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
1959
+ }
1960
+ export function __wbg_new_typed_1137602701dc87d4(arg0, arg1) {
1961
+ try {
1962
+ var state0 = {a: arg0, b: arg1};
1963
+ var cb0 = (arg0, arg1) => {
1964
+ const a = state0.a;
1965
+ state0.a = 0;
1966
+ try {
1967
+ return wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(a, state0.b, arg0, arg1);
1968
+ } finally {
1969
+ state0.a = a;
1970
+ }
1971
+ };
1972
+ const ret = new Promise(cb0);
1973
+ return ret;
1974
+ } finally {
1975
+ state0.a = 0;
1976
+ }
1977
+ }
1978
+ export function __wbg_new_with_byte_offset_and_length_643e5e9e2fb6b1ad(arg0, arg1, arg2) {
2302
1979
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
2303
1980
  return ret;
2304
- };
2305
-
2306
- export function __wbg_newwithlength_a381634e90c276d4(arg0) {
1981
+ }
1982
+ export function __wbg_new_with_length_9011f5da794bf5d9(arg0) {
2307
1983
  const ret = new Uint8Array(arg0 >>> 0);
2308
1984
  return ret;
2309
- };
2310
-
2311
- export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
1985
+ }
1986
+ export function __wbg_new_with_str_and_init_da311e12114f4d1e() { return handleError(function (arg0, arg1, arg2) {
2312
1987
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
2313
1988
  return ret;
2314
- }, arguments) };
2315
-
2316
- export function __wbg_next_25feadfc0913fea9(arg0) {
1989
+ }, arguments); }
1990
+ export function __wbg_next_261c3c48c6e309a5(arg0) {
2317
1991
  const ret = arg0.next;
2318
1992
  return ret;
2319
- };
2320
-
2321
- export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
1993
+ }
1994
+ export function __wbg_next_aacee310bcfe6461() { return handleError(function (arg0) {
2322
1995
  const ret = arg0.next();
2323
1996
  return ret;
2324
- }, arguments) };
2325
-
2326
- export function __wbg_node_905d3e251edff8a2(arg0) {
1997
+ }, arguments); }
1998
+ export function __wbg_node_84ea875411254db1(arg0) {
2327
1999
  const ret = arg0.node;
2328
2000
  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();
2001
+ }
2002
+ export function __wbg_now_0cce8c6798af1870() { return handleError(function () {
2003
+ const ret = Date.now();
2338
2004
  return ret;
2339
- };
2340
-
2341
- export function __wbg_now_6af59e24f5a53ad4() { return handleError(function () {
2005
+ }, arguments); }
2006
+ export function __wbg_now_4f457f10f864aec5() {
2342
2007
  const ret = Date.now();
2343
2008
  return ret;
2344
- }, arguments) };
2345
-
2346
- export function __wbg_now_79892f24f17d010a() { return handleError(function (arg0) {
2009
+ }
2010
+ export function __wbg_now_e7c6795a7f81e10f(arg0) {
2347
2011
  const ret = arg0.now();
2348
2012
  return ret;
2349
- }, arguments) };
2350
-
2351
- export function __wbg_now_807e54c39636c349() {
2352
- const ret = Date.now();
2013
+ }
2014
+ export function __wbg_now_ea3e9aca8593610d() { return handleError(function (arg0) {
2015
+ const ret = arg0.now();
2353
2016
  return ret;
2354
- };
2355
-
2356
- export function __wbg_onEvent_3a18bdd7cfd911cb(arg0, arg1) {
2017
+ }, arguments); }
2018
+ export function __wbg_now_ee1e8589b4c39f9a() { return handleError(function (arg0) {
2019
+ const ret = arg0.now();
2020
+ return ret;
2021
+ }, arguments); }
2022
+ export function __wbg_onEvent_a70e8ec272c69a3a(arg0, arg1) {
2357
2023
  arg0.onEvent(arg1);
2358
- };
2359
-
2360
- export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
2024
+ }
2025
+ export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
2361
2026
  const ret = arg0.performance;
2362
2027
  return ret;
2363
- };
2364
-
2365
- export function __wbg_postMessage_83a8d58d3fcb6c13() { return handleError(function (arg0, arg1) {
2028
+ }
2029
+ export function __wbg_postMessage_ead2ef5ee8c7a94e() { return handleError(function (arg0, arg1) {
2366
2030
  arg0.postMessage(arg1);
2367
- }, arguments) };
2368
-
2369
- export function __wbg_postRequest_678f7531153ace01() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2031
+ }, arguments); }
2032
+ export function __wbg_postRequest_b7e02f7ec4d8b99b() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2370
2033
  let deferred0_0;
2371
2034
  let deferred0_1;
2372
2035
  try {
@@ -2382,59 +2045,51 @@ export function __wbg_postRequest_678f7531153ace01() { return handleError(functi
2382
2045
  } finally {
2383
2046
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2384
2047
  }
2385
- }, arguments) };
2386
-
2387
- export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
2048
+ }, arguments); }
2049
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
2388
2050
  const ret = arg0.process;
2389
2051
  return ret;
2390
- };
2391
-
2392
- export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
2052
+ }
2053
+ export function __wbg_prototypesetcall_fd4050e806e1d519(arg0, arg1, arg2) {
2054
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2055
+ }
2056
+ export function __wbg_queueMicrotask_40ac6ffc2848ba77(arg0) {
2393
2057
  queueMicrotask(arg0);
2394
- };
2395
-
2396
- export function __wbg_queueMicrotask_d3219def82552485(arg0) {
2058
+ }
2059
+ export function __wbg_queueMicrotask_74d092439f6494c1(arg0) {
2397
2060
  const ret = arg0.queueMicrotask;
2398
2061
  return ret;
2399
- };
2400
-
2401
- export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
2062
+ }
2063
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
2402
2064
  arg0.randomFillSync(arg1);
2403
- }, arguments) };
2404
-
2405
- export function __wbg_read_a2434af1186cb56c(arg0) {
2065
+ }, arguments); }
2066
+ export function __wbg_read_ac2e4325f1799cbe(arg0) {
2406
2067
  const ret = arg0.read();
2407
2068
  return ret;
2408
- };
2409
-
2410
- export function __wbg_readyState_7ef6e63c349899ed(arg0) {
2069
+ }
2070
+ export function __wbg_readyState_be3cc9403da6c6ae(arg0) {
2411
2071
  const ret = arg0.readyState;
2412
2072
  return ret;
2413
- };
2414
-
2415
- export function __wbg_reason_49f1cede8bcf23dd(arg0, arg1) {
2073
+ }
2074
+ export function __wbg_reason_fe958bcb63725f3b(arg0, arg1) {
2416
2075
  const ret = arg1.reason;
2417
2076
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2418
2077
  const len1 = WASM_VECTOR_LEN;
2419
2078
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2420
2079
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2421
- };
2422
-
2423
- export function __wbg_recommendedFees_a61f331fce46523e() { return handleError(function (arg0) {
2080
+ }
2081
+ export function __wbg_recommendedFees_eee625cd978e070a() { return handleError(function (arg0) {
2424
2082
  const ret = arg0.recommendedFees();
2425
2083
  return ret;
2426
- }, arguments) };
2427
-
2428
- export function __wbg_releaseLock_091899af97991d2e(arg0) {
2084
+ }, arguments); }
2085
+ export function __wbg_releaseLock_9e0ebc0b5270a358(arg0) {
2429
2086
  arg0.releaseLock();
2430
- };
2431
-
2432
- export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
2087
+ }
2088
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
2433
2089
  const ret = module.require;
2434
2090
  return ret;
2435
- }, arguments) };
2436
-
2437
- export function __wbg_reserveTokenOutputs_6a190cf797e7d196() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2091
+ }, arguments); }
2092
+ export function __wbg_reserveTokenOutputs_233990fbd0ce963a() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2438
2093
  let deferred0_0;
2439
2094
  let deferred0_1;
2440
2095
  let deferred1_0;
@@ -2450,31 +2105,25 @@ export function __wbg_reserveTokenOutputs_6a190cf797e7d196() { return handleErro
2450
2105
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2451
2106
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2452
2107
  }
2453
- }, arguments) };
2454
-
2455
- export function __wbg_resolve_4851785c9c5f573d(arg0) {
2108
+ }, arguments); }
2109
+ export function __wbg_resolve_9feb5d906ca62419(arg0) {
2456
2110
  const ret = Promise.resolve(arg0);
2457
2111
  return ret;
2458
- };
2459
-
2460
- export function __wbg_respond_1f279fa9f8edcb1c() { return handleError(function (arg0, arg1) {
2112
+ }
2113
+ export function __wbg_respond_e7e53102735b2ae2() { return handleError(function (arg0, arg1) {
2461
2114
  arg0.respond(arg1 >>> 0);
2462
- }, arguments) };
2463
-
2115
+ }, arguments); }
2464
2116
  export function __wbg_sdkbuilder_new(arg0) {
2465
2117
  const ret = SdkBuilder.__wrap(arg0);
2466
2118
  return ret;
2467
- };
2468
-
2469
- export function __wbg_send_0293179ba074ffb4() { return handleError(function (arg0, arg1, arg2) {
2119
+ }
2120
+ export function __wbg_send_0edb796d05cd3239() { return handleError(function (arg0, arg1, arg2) {
2470
2121
  arg0.send(getStringFromWasm0(arg1, arg2));
2471
- }, arguments) };
2472
-
2473
- export function __wbg_send_fc0c204e8a1757f4() { return handleError(function (arg0, arg1, arg2) {
2122
+ }, arguments); }
2123
+ export function __wbg_send_c422d0aa0cb71d09() { return handleError(function (arg0, arg1, arg2) {
2474
2124
  arg0.send(getArrayU8FromWasm0(arg1, arg2));
2475
- }, arguments) };
2476
-
2477
- export function __wbg_setCachedItem_91b03741dfb0b4c2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2125
+ }, arguments); }
2126
+ export function __wbg_setCachedItem_a09dafdd0852fcb6() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2478
2127
  let deferred0_0;
2479
2128
  let deferred0_1;
2480
2129
  let deferred1_0;
@@ -2490,126 +2139,98 @@ export function __wbg_setCachedItem_91b03741dfb0b4c2() { return handleError(func
2490
2139
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2491
2140
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2492
2141
  }
2493
- }, arguments) };
2494
-
2495
- export function __wbg_setLeaves_d1c338c6d7d2ef28() { return handleError(function (arg0, arg1, arg2, arg3) {
2142
+ }, arguments); }
2143
+ export function __wbg_setLeaves_3a013e3266762f4b() { return handleError(function (arg0, arg1, arg2, arg3) {
2496
2144
  const ret = arg0.setLeaves(arg1, arg2, arg3);
2497
2145
  return ret;
2498
- }, arguments) };
2499
-
2500
- export function __wbg_setLnurlMetadata_0bf15cc7efb6cc11() { return handleError(function (arg0, arg1, arg2) {
2146
+ }, arguments); }
2147
+ export function __wbg_setLnurlMetadata_084b50d8b878f93f() { return handleError(function (arg0, arg1, arg2) {
2501
2148
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2502
2149
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
2503
2150
  const ret = arg0.setLnurlMetadata(v0);
2504
2151
  return ret;
2505
- }, arguments) };
2506
-
2507
- export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
2152
+ }, arguments); }
2153
+ export function __wbg_setTimeout_3b5e32486c12c54e(arg0, arg1) {
2154
+ globalThis.setTimeout(arg0, arg1);
2155
+ }
2156
+ export function __wbg_setTimeout_ef24d2fc3ad97385() { return handleError(function (arg0, arg1) {
2508
2157
  const ret = setTimeout(arg0, arg1);
2509
2158
  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) {
2159
+ }, arguments); }
2160
+ export function __wbg_setTimeout_f757f00851f76c42(arg0, arg1) {
2517
2161
  const ret = setTimeout(arg0, arg1);
2518
2162
  return ret;
2519
- }, arguments) };
2520
-
2521
- export function __wbg_setTokensOutputs_5b8449721027f347() { return handleError(function (arg0, arg1, arg2) {
2163
+ }
2164
+ export function __wbg_setTokensOutputs_dc61529ca8c6dbec() { return handleError(function (arg0, arg1, arg2) {
2522
2165
  const ret = arg0.setTokensOutputs(arg1, arg2);
2523
2166
  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) {
2167
+ }, arguments); }
2168
+ export function __wbg_set_5337f8ac82364a3f() { return handleError(function (arg0, arg1, arg2) {
2169
+ const ret = Reflect.set(arg0, arg1, arg2);
2170
+ return ret;
2171
+ }, arguments); }
2172
+ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
2531
2173
  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) {
2174
+ }
2175
+ export function __wbg_set_82f7a370f604db70(arg0, arg1, arg2) {
2539
2176
  const ret = arg0.set(arg1, arg2);
2540
2177
  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) {
2178
+ }
2179
+ export function __wbg_set_b0d9dc239ecdb765(arg0, arg1, arg2) {
2180
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
2181
+ }
2182
+ export function __wbg_set_binaryType_8564bdba0fbec720(arg0, arg1) {
2549
2183
  arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
2550
- };
2551
-
2552
- export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
2184
+ }
2185
+ export function __wbg_set_body_aaff4f5f9991f342(arg0, arg1) {
2553
2186
  arg0.body = arg1;
2554
- };
2555
-
2556
- export function __wbg_setcache_12f17c3a980650e4(arg0, arg1) {
2187
+ }
2188
+ export function __wbg_set_cache_d1f2b7b4dfa39317(arg0, arg1) {
2557
2189
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
2558
- };
2559
-
2560
- export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
2190
+ }
2191
+ export function __wbg_set_credentials_f31e4d30b974ce14(arg0, arg1) {
2561
2192
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
2562
- };
2563
-
2564
- export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
2193
+ }
2194
+ export function __wbg_set_f614f6a0608d1d1d(arg0, arg1, arg2) {
2195
+ arg0[arg1 >>> 0] = arg2;
2196
+ }
2197
+ export function __wbg_set_headers_ae96049ea40e9eef(arg0, arg1) {
2565
2198
  arg0.headers = arg1;
2566
- };
2567
-
2568
- export function __wbg_setintegrity_564a2397cf837760(arg0, arg1, arg2) {
2199
+ }
2200
+ export function __wbg_set_integrity_e20206ae8869d3fd(arg0, arg1, arg2) {
2569
2201
  arg0.integrity = getStringFromWasm0(arg1, arg2);
2570
- };
2571
-
2572
- export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
2202
+ }
2203
+ export function __wbg_set_method_0eea8a5597775fa1(arg0, arg1, arg2) {
2573
2204
  arg0.method = getStringFromWasm0(arg1, arg2);
2574
- };
2575
-
2576
- export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
2205
+ }
2206
+ export function __wbg_set_mode_9fe47bff60a1580d(arg0, arg1) {
2577
2207
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
2578
- };
2579
-
2580
- export function __wbg_setonclose_14fc475a49d488fc(arg0, arg1) {
2208
+ }
2209
+ export function __wbg_set_onclose_f756840519cd20b5(arg0, arg1) {
2581
2210
  arg0.onclose = arg1;
2582
- };
2583
-
2584
- export function __wbg_setonerror_8639efe354b947cd(arg0, arg1) {
2211
+ }
2212
+ export function __wbg_set_onerror_02f33de339f1fa31(arg0, arg1) {
2585
2213
  arg0.onerror = arg1;
2586
- };
2587
-
2588
- export function __wbg_setonmessage_6eccab530a8fb4c7(arg0, arg1) {
2214
+ }
2215
+ export function __wbg_set_onmessage_d2ff0c1d20584625(arg0, arg1) {
2589
2216
  arg0.onmessage = arg1;
2590
- };
2591
-
2592
- export function __wbg_setonopen_2da654e1f39745d5(arg0, arg1) {
2217
+ }
2218
+ export function __wbg_set_onopen_1da8a4f65e6180d2(arg0, arg1) {
2593
2219
  arg0.onopen = arg1;
2594
- };
2595
-
2596
- export function __wbg_setredirect_40e6a7f717a2f86a(arg0, arg1) {
2220
+ }
2221
+ export function __wbg_set_redirect_d59447760eb3129d(arg0, arg1) {
2597
2222
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
2598
- };
2599
-
2600
- export function __wbg_setreferrer_fea46c1230e5e29a(arg0, arg1, arg2) {
2223
+ }
2224
+ export function __wbg_set_referrer_d0e5dc091bbc9f75(arg0, arg1, arg2) {
2601
2225
  arg0.referrer = getStringFromWasm0(arg1, arg2);
2602
- };
2603
-
2604
- export function __wbg_setreferrerpolicy_b73612479f761b6f(arg0, arg1) {
2226
+ }
2227
+ export function __wbg_set_referrer_policy_5afdd37afd73c769(arg0, arg1) {
2605
2228
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
2606
- };
2607
-
2608
- export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
2229
+ }
2230
+ export function __wbg_set_signal_8c5cf4c3b27bd8a8(arg0, arg1) {
2609
2231
  arg0.signal = arg1;
2610
- };
2611
-
2612
- export function __wbg_signEcdsaRecoverable_756dd79f08e5ed39() { return handleError(function (arg0, arg1, arg2, arg3) {
2232
+ }
2233
+ export function __wbg_signEcdsaRecoverable_e1e9c5e2c8ec869f() { return handleError(function (arg0, arg1, arg2, arg3) {
2613
2234
  let deferred0_0;
2614
2235
  let deferred0_1;
2615
2236
  try {
@@ -2620,9 +2241,8 @@ export function __wbg_signEcdsaRecoverable_756dd79f08e5ed39() { return handleErr
2620
2241
  } finally {
2621
2242
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2622
2243
  }
2623
- }, arguments) };
2624
-
2625
- export function __wbg_signEcdsa_0ebea9dfc3b7c28f() { return handleError(function (arg0, arg1, arg2, arg3) {
2244
+ }, arguments); }
2245
+ export function __wbg_signEcdsa_99eb88e7d9907236() { return handleError(function (arg0, arg1, arg2, arg3) {
2626
2246
  let deferred0_0;
2627
2247
  let deferred0_1;
2628
2248
  try {
@@ -2633,14 +2253,12 @@ export function __wbg_signEcdsa_0ebea9dfc3b7c28f() { return handleError(function
2633
2253
  } finally {
2634
2254
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2635
2255
  }
2636
- }, arguments) };
2637
-
2638
- export function __wbg_signFrost_06ac652135c4e862() { return handleError(function (arg0, arg1) {
2256
+ }, arguments); }
2257
+ export function __wbg_signFrost_df3d96ac20619b95() { return handleError(function (arg0, arg1) {
2639
2258
  const ret = arg0.signFrost(arg1);
2640
2259
  return ret;
2641
- }, arguments) };
2642
-
2643
- export function __wbg_signHashSchnorr_390c51f0bbb70a7a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2260
+ }, arguments); }
2261
+ export function __wbg_signHashSchnorr_33c182cb4c2323d5() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2644
2262
  let deferred1_0;
2645
2263
  let deferred1_1;
2646
2264
  try {
@@ -2653,134 +2271,109 @@ export function __wbg_signHashSchnorr_390c51f0bbb70a7a() { return handleError(fu
2653
2271
  } finally {
2654
2272
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2655
2273
  }
2656
- }, arguments) };
2657
-
2658
- export function __wbg_signal_aaf9ad74119f20a4(arg0) {
2274
+ }, arguments); }
2275
+ export function __wbg_signal_4643ce883b92b553(arg0) {
2659
2276
  const ret = arg0.signal;
2660
2277
  return ret;
2661
- };
2662
-
2663
- export function __wbg_splitSecretWithProofs_1aba146de2c5eb0a() { return handleError(function (arg0, arg1, arg2, arg3) {
2278
+ }
2279
+ export function __wbg_splitSecretWithProofs_c9d51158a14af659() { return handleError(function (arg0, arg1, arg2, arg3) {
2664
2280
  const ret = arg0.splitSecretWithProofs(arg1, arg2 >>> 0, arg3 >>> 0);
2665
2281
  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() {
2282
+ }, arguments); }
2283
+ export function __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb() {
2674
2284
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
2675
2285
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2676
- };
2677
-
2678
- export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
2286
+ }
2287
+ export function __wbg_static_accessor_GLOBAL_e039bc914f83e74e() {
2288
+ const ret = typeof global === 'undefined' ? null : global;
2289
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2290
+ }
2291
+ export function __wbg_static_accessor_SELF_8bf8c48c28420ad5() {
2679
2292
  const ret = typeof self === 'undefined' ? null : self;
2680
2293
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2681
- };
2682
-
2683
- export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
2294
+ }
2295
+ export function __wbg_static_accessor_WINDOW_6aeee9b51652ee0f() {
2684
2296
  const ret = typeof window === 'undefined' ? null : window;
2685
2297
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2686
- };
2687
-
2688
- export function __wbg_status_f6360336ca686bf0(arg0) {
2298
+ }
2299
+ export function __wbg_status_157e67ab07d01f8a(arg0) {
2689
2300
  const ret = arg0.status;
2690
2301
  return ret;
2691
- };
2692
-
2693
- export function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
2302
+ }
2303
+ export function __wbg_stringify_7fd5cae8859a6f10() { return handleError(function (arg0) {
2694
2304
  const ret = JSON.stringify(arg0);
2695
2305
  return ret;
2696
- }, arguments) };
2697
-
2698
- export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
2306
+ }, arguments); }
2307
+ export function __wbg_subarray_fbe3cef290e1fa43(arg0, arg1, arg2) {
2699
2308
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2700
2309
  return ret;
2701
- };
2702
-
2703
- export function __wbg_subtractPrivateKeys_2d63747d9fa64d4f() { return handleError(function (arg0, arg1, arg2) {
2310
+ }
2311
+ export function __wbg_subtractPrivateKeys_c66265ac85e781b7() { return handleError(function (arg0, arg1, arg2) {
2704
2312
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2705
2313
  return ret;
2706
- }, arguments) };
2707
-
2708
- export function __wbg_syncAddOutgoingChange_9d94d35ba215d3c9() { return handleError(function (arg0, arg1) {
2314
+ }, arguments); }
2315
+ export function __wbg_syncAddOutgoingChange_69db2a1430cbd55a() { return handleError(function (arg0, arg1) {
2709
2316
  const ret = arg0.syncAddOutgoingChange(arg1);
2710
2317
  return ret;
2711
- }, arguments) };
2712
-
2713
- export function __wbg_syncCompleteOutgoingSync_959431da825d4042() { return handleError(function (arg0, arg1, arg2) {
2318
+ }, arguments); }
2319
+ export function __wbg_syncCompleteOutgoingSync_00c1d42ba5d7c93c() { return handleError(function (arg0, arg1, arg2) {
2714
2320
  const ret = arg0.syncCompleteOutgoingSync(arg1, BigInt.asUintN(64, arg2));
2715
2321
  return ret;
2716
- }, arguments) };
2717
-
2718
- export function __wbg_syncDeleteIncomingRecord_ff76566691e4d7ca() { return handleError(function (arg0, arg1) {
2322
+ }, arguments); }
2323
+ export function __wbg_syncDeleteIncomingRecord_252fb75ae2bd4409() { return handleError(function (arg0, arg1) {
2719
2324
  const ret = arg0.syncDeleteIncomingRecord(arg1);
2720
2325
  return ret;
2721
- }, arguments) };
2722
-
2723
- export function __wbg_syncGetIncomingRecords_a47bcdbce33f391b() { return handleError(function (arg0, arg1) {
2326
+ }, arguments); }
2327
+ export function __wbg_syncGetIncomingRecords_11f4eb6eba830ca1() { return handleError(function (arg0, arg1) {
2724
2328
  const ret = arg0.syncGetIncomingRecords(arg1 >>> 0);
2725
2329
  return ret;
2726
- }, arguments) };
2727
-
2728
- export function __wbg_syncGetLastRevision_3c8cdf9b9d5acbc9() { return handleError(function (arg0) {
2330
+ }, arguments); }
2331
+ export function __wbg_syncGetLastRevision_f2613db6e3bc3fdb() { return handleError(function (arg0) {
2729
2332
  const ret = arg0.syncGetLastRevision();
2730
2333
  return ret;
2731
- }, arguments) };
2732
-
2733
- export function __wbg_syncGetLatestOutgoingChange_1a359277ba2618e6() { return handleError(function (arg0) {
2334
+ }, arguments); }
2335
+ export function __wbg_syncGetLatestOutgoingChange_a0828a121ba8ef6a() { return handleError(function (arg0) {
2734
2336
  const ret = arg0.syncGetLatestOutgoingChange();
2735
2337
  return ret;
2736
- }, arguments) };
2737
-
2738
- export function __wbg_syncGetPendingOutgoingChanges_d2f9a942e5bbaa06() { return handleError(function (arg0, arg1) {
2338
+ }, arguments); }
2339
+ export function __wbg_syncGetPendingOutgoingChanges_caff6e310e5774a0() { return handleError(function (arg0, arg1) {
2739
2340
  const ret = arg0.syncGetPendingOutgoingChanges(arg1 >>> 0);
2740
2341
  return ret;
2741
- }, arguments) };
2742
-
2743
- export function __wbg_syncInsertIncomingRecords_dde4039dbc9cb38f() { return handleError(function (arg0, arg1, arg2) {
2342
+ }, arguments); }
2343
+ export function __wbg_syncInsertIncomingRecords_a606acc50dc8ccdb() { return handleError(function (arg0, arg1, arg2) {
2744
2344
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
2745
2345
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
2746
2346
  const ret = arg0.syncInsertIncomingRecords(v0);
2747
2347
  return ret;
2748
- }, arguments) };
2749
-
2750
- export function __wbg_syncUpdateRecordFromIncoming_a76ad82592bfdcb3() { return handleError(function (arg0, arg1) {
2348
+ }, arguments); }
2349
+ export function __wbg_syncUpdateRecordFromIncoming_47caaa75be4d3a9a() { return handleError(function (arg0, arg1) {
2751
2350
  const ret = arg0.syncUpdateRecordFromIncoming(arg1);
2752
2351
  return ret;
2753
- }, arguments) };
2754
-
2755
- export function __wbg_text_7805bea50de2af49() { return handleError(function (arg0) {
2352
+ }, arguments); }
2353
+ export function __wbg_text_de416916b5c06490() { return handleError(function (arg0) {
2756
2354
  const ret = arg0.text();
2757
2355
  return ret;
2758
- }, arguments) };
2759
-
2760
- export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
2356
+ }, arguments); }
2357
+ export function __wbg_then_20a157d939b514f5(arg0, arg1) {
2761
2358
  const ret = arg0.then(arg1);
2762
2359
  return ret;
2763
- };
2764
-
2765
- export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
2360
+ }
2361
+ export function __wbg_then_5ef9b762bc91555c(arg0, arg1, arg2) {
2766
2362
  const ret = arg0.then(arg1, arg2);
2767
2363
  return ret;
2768
- };
2769
-
2770
- export function __wbg_toString_2f76f493957b63da(arg0, arg1, arg2) {
2364
+ }
2365
+ export function __wbg_toString_15656af8d8e71f16(arg0, arg1, arg2) {
2771
2366
  const ret = arg1.toString(arg2);
2772
2367
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2773
2368
  const len1 = WASM_VECTOR_LEN;
2774
2369
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2775
2370
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2776
- };
2777
-
2778
- export function __wbg_toString_5285597960676b7b(arg0) {
2371
+ }
2372
+ export function __wbg_toString_9ae74d2321992740(arg0) {
2779
2373
  const ret = arg0.toString();
2780
2374
  return ret;
2781
- };
2782
-
2783
- export function __wbg_tryReserveLeaves_9aacd30c9750a9df() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2375
+ }
2376
+ export function __wbg_tryReserveLeaves_d2cd87cbc2a886d2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2784
2377
  let deferred0_0;
2785
2378
  let deferred0_1;
2786
2379
  try {
@@ -2791,9 +2384,8 @@ export function __wbg_tryReserveLeaves_9aacd30c9750a9df() { return handleError(f
2791
2384
  } finally {
2792
2385
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2793
2386
  }
2794
- }, arguments) };
2795
-
2796
- export function __wbg_updateDeposit_87746090235ed235() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2387
+ }, arguments); }
2388
+ export function __wbg_updateDeposit_efb96cf6e6fbe7b7() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2797
2389
  let deferred0_0;
2798
2390
  let deferred0_1;
2799
2391
  try {
@@ -2804,9 +2396,8 @@ export function __wbg_updateDeposit_87746090235ed235() { return handleError(func
2804
2396
  } finally {
2805
2397
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2806
2398
  }
2807
- }, arguments) };
2808
-
2809
- export function __wbg_updateReservation_7641cd63d1a894b8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2399
+ }, arguments); }
2400
+ export function __wbg_updateReservation_8d9f42570704dca1() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2810
2401
  let deferred0_0;
2811
2402
  let deferred0_1;
2812
2403
  try {
@@ -2817,245 +2408,477 @@ export function __wbg_updateReservation_7641cd63d1a894b8() { return handleError(
2817
2408
  } finally {
2818
2409
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2819
2410
  }
2820
- }, arguments) };
2821
-
2822
- export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
2411
+ }, arguments); }
2412
+ export function __wbg_url_68fd9a221360e0db(arg0, arg1) {
2823
2413
  const ret = arg1.url;
2824
2414
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2825
2415
  const len1 = WASM_VECTOR_LEN;
2826
2416
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2827
2417
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2828
- };
2829
-
2830
- export function __wbg_url_ce9ab75bf9627ae4(arg0, arg1) {
2418
+ }
2419
+ export function __wbg_url_a0e994e7d0317efc(arg0, arg1) {
2831
2420
  const ret = arg1.url;
2832
2421
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2833
2422
  const len1 = WASM_VECTOR_LEN;
2834
2423
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2835
2424
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2836
- };
2837
-
2838
- export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
2425
+ }
2426
+ export function __wbg_value_f852716acdeb3e82(arg0) {
2839
2427
  const ret = arg0.value;
2840
2428
  return ret;
2841
- };
2842
-
2843
- export function __wbg_versions_c01dfd4722a88165(arg0) {
2429
+ }
2430
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
2844
2431
  const ret = arg0.versions;
2845
2432
  return ret;
2846
- };
2847
-
2848
- export function __wbg_view_fd8a56e8983f448d(arg0) {
2433
+ }
2434
+ export function __wbg_view_16bd97d49793e1a9(arg0) {
2849
2435
  const ret = arg0.view;
2850
2436
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2851
- };
2852
-
2853
- export function __wbg_wasClean_605b4fd66d44354a(arg0) {
2437
+ }
2438
+ export function __wbg_wasClean_92b4133f985dfae0(arg0) {
2854
2439
  const ret = arg0.wasClean;
2855
2440
  return ret;
2856
- };
2857
-
2858
- export function __wbindgen_array_new() {
2859
- const ret = [];
2441
+ }
2442
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
2443
+ // 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`.
2444
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84);
2860
2445
  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;
2446
+ }
2447
+ export function __wbindgen_cast_0000000000000002(arg0, arg1) {
2448
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2449
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
2869
2450
  return ret;
2870
- };
2871
-
2872
- export function __wbindgen_bigint_from_i64(arg0) {
2451
+ }
2452
+ export function __wbindgen_cast_0000000000000003(arg0, arg1) {
2453
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2454
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
2455
+ return ret;
2456
+ }
2457
+ export function __wbindgen_cast_0000000000000004(arg0, arg1) {
2458
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2459
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
2460
+ return ret;
2461
+ }
2462
+ export function __wbindgen_cast_0000000000000005(arg0, arg1) {
2463
+ // 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`.
2464
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4);
2465
+ return ret;
2466
+ }
2467
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
2468
+ // 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`.
2469
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5);
2470
+ return ret;
2471
+ }
2472
+ export function __wbindgen_cast_0000000000000007(arg0, arg1) {
2473
+ // 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`.
2474
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6);
2475
+ return ret;
2476
+ }
2477
+ export function __wbindgen_cast_0000000000000008(arg0, arg1) {
2478
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 408, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2479
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
2480
+ return ret;
2481
+ }
2482
+ export function __wbindgen_cast_0000000000000009(arg0) {
2483
+ // Cast intrinsic for `F64 -> Externref`.
2873
2484
  const ret = arg0;
2874
2485
  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);
2486
+ }
2487
+ export function __wbindgen_cast_000000000000000a(arg0) {
2488
+ // Cast intrinsic for `I64 -> Externref`.
2489
+ const ret = arg0;
2879
2490
  return ret;
2880
- };
2881
-
2882
- export function __wbindgen_bigint_from_u64(arg0) {
2491
+ }
2492
+ export function __wbindgen_cast_000000000000000b(arg0, arg1) {
2493
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2494
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2495
+ return ret;
2496
+ }
2497
+ export function __wbindgen_cast_000000000000000c(arg0, arg1) {
2498
+ // Cast intrinsic for `Ref(String) -> Externref`.
2499
+ const ret = getStringFromWasm0(arg0, arg1);
2500
+ return ret;
2501
+ }
2502
+ export function __wbindgen_cast_000000000000000d(arg0, arg1) {
2503
+ // Cast intrinsic for `U128 -> Externref`.
2504
+ const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
2505
+ return ret;
2506
+ }
2507
+ export function __wbindgen_cast_000000000000000e(arg0) {
2508
+ // Cast intrinsic for `U64 -> Externref`.
2883
2509
  const ret = BigInt.asUintN(64, arg0);
2884
2510
  return ret;
2885
- };
2511
+ }
2512
+ export function __wbindgen_cast_000000000000000f(arg0, arg1) {
2513
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2514
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2515
+ // Cast intrinsic for `Vector(NamedExternref("Contact")) -> Externref`.
2516
+ const ret = v0;
2517
+ return ret;
2518
+ }
2519
+ export function __wbindgen_cast_0000000000000010(arg0, arg1) {
2520
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2521
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2522
+ // Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
2523
+ const ret = v0;
2524
+ return ret;
2525
+ }
2526
+ export function __wbindgen_cast_0000000000000011(arg0, arg1) {
2527
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2528
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2529
+ // Cast intrinsic for `Vector(NamedExternref("Webhook")) -> Externref`.
2530
+ const ret = v0;
2531
+ return ret;
2532
+ }
2533
+ export function __wbindgen_cast_0000000000000012(arg0, arg1) {
2534
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2535
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2536
+ // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
2537
+ const ret = v0;
2538
+ return ret;
2539
+ }
2540
+ export function __wbindgen_cast_0000000000000013(arg0, arg1) {
2541
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
2542
+ wasm.__wbindgen_free(arg0, arg1 * 1, 1);
2543
+ // Cast intrinsic for `Vector(U8) -> Externref`.
2544
+ const ret = v0;
2545
+ return ret;
2546
+ }
2547
+ export function __wbindgen_init_externref_table() {
2548
+ const table = wasm.__wbindgen_externrefs;
2549
+ const offset = table.grow(4);
2550
+ table.set(0, undefined);
2551
+ table.set(offset + 0, undefined);
2552
+ table.set(offset + 1, null);
2553
+ table.set(offset + 2, true);
2554
+ table.set(offset + 3, false);
2555
+ }
2556
+ function wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1) {
2557
+ wasm.wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1);
2558
+ }
2559
+
2560
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
2561
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2);
2562
+ }
2563
+
2564
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2(arg0, arg1, arg2) {
2565
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2(arg0, arg1, arg2);
2566
+ }
2567
+
2568
+ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2) {
2569
+ wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
2570
+ }
2571
+
2572
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84(arg0, arg1, arg2) {
2573
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84(arg0, arg1, arg2);
2574
+ if (ret[1]) {
2575
+ throw takeFromExternrefTable0(ret[0]);
2576
+ }
2577
+ }
2578
+
2579
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4(arg0, arg1, arg2) {
2580
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_4(arg0, arg1, arg2);
2581
+ if (ret[1]) {
2582
+ throw takeFromExternrefTable0(ret[0]);
2583
+ }
2584
+ }
2585
+
2586
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5(arg0, arg1, arg2) {
2587
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_5(arg0, arg1, arg2);
2588
+ if (ret[1]) {
2589
+ throw takeFromExternrefTable0(ret[0]);
2590
+ }
2591
+ }
2592
+
2593
+ function wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6(arg0, arg1, arg2) {
2594
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4fc1641481bc1d84_6(arg0, arg1, arg2);
2595
+ if (ret[1]) {
2596
+ throw takeFromExternrefTable0(ret[0]);
2597
+ }
2598
+ }
2599
+
2600
+ function wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(arg0, arg1, arg2, arg3) {
2601
+ wasm.wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32(arg0, arg1, arg2, arg3);
2602
+ }
2603
+
2604
+
2605
+ const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
2606
+
2607
+
2608
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
2609
+
2610
+
2611
+ 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"];
2612
+
2613
+
2614
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
2615
+
2616
+
2617
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
2618
+
2619
+
2620
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
2621
+
2622
+
2623
+ const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
2624
+ const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
2625
+ ? { register: () => {}, unregister: () => {} }
2626
+ : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
2627
+ const DefaultSignerFinalization = (typeof FinalizationRegistry === 'undefined')
2628
+ ? { register: () => {}, unregister: () => {} }
2629
+ : new FinalizationRegistry(ptr => wasm.__wbg_defaultsigner_free(ptr, 1));
2630
+ const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
2631
+ ? { register: () => {}, unregister: () => {} }
2632
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
2633
+ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
2634
+ ? { register: () => {}, unregister: () => {} }
2635
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
2636
+ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
2637
+ ? { register: () => {}, unregister: () => {} }
2638
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
2639
+ const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
2640
+ ? { register: () => {}, unregister: () => {} }
2641
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
2642
+ const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
2643
+ ? { register: () => {}, unregister: () => {} }
2644
+ : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
2645
+ const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
2646
+ ? { register: () => {}, unregister: () => {} }
2647
+ : new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
2886
2648
 
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
- };
2649
+ function addToExternrefTable0(obj) {
2650
+ const idx = wasm.__externref_table_alloc();
2651
+ wasm.__wbindgen_externrefs.set(idx, obj);
2652
+ return idx;
2653
+ }
2893
2654
 
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
- };
2655
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
2656
+ ? { register: () => {}, unregister: () => {} }
2657
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
2899
2658
 
2900
- export function __wbindgen_cb_drop(arg0) {
2901
- const obj = arg0.original;
2902
- if (obj.cnt-- == 1) {
2903
- obj.a = 0;
2904
- return true;
2659
+ function debugString(val) {
2660
+ // primitive types
2661
+ const type = typeof val;
2662
+ if (type == 'number' || type == 'boolean' || val == null) {
2663
+ return `${val}`;
2905
2664
  }
2906
- const ret = false;
2907
- return ret;
2908
- };
2909
-
2910
- export function __wbindgen_closure_wrapper13524(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_wrapper6018(arg0, arg1, arg2) {
2921
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_68);
2922
- return ret;
2923
- };
2924
-
2925
- export function __wbindgen_closure_wrapper6025(arg0, arg1, arg2) {
2926
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_68);
2927
- return ret;
2928
- };
2665
+ if (type == 'string') {
2666
+ return `"${val}"`;
2667
+ }
2668
+ if (type == 'symbol') {
2669
+ const description = val.description;
2670
+ if (description == null) {
2671
+ return 'Symbol';
2672
+ } else {
2673
+ return `Symbol(${description})`;
2674
+ }
2675
+ }
2676
+ if (type == 'function') {
2677
+ const name = val.name;
2678
+ if (typeof name == 'string' && name.length > 0) {
2679
+ return `Function(${name})`;
2680
+ } else {
2681
+ return 'Function';
2682
+ }
2683
+ }
2684
+ // objects
2685
+ if (Array.isArray(val)) {
2686
+ const length = val.length;
2687
+ let debug = '[';
2688
+ if (length > 0) {
2689
+ debug += debugString(val[0]);
2690
+ }
2691
+ for(let i = 1; i < length; i++) {
2692
+ debug += ', ' + debugString(val[i]);
2693
+ }
2694
+ debug += ']';
2695
+ return debug;
2696
+ }
2697
+ // Test for built-in
2698
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
2699
+ let className;
2700
+ if (builtInMatches && builtInMatches.length > 1) {
2701
+ className = builtInMatches[1];
2702
+ } else {
2703
+ // Failed to match the standard '[object ClassName]'
2704
+ return toString.call(val);
2705
+ }
2706
+ if (className == 'Object') {
2707
+ // we're a user defined class or Object
2708
+ // JSON.stringify avoids problems with cycles, and is generally much
2709
+ // easier than looping through ownProperties of `val`.
2710
+ try {
2711
+ return 'Object(' + JSON.stringify(val) + ')';
2712
+ } catch (_) {
2713
+ return 'Object';
2714
+ }
2715
+ }
2716
+ // errors
2717
+ if (val instanceof Error) {
2718
+ return `${val.name}: ${val.message}\n${val.stack}`;
2719
+ }
2720
+ // TODO we could test for more things here, like `Set`s and `Map`s.
2721
+ return className;
2722
+ }
2929
2723
 
2930
- export function __wbindgen_closure_wrapper7640(arg0, arg1, arg2) {
2931
- const ret = makeMutClosure(arg0, arg1, 389, __wbg_adapter_73);
2932
- return ret;
2933
- };
2724
+ function getArrayJsValueFromWasm0(ptr, len) {
2725
+ ptr = ptr >>> 0;
2726
+ const mem = getDataViewMemory0();
2727
+ const result = [];
2728
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
2729
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
2730
+ }
2731
+ wasm.__externref_drop_slice(ptr, len);
2732
+ return result;
2733
+ }
2934
2734
 
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
- };
2735
+ function getArrayU8FromWasm0(ptr, len) {
2736
+ ptr = ptr >>> 0;
2737
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2738
+ }
2942
2739
 
2943
- export function __wbindgen_error_new(arg0, arg1) {
2944
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2945
- return ret;
2946
- };
2740
+ let cachedDataViewMemory0 = null;
2741
+ function getDataViewMemory0() {
2742
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
2743
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
2744
+ }
2745
+ return cachedDataViewMemory0;
2746
+ }
2947
2747
 
2948
- export function __wbindgen_in(arg0, arg1) {
2949
- const ret = arg0 in arg1;
2950
- return ret;
2951
- };
2748
+ function getStringFromWasm0(ptr, len) {
2749
+ return decodeText(ptr >>> 0, len);
2750
+ }
2952
2751
 
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
- };
2752
+ let cachedUint8ArrayMemory0 = null;
2753
+ function getUint8ArrayMemory0() {
2754
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
2755
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
2756
+ }
2757
+ return cachedUint8ArrayMemory0;
2758
+ }
2963
2759
 
2964
- export function __wbindgen_is_bigint(arg0) {
2965
- const ret = typeof(arg0) === 'bigint';
2966
- return ret;
2967
- };
2760
+ function handleError(f, args) {
2761
+ try {
2762
+ return f.apply(this, args);
2763
+ } catch (e) {
2764
+ const idx = addToExternrefTable0(e);
2765
+ wasm.__wbindgen_exn_store(idx);
2766
+ }
2767
+ }
2968
2768
 
2969
- export function __wbindgen_is_function(arg0) {
2970
- const ret = typeof(arg0) === 'function';
2971
- return ret;
2972
- };
2769
+ function isLikeNone(x) {
2770
+ return x === undefined || x === null;
2771
+ }
2973
2772
 
2974
- export function __wbindgen_is_null(arg0) {
2975
- const ret = arg0 === null;
2976
- return ret;
2977
- };
2773
+ function makeMutClosure(arg0, arg1, f) {
2774
+ const state = { a: arg0, b: arg1, cnt: 1 };
2775
+ const real = (...args) => {
2978
2776
 
2979
- export function __wbindgen_is_object(arg0) {
2980
- const val = arg0;
2981
- const ret = typeof(val) === 'object' && val !== null;
2982
- return ret;
2983
- };
2777
+ // First up with a closure we increment the internal reference
2778
+ // count. This ensures that the Rust closure environment won't
2779
+ // be deallocated while we're invoking it.
2780
+ state.cnt++;
2781
+ const a = state.a;
2782
+ state.a = 0;
2783
+ try {
2784
+ return f(a, state.b, ...args);
2785
+ } finally {
2786
+ state.a = a;
2787
+ real._wbg_cb_unref();
2788
+ }
2789
+ };
2790
+ real._wbg_cb_unref = () => {
2791
+ if (--state.cnt === 0) {
2792
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
2793
+ state.a = 0;
2794
+ CLOSURE_DTORS.unregister(state);
2795
+ }
2796
+ };
2797
+ CLOSURE_DTORS.register(real, state, state);
2798
+ return real;
2799
+ }
2984
2800
 
2985
- export function __wbindgen_is_string(arg0) {
2986
- const ret = typeof(arg0) === 'string';
2987
- return ret;
2988
- };
2801
+ function passArray8ToWasm0(arg, malloc) {
2802
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
2803
+ getUint8ArrayMemory0().set(arg, ptr / 1);
2804
+ WASM_VECTOR_LEN = arg.length;
2805
+ return ptr;
2806
+ }
2989
2807
 
2990
- export function __wbindgen_is_undefined(arg0) {
2991
- const ret = arg0 === undefined;
2992
- return ret;
2993
- };
2808
+ function passStringToWasm0(arg, malloc, realloc) {
2809
+ if (realloc === undefined) {
2810
+ const buf = cachedTextEncoder.encode(arg);
2811
+ const ptr = malloc(buf.length, 1) >>> 0;
2812
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
2813
+ WASM_VECTOR_LEN = buf.length;
2814
+ return ptr;
2815
+ }
2994
2816
 
2995
- export function __wbindgen_jsval_eq(arg0, arg1) {
2996
- const ret = arg0 === arg1;
2997
- return ret;
2998
- };
2817
+ let len = arg.length;
2818
+ let ptr = malloc(len, 1) >>> 0;
2999
2819
 
3000
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
3001
- const ret = arg0 == arg1;
3002
- return ret;
3003
- };
2820
+ const mem = getUint8ArrayMemory0();
3004
2821
 
3005
- export function __wbindgen_lt(arg0, arg1) {
3006
- const ret = arg0 < arg1;
3007
- return ret;
3008
- };
2822
+ let offset = 0;
3009
2823
 
3010
- export function __wbindgen_memory() {
3011
- const ret = wasm.memory;
3012
- return ret;
3013
- };
2824
+ for (; offset < len; offset++) {
2825
+ const code = arg.charCodeAt(offset);
2826
+ if (code > 0x7F) break;
2827
+ mem[ptr + offset] = code;
2828
+ }
2829
+ if (offset !== len) {
2830
+ if (offset !== 0) {
2831
+ arg = arg.slice(offset);
2832
+ }
2833
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
2834
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
2835
+ const ret = cachedTextEncoder.encodeInto(arg, view);
3014
2836
 
3015
- export function __wbindgen_neg(arg0) {
3016
- const ret = -arg0;
3017
- return ret;
3018
- };
2837
+ offset += ret.written;
2838
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
2839
+ }
3019
2840
 
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
- };
2841
+ WASM_VECTOR_LEN = offset;
2842
+ return ptr;
2843
+ }
3026
2844
 
3027
- export function __wbindgen_number_new(arg0) {
3028
- const ret = arg0;
3029
- return ret;
3030
- };
2845
+ function takeFromExternrefTable0(idx) {
2846
+ const value = wasm.__wbindgen_externrefs.get(idx);
2847
+ wasm.__externref_table_dealloc(idx);
2848
+ return value;
2849
+ }
3031
2850
 
3032
- export function __wbindgen_shr(arg0, arg1) {
3033
- const ret = arg0 >> arg1;
3034
- return ret;
3035
- };
2851
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
2852
+ cachedTextDecoder.decode();
2853
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
2854
+ let numBytesDecoded = 0;
2855
+ function decodeText(ptr, len) {
2856
+ numBytesDecoded += len;
2857
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
2858
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
2859
+ cachedTextDecoder.decode();
2860
+ numBytesDecoded = len;
2861
+ }
2862
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
2863
+ }
3036
2864
 
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
- };
2865
+ const cachedTextEncoder = new TextEncoder();
3045
2866
 
3046
- export function __wbindgen_string_new(arg0, arg1) {
3047
- const ret = getStringFromWasm0(arg0, arg1);
3048
- return ret;
3049
- };
2867
+ if (!('encodeInto' in cachedTextEncoder)) {
2868
+ cachedTextEncoder.encodeInto = function (arg, view) {
2869
+ const buf = cachedTextEncoder.encode(arg);
2870
+ view.set(buf);
2871
+ return {
2872
+ read: arg.length,
2873
+ written: buf.length
2874
+ };
2875
+ };
2876
+ }
3050
2877
 
3051
- export function __wbindgen_throw(arg0, arg1) {
3052
- throw new Error(getStringFromWasm0(arg0, arg1));
3053
- };
2878
+ let WASM_VECTOR_LEN = 0;
3054
2879
 
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
2880
 
2881
+ let wasm;
2882
+ export function __wbg_set_wasm(val) {
2883
+ wasm = val;
2884
+ }