lwk_node 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lwk_wasm.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function searchLedgerDevice(): Promise<HIDDevice>;
4
3
  /**
5
4
  * Convert the given string to a QR code image uri
6
5
  *
@@ -10,6 +9,7 @@ export function searchLedgerDevice(): Promise<HIDDevice>;
10
9
  * for example in html: `style="image-rendering: pixelated; border: 20px solid white;"`
11
10
  */
12
11
  export function stringToQr(str: string, pixel_per_module?: number | null): string;
12
+ export function searchLedgerDevice(): Promise<HIDDevice>;
13
13
  /**
14
14
  * Wallet chain
15
15
  */
@@ -922,6 +922,49 @@ export class OutPoint {
922
922
  */
923
923
  vout(): number;
924
924
  }
925
+ /**
926
+ * POS (Point of Sale) configuration for encoding/decoding
927
+ */
928
+ export class PosConfig {
929
+ free(): void;
930
+ [Symbol.dispose](): void;
931
+ /**
932
+ * Create a new POS configuration
933
+ */
934
+ constructor(descriptor: WolletDescriptor, currency: CurrencyCode);
935
+ /**
936
+ * Create a POS configuration with all options
937
+ */
938
+ static withOptions(descriptor: WolletDescriptor, currency: CurrencyCode, show_gear?: boolean | null, show_description?: boolean | null): PosConfig;
939
+ /**
940
+ * Decode a POS configuration from a URL-safe base64 encoded string
941
+ */
942
+ static decode(encoded: string): PosConfig;
943
+ /**
944
+ * Encode the POS configuration to a URL-safe base64 string
945
+ */
946
+ encode(): string;
947
+ /**
948
+ * Return a string representation of the POS configuration
949
+ */
950
+ toString(): string;
951
+ /**
952
+ * Get the wallet descriptor
953
+ */
954
+ readonly descriptor: WolletDescriptor;
955
+ /**
956
+ * Get the currency code
957
+ */
958
+ readonly currency: CurrencyCode;
959
+ /**
960
+ * Get whether to show the gear/settings button
961
+ */
962
+ readonly showGear: boolean | undefined;
963
+ /**
964
+ * Get whether to show the description/note field
965
+ */
966
+ readonly showDescription: boolean | undefined;
967
+ }
925
968
  /**
926
969
  * Helper to convert satoshi values of an asset to the value with the given precision and viceversa.
927
970
  *
package/lwk_wasm.js CHANGED
@@ -216,12 +216,6 @@ function takeFromExternrefTable0(idx) {
216
216
  return value;
217
217
  }
218
218
 
219
- function _assertClass(instance, klass) {
220
- if (!(instance instanceof klass)) {
221
- throw new Error(`expected instance of ${klass.name}`);
222
- }
223
- }
224
-
225
219
  function passArrayJsValueToWasm0(array, malloc) {
226
220
  const ptr = malloc(array.length * 4, 4) >>> 0;
227
221
  for (let i = 0; i < array.length; i++) {
@@ -231,30 +225,11 @@ function passArrayJsValueToWasm0(array, malloc) {
231
225
  WASM_VECTOR_LEN = array.length;
232
226
  return ptr;
233
227
  }
234
- /**
235
- * @returns {Promise<HIDDevice>}
236
- */
237
- exports.searchLedgerDevice = function() {
238
- const ret = wasm.searchLedgerDevice();
239
- return ret;
240
- };
241
228
 
242
- function getArrayJsValueFromWasm0(ptr, len) {
243
- ptr = ptr >>> 0;
244
- const mem = getDataViewMemory0();
245
- const result = [];
246
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
247
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
229
+ function _assertClass(instance, klass) {
230
+ if (!(instance instanceof klass)) {
231
+ throw new Error(`expected instance of ${klass.name}`);
248
232
  }
249
- wasm.__externref_drop_slice(ptr, len);
250
- return result;
251
- }
252
-
253
- function passArray8ToWasm0(arg, malloc) {
254
- const ptr = malloc(arg.length * 1, 1) >>> 0;
255
- getUint8ArrayMemory0().set(arg, ptr / 1);
256
- WASM_VECTOR_LEN = arg.length;
257
- return ptr;
258
233
  }
259
234
 
260
235
  let cachedUint32ArrayMemory0 = null;
@@ -304,32 +279,58 @@ exports.stringToQr = function(str, pixel_per_module) {
304
279
  }
305
280
  };
