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

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