lwk_node 0.9.0 → 0.9.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.js CHANGED
@@ -106,6 +106,11 @@ function isLikeNone(x) {
106
106
  return x === undefined || x === null;
107
107
  }
108
108
 
109
+ function getArrayU8FromWasm0(ptr, len) {
110
+ ptr = ptr >>> 0;
111
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
112
+ }
113
+
109
114
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
110
115
  ? { register: () => {}, unregister: () => {} }
111
116
  : new FinalizationRegistry(state => {
@@ -208,38 +213,17 @@ function takeFromExternrefTable0(idx) {
208
213
  return value;
209
214
  }
210
215
 
211
- function getArrayU8FromWasm0(ptr, len) {
212
- ptr = ptr >>> 0;
213
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
214
- }
215
-
216
216
  function _assertClass(instance, klass) {
217
217
  if (!(instance instanceof klass)) {
218
218
  throw new Error(`expected instance of ${klass.name}`);
219
219
  }
220
220
  }
221
221
 
222
- let cachedUint32ArrayMemory0 = null;
223
-
224
- function getUint32ArrayMemory0() {
225
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
226
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
227
- }
228
- return cachedUint32ArrayMemory0;
229
- }
230
-
231
- function passArray32ToWasm0(arg, malloc) {
232
- const ptr = malloc(arg.length * 4, 4) >>> 0;
233
- getUint32ArrayMemory0().set(arg, ptr / 4);
234
- WASM_VECTOR_LEN = arg.length;
235
- return ptr;
236
- }
237
-
238
222
  function passArrayJsValueToWasm0(array, malloc) {
239
223
  const ptr = malloc(array.length * 4, 4) >>> 0;
240
- const mem = getDataViewMemory0();
241
224
  for (let i = 0; i < array.length; i++) {
242
- mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
225
+ const add = addToExternrefTable0(array[i]);
226
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
243
227
  }
244
228
  WASM_VECTOR_LEN = array.length;
245
229
  return ptr;
@@ -256,6 +240,20 @@ function getArrayJsValueFromWasm0(ptr, len) {
256
240
  return result;
257
241
  }
258
242
 
243
+ let cachedUint32ArrayMemory0 = null;
244
+
245
+ function getUint32ArrayMemory0() {
246
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
247
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
248
+ }
249
+ return cachedUint32ArrayMemory0;
250
+ }
251
+
252
+ function getArrayU32FromWasm0(ptr, len) {
253
+ ptr = ptr >>> 0;
254
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
255
+ }
256
+
259
257
  function passArray8ToWasm0(arg, malloc) {
260
258
  const ptr = malloc(arg.length * 1, 1) >>> 0;
261
259
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -263,16 +261,30 @@ function passArray8ToWasm0(arg, malloc) {
263
261
  return ptr;
264
262
  }
265
263
 
266
- function getArrayU32FromWasm0(ptr, len) {
267
- ptr = ptr >>> 0;
268
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
264
+ function passArray32ToWasm0(arg, malloc) {
265
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
266
+ getUint32ArrayMemory0().set(arg, ptr / 4);
267
+ WASM_VECTOR_LEN = arg.length;
268
+ return ptr;
269
269
  }
270
+ /**
271
+ * @returns {Promise<HIDDevice>}
272
+ */
273
+ module.exports.searchLedgerDevice = function() {
274
+ const ret = wasm.searchLedgerDevice();
275
+ return ret;
276
+ };
277
+
270
278
  function __wbg_adapter_36(arg0, arg1, arg2) {
271
- wasm.closure975_externref_shim(arg0, arg1, arg2);
279
+ wasm.closure225_externref_shim(arg0, arg1, arg2);
280
+ }
281
+
282
+ function __wbg_adapter_39(arg0, arg1, arg2) {
283
+ wasm.closure1079_externref_shim(arg0, arg1, arg2);
272
284
  }
273
285
 
274
- function __wbg_adapter_373(arg0, arg1, arg2, arg3) {
275
- wasm.closure1677_externref_shim(arg0, arg1, arg2, arg3);
286
+ function __wbg_adapter_430(arg0, arg1, arg2, arg3) {
287
+ wasm.closure1817_externref_shim(arg0, arg1, arg2, arg3);
276
288
  }
277
289
 
278
290
  /**
@@ -388,7 +400,7 @@ class Address {
388
400
  * For max efficiency we suggest to pass `None` to `pixel_per_module`, get a very small image
389
401
  * and use styling to scale up the image in the browser. eg
390
402
  * `style="image-rendering: pixelated; border: 20px solid white;"`
391
- * @param {number | undefined} [pixel_per_module]
403
+ * @param {number | null} [pixel_per_module]
392
404
  * @returns {string}
393
405
  */
394
406
  QRCodeUri(pixel_per_module) {
@@ -660,6 +672,48 @@ class AssetId {
660
672
  }
661
673
  module.exports.AssetId = AssetId;
662
674
 
675
+ const AssetMetaFinalization = (typeof FinalizationRegistry === 'undefined')
676
+ ? { register: () => {}, unregister: () => {} }
677
+ : new FinalizationRegistry(ptr => wasm.__wbg_assetmeta_free(ptr >>> 0, 1));
678
+
679
+ class AssetMeta {
680
+
681
+ static __wrap(ptr) {
682
+ ptr = ptr >>> 0;
683
+ const obj = Object.create(AssetMeta.prototype);
684
+ obj.__wbg_ptr = ptr;
685
+ AssetMetaFinalization.register(obj, obj.__wbg_ptr, obj);
686
+ return obj;
687
+ }
688
+
689
+ __destroy_into_raw() {
690
+ const ptr = this.__wbg_ptr;
691
+ this.__wbg_ptr = 0;
692
+ AssetMetaFinalization.unregister(this);
693
+ return ptr;
694
+ }
695
+
696
+ free() {
697
+ const ptr = this.__destroy_into_raw();
698
+ wasm.__wbg_assetmeta_free(ptr, 0);
699
+ }
700
+ /**
701
+ * @returns {Contract}
702
+ */
703
+ contract() {
704
+ const ret = wasm.assetmeta_contract(this.__wbg_ptr);
705
+ return Contract.__wrap(ret);
706
+ }
707
+ /**
708
+ * @returns {Transaction}
709
+ */
710
+ tx() {
711
+ const ret = wasm.assetmeta_tx(this.__wbg_ptr);
712
+ return Transaction.__wrap(ret);
713
+ }
714
+ }
715
+ module.exports.AssetMeta = AssetMeta;
716
+
663
717
  const BipFinalization = (typeof FinalizationRegistry === 'undefined')
664
718
  ? { register: () => {}, unregister: () => {} }
665
719
  : new FinalizationRegistry(ptr => wasm.__wbg_bip_free(ptr >>> 0, 1));
@@ -1113,8 +1167,7 @@ class Jade {
1113
1167
  */
1114
1168
  keyoriginXpub(bip) {
1115
1169
  _assertClass(bip, Bip);
1116
- var ptr0 = bip.__destroy_into_raw();
1117
- const ret = wasm.jade_keyoriginXpub(this.__wbg_ptr, ptr0);
1170
+ const ret = wasm.jade_keyoriginXpub(this.__wbg_ptr, bip.__wbg_ptr);
1118
1171
  return ret;
1119
1172
  }
1120
1173
  /**
@@ -1132,6 +1185,97 @@ class Jade {
1132
1185
  }
1133
1186
  module.exports.Jade = Jade;
1134
1187
 
1188
+ const LedgerWebFinalization = (typeof FinalizationRegistry === 'undefined')
1189
+ ? { register: () => {}, unregister: () => {} }
1190
+ : new FinalizationRegistry(ptr => wasm.__wbg_ledgerweb_free(ptr >>> 0, 1));
1191
+
1192
+ class LedgerWeb {
1193
+
1194
+ __destroy_into_raw() {
1195
+ const ptr = this.__wbg_ptr;
1196
+ this.__wbg_ptr = 0;
1197
+ LedgerWebFinalization.unregister(this);
1198
+ return ptr;
1199
+ }
1200
+
1201
+ free() {
1202
+ const ptr = this.__destroy_into_raw();
1203
+ wasm.__wbg_ledgerweb_free(ptr, 0);
1204
+ }
1205
+ /**
1206
+ * hid_device must be already opened
1207
+ * @param {HIDDevice} hid_device
1208
+ * @param {Network} network
1209
+ */
1210
+ constructor(hid_device, network) {
1211
+ _assertClass(network, Network);
1212
+ const ret = wasm.ledgerweb_new(hid_device, network.__wbg_ptr);
1213
+ this.__wbg_ptr = ret >>> 0;
1214
+ LedgerWebFinalization.register(this, this.__wbg_ptr, this);
1215
+ return this;
1216
+ }
1217
+ /**
1218
+ * @returns {Promise<string>}
1219
+ */
1220
+ getVersion() {
1221
+ const ret = wasm.ledgerweb_getVersion(this.__wbg_ptr);
1222
+ return ret;
1223
+ }
1224
+ /**
1225
+ * @param {string} path
1226
+ * @returns {Promise<string>}
1227
+ */
1228
+ deriveXpub(path) {
1229
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1230
+ const len0 = WASM_VECTOR_LEN;
1231
+ const ret = wasm.ledgerweb_deriveXpub(this.__wbg_ptr, ptr0, len0);
1232
+ return ret;
1233
+ }
1234
+ /**
1235
+ * @returns {Promise<string>}
1236
+ */
1237
+ slip77MasterBlindingKey() {
1238
+ const ret = wasm.ledgerweb_slip77MasterBlindingKey(this.__wbg_ptr);
1239
+ return ret;
1240
+ }
1241
+ /**
1242
+ * @returns {Promise<string>}
1243
+ */
1244
+ fingerprint() {
1245
+ const ret = wasm.ledgerweb_fingerprint(this.__wbg_ptr);
1246
+ return ret;
1247
+ }
1248
+ /**
1249
+ * TODO Should use Signer::wpkh_slip77_descriptor
1250
+ * @returns {Promise<WolletDescriptor>}
1251
+ */
1252
+ wpkhSlip77Descriptor() {
1253
+ const ret = wasm.ledgerweb_wpkhSlip77Descriptor(this.__wbg_ptr);
1254
+ return ret;
1255
+ }
1256
+ /**
1257
+ * Sign and consume the given PSET, returning the signed one
1258
+ * @param {Pset} pset
1259
+ * @returns {Promise<Pset>}
1260
+ */
1261
+ sign(pset) {
1262
+ _assertClass(pset, Pset);
1263
+ var ptr0 = pset.__destroy_into_raw();
1264
+ const ret = wasm.ledgerweb_sign(this.__wbg_ptr, ptr0);
1265
+ return ret;
1266
+ }
1267
+ /**
1268
+ * Return a single sig address with the given `variant` and `index`
1269
+ * @param {number} index
1270
+ * @returns {Promise<string>}
1271
+ */
1272
+ getReceiveAddressSingle(index) {
1273
+ const ret = wasm.ledgerweb_getReceiveAddressSingle(this.__wbg_ptr, index);
1274
+ return ret;
1275
+ }
1276
+ }
1277
+ module.exports.LedgerWeb = LedgerWeb;
1278
+
1135
1279
  const MnemonicFinalization = (typeof FinalizationRegistry === 'undefined')
1136
1280
  ? { register: () => {}, unregister: () => {} }
1137
1281
  : new FinalizationRegistry(ptr => wasm.__wbg_mnemonic_free(ptr >>> 0, 1));
@@ -1272,7 +1416,7 @@ class Network {
1272
1416
  return Network.__wrap(ret);
1273
1417
  }
1274
1418
  /**
1275
- * Creates the default regtest `Network`
1419
+ * Creates the default regtest `Network` with the policy asset `5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225`
1276
1420
  * @returns {Network}
1277
1421
  */
1278
1422
  static regtestDefault() {
@@ -1293,6 +1437,20 @@ class Network {
1293
1437
  const ret = wasm.network_isMainnet(this.__wbg_ptr);
1294
1438
  return ret !== 0;
1295
1439
  }
1440
+ /**
1441
+ * @returns {boolean}
1442
+ */
1443
+ isTestnet() {
1444
+ const ret = wasm.network_isTestnet(this.__wbg_ptr);
1445
+ return ret !== 0;
1446
+ }
1447
+ /**
1448
+ * @returns {boolean}
1449
+ */
1450
+ isRegtest() {
1451
+ const ret = wasm.network_isRegtest(this.__wbg_ptr);
1452
+ return ret !== 0;
1453
+ }
1296
1454
  /**
1297
1455
  * @returns {string}
1298
1456
  */
@@ -1587,7 +1745,7 @@ class Pset {
1587
1745
  }
1588
1746
  }
1589
1747
  /**
1590
- * @returns {(PsetInput)[]}
1748
+ * @returns {PsetInput[]}
1591
1749
  */
1592
1750
  inputs() {
1593
1751
  const ret = wasm.pset_inputs(this.__wbg_ptr);
@@ -1644,7 +1802,7 @@ class PsetBalance {
1644
1802
  return takeFromExternrefTable0(ret[0]);
1645
1803
  }
1646
1804
  /**
1647
- * @returns {(Recipient)[]}
1805
+ * @returns {Recipient[]}
1648
1806
  */
1649
1807
  recipients() {
1650
1808
  const ret = wasm.psetbalance_recipients(this.__wbg_ptr);
@@ -1691,7 +1849,7 @@ class PsetDetails {
1691
1849
  }
1692
1850
  /**
1693
1851
  * For each input existing or missing signatures
1694
- * @returns {(PsetSignatures)[]}
1852
+ * @returns {PsetSignatures[]}
1695
1853
  */
1696
1854
  signatures() {
1697
1855
  const ret = wasm.psetdetails_signatures(this.__wbg_ptr);
@@ -1700,7 +1858,7 @@ class PsetDetails {
1700
1858
  return v1;
1701
1859
  }
1702
1860
  /**
1703
- * @returns {(string)[]}
1861
+ * @returns {string[]}
1704
1862
  */
1705
1863
  fingerprintsMissing() {
1706
1864
  const ret = wasm.psetdetails_fingerprintsMissing(this.__wbg_ptr);
@@ -1709,7 +1867,7 @@ class PsetDetails {
1709
1867
  return v1;
1710
1868
  }
1711
1869
  /**
1712
- * @returns {(string)[]}
1870
+ * @returns {string[]}
1713
1871
  */
1714
1872
  fingerprintsHas() {
1715
1873
  const ret = wasm.psetdetails_fingerprintsHas(this.__wbg_ptr);
@@ -1719,7 +1877,7 @@ class PsetDetails {
1719
1877
  }
1720
1878
  /**
1721
1879
  * Return an element for every input that could possibly be a issuance or a reissuance
1722
- * @returns {(Issuance)[]}
1880
+ * @returns {Issuance[]}
1723
1881
  */
1724
1882
  inputsIssuances() {
1725
1883
  const ret = wasm.psetdetails_inputsIssuances(this.__wbg_ptr);
@@ -1895,6 +2053,128 @@ class Recipient {
1895
2053
  }
1896
2054
  module.exports.Recipient = Recipient;
1897
2055
 
2056
+ const RegistryFinalization = (typeof FinalizationRegistry === 'undefined')
2057
+ ? { register: () => {}, unregister: () => {} }
2058
+ : new FinalizationRegistry(ptr => wasm.__wbg_registry_free(ptr >>> 0, 1));
2059
+
2060
+ class Registry {
2061
+
2062
+ static __wrap(ptr) {
2063
+ ptr = ptr >>> 0;
2064
+ const obj = Object.create(Registry.prototype);
2065
+ obj.__wbg_ptr = ptr;
2066
+ RegistryFinalization.register(obj, obj.__wbg_ptr, obj);
2067
+ return obj;
2068
+ }
2069
+
2070
+ __destroy_into_raw() {
2071
+ const ptr = this.__wbg_ptr;
2072
+ this.__wbg_ptr = 0;
2073
+ RegistryFinalization.unregister(this);
2074
+ return ptr;
2075
+ }
2076
+
2077
+ free() {
2078
+ const ptr = this.__destroy_into_raw();
2079
+ wasm.__wbg_registry_free(ptr, 0);
2080
+ }
2081
+ /**
2082
+ * @param {string} url
2083
+ * @returns {Registry}
2084
+ */
2085
+ static new(url) {
2086
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2087
+ const len0 = WASM_VECTOR_LEN;
2088
+ const ret = wasm.registry_new(ptr0, len0);
2089
+ if (ret[2]) {
2090
+ throw takeFromExternrefTable0(ret[1]);
2091
+ }
2092
+ return Registry.__wrap(ret[0]);
2093
+ }
2094
+ /**
2095
+ * @param {Network} network
2096
+ * @returns {Registry}
2097
+ */
2098
+ static defaultForNetwork(network) {
2099
+ _assertClass(network, Network);
2100
+ const ret = wasm.registry_defaultForNetwork(network.__wbg_ptr);
2101
+ if (ret[2]) {
2102
+ throw takeFromExternrefTable0(ret[1]);
2103
+ }
2104
+ return Registry.__wrap(ret[0]);
2105
+ }
2106
+ /**
2107
+ * @param {AssetId} asset_id
2108
+ * @param {EsploraClient} client
2109
+ * @returns {Promise<AssetMeta>}
2110
+ */
2111
+ fetchWithTx(asset_id, client) {
2112
+ _assertClass(asset_id, AssetId);
2113
+ _assertClass(client, EsploraClient);
2114
+ const ret = wasm.registry_fetchWithTx(this.__wbg_ptr, asset_id.__wbg_ptr, client.__wbg_ptr);
2115
+ return ret;
2116
+ }
2117
+ /**
2118
+ * @param {RegistryPost} data
2119
+ * @returns {Promise<void>}
2120
+ */
2121
+ post(data) {
2122
+ _assertClass(data, RegistryPost);
2123
+ const ret = wasm.registry_post(this.__wbg_ptr, data.__wbg_ptr);
2124
+ return ret;
2125
+ }
2126
+ }
2127
+ module.exports.Registry = Registry;
2128
+
2129
+ const RegistryPostFinalization = (typeof FinalizationRegistry === 'undefined')
2130
+ ? { register: () => {}, unregister: () => {} }
2131
+ : new FinalizationRegistry(ptr => wasm.__wbg_registrypost_free(ptr >>> 0, 1));
2132
+
2133
+ class RegistryPost {
2134
+
2135
+ __destroy_into_raw() {
2136
+ const ptr = this.__wbg_ptr;
2137
+ this.__wbg_ptr = 0;
2138
+ RegistryPostFinalization.unregister(this);
2139
+ return ptr;
2140
+ }
2141
+
2142
+ free() {
2143
+ const ptr = this.__destroy_into_raw();
2144
+ wasm.__wbg_registrypost_free(ptr, 0);
2145
+ }
2146
+ /**
2147
+ * @param {Contract} contract
2148
+ * @param {AssetId} asset_id
2149
+ */
2150
+ constructor(contract, asset_id) {
2151
+ _assertClass(contract, Contract);
2152
+ var ptr0 = contract.__destroy_into_raw();
2153
+ _assertClass(asset_id, AssetId);
2154
+ var ptr1 = asset_id.__destroy_into_raw();
2155
+ const ret = wasm.registrypost_new(ptr0, ptr1);
2156
+ this.__wbg_ptr = ret >>> 0;
2157
+ RegistryPostFinalization.register(this, this.__wbg_ptr, this);
2158
+ return this;
2159
+ }
2160
+ /**
2161
+ * @returns {string}
2162
+ */
2163
+ toString() {
2164
+ let deferred1_0;
2165
+ let deferred1_1;
2166
+ try {
2167
+ const ret = wasm.registrypost_toString(this.__wbg_ptr);
2168
+ deferred1_0 = ret[0];
2169
+ deferred1_1 = ret[1];
2170
+ return getStringFromWasm0(ret[0], ret[1]);
2171
+ } finally {
2172
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2173
+ }
2174
+ }
2175
+ }
2176
+ module.exports.RegistryPost = RegistryPost;
2177
+
1898
2178
  const ScriptFinalization = (typeof FinalizationRegistry === 'undefined')
1899
2179
  ? { register: () => {}, unregister: () => {} }
1900
2180
  : new FinalizationRegistry(ptr => wasm.__wbg_script_free(ptr >>> 0, 1));
@@ -2028,6 +2308,31 @@ class Signer {
2028
2308
  }
2029
2309
  return Pset.__wrap(ret[0]);
2030
2310
  }
2311
+ /**
2312
+ * Sign a message with the master key, return the signature as a base64 string
2313
+ * @param {string} message
2314
+ * @returns {string}
2315
+ */
2316
+ signMessage(message) {
2317
+ let deferred3_0;
2318
+ let deferred3_1;
2319
+ try {
2320
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2321
+ const len0 = WASM_VECTOR_LEN;
2322
+ const ret = wasm.signer_signMessage(this.__wbg_ptr, ptr0, len0);
2323
+ var ptr2 = ret[0];
2324
+ var len2 = ret[1];
2325
+ if (ret[3]) {
2326
+ ptr2 = 0; len2 = 0;
2327
+ throw takeFromExternrefTable0(ret[2]);
2328
+ }
2329
+ deferred3_0 = ptr2;
2330
+ deferred3_1 = len2;
2331
+ return getStringFromWasm0(ptr2, len2);
2332
+ } finally {
2333
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
2334
+ }
2335
+ }
2031
2336
  /**
2032
2337
  * @returns {WolletDescriptor}
2033
2338
  */
@@ -2053,23 +2358,22 @@ class Signer {
2053
2358
  * @returns {string}
2054
2359
  */
2055
2360
  keyoriginXpub(bip) {
2056
- let deferred3_0;
2057
- let deferred3_1;
2361
+ let deferred2_0;
2362
+ let deferred2_1;
2058
2363
  try {
2059
2364
  _assertClass(bip, Bip);
2060
- var ptr0 = bip.__destroy_into_raw();
2061
- const ret = wasm.signer_keyoriginXpub(this.__wbg_ptr, ptr0);
2062
- var ptr2 = ret[0];
2063
- var len2 = ret[1];
2365
+ const ret = wasm.signer_keyoriginXpub(this.__wbg_ptr, bip.__wbg_ptr);
2366
+ var ptr1 = ret[0];
2367
+ var len1 = ret[1];
2064
2368
  if (ret[3]) {
2065
- ptr2 = 0; len2 = 0;
2369
+ ptr1 = 0; len1 = 0;
2066
2370
  throw takeFromExternrefTable0(ret[2]);
2067
2371
  }
2068
- deferred3_0 = ptr2;
2069
- deferred3_1 = len2;
2070
- return getStringFromWasm0(ptr2, len2);
2372
+ deferred2_0 = ptr1;
2373
+ deferred2_1 = len1;
2374
+ return getStringFromWasm0(ptr1, len1);
2071
2375
  } finally {
2072
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
2376
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
2073
2377
  }
2074
2378
  }
2075
2379
  /**
@@ -2324,7 +2628,7 @@ class TxBuilder {
2324
2628
  }
2325
2629
  /**
2326
2630
  * Set the fee rate
2327
- * @param {number | undefined} [fee_rate]
2631
+ * @param {number | null} [fee_rate]
2328
2632
  * @returns {TxBuilder}
2329
2633
  */
2330
2634
  feeRate(fee_rate) {
@@ -2404,10 +2708,10 @@ class TxBuilder {
2404
2708
  /**
2405
2709
  * Issue an asset, wrapper of [`lwk_wollet::TxBuilder::issue_asset()`]
2406
2710
  * @param {bigint} asset_sats
2407
- * @param {Address | undefined} asset_receiver
2711
+ * @param {Address | null | undefined} asset_receiver
2408
2712
  * @param {bigint} token_sats
2409
- * @param {Address | undefined} [token_receiver]
2410
- * @param {Contract | undefined} [contract]
2713
+ * @param {Address | null} [token_receiver]
2714
+ * @param {Contract | null} [contract]
2411
2715
  * @returns {TxBuilder}
2412
2716
  */
2413
2717
  issueAsset(asset_sats, asset_receiver, token_sats, token_receiver, contract) {
@@ -2437,8 +2741,8 @@ class TxBuilder {
2437
2741
  * Reissue an asset, wrapper of [`lwk_wollet::TxBuilder::reissue_asset()`]
2438
2742
  * @param {AssetId} asset_to_reissue
2439
2743
  * @param {bigint} satoshi_to_reissue
2440
- * @param {Address | undefined} [asset_receiver]
2441
- * @param {Transaction | undefined} [issuance_tx]
2744
+ * @param {Address | null} [asset_receiver]
2745
+ * @param {Transaction | null} [issuance_tx]
2442
2746
  * @returns {TxBuilder}
2443
2747
  */
2444
2748
  reissueAsset(asset_to_reissue, satoshi_to_reissue, asset_receiver, issuance_tx) {
@@ -2463,7 +2767,7 @@ class TxBuilder {
2463
2767
  }
2464
2768
  /**
2465
2769
  * Manual coin selection, wrapper of [`lwk_wollet::TxBuilder::set_wallet_utxos()`]
2466
- * @param {(OutPoint)[]} outpoints
2770
+ * @param {OutPoint[]} outpoints
2467
2771
  * @returns {TxBuilder}
2468
2772
  */
2469
2773
  setWalletUtxos(outpoints) {
@@ -2824,7 +3128,7 @@ class WalletTx {
2824
3128
  return ret === 0x100000001 ? undefined : ret;
2825
3129
  }
2826
3130
  /**
2827
- * @returns {(OptionWalletTxOut)[]}
3131
+ * @returns {OptionWalletTxOut[]}
2828
3132
  */
2829
3133
  inputs() {
2830
3134
  const ret = wasm.wallettx_inputs(this.__wbg_ptr);
@@ -2833,7 +3137,7 @@ class WalletTx {
2833
3137
  return v1;
2834
3138
  }
2835
3139
  /**
2836
- * @returns {(OptionWalletTxOut)[]}
3140
+ * @returns {OptionWalletTxOut[]}
2837
3141
  */
2838
3142
  outputs() {
2839
3143
  const ret = wasm.wallettx_outputs(this.__wbg_ptr);
@@ -2981,7 +3285,7 @@ class Wollet {
2981
3285
  *
2982
3286
  * If Some return the address at the given index,
2983
3287
  * otherwise the last unused address.
2984
- * @param {number | undefined} [index]
3288
+ * @param {number | null} [index]
2985
3289
  * @returns {AddressResult}
2986
3290
  */
2987
3291
  address(index) {
@@ -3025,7 +3329,7 @@ class Wollet {
3025
3329
  return takeFromExternrefTable0(ret[0]);
3026
3330
  }
3027
3331
  /**
3028
- * @returns {(WalletTx)[]}
3332
+ * @returns {WalletTx[]}
3029
3333
  */
3030
3334
  transactions() {
3031
3335
  const ret = wasm.wollet_transactions(this.__wbg_ptr);
@@ -3038,7 +3342,7 @@ class Wollet {
3038
3342
  }
3039
3343
  /**
3040
3344
  * Get the unspent transaction outputs of the wallet
3041
- * @returns {(WalletTxOut)[]}
3345
+ * @returns {WalletTxOut[]}
3042
3346
  */
3043
3347
  utxos() {
3044
3348
  const ret = wasm.wollet_utxos(this.__wbg_ptr);
@@ -3051,7 +3355,7 @@ class Wollet {
3051
3355
  }
3052
3356
  /**
3053
3357
  * Get all the transaction outputs of the wallet, both spent and unspent
3054
- * @returns {(WalletTxOut)[]}
3358
+ * @returns {WalletTxOut[]}
3055
3359
  */
3056
3360
  txos() {
3057
3361
  const ret = wasm.wollet_txos(this.__wbg_ptr);
@@ -3182,7 +3486,7 @@ class WolletDescriptor {
3182
3486
  }
3183
3487
  /**
3184
3488
  * @param {number} threshold
3185
- * @param {(string)[]} participants
3489
+ * @param {string[]} participants
3186
3490
  * @returns {WolletDescriptor}
3187
3491
  */
3188
3492
  static newMultiWshSlip77(threshold, participants) {
@@ -3313,46 +3617,61 @@ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
3313
3617
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3314
3618
  };
3315
3619
 
3316
- module.exports.__wbg_abort_05026c983d86824c = function(arg0) {
3620
+ module.exports.__wbg_abort_775ef1d17fc65868 = function(arg0) {
3317
3621
  arg0.abort();
3318
3622
  };
3319
3623
 
3320
- module.exports.__wbg_append_72d1635ad8643998 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3624
+ module.exports.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3321
3625
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3322
3626
  }, arguments) };
3323
3627
 
3324
- module.exports.__wbg_arrayBuffer_d0ca2ad8bda0039b = function() { return handleError(function (arg0) {
3628
+ module.exports.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
3325
3629
  const ret = arg0.arrayBuffer();
3326
3630
  return ret;
3327
3631
  }, arguments) };
3328
3632
 
3329
- module.exports.__wbg_buffer_61b7ce01341d7f88 = function(arg0) {
3633
+ module.exports.__wbg_assetmeta_new = function(arg0) {
3634
+ const ret = AssetMeta.__wrap(arg0);
3635
+ return ret;
3636
+ };
3637
+
3638
+ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
3330
3639
  const ret = arg0.buffer;
3331
3640
  return ret;
3332
3641
  };
3333
3642
 
3334
- module.exports.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) {
3335
- const ret = arg0.call(arg1, arg2);
3643
+ module.exports.__wbg_byteLength_1bdb96d98ab0d871 = function(arg0) {
3644
+ const ret = arg0.byteLength;
3336
3645
  return ret;
3337
- }, arguments) };
3646
+ };
3647
+
3648
+ module.exports.__wbg_byteOffset_d7656012e66edc5f = function(arg0) {
3649
+ const ret = arg0.byteOffset;
3650
+ return ret;
3651
+ };
3338
3652
 
3339
- module.exports.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) {
3653
+ module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
3340
3654
  const ret = arg0.call(arg1);
3341
3655
  return ret;
3342
3656
  }, arguments) };
3343
3657
 
3658
+ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
3659
+ const ret = arg0.call(arg1, arg2);
3660
+ return ret;
3661
+ }, arguments) };
3662
+
3344
3663
  module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
3345
3664
  const ret = arg0.crypto;
3346
3665
  return ret;
3347
3666
  };
3348
3667
 
3349
- module.exports.__wbg_done_f22c1561fa919baa = function(arg0) {
3350
- const ret = arg0.done;
3668
+ module.exports.__wbg_data_abeb242764125124 = function(arg0) {
3669
+ const ret = arg0.data;
3351
3670
  return ret;
3352
3671
  };
3353
3672
 
3354
- module.exports.__wbg_fetch_229368eecee9d217 = function(arg0, arg1) {
3355
- const ret = arg0.fetch(arg1);
3673
+ module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
3674
+ const ret = arg0.done;
3356
3675
  return ret;
3357
3676
  };
3358
3677
 
@@ -3361,7 +3680,17 @@ module.exports.__wbg_fetch_4465c2b10f21a927 = function(arg0) {
3361
3680
  return ret;
3362
3681
  };
3363
3682
 
3364
- module.exports.__wbg_getPorts_bcbc416782ca640e = function(arg0) {
3683
+ module.exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
3684
+ const ret = arg0.fetch(arg1);
3685
+ return ret;
3686
+ };
3687
+
3688
+ module.exports.__wbg_getDevices_916883032bafc9b1 = function(arg0) {
3689
+ const ret = arg0.getDevices();
3690
+ return ret;
3691
+ };
3692
+
3693
+ module.exports.__wbg_getPorts_5e6efecc826b1a6f = function(arg0) {
3365
3694
  const ret = arg0.getPorts();
3366
3695
  return ret;
3367
3696
  };
@@ -3370,32 +3699,53 @@ module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return hand
3370
3699
  arg0.getRandomValues(arg1);
3371
3700
  }, arguments) };
3372
3701
 
3373
- module.exports.__wbg_getWriter_dd1c7a1972bcd348 = function() { return handleError(function (arg0) {
3374
- const ret = arg0.getWriter();
3702
+ module.exports.__wbg_getUint8_749a77380c219f58 = function(arg0, arg1) {
3703
+ const ret = arg0.getUint8(arg1 >>> 0);
3375
3704
  return ret;
3376
- }, arguments) };
3705
+ };
3377
3706
 
3378
- module.exports.__wbg_get_9aa3dff3f0266054 = function(arg0, arg1) {
3379
- const ret = arg0[arg1 >>> 0];
3707
+ module.exports.__wbg_getWriter_6ce182d0adc3f96b = function() { return handleError(function (arg0) {
3708
+ const ret = arg0.getWriter();
3380
3709
  return ret;
3381
- };
3710
+ }, arguments) };
3382
3711
 
3383
- module.exports.__wbg_get_bbccf8970793c087 = function() { return handleError(function (arg0, arg1) {
3712
+ module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
3384
3713
  const ret = Reflect.get(arg0, arg1);
3385
3714
  return ret;
3386
3715
  }, arguments) };
3387
3716
 
3388
- module.exports.__wbg_has_94c2fc1d261bbfe9 = function() { return handleError(function (arg0, arg1) {
3717
+ module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
3718
+ const ret = arg0[arg1 >>> 0];
3719
+ return ret;
3720
+ };
3721
+
3722
+ module.exports.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
3389
3723
  const ret = Reflect.has(arg0, arg1);
3390
3724
  return ret;
3391
3725
  }, arguments) };
3392
3726
 
3393
- module.exports.__wbg_headers_24e3e19fe3f187c0 = function(arg0) {
3727
+ module.exports.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
3394
3728
  const ret = arg0.headers;
3395
3729
  return ret;
3396
3730
  };
3397
3731
 
3398
- module.exports.__wbg_instanceof_Response_d3453657e10c4300 = function(arg0) {
3732
+ module.exports.__wbg_hid_890a1b64f4c510a6 = function(arg0) {
3733
+ const ret = arg0.hid;
3734
+ return ret;
3735
+ };
3736
+
3737
+ module.exports.__wbg_instanceof_HidDevice_281d00db95a533c6 = function(arg0) {
3738
+ let result;
3739
+ try {
3740
+ result = arg0 instanceof HIDDevice;
3741
+ } catch (_) {
3742
+ result = false;
3743
+ }
3744
+ const ret = result;
3745
+ return ret;
3746
+ };
3747
+
3748
+ module.exports.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
3399
3749
  let result;
3400
3750
  try {
3401
3751
  result = arg0 instanceof Response;
@@ -3406,7 +3756,7 @@ module.exports.__wbg_instanceof_Response_d3453657e10c4300 = function(arg0) {
3406
3756
  return ret;
3407
3757
  };
3408
3758
 
3409
- module.exports.__wbg_instanceof_SerialPort_859e0e152f7eb0c4 = function(arg0) {
3759
+ module.exports.__wbg_instanceof_SerialPort_cb6aa528c64488f2 = function(arg0) {
3410
3760
  let result;
3411
3761
  try {
3412
3762
  result = arg0 instanceof SerialPort;
@@ -3417,7 +3767,7 @@ module.exports.__wbg_instanceof_SerialPort_859e0e152f7eb0c4 = function(arg0) {
3417
3767
  return ret;
3418
3768
  };
3419
3769
 
3420
- module.exports.__wbg_instanceof_Window_d2514c6a7ee7ba60 = function(arg0) {
3770
+ module.exports.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
3421
3771
  let result;
3422
3772
  try {
3423
3773
  result = arg0 instanceof Window;
@@ -3428,7 +3778,7 @@ module.exports.__wbg_instanceof_Window_d2514c6a7ee7ba60 = function(arg0) {
3428
3778
  return ret;
3429
3779
  };
3430
3780
 
3431
- module.exports.__wbg_isArray_1ba11a930108ec51 = function(arg0) {
3781
+ module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
3432
3782
  const ret = Array.isArray(arg0);
3433
3783
  return ret;
3434
3784
  };
@@ -3438,7 +3788,7 @@ module.exports.__wbg_issuance_new = function(arg0) {
3438
3788
  return ret;
3439
3789
  };
3440
3790
 
3441
- module.exports.__wbg_iterator_23604bb983791576 = function() {
3791
+ module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
3442
3792
  const ret = Symbol.iterator;
3443
3793
  return ret;
3444
3794
  };
@@ -3448,49 +3798,48 @@ module.exports.__wbg_jade_new = function(arg0) {
3448
3798
  return ret;
3449
3799
  };
3450
3800
 
3451
- module.exports.__wbg_length_65d1cd11729ced11 = function(arg0) {
3801
+ module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
3452
3802
  const ret = arg0.length;
3453
3803
  return ret;
3454
3804
  };
3455
3805
 
3456
- module.exports.__wbg_length_d65cf0786bfc5739 = function(arg0) {
3806
+ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
3457
3807
  const ret = arg0.length;
3458
3808
  return ret;
3459
3809
  };
3460
3810
 
3811
+ module.exports.__wbg_log_308ae9d710557e53 = function(arg0, arg1) {
3812
+ console.log(getStringFromWasm0(arg0, arg1));
3813
+ };
3814
+
3461
3815
  module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
3462
3816
  const ret = arg0.msCrypto;
3463
3817
  return ret;
3464
3818
  };
3465
3819
 
3466
- module.exports.__wbg_navigator_0fe968937104eaa7 = function(arg0) {
3820
+ module.exports.__wbg_navigator_1577371c070c8947 = function(arg0) {
3467
3821
  const ret = arg0.navigator;
3468
3822
  return ret;
3469
3823
  };
3470
3824
 
3471
- module.exports.__wbg_new_254fa9eac11932ae = function() {
3472
- const ret = new Array();
3473
- return ret;
3474
- };
3475
-
3476
- module.exports.__wbg_new_2deffdefb590e47b = function() { return handleError(function (arg0) {
3477
- const ret = new ReadableStreamDefaultReader(arg0);
3825
+ module.exports.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
3826
+ const ret = new Headers();
3478
3827
  return ret;
3479
3828
  }, arguments) };
3480
3829
 
3481
- module.exports.__wbg_new_35d748855c4620b9 = function() { return handleError(function () {
3482
- const ret = new Headers();
3830
+ module.exports.__wbg_new_22a36452a23e0e6f = function() { return handleError(function (arg0) {
3831
+ const ret = new ReadableStreamDefaultReader(arg0);
3483
3832
  return ret;
3484
3833
  }, arguments) };
3485
3834
 
3486
- module.exports.__wbg_new_3d446df9155128ef = function(arg0, arg1) {
3835
+ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
3487
3836
  try {
3488
3837
  var state0 = {a: arg0, b: arg1};
3489
3838
  var cb0 = (arg0, arg1) => {
3490
3839
  const a = state0.a;
3491
3840
  state0.a = 0;
3492
3841
  try {
3493
- return __wbg_adapter_373(a, state0.b, arg0, arg1);
3842
+ return __wbg_adapter_430(a, state0.b, arg0, arg1);
3494
3843
  } finally {
3495
3844
  state0.a = a;
3496
3845
  }
@@ -3502,71 +3851,91 @@ module.exports.__wbg_new_3d446df9155128ef = function(arg0, arg1) {
3502
3851
  }
3503
3852
  };
3504
3853
 
3505
- module.exports.__wbg_new_3ff5b33b1ce712df = function(arg0) {
3506
- const ret = new Uint8Array(arg0);
3854
+ module.exports.__wbg_new_405e22f390576ce2 = function() {
3855
+ const ret = new Object();
3507
3856
  return ret;
3508
3857
  };
3509
3858
 
3510
- module.exports.__wbg_new_5f48f21d4be11586 = function() { return handleError(function () {
3511
- const ret = new AbortController();
3859
+ module.exports.__wbg_new_5e0be73521bc8c17 = function() {
3860
+ const ret = new Map();
3512
3861
  return ret;
3513
- }, arguments) };
3862
+ };
3514
3863
 
3515
- module.exports.__wbg_new_688846f374351c92 = function() {
3516
- const ret = new Object();
3864
+ module.exports.__wbg_new_78feb108b6472713 = function() {
3865
+ const ret = new Array();
3517
3866
  return ret;
3518
3867
  };
3519
3868
 
3520
- module.exports.__wbg_new_bc96c6a1c0786643 = function() {
3521
- const ret = new Map();
3869
+ module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
3870
+ const ret = new Uint8Array(arg0);
3522
3871
  return ret;
3523
3872
  };
3524
3873
 
3525
- module.exports.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) {
3874
+ module.exports.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
3875
+ const ret = new AbortController();
3876
+ return ret;
3877
+ }, arguments) };
3878
+
3879
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
3526
3880
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3527
3881
  return ret;
3528
3882
  };
3529
3883
 
3530
- module.exports.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) {
3884
+ module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
3531
3885
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3532
3886
  return ret;
3533
3887
  };
3534
3888
 
3535
- module.exports.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) {
3889
+ module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
3536
3890
  const ret = new Uint8Array(arg0 >>> 0);
3537
3891
  return ret;
3538
3892
  };
3539
3893
 
3540
- module.exports.__wbg_newwithstrandinit_a1f6583f20e4faff = function() { return handleError(function (arg0, arg1, arg2) {
3894
+ module.exports.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
3541
3895
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3542
3896
  return ret;
3543
3897
  }, arguments) };
3544
3898
 
3545
- module.exports.__wbg_next_01dd9234a5bf6d05 = function() { return handleError(function (arg0) {
3546
- const ret = arg0.next();
3547
- return ret;
3548
- }, arguments) };
3549
-
3550
- module.exports.__wbg_next_137428deb98342b0 = function(arg0) {
3899
+ module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
3551
3900
  const ret = arg0.next;
3552
3901
  return ret;
3553
3902
  };
3554
3903
 
3904
+ module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
3905
+ const ret = arg0.next();
3906
+ return ret;
3907
+ }, arguments) };
3908
+
3555
3909
  module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
3556
3910
  const ret = arg0.node;
3557
3911
  return ret;
3558
3912
  };
3559
3913
 
3560
- module.exports.__wbg_now_64d0bb151e5d3889 = function() {
3914
+ module.exports.__wbg_now_807e54c39636c349 = function() {
3561
3915
  const ret = Date.now();
3562
3916
  return ret;
3563
3917
  };
3564
3918
 
3565
- module.exports.__wbg_open_c0755c79d6623261 = function(arg0, arg1) {
3919
+ module.exports.__wbg_now_d18023d54d4e5500 = function(arg0) {
3920
+ const ret = arg0.now();
3921
+ return ret;
3922
+ };
3923
+
3924
+ module.exports.__wbg_open_a95fae7936477724 = function(arg0) {
3925
+ const ret = arg0.open();
3926
+ return ret;
3927
+ };
3928
+
3929
+ module.exports.__wbg_open_cdb62e879602b6c4 = function(arg0, arg1) {
3566
3930
  const ret = arg0.open(arg1);
3567
3931
  return ret;
3568
3932
  };
3569
3933
 
3934
+ module.exports.__wbg_opened_1fee39ed52b14681 = function(arg0) {
3935
+ const ret = arg0.opened;
3936
+ return ret;
3937
+ };
3938
+
3570
3939
  module.exports.__wbg_optionwallettxout_new = function(arg0) {
3571
3940
  const ret = OptionWalletTxOut.__wrap(arg0);
3572
3941
  return ret;
@@ -3577,6 +3946,11 @@ module.exports.__wbg_outpoint_unwrap = function(arg0) {
3577
3946
  return ret;
3578
3947
  };
3579
3948
 
3949
+ module.exports.__wbg_performance_c185c0cdc2766575 = function(arg0) {
3950
+ const ret = arg0.performance;
3951
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3952
+ };
3953
+
3580
3954
  module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
3581
3955
  const ret = arg0.process;
3582
3956
  return ret;
@@ -3597,11 +3971,11 @@ module.exports.__wbg_psetsignatures_new = function(arg0) {
3597
3971
  return ret;
3598
3972
  };
3599
3973
 
3600
- module.exports.__wbg_queueMicrotask_2181040e064c0dc8 = function(arg0) {
3974
+ module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
3601
3975
  queueMicrotask(arg0);
3602
3976
  };
3603
3977
 
3604
- module.exports.__wbg_queueMicrotask_ef9ac43769cbcc4f = function(arg0) {
3978
+ module.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
3605
3979
  const ret = arg0.queueMicrotask;
3606
3980
  return ret;
3607
3981
  };
@@ -3610,12 +3984,12 @@ module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handl
3610
3984
  arg0.randomFillSync(arg1);
3611
3985
  }, arguments) };
3612
3986
 
3613
- module.exports.__wbg_read_4d173e86f707008c = function(arg0) {
3987
+ module.exports.__wbg_read_a2434af1186cb56c = function(arg0) {
3614
3988
  const ret = arg0.read();
3615
3989
  return ret;
3616
3990
  };
3617
3991
 
3618
- module.exports.__wbg_readable_6f2f0016480ce261 = function(arg0) {
3992
+ module.exports.__wbg_readable_dbb91ee91d979f24 = function(arg0) {
3619
3993
  const ret = arg0.readable;
3620
3994
  return ret;
3621
3995
  };
@@ -3625,136 +3999,154 @@ module.exports.__wbg_recipient_new = function(arg0) {
3625
3999
  return ret;
3626
4000
  };
3627
4001
 
3628
- module.exports.__wbg_requestPort_4017b10c6ed80bc9 = function(arg0, arg1) {
3629
- const ret = arg0.requestPort(arg1);
4002
+ module.exports.__wbg_requestDevice_b9904d52d001d64d = function(arg0, arg1) {
4003
+ const ret = arg0.requestDevice(arg1);
3630
4004
  return ret;
3631
4005
  };
3632
4006
 
3633
- module.exports.__wbg_requestPort_fd685d24d556886e = function(arg0) {
4007
+ module.exports.__wbg_requestPort_1f87c6573d65b9ff = function(arg0) {
3634
4008
  const ret = arg0.requestPort();
3635
4009
  return ret;
3636
4010
  };
3637
4011
 
4012
+ module.exports.__wbg_requestPort_f3ef84a64a129f42 = function(arg0, arg1) {
4013
+ const ret = arg0.requestPort(arg1);
4014
+ return ret;
4015
+ };
4016
+
3638
4017
  module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
3639
4018
  const ret = module.require;
3640
4019
  return ret;
3641
4020
  }, arguments) };
3642
4021
 
3643
- module.exports.__wbg_resolve_0bf7c44d641804f9 = function(arg0) {
4022
+ module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
3644
4023
  const ret = Promise.resolve(arg0);
3645
4024
  return ret;
3646
4025
  };
3647
4026
 
3648
- module.exports.__wbg_serial_af8521e375ee4947 = function(arg0) {
4027
+ module.exports.__wbg_sendReport_4d1024566077f413 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
4028
+ const ret = arg0.sendReport(arg1, getArrayU8FromWasm0(arg2, arg3));
4029
+ return ret;
4030
+ }, arguments) };
4031
+
4032
+ module.exports.__wbg_serial_a5487140b2fdb38f = function(arg0) {
3649
4033
  const ret = arg0.serial;
3650
4034
  return ret;
3651
4035
  };
3652
4036
 
3653
- module.exports.__wbg_setTimeout_8d2afdcdb34b4e5a = function() { return handleError(function (arg0, arg1, arg2) {
4037
+ module.exports.__wbg_setTimeout_f2fe5af8e3debeb3 = function() { return handleError(function (arg0, arg1, arg2) {
3654
4038
  const ret = arg0.setTimeout(arg1, arg2);
3655
4039
  return ret;
3656
4040
  }, arguments) };
3657
4041
 
3658
- module.exports.__wbg_set_1d80752d0d5f0b21 = function(arg0, arg1, arg2) {
4042
+ module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
3659
4043
  arg0[arg1 >>> 0] = arg2;
3660
4044
  };
3661
4045
 
3662
- module.exports.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) {
3663
- arg0.set(arg1, arg2 >>> 0);
3664
- };
3665
-
3666
4046
  module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
3667
4047
  arg0[arg1] = arg2;
3668
4048
  };
3669
4049
 
3670
- module.exports.__wbg_set_76818dc3c59a63d5 = function(arg0, arg1, arg2) {
4050
+ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
4051
+ arg0.set(arg1, arg2 >>> 0);
4052
+ };
4053
+
4054
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
3671
4055
  const ret = arg0.set(arg1, arg2);
3672
4056
  return ret;
3673
4057
  };
3674
4058
 
3675
- module.exports.__wbg_setbaudrate_1ae9e2eeefa2bee6 = function(arg0, arg1) {
4059
+ module.exports.__wbg_setbaudrate_fe58f64af51588e8 = function(arg0, arg1) {
3676
4060
  arg0.baudRate = arg1 >>> 0;
3677
4061
  };
3678
4062
 
3679
- module.exports.__wbg_setbody_64920df008e48adc = function(arg0, arg1) {
4063
+ module.exports.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
3680
4064
  arg0.body = arg1;
3681
4065
  };
3682
4066
 
3683
- module.exports.__wbg_setcredentials_cfc15e48e3a3a535 = function(arg0, arg1) {
4067
+ module.exports.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
3684
4068
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3685
4069
  };
3686
4070
 
3687
- module.exports.__wbg_setfilters_6826706298fde705 = function(arg0, arg1) {
4071
+ module.exports.__wbg_setfilters_35abbff30813c430 = function(arg0, arg1) {
4072
+ arg0.filters = arg1;
4073
+ };
4074
+
4075
+ module.exports.__wbg_setfilters_a1e596125ae8f487 = function(arg0, arg1) {
3688
4076
  arg0.filters = arg1;
3689
4077
  };
3690
4078
 
3691
- module.exports.__wbg_setheaders_4c921e8e226bdfa7 = function(arg0, arg1) {
4079
+ module.exports.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
3692
4080
  arg0.headers = arg1;
3693
4081
  };
3694
4082
 
3695
- module.exports.__wbg_setmethod_cfc7f688ba46a6be = function(arg0, arg1, arg2) {
4083
+ module.exports.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
3696
4084
  arg0.method = getStringFromWasm0(arg1, arg2);
3697
4085
  };
3698
4086
 
3699
- module.exports.__wbg_setmode_cd03637eb7da01e0 = function(arg0, arg1) {
4087
+ module.exports.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
3700
4088
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
3701
4089
  };
3702
4090
 
3703
- module.exports.__wbg_setsignal_f766190d206f09e5 = function(arg0, arg1) {
4091
+ module.exports.__wbg_setoninputreport_de1916af49f98e5f = function(arg0, arg1) {
4092
+ arg0.oninputreport = arg1;
4093
+ };
4094
+
4095
+ module.exports.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
3704
4096
  arg0.signal = arg1;
3705
4097
  };
3706
4098
 
3707
- module.exports.__wbg_signal_1fdadeba2d04660e = function(arg0) {
4099
+ module.exports.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
3708
4100
  const ret = arg0.signal;
3709
4101
  return ret;
3710
4102
  };
3711
4103
 
3712
- module.exports.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() {
4104
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
3713
4105
  const ret = typeof global === 'undefined' ? null : global;
3714
4106
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3715
4107
  };
3716
4108
 
3717
- module.exports.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() {
4109
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
3718
4110
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3719
4111
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3720
4112
  };
3721
4113
 
3722
- module.exports.__wbg_static_accessor_SELF_1dc398a895c82351 = function() {
4114
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
3723
4115
  const ret = typeof self === 'undefined' ? null : self;
3724
4116
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3725
4117
  };
3726
4118
 
3727
- module.exports.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() {
4119
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
3728
4120
  const ret = typeof window === 'undefined' ? null : window;
3729
4121
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3730
4122
  };
3731
4123
 
3732
- module.exports.__wbg_status_317f53bc4c7638df = function(arg0) {
4124
+ module.exports.__wbg_status_f6360336ca686bf0 = function(arg0) {
3733
4125
  const ret = arg0.status;
3734
4126
  return ret;
3735
4127
  };
3736
4128
 
3737
- module.exports.__wbg_stringify_f4f701bc34ceda61 = function() { return handleError(function (arg0) {
4129
+ module.exports.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
3738
4130
  const ret = JSON.stringify(arg0);
3739
4131
  return ret;
3740
4132
  }, arguments) };
3741
4133
 
3742
- module.exports.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) {
4134
+ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
3743
4135
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3744
4136
  return ret;
3745
4137
  };
3746
4138
 
3747
- module.exports.__wbg_text_dfc4cb7631d2eb34 = function() { return handleError(function (arg0) {
4139
+ module.exports.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
3748
4140
  const ret = arg0.text();
3749
4141
  return ret;
3750
4142
  }, arguments) };
3751
4143
 
3752
- module.exports.__wbg_then_0438fad860fe38e1 = function(arg0, arg1) {
4144
+ module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
3753
4145
  const ret = arg0.then(arg1);
3754
4146
  return ret;
3755
4147
  };
3756
4148
 
3757
- module.exports.__wbg_then_0ffafeddf0e182a4 = function(arg0, arg1, arg2) {
4149
+ module.exports.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
3758
4150
  const ret = arg0.then(arg1, arg2);
3759
4151
  return ret;
3760
4152
  };
@@ -3769,7 +4161,7 @@ module.exports.__wbg_update_new = function(arg0) {
3769
4161
  return ret;
3770
4162
  };
3771
4163
 
3772
- module.exports.__wbg_url_5327bc0a41a9b085 = function(arg0, arg1) {
4164
+ module.exports.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
3773
4165
  const ret = arg1.url;
3774
4166
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3775
4167
  const len1 = WASM_VECTOR_LEN;
@@ -3777,7 +4169,7 @@ module.exports.__wbg_url_5327bc0a41a9b085 = function(arg0, arg1) {
3777
4169
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3778
4170
  };
3779
4171
 
3780
- module.exports.__wbg_value_4c32fd138a88eee2 = function(arg0) {
4172
+ module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
3781
4173
  const ret = arg0.value;
3782
4174
  return ret;
3783
4175
  };
@@ -3802,12 +4194,12 @@ module.exports.__wbg_wolletdescriptor_new = function(arg0) {
3802
4194
  return ret;
3803
4195
  };
3804
4196
 
3805
- module.exports.__wbg_writable_42ec41878b656f61 = function(arg0) {
4197
+ module.exports.__wbg_writable_169515f8aae06da5 = function(arg0) {
3806
4198
  const ret = arg0.writable;
3807
4199
  return ret;
3808
4200
  };
3809
4201
 
3810
- module.exports.__wbg_write_0aea81ae26043440 = function(arg0, arg1) {
4202
+ module.exports.__wbg_write_311434e30ee214e5 = function(arg0, arg1) {
3811
4203
  const ret = arg0.write(arg1);
3812
4204
  return ret;
3813
4205
  };
@@ -3837,8 +4229,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
3837
4229
  return ret;
3838
4230
  };
3839
4231
 
3840
- module.exports.__wbindgen_closure_wrapper8869 = function(arg0, arg1, arg2) {
3841
- const ret = makeMutClosure(arg0, arg1, 976, __wbg_adapter_36);
4232
+ module.exports.__wbindgen_closure_wrapper2294 = function(arg0, arg1, arg2) {
4233
+ const ret = makeMutClosure(arg0, arg1, 226, __wbg_adapter_36);
4234
+ return ret;
4235
+ };
4236
+
4237
+ module.exports.__wbindgen_closure_wrapper9576 = function(arg0, arg1, arg2) {
4238
+ const ret = makeMutClosure(arg0, arg1, 1080, __wbg_adapter_39);
3842
4239
  return ret;
3843
4240
  };
3844
4241