lwk_node 0.17.0 → 0.17.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 +4 -0
- package/lwk_wasm.js +61 -50
- package/lwk_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/lwk_wasm.d.ts
CHANGED
|
@@ -1223,6 +1223,10 @@ export class Pset {
|
|
|
1223
1223
|
* Return a copy of the outputs of this PSET
|
|
1224
1224
|
*/
|
|
1225
1225
|
outputs(): PsetOutput[];
|
|
1226
|
+
/**
|
|
1227
|
+
* Add wallet details to this PSET in place
|
|
1228
|
+
*/
|
|
1229
|
+
addDetails(wollet: Wollet): void;
|
|
1226
1230
|
}
|
|
1227
1231
|
/**
|
|
1228
1232
|
* The details regarding balance and amounts in a PSET:
|
package/lwk_wasm.js
CHANGED
|
@@ -228,6 +228,13 @@ function takeFromExternrefTable0(idx) {
|
|
|
228
228
|
wasm.__externref_table_dealloc(idx);
|
|
229
229
|
return value;
|
|
230
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* @returns {Promise<HIDDevice>}
|
|
233
|
+
*/
|
|
234
|
+
exports.searchLedgerDevice = function() {
|
|
235
|
+
const ret = wasm.searchLedgerDevice();
|
|
236
|
+
return ret;
|
|
237
|
+
};
|
|
231
238
|
|
|
232
239
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
233
240
|
ptr = ptr >>> 0;
|
|
@@ -239,13 +246,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
239
246
|
wasm.__externref_drop_slice(ptr, len);
|
|
240
247
|
return result;
|
|
241
248
|
}
|
|
242
|
-
/**
|
|
243
|
-
* @returns {Promise<HIDDevice>}
|
|
244
|
-
*/
|
|
245
|
-
exports.searchLedgerDevice = function() {
|
|
246
|
-
const ret = wasm.searchLedgerDevice();
|
|
247
|
-
return ret;
|
|
248
|
-
};
|
|
249
249
|
|
|
250
250
|
let cachedUint32ArrayMemory0 = null;
|
|
251
251
|
|
|
@@ -309,27 +309,27 @@ function getArrayU32FromWasm0(ptr, len) {
|
|
|
309
309
|
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
310
310
|
}
|
|
311
311
|
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
312
|
-
wasm.
|
|
312
|
+
wasm.closure1312_externref_shim(arg0, arg1, arg2);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
function
|
|
316
|
-
wasm.
|
|
315
|
+
function __wbg_adapter_9(arg0, arg1) {
|
|
316
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h94f351489121fb87(arg0, arg1);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
function
|
|
320
|
-
wasm.
|
|
319
|
+
function __wbg_adapter_12(arg0, arg1, arg2) {
|
|
320
|
+
wasm.closure465_externref_shim(arg0, arg1, arg2);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
function
|
|
324
|
-
wasm.
|
|
323
|
+
function __wbg_adapter_15(arg0, arg1, arg2) {
|
|
324
|
+
wasm.closure2091_externref_shim(arg0, arg1, arg2);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
function
|
|
327
|
+
function __wbg_adapter_28(arg0, arg1) {
|
|
328
328
|
wasm.wasm_bindgen__convert__closures_____invoke__h912986096667d3cb(arg0, arg1);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
function
|
|
332
|
-
wasm.
|
|
331
|
+
function __wbg_adapter_736(arg0, arg1, arg2, arg3) {
|
|
332
|
+
wasm.closure2878_externref_shim(arg0, arg1, arg2, arg3);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
/**
|
|
@@ -4259,6 +4259,17 @@ class Pset {
|
|
|
4259
4259
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
4260
4260
|
return v1;
|
|
4261
4261
|
}
|
|
4262
|
+
/**
|
|
4263
|
+
* Add wallet details to this PSET in place
|
|
4264
|
+
* @param {Wollet} wollet
|
|
4265
|
+
*/
|
|
4266
|
+
addDetails(wollet) {
|
|
4267
|
+
_assertClass(wollet, Wollet);
|
|
4268
|
+
const ret = wasm.pset_addDetails(this.__wbg_ptr, wollet.__wbg_ptr);
|
|
4269
|
+
if (ret[1]) {
|
|
4270
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4262
4273
|
}
|
|
4263
4274
|
if (Symbol.dispose) Pset.prototype[Symbol.dispose] = Pset.prototype.free;
|
|
4264
4275
|
|
|
@@ -7928,7 +7939,7 @@ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (a
|
|
|
7928
7939
|
return ret;
|
|
7929
7940
|
}, arguments) };
|
|
7930
7941
|
|
|
7931
|
-
exports.
|
|
7942
|
+
exports.__wbg_get_ea60a3bcdaa2b333 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
7932
7943
|
const ret = arg1.get(getStringFromWasm0(arg2, arg3));
|
|
7933
7944
|
var ptr1 = isLikeNone(ret) ? 0 : passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
7934
7945
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -8027,7 +8038,7 @@ exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
|
8027
8038
|
return ret;
|
|
8028
8039
|
};
|
|
8029
8040
|
|
|
8030
|
-
exports.
|
|
8041
|
+
exports.__wbg_isPersisted_a0739c119cc2a965 = function() { return handleError(function (arg0) {
|
|
8031
8042
|
const ret = arg0.isPersisted();
|
|
8032
8043
|
return ret;
|
|
8033
8044
|
}, arguments) };
|
|
@@ -8067,7 +8078,7 @@ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
|
8067
8078
|
return ret;
|
|
8068
8079
|
};
|
|
8069
8080
|
|
|
8070
|
-
exports.
|
|
8081
|
+
exports.__wbg_log_f2e572499b94f3fc = function(arg0, arg1) {
|
|
8071
8082
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
8072
8083
|
};
|
|
8073
8084
|
|
|
@@ -8103,7 +8114,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
|
8103
8114
|
const a = state0.a;
|
|
8104
8115
|
state0.a = 0;
|
|
8105
8116
|
try {
|
|
8106
|
-
return
|
|
8117
|
+
return __wbg_adapter_736(a, state0.b, arg0, arg1);
|
|
8107
8118
|
} finally {
|
|
8108
8119
|
state0.a = a;
|
|
8109
8120
|
}
|
|
@@ -8274,7 +8285,7 @@ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
|
8274
8285
|
return ret;
|
|
8275
8286
|
};
|
|
8276
8287
|
|
|
8277
|
-
exports.
|
|
8288
|
+
exports.__wbg_put_e16c8bb664081030 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
8278
8289
|
arg0.put(getStringFromWasm0(arg1, arg2), getArrayU8FromWasm0(arg3, arg4));
|
|
8279
8290
|
}, arguments) };
|
|
8280
8291
|
|
|
@@ -8324,7 +8335,7 @@ exports.__wbg_registry_new = function(arg0) {
|
|
|
8324
8335
|
return ret;
|
|
8325
8336
|
};
|
|
8326
8337
|
|
|
8327
|
-
exports.
|
|
8338
|
+
exports.__wbg_remove_2f18c0eff31e188a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
8328
8339
|
arg0.remove(getStringFromWasm0(arg1, arg2));
|
|
8329
8340
|
}, arguments) };
|
|
8330
8341
|
|
|
@@ -8665,27 +8676,27 @@ exports.__wbg_xpub_new = function(arg0) {
|
|
|
8665
8676
|
return ret;
|
|
8666
8677
|
};
|
|
8667
8678
|
|
|
8668
|
-
exports.
|
|
8669
|
-
// Cast intrinsic for `
|
|
8670
|
-
const ret =
|
|
8679
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
8680
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
8681
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
8671
8682
|
return ret;
|
|
8672
8683
|
};
|
|
8673
8684
|
|
|
8674
|
-
exports.
|
|
8675
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8676
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8685
|
+
exports.__wbindgen_cast_392cad8582d6e5e7 = function(arg0, arg1) {
|
|
8686
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1231, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8687
|
+
const ret = makeMutClosure(arg0, arg1, 1231, __wbg_adapter_6);
|
|
8677
8688
|
return ret;
|
|
8678
8689
|
};
|
|
8679
8690
|
|
|
8680
|
-
exports.
|
|
8681
|
-
// Cast intrinsic for `
|
|
8682
|
-
const ret =
|
|
8691
|
+
exports.__wbindgen_cast_39f378bbfc1f694f = function(arg0, arg1) {
|
|
8692
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1231, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8693
|
+
const ret = makeMutClosure(arg0, arg1, 1231, __wbg_adapter_6);
|
|
8683
8694
|
return ret;
|
|
8684
8695
|
};
|
|
8685
8696
|
|
|
8686
|
-
exports.
|
|
8687
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8688
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8697
|
+
exports.__wbindgen_cast_3ec117c47760f617 = function(arg0, arg1) {
|
|
8698
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [NamedExternref("HIDInputReportEvent")], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8699
|
+
const ret = makeMutClosure(arg0, arg1, 464, __wbg_adapter_12);
|
|
8689
8700
|
return ret;
|
|
8690
8701
|
};
|
|
8691
8702
|
|
|
@@ -8695,27 +8706,27 @@ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
|
8695
8706
|
return ret;
|
|
8696
8707
|
};
|
|
8697
8708
|
|
|
8698
|
-
exports.
|
|
8699
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8700
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8709
|
+
exports.__wbindgen_cast_64e682fa407cc89a = function(arg0, arg1) {
|
|
8710
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1524, function: Function { arguments: [], shim_idx: 1525, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8711
|
+
const ret = makeMutClosure(arg0, arg1, 1524, __wbg_adapter_28);
|
|
8701
8712
|
return ret;
|
|
8702
8713
|
};
|
|
8703
8714
|
|
|
8704
|
-
exports.
|
|
8705
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8706
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8715
|
+
exports.__wbindgen_cast_6a4a8b8a96ccc6bc = function(arg0, arg1) {
|
|
8716
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1231, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8717
|
+
const ret = makeMutClosure(arg0, arg1, 1231, __wbg_adapter_6);
|
|
8707
8718
|
return ret;
|
|
8708
8719
|
};
|
|
8709
8720
|
|
|
8710
|
-
exports.
|
|
8711
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8712
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8721
|
+
exports.__wbindgen_cast_93bc83e3a76266b4 = function(arg0, arg1) {
|
|
8722
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1231, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1312, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8723
|
+
const ret = makeMutClosure(arg0, arg1, 1231, __wbg_adapter_6);
|
|
8713
8724
|
return ret;
|
|
8714
8725
|
};
|
|
8715
8726
|
|
|
8716
|
-
exports.
|
|
8717
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8718
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8727
|
+
exports.__wbindgen_cast_9a974cdf9f42f656 = function(arg0, arg1) {
|
|
8728
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2080, function: Function { arguments: [Externref], shim_idx: 2091, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8729
|
+
const ret = makeMutClosure(arg0, arg1, 2080, __wbg_adapter_15);
|
|
8719
8730
|
return ret;
|
|
8720
8731
|
};
|
|
8721
8732
|
|
|
@@ -8737,9 +8748,9 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
|
8737
8748
|
return ret;
|
|
8738
8749
|
};
|
|
8739
8750
|
|
|
8740
|
-
exports.
|
|
8741
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8742
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
8751
|
+
exports.__wbindgen_cast_f02f4a8c093fe3f0 = function(arg0, arg1) {
|
|
8752
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2045, function: Function { arguments: [], shim_idx: 2046, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8753
|
+
const ret = makeMutClosure(arg0, arg1, 2045, __wbg_adapter_9);
|
|
8743
8754
|
return ret;
|
|
8744
8755
|
};
|
|
8745
8756
|
|
package/lwk_wasm_bg.wasm
CHANGED
|
Binary file
|