306
281
 
282
+ /**
283
+ * @returns {Promise<HIDDevice>}
284
+ */
285
+ exports.searchLedgerDevice = function() {
286
+ const ret = wasm.searchLedgerDevice();
287
+ return ret;
288
+ };
289
+
290
+ function getArrayJsValueFromWasm0(ptr, len) {
291
+ ptr = ptr >>> 0;
292
+ const mem = getDataViewMemory0();
293
+ const result = [];
294
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
295
+ result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
296
+ }
297
+ wasm.__externref_drop_slice(ptr, len);
298
+ return result;
299
+ }
300
+
301
+ function passArray8ToWasm0(arg, malloc) {
302
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
303
+ getUint8ArrayMemory0().set(arg, ptr / 1);
304
+ WASM_VECTOR_LEN = arg.length;
305
+ return ptr;
306
+ }
307
+
307
308
  function getArrayU32FromWasm0(ptr, len) {
308
309
  ptr = ptr >>> 0;
309
310
  return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
310
311
  }
311
- function __wbg_adapter_6(arg0, arg1) {
312
+ function __wbg_adapter_8(arg0, arg1) {
312
313
  wasm.wasm_bindgen__convert__closures_____invoke__h05232c3defb8be20(arg0, arg1);
313
314
  }
314
315
 
315
- function __wbg_adapter_9(arg0, arg1, arg2) {
316
- wasm.closure1305_externref_shim(arg0, arg1, arg2);
316
+ function __wbg_adapter_11(arg0, arg1, arg2) {
317
+ wasm.closure1298_externref_shim(arg0, arg1, arg2);
317
318
  }
318
319
 
319
- function __wbg_adapter_12(arg0, arg1, arg2) {
320
- wasm.closure1933_externref_shim(arg0, arg1, arg2);
320
+ function __wbg_adapter_18(arg0, arg1, arg2) {
321
+ wasm.closure785_externref_shim(arg0, arg1, arg2);
321
322
  }
322
323
 
323
- function __wbg_adapter_23(arg0, arg1, arg2) {
324
- wasm.closure773_externref_shim(arg0, arg1, arg2);
324
+ function __wbg_adapter_27(arg0, arg1, arg2) {
325
+ wasm.closure1947_externref_shim(arg0, arg1, arg2);
325
326
  }
326
327
 
327
- function __wbg_adapter_32(arg0, arg1) {
328
+ function __wbg_adapter_30(arg0, arg1) {
328
329
  wasm.wasm_bindgen__convert__closures_____invoke__h912986096667d3cb(arg0, arg1);
329
330
  }
330
331
 
331
- function __wbg_adapter_632(arg0, arg1, arg2, arg3) {
332
- wasm.closure2710_externref_shim(arg0, arg1, arg2, arg3);
332
+ function __wbg_adapter_641(arg0, arg1, arg2, arg3) {
333
+ wasm.closure2721_externref_shim(arg0, arg1, arg2, arg3);
333
334
  }
334
335
 
335
336
  /**
@@ -1867,6 +1868,14 @@ const CurrencyCodeFinalization = (typeof FinalizationRegistry === 'undefined')
1867
1868
 
1868
1869
  class CurrencyCode {
1869
1870
 
1871
+ static __wrap(ptr) {
1872
+ ptr = ptr >>> 0;
1873
+ const obj = Object.create(CurrencyCode.prototype);
1874
+ obj.__wbg_ptr = ptr;
1875
+ CurrencyCodeFinalization.register(obj, obj.__wbg_ptr, obj);
1876
+ return obj;
1877
+ }
1878
+
1870
1879
  __destroy_into_raw() {
1871
1880
  const ptr = this.__wbg_ptr;
1872
1881
  this.__wbg_ptr = 0;
@@ -3237,6 +3246,149 @@ if (Symbol.dispose) OutPoint.prototype[Symbol.dispose] = OutPoint.prototype.free
3237
3246
 
3238
3247
  exports.OutPoint = OutPoint;
3239
3248
 
3249
+ const PosConfigFinalization = (typeof FinalizationRegistry === 'undefined')
3250
+ ? { register: () => {}, unregister: () => {} }
3251
+ : new FinalizationRegistry(ptr => wasm.__wbg_posconfig_free(ptr >>> 0, 1));
3252
+ /**
3253
+ * POS (Point of Sale) configuration for encoding/decoding
3254
+ */
3255
+ class PosConfig {
3256
+
3257
+ static __wrap(ptr) {
3258
+ ptr = ptr >>> 0;
3259
+ const obj = Object.create(PosConfig.prototype);
3260
+ obj.__wbg_ptr = ptr;
3261
+ PosConfigFinalization.register(obj, obj.__wbg_ptr, obj);
3262
+ return obj;
3263
+ }
3264
+
3265
+ __destroy_into_raw() {
3266
+ const ptr = this.__wbg_ptr;
3267
+ this.__wbg_ptr = 0;
3268
+ PosConfigFinalization.unregister(this);
3269
+ return ptr;
3270
+ }
3271
+
3272
+ free() {
3273
+ const ptr = this.__destroy_into_raw();
3274
+ wasm.__wbg_posconfig_free(ptr, 0);
3275
+ }
3276
+ /**
3277
+ * Create a new POS configuration
3278
+ * @param {WolletDescriptor} descriptor
3279
+ * @param {CurrencyCode} currency
3280
+ */
3281
+ constructor(descriptor, currency) {
3282
+ _assertClass(descriptor, WolletDescriptor);
3283
+ _assertClass(currency, CurrencyCode);
3284
+ const ret = wasm.posconfig_new(descriptor.__wbg_ptr, currency.__wbg_ptr);
3285
+ this.__wbg_ptr = ret >>> 0;
3286
+ PosConfigFinalization.register(this, this.__wbg_ptr, this);
3287
+ return this;
3288
+ }
3289
+ /**
3290
+ * Create a POS configuration with all options
3291
+ * @param {WolletDescriptor} descriptor
3292
+ * @param {CurrencyCode} currency
3293
+ * @param {boolean | null} [show_gear]
3294
+ * @param {boolean | null} [show_description]
3295
+ * @returns {PosConfig}
3296
+ */
3297
+ static withOptions(descriptor, currency, show_gear, show_description) {
3298
+ _assertClass(descriptor, WolletDescriptor);
3299
+ _assertClass(currency, CurrencyCode);
3300
+ const ret = wasm.posconfig_withOptions(descriptor.__wbg_ptr, currency.__wbg_ptr, isLikeNone(show_gear) ? 0xFFFFFF : show_gear ? 1 : 0, isLikeNone(show_description) ? 0xFFFFFF : show_description ? 1 : 0);
3301
+ return PosConfig.__wrap(ret);
3302
+ }
3303
+ /**
3304
+ * Decode a POS configuration from a URL-safe base64 encoded string
3305
+ * @param {string} encoded
3306
+ * @returns {PosConfig}
3307
+ */
3308
+ static decode(encoded) {
3309
+ const ptr0 = passStringToWasm0(encoded, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3310
+ const len0 = WASM_VECTOR_LEN;
3311
+ const ret = wasm.posconfig_decode(ptr0, len0);
3312
+ if (ret[2]) {
3313
+ throw takeFromExternrefTable0(ret[1]);
3314
+ }
3315
+ return PosConfig.__wrap(ret[0]);
3316
+ }
3317
+ /**
3318
+ * Encode the POS configuration to a URL-safe base64 string
3319
+ * @returns {string}
3320
+ */
3321
+ encode() {
3322
+ let deferred2_0;
3323
+ let deferred2_1;
3324
+ try {
3325
+ const ret = wasm.posconfig_encode(this.__wbg_ptr);
3326
+ var ptr1 = ret[0];
3327
+ var len1 = ret[1];
3328
+ if (ret[3]) {
3329
+ ptr1 = 0; len1 = 0;
3330
+ throw takeFromExternrefTable0(ret[2]);
3331
+ }
3332
+ deferred2_0 = ptr1;
3333
+ deferred2_1 = len1;
3334
+ return getStringFromWasm0(ptr1, len1);
3335
+ } finally {
3336
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
3337
+ }
3338
+ }
3339
+ /**
3340
+ * Get the wallet descriptor
3341
+ * @returns {WolletDescriptor}
3342
+ */
3343
+ get descriptor() {
3344
+ const ret = wasm.posconfig_descriptor(this.__wbg_ptr);
3345
+ return WolletDescriptor.__wrap(ret);
3346
+ }
3347
+ /**
3348
+ * Get the currency code
3349
+ * @returns {CurrencyCode}
3350
+ */
3351
+ get currency() {
3352
+ const ret = wasm.posconfig_currency(this.__wbg_ptr);
3353
+ return CurrencyCode.__wrap(ret);
3354
+ }
3355
+ /**
3356
+ * Get whether to show the gear/settings button
3357
+ * @returns {boolean | undefined}
3358
+ */
3359
+ get showGear() {
3360
+ const ret = wasm.posconfig_show_gear(this.__wbg_ptr);
3361
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
3362
+ }
3363
+ /**
3364
+ * Get whether to show the description/note field
3365
+ * @returns {boolean | undefined}
3366
+ */
3367
+ get showDescription() {
3368
+ const ret = wasm.posconfig_show_description(this.__wbg_ptr);
3369
+ return ret === 0xFFFFFF ? undefined : ret !== 0;
3370
+ }
3371
+ /**
3372
+ * Return a string representation of the POS configuration
3373
+ * @returns {string}
3374
+ */
3375
+ toString() {
3376
+ let deferred1_0;
3377
+ let deferred1_1;
3378
+ try {
3379
+ const ret = wasm.posconfig_toString(this.__wbg_ptr);
3380
+ deferred1_0 = ret[0];
3381
+ deferred1_1 = ret[1];
3382
+ return getStringFromWasm0(ret[0], ret[1]);
3383
+ } finally {
3384
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3385
+ }
3386
+ }
3387
+ }
3388
+ if (Symbol.dispose) PosConfig.prototype[Symbol.dispose] = PosConfig.prototype.free;
3389
+
3390
+ exports.PosConfig = PosConfig;
3391
+
3240
3392
  const PrecisionFinalization = (typeof FinalizationRegistry === 'undefined')
3241
3393
  ? { register: () => {}, unregister: () => {} }
3242
3394
  : new FinalizationRegistry(ptr => wasm.__wbg_precision_free(ptr >>> 0, 1));
@@ -6606,7 +6758,7 @@ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
6606
6758
  return ret;
6607
6759
  };
6608
6760
 
6609
- exports.__wbg_log_98728cad0884ed72 = function(arg0, arg1) {
6761
+ exports.__wbg_log_2368cdd9f0fe2010 = function(arg0, arg1) {
6610
6762
  console.log(getStringFromWasm0(arg0, arg1));
6611
6763
  };
6612
6764
 
@@ -6642,7 +6794,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
6642
6794
  const a = state0.a;
6643
6795
  state0.a = 0;
6644
6796
  try {
6645
- return __wbg_adapter_632(a, state0.b, arg0, arg1);
6797
+ return __wbg_adapter_641(a, state0.b, arg0, arg1);
6646
6798
  } finally {
6647
6799
  state0.a = a;
6648
6800
  }
@@ -7186,9 +7338,9 @@ exports.__wbg_xpub_new = function(arg0) {
7186
7338
  return ret;
7187
7339
  };
7188
7340
 
7189
- exports.__wbindgen_cast_085aac74eb5b1ae3 = function(arg0, arg1) {
7190
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1304, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7191
- const ret = makeMutClosure(arg0, arg1, 1304, __wbg_adapter_9);
7341
+ exports.__wbindgen_cast_0e6df167c5e3a9bf = function(arg0, arg1) {
7342
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1297, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1298, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7343
+ const ret = makeMutClosure(arg0, arg1, 1297, __wbg_adapter_11);
7192
7344
  return ret;
7193
7345
  };
7194
7346
 
@@ -7198,33 +7350,27 @@ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
7198
7350
  return ret;
7199
7351
  };
7200
7352
 
7201
- exports.__wbindgen_cast_3a898675d43a4cee = function(arg0, arg1) {
7202
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1304, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7203
- const ret = makeMutClosure(arg0, arg1, 1304, __wbg_adapter_9);
7204
- return ret;
7205
- };
7206
-
7207
7353
  exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
7208
7354
  // Cast intrinsic for `U64 -> Externref`.
7209
7355
  const ret = BigInt.asUintN(64, arg0);
7210
7356
  return ret;
7211
7357
  };
7212
7358
 
7213
- exports.__wbindgen_cast_491f832b43cae9d3 = function(arg0, arg1) {
7214
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1922, function: Function { arguments: [Externref], shim_idx: 1933, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7215
- const ret = makeMutClosure(arg0, arg1, 1922, __wbg_adapter_12);
7359
+ exports.__wbindgen_cast_8b268ed6c7d18412 = function(arg0, arg1) {
7360
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1297, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1298, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7361
+ const ret = makeMutClosure(arg0, arg1, 1297, __wbg_adapter_11);
7216
7362
  return ret;
7217
7363
  };
7218
7364
 
7219
- exports.__wbindgen_cast_6d461bb7b7d7177d = function(arg0, arg1) {
7220
- // Cast intrinsic for `Closure(Closure { dtor_idx: 576, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 773, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7221
- const ret = makeMutClosure(arg0, arg1, 576, __wbg_adapter_23);
7365
+ exports.__wbindgen_cast_8b4b61caa2e0a23d = function(arg0, arg1) {
7366
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1899, function: Function { arguments: [], shim_idx: 1900, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7367
+ const ret = makeMutClosure(arg0, arg1, 1899, __wbg_adapter_8);
7222
7368
  return ret;
7223
7369
  };
7224
7370
 
7225
- exports.__wbindgen_cast_91897b7acd28f489 = function(arg0, arg1) {
7226
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1304, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7227
- const ret = makeMutClosure(arg0, arg1, 1304, __wbg_adapter_9);
7371
+ exports.__wbindgen_cast_8f9558e6f0ce3420 = function(arg0, arg1) {
7372
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1936, function: Function { arguments: [Externref], shim_idx: 1947, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7373
+ const ret = makeMutClosure(arg0, arg1, 1936, __wbg_adapter_27);
7228
7374
  return ret;
7229
7375
  };
7230
7376
 
@@ -7234,9 +7380,15 @@ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
7234
7380
  return ret;
7235
7381
  };
7236
7382
 
7237
- exports.__wbindgen_cast_a7d16f2d8bd2063c = function(arg0, arg1) {
7238
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1304, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7239
- const ret = makeMutClosure(arg0, arg1, 1304, __wbg_adapter_9);
7383
+ exports.__wbindgen_cast_9b2feb467ff52527 = function(arg0, arg1) {
7384
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1297, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1298, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7385
+ const ret = makeMutClosure(arg0, arg1, 1297, __wbg_adapter_11);
7386
+ return ret;
7387
+ };
7388
+
7389
+ exports.__wbindgen_cast_c5ee62b4aaae9530 = function(arg0, arg1) {
7390
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1445, function: Function { arguments: [], shim_idx: 1446, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7391
+ const ret = makeMutClosure(arg0, arg1, 1445, __wbg_adapter_30);
7240
7392
  return ret;
7241
7393
  };
7242
7394
 
@@ -7246,9 +7398,9 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
7246
7398
  return ret;
7247
7399
  };
7248
7400
 
7249
- exports.__wbindgen_cast_cbe1d958a67e1e77 = function(arg0, arg1) {
7250
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1885, function: Function { arguments: [], shim_idx: 1886, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7251
- const ret = makeMutClosure(arg0, arg1, 1885, __wbg_adapter_6);
7401
+ exports.__wbindgen_cast_cde02bc75695ac01 = function(arg0, arg1) {
7402
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 617, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 785, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7403
+ const ret = makeMutClosure(arg0, arg1, 617, __wbg_adapter_18);
7252
7404
  return ret;
7253
7405
  };
7254
7406
 
@@ -7258,9 +7410,9 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
7258
7410
  return ret;
7259
7411
  };
7260
7412
 
7261
- exports.__wbindgen_cast_ea7c0ccf8adb80f9 = function(arg0, arg1) {
7262
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1441, function: Function { arguments: [], shim_idx: 1442, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7263
- const ret = makeMutClosure(arg0, arg1, 1441, __wbg_adapter_32);
7413
+ exports.__wbindgen_cast_ff1a743c233958d7 = function(arg0, arg1) {
7414
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1297, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1298, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7415
+ const ret = makeMutClosure(arg0, arg1, 1297, __wbg_adapter_11);
7264
7416
  return ret;
7265
7417
  };
7266
7418
 
package/lwk_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lwk_node",
3
3
  "description": "Liquid Wallet Kit - WASM",
4
- "version": "0.13.0",
4
+ "version": "0.13.1",
5
5
  "license": "MIT OR BSD-2-Clause",
6
6
  "files": [
7
7
  "lwk_wasm_bg.wasm",