lwk_node 0.15.0 → 0.16.0
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 +111 -17
- package/lwk_wasm.js +425 -164
- package/lwk_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/lwk_wasm.d.ts
CHANGED
|
@@ -290,6 +290,38 @@ export class AssetAmount {
|
|
|
290
290
|
amount(): bigint;
|
|
291
291
|
asset(): AssetId;
|
|
292
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* A blinding factor for asset commitments.
|
|
295
|
+
*/
|
|
296
|
+
export class AssetBlindingFactor {
|
|
297
|
+
private constructor();
|
|
298
|
+
free(): void;
|
|
299
|
+
[Symbol.dispose](): void;
|
|
300
|
+
/**
|
|
301
|
+
* Creates an `AssetBlindingFactor` from a string.
|
|
302
|
+
*/
|
|
303
|
+
static fromString(s: string): AssetBlindingFactor;
|
|
304
|
+
/**
|
|
305
|
+
* Creates an `AssetBlindingFactor` from a byte slice.
|
|
306
|
+
*/
|
|
307
|
+
static fromBytes(bytes: Uint8Array): AssetBlindingFactor;
|
|
308
|
+
/**
|
|
309
|
+
* Returns a zero asset blinding factor.
|
|
310
|
+
*/
|
|
311
|
+
static zero(): AssetBlindingFactor;
|
|
312
|
+
/**
|
|
313
|
+
* Returns the bytes (32 bytes) in little-endian byte order.
|
|
314
|
+
*
|
|
315
|
+
* This is the internal representation used by secp256k1. The byte order is
|
|
316
|
+
* reversed compared to the hex string representation (which uses big-endian,
|
|
317
|
+
* following Bitcoin display conventions).
|
|
318
|
+
*/
|
|
319
|
+
toBytes(): Uint8Array;
|
|
320
|
+
/**
|
|
321
|
+
* Returns string representation of the ABF
|
|
322
|
+
*/
|
|
323
|
+
toString(): string;
|
|
324
|
+
}
|
|
293
325
|
/**
|
|
294
326
|
* A valid asset identifier.
|
|
295
327
|
*
|
|
@@ -300,11 +332,25 @@ export class AssetId {
|
|
|
300
332
|
[Symbol.dispose](): void;
|
|
301
333
|
/**
|
|
302
334
|
* Creates an `AssetId`
|
|
335
|
+
*
|
|
336
|
+
* Deprecated: use `from_string()` instead
|
|
303
337
|
*/
|
|
304
338
|
constructor(asset_id: string);
|
|
339
|
+
/**
|
|
340
|
+
* Creates an `AssetId` from hex string
|
|
341
|
+
*/
|
|
342
|
+
static fromString(s: string): AssetId;
|
|
343
|
+
/**
|
|
344
|
+
* Creates an `AssetId` from a bytes.
|
|
345
|
+
*/
|
|
346
|
+
static fromBytes(bytes: Uint8Array): AssetId;
|
|
347
|
+
/**
|
|
348
|
+
* Returns the `AssetId` bytes in little-endian byte order.
|
|
349
|
+
*/
|
|
350
|
+
toBytes(): Uint8Array;
|
|
305
351
|
/**
|
|
306
352
|
* Return the string representation of the asset identifier (64 hex characters).
|
|
307
|
-
* This representation can be used to recreate the asset identifier via `
|
|
353
|
+
* This representation can be used to recreate the asset identifier via `fromString()`
|
|
308
354
|
*/
|
|
309
355
|
toString(): string;
|
|
310
356
|
}
|
|
@@ -1449,6 +1495,18 @@ export class Script {
|
|
|
1449
1495
|
export class Signer {
|
|
1450
1496
|
free(): void;
|
|
1451
1497
|
[Symbol.dispose](): void;
|
|
1498
|
+
/**
|
|
1499
|
+
* AMP0 signer data for login
|
|
1500
|
+
*/
|
|
1501
|
+
amp0SignerData(): Amp0SignerData;
|
|
1502
|
+
/**
|
|
1503
|
+
* AMP0 sign login challenge
|
|
1504
|
+
*/
|
|
1505
|
+
amp0SignChallenge(challenge: string): string;
|
|
1506
|
+
/**
|
|
1507
|
+
* AMP0 account xpub
|
|
1508
|
+
*/
|
|
1509
|
+
amp0AccountXpub(account: number): string;
|
|
1452
1510
|
/**
|
|
1453
1511
|
* Creates a `Signer`
|
|
1454
1512
|
*/
|
|
@@ -1485,18 +1543,6 @@ export class Signer {
|
|
|
1485
1543
|
* Return the derived BIP85 mnemonic
|
|
1486
1544
|
*/
|
|
1487
1545
|
derive_bip85_mnemonic(index: number, word_count: number): Mnemonic;
|
|
1488
|
-
/**
|
|
1489
|
-
* AMP0 signer data for login
|
|
1490
|
-
*/
|
|
1491
|
-
amp0SignerData(): Amp0SignerData;
|
|
1492
|
-
/**
|
|
1493
|
-
* AMP0 sign login challenge
|
|
1494
|
-
*/
|
|
1495
|
-
amp0SignChallenge(challenge: string): string;
|
|
1496
|
-
/**
|
|
1497
|
-
* AMP0 account xpub
|
|
1498
|
-
*/
|
|
1499
|
-
amp0AccountXpub(account: number): string;
|
|
1500
1546
|
}
|
|
1501
1547
|
export class Singlesig {
|
|
1502
1548
|
private constructor();
|
|
@@ -1526,8 +1572,18 @@ export class Transaction {
|
|
|
1526
1572
|
[Symbol.dispose](): void;
|
|
1527
1573
|
/**
|
|
1528
1574
|
* Creates a `Transaction`
|
|
1575
|
+
*
|
|
1576
|
+
* Deprecated: use `fromString()` instead.
|
|
1529
1577
|
*/
|
|
1530
1578
|
constructor(tx_hex: string);
|
|
1579
|
+
/**
|
|
1580
|
+
* Creates a `Transaction` from hex-encoded consensus bytes.
|
|
1581
|
+
*/
|
|
1582
|
+
static fromString(s: string): Transaction;
|
|
1583
|
+
/**
|
|
1584
|
+
* Creates a `Transaction` from consensus-encoded bytes.
|
|
1585
|
+
*/
|
|
1586
|
+
static fromBytes(bytes: Uint8Array): Transaction;
|
|
1531
1587
|
/**
|
|
1532
1588
|
* Return the transaction identifier.
|
|
1533
1589
|
*/
|
|
@@ -1535,6 +1591,12 @@ export class Transaction {
|
|
|
1535
1591
|
/**
|
|
1536
1592
|
* Return the consensus encoded bytes of the transaction.
|
|
1537
1593
|
*/
|
|
1594
|
+
toBytes(): Uint8Array;
|
|
1595
|
+
/**
|
|
1596
|
+
* Return the consensus encoded bytes of the transaction.
|
|
1597
|
+
*
|
|
1598
|
+
* Deprecated: use `toBytes()` instead.
|
|
1599
|
+
*/
|
|
1538
1600
|
bytes(): Uint8Array;
|
|
1539
1601
|
/**
|
|
1540
1602
|
* Return the fee of the transaction in the given asset.
|
|
@@ -1675,17 +1737,17 @@ export class TxOutSecrets {
|
|
|
1675
1737
|
*/
|
|
1676
1738
|
asset(): AssetId;
|
|
1677
1739
|
/**
|
|
1678
|
-
* Return the asset blinding factor as a
|
|
1740
|
+
* Return the asset blinding factor as a typed object.
|
|
1679
1741
|
*/
|
|
1680
|
-
assetBlindingFactor():
|
|
1742
|
+
assetBlindingFactor(): AssetBlindingFactor;
|
|
1681
1743
|
/**
|
|
1682
1744
|
* Return the value of the output.
|
|
1683
1745
|
*/
|
|
1684
1746
|
value(): bigint;
|
|
1685
1747
|
/**
|
|
1686
|
-
* Return the value blinding factor as a
|
|
1748
|
+
* Return the value blinding factor as a typed object.
|
|
1687
1749
|
*/
|
|
1688
|
-
valueBlindingFactor():
|
|
1750
|
+
valueBlindingFactor(): ValueBlindingFactor;
|
|
1689
1751
|
/**
|
|
1690
1752
|
* Return true if the output is explicit (no blinding factors).
|
|
1691
1753
|
*/
|
|
@@ -1790,6 +1852,38 @@ export class ValidatedLiquidexProposal {
|
|
|
1790
1852
|
output(): AssetAmount;
|
|
1791
1853
|
toString(): string;
|
|
1792
1854
|
}
|
|
1855
|
+
/**
|
|
1856
|
+
* A blinding factor for value commitments.
|
|
1857
|
+
*/
|
|
1858
|
+
export class ValueBlindingFactor {
|
|
1859
|
+
private constructor();
|
|
1860
|
+
free(): void;
|
|
1861
|
+
[Symbol.dispose](): void;
|
|
1862
|
+
/**
|
|
1863
|
+
* Creates a `ValueBlindingFactor` from a string.
|
|
1864
|
+
*/
|
|
1865
|
+
static fromString(s: string): ValueBlindingFactor;
|
|
1866
|
+
/**
|
|
1867
|
+
* Creates a `ValueBlindingFactor` from a byte slice.
|
|
1868
|
+
*/
|
|
1869
|
+
static fromBytes(bytes: Uint8Array): ValueBlindingFactor;
|
|
1870
|
+
/**
|
|
1871
|
+
* Returns a zero value blinding factor.
|
|
1872
|
+
*/
|
|
1873
|
+
static zero(): ValueBlindingFactor;
|
|
1874
|
+
/**
|
|
1875
|
+
* Returns the bytes (32 bytes) in little-endian byte order.
|
|
1876
|
+
*
|
|
1877
|
+
* This is the internal representation used by secp256k1. The byte order is
|
|
1878
|
+
* reversed compared to the hex string representation (which uses big-endian,
|
|
1879
|
+
* following Bitcoin display conventions).
|
|
1880
|
+
*/
|
|
1881
|
+
toBytes(): Uint8Array;
|
|
1882
|
+
/**
|
|
1883
|
+
* Returns string representation of the VBF
|
|
1884
|
+
*/
|
|
1885
|
+
toString(): string;
|
|
1886
|
+
}
|
|
1793
1887
|
/**
|
|
1794
1888
|
* Value returned by asking transactions to the wallet. Contains details about a transaction
|
|
1795
1889
|
* from the perspective of the wallet, for example the net-balance of the transaction for the
|
package/lwk_wasm.js
CHANGED
|
@@ -217,18 +217,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
217
217
|
return real;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
function _assertClass(instance, klass) {
|
|
221
|
-
if (!(instance instanceof klass)) {
|
|
222
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
220
|
function takeFromExternrefTable0(idx) {
|
|
227
221
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
228
222
|
wasm.__externref_table_dealloc(idx);
|
|
229
223
|
return value;
|
|
230
224
|
}
|
|
231
225
|
|
|
226
|
+
function _assertClass(instance, klass) {
|
|
227
|
+
if (!(instance instanceof klass)) {
|
|
228
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
232
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
233
233
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
234
234
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -239,6 +239,17 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
239
239
|
return ptr;
|
|
240
240
|
}
|
|
241
241
|
|
|
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)));
|
|
248
|
+
}
|
|
249
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
250
|
+
return result;
|
|
251
|
+
}
|
|
252
|
+
|
|
242
253
|
let cachedUint32ArrayMemory0 = null;
|
|
243
254
|
|
|
244
255
|
function getUint32ArrayMemory0() {
|
|
@@ -254,22 +265,6 @@ function passArray32ToWasm0(arg, malloc) {
|
|
|
254
265
|
WASM_VECTOR_LEN = arg.length;
|
|
255
266
|
return ptr;
|
|
256
267
|
}
|
|
257
|
-
|
|
258
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
259
|
-
ptr = ptr >>> 0;
|
|
260
|
-
const mem = getDataViewMemory0();
|
|
261
|
-
const result = [];
|
|
262
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
263
|
-
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
264
|
-
}
|
|
265
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
266
|
-
return result;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
function getArrayU32FromWasm0(ptr, len) {
|
|
270
|
-
ptr = ptr >>> 0;
|
|
271
|
-
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
272
|
-
}
|
|
273
268
|
/**
|
|
274
269
|
* @returns {Promise<HIDDevice>}
|
|
275
270
|
*/
|
|
@@ -310,28 +305,32 @@ exports.stringToQr = function(str, pixel_per_module) {
|
|
|
310
305
|
}
|
|
311
306
|
};
|
|
312
307
|
|
|
313
|
-
function
|
|
314
|
-
|
|
308
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
309
|
+
ptr = ptr >>> 0;
|
|
310
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
311
|
+
}
|
|
312
|
+
function __wbg_adapter_12(arg0, arg1) {
|
|
313
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h912986096667d3cb(arg0, arg1);
|
|
315
314
|
}
|
|
316
315
|
|
|
317
|
-
function
|
|
318
|
-
wasm.
|
|
316
|
+
function __wbg_adapter_15(arg0, arg1, arg2) {
|
|
317
|
+
wasm.closure1352_externref_shim(arg0, arg1, arg2);
|
|
319
318
|
}
|
|
320
319
|
|
|
321
|
-
function
|
|
322
|
-
wasm.
|
|
320
|
+
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
321
|
+
wasm.closure1999_externref_shim(arg0, arg1, arg2);
|
|
323
322
|
}
|
|
324
323
|
|
|
325
|
-
function
|
|
326
|
-
wasm.
|
|
324
|
+
function __wbg_adapter_31(arg0, arg1, arg2) {
|
|
325
|
+
wasm.closure804_externref_shim(arg0, arg1, arg2);
|
|
327
326
|
}
|
|
328
327
|
|
|
329
|
-
function
|
|
330
|
-
wasm.
|
|
328
|
+
function __wbg_adapter_34(arg0, arg1) {
|
|
329
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h94f351489121fb87(arg0, arg1);
|
|
331
330
|
}
|
|
332
331
|
|
|
333
|
-
function
|
|
334
|
-
wasm.
|
|
332
|
+
function __wbg_adapter_694(arg0, arg1, arg2, arg3) {
|
|
333
|
+
wasm.closure2782_externref_shim(arg0, arg1, arg2, arg3);
|
|
335
334
|
}
|
|
336
335
|
|
|
337
336
|
/**
|
|
@@ -1170,6 +1169,104 @@ if (Symbol.dispose) AssetAmount.prototype[Symbol.dispose] = AssetAmount.prototyp
|
|
|
1170
1169
|
|
|
1171
1170
|
exports.AssetAmount = AssetAmount;
|
|
1172
1171
|
|
|
1172
|
+
const AssetBlindingFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1173
|
+
? { register: () => {}, unregister: () => {} }
|
|
1174
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_assetblindingfactor_free(ptr >>> 0, 1));
|
|
1175
|
+
/**
|
|
1176
|
+
* A blinding factor for asset commitments.
|
|
1177
|
+
*/
|
|
1178
|
+
class AssetBlindingFactor {
|
|
1179
|
+
|
|
1180
|
+
static __wrap(ptr) {
|
|
1181
|
+
ptr = ptr >>> 0;
|
|
1182
|
+
const obj = Object.create(AssetBlindingFactor.prototype);
|
|
1183
|
+
obj.__wbg_ptr = ptr;
|
|
1184
|
+
AssetBlindingFactorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1185
|
+
return obj;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
__destroy_into_raw() {
|
|
1189
|
+
const ptr = this.__wbg_ptr;
|
|
1190
|
+
this.__wbg_ptr = 0;
|
|
1191
|
+
AssetBlindingFactorFinalization.unregister(this);
|
|
1192
|
+
return ptr;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
free() {
|
|
1196
|
+
const ptr = this.__destroy_into_raw();
|
|
1197
|
+
wasm.__wbg_assetblindingfactor_free(ptr, 0);
|
|
1198
|
+
}
|
|
1199
|
+
/**
|
|
1200
|
+
* Creates an `AssetBlindingFactor` from a string.
|
|
1201
|
+
* @param {string} s
|
|
1202
|
+
* @returns {AssetBlindingFactor}
|
|
1203
|
+
*/
|
|
1204
|
+
static fromString(s) {
|
|
1205
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1206
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1207
|
+
const ret = wasm.assetblindingfactor_fromString(ptr0, len0);
|
|
1208
|
+
if (ret[2]) {
|
|
1209
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1210
|
+
}
|
|
1211
|
+
return AssetBlindingFactor.__wrap(ret[0]);
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* Creates an `AssetBlindingFactor` from a byte slice.
|
|
1215
|
+
* @param {Uint8Array} bytes
|
|
1216
|
+
* @returns {AssetBlindingFactor}
|
|
1217
|
+
*/
|
|
1218
|
+
static fromBytes(bytes) {
|
|
1219
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1220
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1221
|
+
const ret = wasm.assetblindingfactor_fromBytes(ptr0, len0);
|
|
1222
|
+
if (ret[2]) {
|
|
1223
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1224
|
+
}
|
|
1225
|
+
return AssetBlindingFactor.__wrap(ret[0]);
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Returns a zero asset blinding factor.
|
|
1229
|
+
* @returns {AssetBlindingFactor}
|
|
1230
|
+
*/
|
|
1231
|
+
static zero() {
|
|
1232
|
+
const ret = wasm.assetblindingfactor_zero();
|
|
1233
|
+
return AssetBlindingFactor.__wrap(ret);
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Returns the bytes (32 bytes) in little-endian byte order.
|
|
1237
|
+
*
|
|
1238
|
+
* This is the internal representation used by secp256k1. The byte order is
|
|
1239
|
+
* reversed compared to the hex string representation (which uses big-endian,
|
|
1240
|
+
* following Bitcoin display conventions).
|
|
1241
|
+
* @returns {Uint8Array}
|
|
1242
|
+
*/
|
|
1243
|
+
toBytes() {
|
|
1244
|
+
const ret = wasm.assetblindingfactor_toBytes(this.__wbg_ptr);
|
|
1245
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1246
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1247
|
+
return v1;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Returns string representation of the ABF
|
|
1251
|
+
* @returns {string}
|
|
1252
|
+
*/
|
|
1253
|
+
toString() {
|
|
1254
|
+
let deferred1_0;
|
|
1255
|
+
let deferred1_1;
|
|
1256
|
+
try {
|
|
1257
|
+
const ret = wasm.assetblindingfactor_toString(this.__wbg_ptr);
|
|
1258
|
+
deferred1_0 = ret[0];
|
|
1259
|
+
deferred1_1 = ret[1];
|
|
1260
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1261
|
+
} finally {
|
|
1262
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
if (Symbol.dispose) AssetBlindingFactor.prototype[Symbol.dispose] = AssetBlindingFactor.prototype.free;
|
|
1267
|
+
|
|
1268
|
+
exports.AssetBlindingFactor = AssetBlindingFactor;
|
|
1269
|
+
|
|
1173
1270
|
const AssetIdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1174
1271
|
? { register: () => {}, unregister: () => {} }
|
|
1175
1272
|
: new FinalizationRegistry(ptr => wasm.__wbg_assetid_free(ptr >>> 0, 1));
|
|
@@ -1201,6 +1298,8 @@ class AssetId {
|
|
|
1201
1298
|
}
|
|
1202
1299
|
/**
|
|
1203
1300
|
* Creates an `AssetId`
|
|
1301
|
+
*
|
|
1302
|
+
* Deprecated: use `from_string()` instead
|
|
1204
1303
|
* @param {string} asset_id
|
|
1205
1304
|
*/
|
|
1206
1305
|
constructor(asset_id) {
|
|
@@ -1214,9 +1313,47 @@ class AssetId {
|
|
|
1214
1313
|
AssetIdFinalization.register(this, this.__wbg_ptr, this);
|
|
1215
1314
|
return this;
|
|
1216
1315
|
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Creates an `AssetId` from hex string
|
|
1318
|
+
* @param {string} s
|
|
1319
|
+
* @returns {AssetId}
|
|
1320
|
+
*/
|
|
1321
|
+
static fromString(s) {
|
|
1322
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1323
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1324
|
+
const ret = wasm.assetid_fromString(ptr0, len0);
|
|
1325
|
+
if (ret[2]) {
|
|
1326
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1327
|
+
}
|
|
1328
|
+
return AssetId.__wrap(ret[0]);
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Creates an `AssetId` from a bytes.
|
|
1332
|
+
* @param {Uint8Array} bytes
|
|
1333
|
+
* @returns {AssetId}
|
|
1334
|
+
*/
|
|
1335
|
+
static fromBytes(bytes) {
|
|
1336
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
1337
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1338
|
+
const ret = wasm.assetid_fromBytes(ptr0, len0);
|
|
1339
|
+
if (ret[2]) {
|
|
1340
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1341
|
+
}
|
|
1342
|
+
return AssetId.__wrap(ret[0]);
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Returns the `AssetId` bytes in little-endian byte order.
|
|
1346
|
+
* @returns {Uint8Array}
|
|
1347
|
+
*/
|
|
1348
|
+
toBytes() {
|
|
1349
|
+
const ret = wasm.assetid_toBytes(this.__wbg_ptr);
|
|
1350
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1351
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1352
|
+
return v1;
|
|
1353
|
+
}
|
|
1217
1354
|
/**
|
|
1218
1355
|
* Return the string representation of the asset identifier (64 hex characters).
|
|
1219
|
-
* This representation can be used to recreate the asset identifier via `
|
|
1356
|
+
* This representation can be used to recreate the asset identifier via `fromString()`
|
|
1220
1357
|
* @returns {string}
|
|
1221
1358
|
*/
|
|
1222
1359
|
toString() {
|
|
@@ -4923,6 +5060,65 @@ class Signer {
|
|
|
4923
5060
|
const ptr = this.__destroy_into_raw();
|
|
4924
5061
|
wasm.__wbg_signer_free(ptr, 0);
|
|
4925
5062
|
}
|
|
5063
|
+
/**
|
|
5064
|
+
* AMP0 signer data for login
|
|
5065
|
+
* @returns {Amp0SignerData}
|
|
5066
|
+
*/
|
|
5067
|
+
amp0SignerData() {
|
|
5068
|
+
const ret = wasm.signer_amp0SignerData(this.__wbg_ptr);
|
|
5069
|
+
if (ret[2]) {
|
|
5070
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5071
|
+
}
|
|
5072
|
+
return Amp0SignerData.__wrap(ret[0]);
|
|
5073
|
+
}
|
|
5074
|
+
/**
|
|
5075
|
+
* AMP0 sign login challenge
|
|
5076
|
+
* @param {string} challenge
|
|
5077
|
+
* @returns {string}
|
|
5078
|
+
*/
|
|
5079
|
+
amp0SignChallenge(challenge) {
|
|
5080
|
+
let deferred3_0;
|
|
5081
|
+
let deferred3_1;
|
|
5082
|
+
try {
|
|
5083
|
+
const ptr0 = passStringToWasm0(challenge, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5084
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5085
|
+
const ret = wasm.signer_amp0SignChallenge(this.__wbg_ptr, ptr0, len0);
|
|
5086
|
+
var ptr2 = ret[0];
|
|
5087
|
+
var len2 = ret[1];
|
|
5088
|
+
if (ret[3]) {
|
|
5089
|
+
ptr2 = 0; len2 = 0;
|
|
5090
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5091
|
+
}
|
|
5092
|
+
deferred3_0 = ptr2;
|
|
5093
|
+
deferred3_1 = len2;
|
|
5094
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5095
|
+
} finally {
|
|
5096
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5097
|
+
}
|
|
5098
|
+
}
|
|
5099
|
+
/**
|
|
5100
|
+
* AMP0 account xpub
|
|
5101
|
+
* @param {number} account
|
|
5102
|
+
* @returns {string}
|
|
5103
|
+
*/
|
|
5104
|
+
amp0AccountXpub(account) {
|
|
5105
|
+
let deferred2_0;
|
|
5106
|
+
let deferred2_1;
|
|
5107
|
+
try {
|
|
5108
|
+
const ret = wasm.signer_amp0AccountXpub(this.__wbg_ptr, account);
|
|
5109
|
+
var ptr1 = ret[0];
|
|
5110
|
+
var len1 = ret[1];
|
|
5111
|
+
if (ret[3]) {
|
|
5112
|
+
ptr1 = 0; len1 = 0;
|
|
5113
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5114
|
+
}
|
|
5115
|
+
deferred2_0 = ptr1;
|
|
5116
|
+
deferred2_1 = len1;
|
|
5117
|
+
return getStringFromWasm0(ptr1, len1);
|
|
5118
|
+
} finally {
|
|
5119
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
4926
5122
|
/**
|
|
4927
5123
|
* Creates a `Signer`
|
|
4928
5124
|
* @param {Mnemonic} mnemonic
|
|
@@ -5067,65 +5263,6 @@ class Signer {
|
|
|
5067
5263
|
}
|
|
5068
5264
|
return Mnemonic.__wrap(ret[0]);
|
|
5069
5265
|
}
|
|
5070
|
-
/**
|
|
5071
|
-
* AMP0 signer data for login
|
|
5072
|
-
* @returns {Amp0SignerData}
|
|
5073
|
-
*/
|
|
5074
|
-
amp0SignerData() {
|
|
5075
|
-
const ret = wasm.signer_amp0SignerData(this.__wbg_ptr);
|
|
5076
|
-
if (ret[2]) {
|
|
5077
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
5078
|
-
}
|
|
5079
|
-
return Amp0SignerData.__wrap(ret[0]);
|
|
5080
|
-
}
|
|
5081
|
-
/**
|
|
5082
|
-
* AMP0 sign login challenge
|
|
5083
|
-
* @param {string} challenge
|
|
5084
|
-
* @returns {string}
|
|
5085
|
-
*/
|
|
5086
|
-
amp0SignChallenge(challenge) {
|
|
5087
|
-
let deferred3_0;
|
|
5088
|
-
let deferred3_1;
|
|
5089
|
-
try {
|
|
5090
|
-
const ptr0 = passStringToWasm0(challenge, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5091
|
-
const len0 = WASM_VECTOR_LEN;
|
|
5092
|
-
const ret = wasm.signer_amp0SignChallenge(this.__wbg_ptr, ptr0, len0);
|
|
5093
|
-
var ptr2 = ret[0];
|
|
5094
|
-
var len2 = ret[1];
|
|
5095
|
-
if (ret[3]) {
|
|
5096
|
-
ptr2 = 0; len2 = 0;
|
|
5097
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
5098
|
-
}
|
|
5099
|
-
deferred3_0 = ptr2;
|
|
5100
|
-
deferred3_1 = len2;
|
|
5101
|
-
return getStringFromWasm0(ptr2, len2);
|
|
5102
|
-
} finally {
|
|
5103
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
5104
|
-
}
|
|
5105
|
-
}
|
|
5106
|
-
/**
|
|
5107
|
-
* AMP0 account xpub
|
|
5108
|
-
* @param {number} account
|
|
5109
|
-
* @returns {string}
|
|
5110
|
-
*/
|
|
5111
|
-
amp0AccountXpub(account) {
|
|
5112
|
-
let deferred2_0;
|
|
5113
|
-
let deferred2_1;
|
|
5114
|
-
try {
|
|
5115
|
-
const ret = wasm.signer_amp0AccountXpub(this.__wbg_ptr, account);
|
|
5116
|
-
var ptr1 = ret[0];
|
|
5117
|
-
var len1 = ret[1];
|
|
5118
|
-
if (ret[3]) {
|
|
5119
|
-
ptr1 = 0; len1 = 0;
|
|
5120
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
5121
|
-
}
|
|
5122
|
-
deferred2_0 = ptr1;
|
|
5123
|
-
deferred2_1 = len1;
|
|
5124
|
-
return getStringFromWasm0(ptr1, len1);
|
|
5125
|
-
} finally {
|
|
5126
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
5127
|
-
}
|
|
5128
|
-
}
|
|
5129
5266
|
}
|
|
5130
5267
|
if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
|
|
5131
5268
|
|
|
@@ -5267,6 +5404,8 @@ class Transaction {
|
|
|
5267
5404
|
}
|
|
5268
5405
|
/**
|
|
5269
5406
|
* Creates a `Transaction`
|
|
5407
|
+
*
|
|
5408
|
+
* Deprecated: use `fromString()` instead.
|
|
5270
5409
|
* @param {string} tx_hex
|
|
5271
5410
|
*/
|
|
5272
5411
|
constructor(tx_hex) {
|
|
@@ -5280,6 +5419,34 @@ class Transaction {
|
|
|
5280
5419
|
TransactionFinalization.register(this, this.__wbg_ptr, this);
|
|
5281
5420
|
return this;
|
|
5282
5421
|
}
|
|
5422
|
+
/**
|
|
5423
|
+
* Creates a `Transaction` from hex-encoded consensus bytes.
|
|
5424
|
+
* @param {string} s
|
|
5425
|
+
* @returns {Transaction}
|
|
5426
|
+
*/
|
|
5427
|
+
static fromString(s) {
|
|
5428
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5429
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5430
|
+
const ret = wasm.transaction_fromString(ptr0, len0);
|
|
5431
|
+
if (ret[2]) {
|
|
5432
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5433
|
+
}
|
|
5434
|
+
return Transaction.__wrap(ret[0]);
|
|
5435
|
+
}
|
|
5436
|
+
/**
|
|
5437
|
+
* Creates a `Transaction` from consensus-encoded bytes.
|
|
5438
|
+
* @param {Uint8Array} bytes
|
|
5439
|
+
* @returns {Transaction}
|
|
5440
|
+
*/
|
|
5441
|
+
static fromBytes(bytes) {
|
|
5442
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
5443
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5444
|
+
const ret = wasm.transaction_fromBytes(ptr0, len0);
|
|
5445
|
+
if (ret[2]) {
|
|
5446
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
5447
|
+
}
|
|
5448
|
+
return Transaction.__wrap(ret[0]);
|
|
5449
|
+
}
|
|
5283
5450
|
/**
|
|
5284
5451
|
* Return the transaction identifier.
|
|
5285
5452
|
* @returns {Txid}
|
|
@@ -5292,6 +5459,18 @@ class Transaction {
|
|
|
5292
5459
|
* Return the consensus encoded bytes of the transaction.
|
|
5293
5460
|
* @returns {Uint8Array}
|
|
5294
5461
|
*/
|
|
5462
|
+
toBytes() {
|
|
5463
|
+
const ret = wasm.transaction_toBytes(this.__wbg_ptr);
|
|
5464
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5465
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5466
|
+
return v1;
|
|
5467
|
+
}
|
|
5468
|
+
/**
|
|
5469
|
+
* Return the consensus encoded bytes of the transaction.
|
|
5470
|
+
*
|
|
5471
|
+
* Deprecated: use `toBytes()` instead.
|
|
5472
|
+
* @returns {Uint8Array}
|
|
5473
|
+
*/
|
|
5295
5474
|
bytes() {
|
|
5296
5475
|
const ret = wasm.transaction_bytes(this.__wbg_ptr);
|
|
5297
5476
|
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
@@ -5714,20 +5893,12 @@ class TxOutSecrets {
|
|
|
5714
5893
|
return AssetId.__wrap(ret);
|
|
5715
5894
|
}
|
|
5716
5895
|
/**
|
|
5717
|
-
* Return the asset blinding factor as a
|
|
5718
|
-
* @returns {
|
|
5896
|
+
* Return the asset blinding factor as a typed object.
|
|
5897
|
+
* @returns {AssetBlindingFactor}
|
|
5719
5898
|
*/
|
|
5720
5899
|
assetBlindingFactor() {
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
try {
|
|
5724
|
-
const ret = wasm.txoutsecrets_assetBlindingFactor(this.__wbg_ptr);
|
|
5725
|
-
deferred1_0 = ret[0];
|
|
5726
|
-
deferred1_1 = ret[1];
|
|
5727
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5728
|
-
} finally {
|
|
5729
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5730
|
-
}
|
|
5900
|
+
const ret = wasm.txoutsecrets_assetBlindingFactor(this.__wbg_ptr);
|
|
5901
|
+
return AssetBlindingFactor.__wrap(ret);
|
|
5731
5902
|
}
|
|
5732
5903
|
/**
|
|
5733
5904
|
* Return the value of the output.
|
|
@@ -5738,20 +5909,12 @@ class TxOutSecrets {
|
|
|
5738
5909
|
return BigInt.asUintN(64, ret);
|
|
5739
5910
|
}
|
|
5740
5911
|
/**
|
|
5741
|
-
* Return the value blinding factor as a
|
|
5742
|
-
* @returns {
|
|
5912
|
+
* Return the value blinding factor as a typed object.
|
|
5913
|
+
* @returns {ValueBlindingFactor}
|
|
5743
5914
|
*/
|
|
5744
5915
|
valueBlindingFactor() {
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
try {
|
|
5748
|
-
const ret = wasm.txoutsecrets_valueBlindingFactor(this.__wbg_ptr);
|
|
5749
|
-
deferred1_0 = ret[0];
|
|
5750
|
-
deferred1_1 = ret[1];
|
|
5751
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
5752
|
-
} finally {
|
|
5753
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5754
|
-
}
|
|
5916
|
+
const ret = wasm.txoutsecrets_valueBlindingFactor(this.__wbg_ptr);
|
|
5917
|
+
return ValueBlindingFactor.__wrap(ret);
|
|
5755
5918
|
}
|
|
5756
5919
|
/**
|
|
5757
5920
|
* Return true if the output is explicit (no blinding factors).
|
|
@@ -6164,6 +6327,104 @@ if (Symbol.dispose) ValidatedLiquidexProposal.prototype[Symbol.dispose] = Valida
|
|
|
6164
6327
|
|
|
6165
6328
|
exports.ValidatedLiquidexProposal = ValidatedLiquidexProposal;
|
|
6166
6329
|
|
|
6330
|
+
const ValueBlindingFactorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6331
|
+
? { register: () => {}, unregister: () => {} }
|
|
6332
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_valueblindingfactor_free(ptr >>> 0, 1));
|
|
6333
|
+
/**
|
|
6334
|
+
* A blinding factor for value commitments.
|
|
6335
|
+
*/
|
|
6336
|
+
class ValueBlindingFactor {
|
|
6337
|
+
|
|
6338
|
+
static __wrap(ptr) {
|
|
6339
|
+
ptr = ptr >>> 0;
|
|
6340
|
+
const obj = Object.create(ValueBlindingFactor.prototype);
|
|
6341
|
+
obj.__wbg_ptr = ptr;
|
|
6342
|
+
ValueBlindingFactorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
6343
|
+
return obj;
|
|
6344
|
+
}
|
|
6345
|
+
|
|
6346
|
+
__destroy_into_raw() {
|
|
6347
|
+
const ptr = this.__wbg_ptr;
|
|
6348
|
+
this.__wbg_ptr = 0;
|
|
6349
|
+
ValueBlindingFactorFinalization.unregister(this);
|
|
6350
|
+
return ptr;
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
free() {
|
|
6354
|
+
const ptr = this.__destroy_into_raw();
|
|
6355
|
+
wasm.__wbg_valueblindingfactor_free(ptr, 0);
|
|
6356
|
+
}
|
|
6357
|
+
/**
|
|
6358
|
+
* Creates a `ValueBlindingFactor` from a string.
|
|
6359
|
+
* @param {string} s
|
|
6360
|
+
* @returns {ValueBlindingFactor}
|
|
6361
|
+
*/
|
|
6362
|
+
static fromString(s) {
|
|
6363
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6364
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6365
|
+
const ret = wasm.valueblindingfactor_fromString(ptr0, len0);
|
|
6366
|
+
if (ret[2]) {
|
|
6367
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
6368
|
+
}
|
|
6369
|
+
return ValueBlindingFactor.__wrap(ret[0]);
|
|
6370
|
+
}
|
|
6371
|
+
/**
|
|
6372
|
+
* Creates a `ValueBlindingFactor` from a byte slice.
|
|
6373
|
+
* @param {Uint8Array} bytes
|
|
6374
|
+
* @returns {ValueBlindingFactor}
|
|
6375
|
+
*/
|
|
6376
|
+
static fromBytes(bytes) {
|
|
6377
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
6378
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6379
|
+
const ret = wasm.valueblindingfactor_fromBytes(ptr0, len0);
|
|
6380
|
+
if (ret[2]) {
|
|
6381
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
6382
|
+
}
|
|
6383
|
+
return ValueBlindingFactor.__wrap(ret[0]);
|
|
6384
|
+
}
|
|
6385
|
+
/**
|
|
6386
|
+
* Returns a zero value blinding factor.
|
|
6387
|
+
* @returns {ValueBlindingFactor}
|
|
6388
|
+
*/
|
|
6389
|
+
static zero() {
|
|
6390
|
+
const ret = wasm.valueblindingfactor_zero();
|
|
6391
|
+
return ValueBlindingFactor.__wrap(ret);
|
|
6392
|
+
}
|
|
6393
|
+
/**
|
|
6394
|
+
* Returns the bytes (32 bytes) in little-endian byte order.
|
|
6395
|
+
*
|
|
6396
|
+
* This is the internal representation used by secp256k1. The byte order is
|
|
6397
|
+
* reversed compared to the hex string representation (which uses big-endian,
|
|
6398
|
+
* following Bitcoin display conventions).
|
|
6399
|
+
* @returns {Uint8Array}
|
|
6400
|
+
*/
|
|
6401
|
+
toBytes() {
|
|
6402
|
+
const ret = wasm.valueblindingfactor_toBytes(this.__wbg_ptr);
|
|
6403
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
6404
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
6405
|
+
return v1;
|
|
6406
|
+
}
|
|
6407
|
+
/**
|
|
6408
|
+
* Returns string representation of the VBF
|
|
6409
|
+
* @returns {string}
|
|
6410
|
+
*/
|
|
6411
|
+
toString() {
|
|
6412
|
+
let deferred1_0;
|
|
6413
|
+
let deferred1_1;
|
|
6414
|
+
try {
|
|
6415
|
+
const ret = wasm.valueblindingfactor_toString(this.__wbg_ptr);
|
|
6416
|
+
deferred1_0 = ret[0];
|
|
6417
|
+
deferred1_1 = ret[1];
|
|
6418
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
6419
|
+
} finally {
|
|
6420
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
6421
|
+
}
|
|
6422
|
+
}
|
|
6423
|
+
}
|
|
6424
|
+
if (Symbol.dispose) ValueBlindingFactor.prototype[Symbol.dispose] = ValueBlindingFactor.prototype.free;
|
|
6425
|
+
|
|
6426
|
+
exports.ValueBlindingFactor = ValueBlindingFactor;
|
|
6427
|
+
|
|
6167
6428
|
const WalletTxFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6168
6429
|
? { register: () => {}, unregister: () => {} }
|
|
6169
6430
|
: new FinalizationRegistry(ptr => wasm.__wbg_wallettx_free(ptr >>> 0, 1));
|
|
@@ -7072,12 +7333,7 @@ exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
|
|
|
7072
7333
|
return ret;
|
|
7073
7334
|
};
|
|
7074
7335
|
|
|
7075
|
-
exports.
|
|
7076
|
-
const ret = Reflect.get(arg0, arg1);
|
|
7077
|
-
return ret;
|
|
7078
|
-
}, arguments) };
|
|
7079
|
-
|
|
7080
|
-
exports.__wbg_get_f73bb45577f88031 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7336
|
+
exports.__wbg_get_39bedfef9433a446 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7081
7337
|
const ret = arg1.get(getStringFromWasm0(arg2, arg3));
|
|
7082
7338
|
var ptr1 = isLikeNone(ret) ? 0 : passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
7083
7339
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -7085,6 +7341,11 @@ exports.__wbg_get_f73bb45577f88031 = function() { return handleError(function (a
|
|
|
7085
7341
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
7086
7342
|
}, arguments) };
|
|
7087
7343
|
|
|
7344
|
+
exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
7345
|
+
const ret = Reflect.get(arg0, arg1);
|
|
7346
|
+
return ret;
|
|
7347
|
+
}, arguments) };
|
|
7348
|
+
|
|
7088
7349
|
exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
|
|
7089
7350
|
const ret = Reflect.has(arg0, arg1);
|
|
7090
7351
|
return ret;
|
|
@@ -7211,7 +7472,7 @@ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
|
7211
7472
|
return ret;
|
|
7212
7473
|
};
|
|
7213
7474
|
|
|
7214
|
-
exports.
|
|
7475
|
+
exports.__wbg_log_56ce8a47744d4384 = function(arg0, arg1) {
|
|
7215
7476
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
7216
7477
|
};
|
|
7217
7478
|
|
|
@@ -7247,7 +7508,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
|
7247
7508
|
const a = state0.a;
|
|
7248
7509
|
state0.a = 0;
|
|
7249
7510
|
try {
|
|
7250
|
-
return
|
|
7511
|
+
return __wbg_adapter_694(a, state0.b, arg0, arg1);
|
|
7251
7512
|
} finally {
|
|
7252
7513
|
state0.a = a;
|
|
7253
7514
|
}
|
|
@@ -7418,7 +7679,7 @@ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
|
7418
7679
|
return ret;
|
|
7419
7680
|
};
|
|
7420
7681
|
|
|
7421
|
-
exports.
|
|
7682
|
+
exports.__wbg_put_fe176894adb408a3 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
7422
7683
|
arg0.put(getStringFromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
|
|
7423
7684
|
}, arguments) };
|
|
7424
7685
|
|
|
@@ -7468,7 +7729,7 @@ exports.__wbg_registry_new = function(arg0) {
|
|
|
7468
7729
|
return ret;
|
|
7469
7730
|
};
|
|
7470
7731
|
|
|
7471
|
-
exports.
|
|
7732
|
+
exports.__wbg_remove_730839cfb0946c97 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
7472
7733
|
arg0.remove(getStringFromWasm0(arg1, arg2));
|
|
7473
7734
|
}, arguments) };
|
|
7474
7735
|
|
|
@@ -7799,51 +8060,33 @@ exports.__wbg_xpub_new = function(arg0) {
|
|
|
7799
8060
|
return ret;
|
|
7800
8061
|
};
|
|
7801
8062
|
|
|
7802
|
-
exports.__wbindgen_cast_1cc4fdd2f159de97 = function(arg0, arg1) {
|
|
7803
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1210, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1211, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7804
|
-
const ret = makeMutClosure(arg0, arg1, 1210, __wbg_adapter_9);
|
|
7805
|
-
return ret;
|
|
7806
|
-
};
|
|
7807
|
-
|
|
7808
8063
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
7809
8064
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
7810
8065
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
7811
8066
|
return ret;
|
|
7812
8067
|
};
|
|
7813
8068
|
|
|
7814
|
-
exports.
|
|
7815
|
-
// Cast intrinsic for `
|
|
7816
|
-
const ret =
|
|
7817
|
-
return ret;
|
|
7818
|
-
};
|
|
7819
|
-
|
|
7820
|
-
exports.__wbindgen_cast_4a32eb107c538612 = function(arg0, arg1) {
|
|
7821
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 854, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 855, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7822
|
-
const ret = makeMutClosure(arg0, arg1, 854, __wbg_adapter_28);
|
|
7823
|
-
return ret;
|
|
7824
|
-
};
|
|
7825
|
-
|
|
7826
|
-
exports.__wbindgen_cast_82b35546cfba6ba9 = function(arg0, arg1) {
|
|
7827
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1210, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1211, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7828
|
-
const ret = makeMutClosure(arg0, arg1, 1210, __wbg_adapter_9);
|
|
8069
|
+
exports.__wbindgen_cast_257f3a138b297868 = function(arg0, arg1) {
|
|
8070
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1351, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1352, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8071
|
+
const ret = makeMutClosure(arg0, arg1, 1351, __wbg_adapter_15);
|
|
7829
8072
|
return ret;
|
|
7830
8073
|
};
|
|
7831
8074
|
|
|
7832
|
-
exports.
|
|
7833
|
-
// Cast intrinsic for `
|
|
7834
|
-
const ret =
|
|
8075
|
+
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
8076
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
8077
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
7835
8078
|
return ret;
|
|
7836
8079
|
};
|
|
7837
8080
|
|
|
7838
|
-
exports.
|
|
7839
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7840
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8081
|
+
exports.__wbindgen_cast_502ef75e0c858dae = function(arg0, arg1) {
|
|
8082
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1988, function: Function { arguments: [Externref], shim_idx: 1999, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8083
|
+
const ret = makeMutClosure(arg0, arg1, 1988, __wbg_adapter_24);
|
|
7841
8084
|
return ret;
|
|
7842
8085
|
};
|
|
7843
8086
|
|
|
7844
|
-
exports.
|
|
7845
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7846
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8087
|
+
exports.__wbindgen_cast_8b5320884bc68146 = function(arg0, arg1) {
|
|
8088
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1493, function: Function { arguments: [], shim_idx: 1494, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8089
|
+
const ret = makeMutClosure(arg0, arg1, 1493, __wbg_adapter_12);
|
|
7847
8090
|
return ret;
|
|
7848
8091
|
};
|
|
7849
8092
|
|
|
@@ -7853,9 +8096,9 @@ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
|
7853
8096
|
return ret;
|
|
7854
8097
|
};
|
|
7855
8098
|
|
|
7856
|
-
exports.
|
|
7857
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7858
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8099
|
+
exports.__wbindgen_cast_c00b3b75575ef5a8 = function(arg0, arg1) {
|
|
8100
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1351, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1352, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8101
|
+
const ret = makeMutClosure(arg0, arg1, 1351, __wbg_adapter_15);
|
|
7859
8102
|
return ret;
|
|
7860
8103
|
};
|
|
7861
8104
|
|
|
@@ -7865,9 +8108,9 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
|
7865
8108
|
return ret;
|
|
7866
8109
|
};
|
|
7867
8110
|
|
|
7868
|
-
exports.
|
|
7869
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7870
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8111
|
+
exports.__wbindgen_cast_d13e729c37297ac9 = function(arg0, arg1) {
|
|
8112
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1351, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1352, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8113
|
+
const ret = makeMutClosure(arg0, arg1, 1351, __wbg_adapter_15);
|
|
7871
8114
|
return ret;
|
|
7872
8115
|
};
|
|
7873
8116
|
|
|
@@ -7877,6 +8120,24 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
|
7877
8120
|
return ret;
|
|
7878
8121
|
};
|
|
7879
8122
|
|
|
8123
|
+
exports.__wbindgen_cast_db7bbe564cc094a2 = function(arg0, arg1) {
|
|
8124
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1953, function: Function { arguments: [], shim_idx: 1954, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8125
|
+
const ret = makeMutClosure(arg0, arg1, 1953, __wbg_adapter_34);
|
|
8126
|
+
return ret;
|
|
8127
|
+
};
|
|
8128
|
+
|
|
8129
|
+
exports.__wbindgen_cast_f36c9415fb8ff7bb = function(arg0, arg1) {
|
|
8130
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 671, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 804, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8131
|
+
const ret = makeMutClosure(arg0, arg1, 671, __wbg_adapter_31);
|
|
8132
|
+
return ret;
|
|
8133
|
+
};
|
|
8134
|
+
|
|
8135
|
+
exports.__wbindgen_cast_f944d0f89d71242c = function(arg0, arg1) {
|
|
8136
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1351, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1352, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8137
|
+
const ret = makeMutClosure(arg0, arg1, 1351, __wbg_adapter_15);
|
|
8138
|
+
return ret;
|
|
8139
|
+
};
|
|
8140
|
+
|
|
7880
8141
|
exports.__wbindgen_init_externref_table = function() {
|
|
7881
8142
|
const table = wasm.__wbindgen_export_4;
|
|
7882
8143
|
const offset = table.grow(4);
|
package/lwk_wasm_bg.wasm
CHANGED
|
Binary file
|