saito-wasm 0.2.144 → 0.2.146
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/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.js +127 -126
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +147 -147
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +147 -147
- package/pkg/web/index.js +118 -117
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +147 -147
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-98c5e3f6adc446dc → saito-wasm-9c5952456055ae1b}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-98c5e3f6adc446dc → saito-wasm-9c5952456055ae1b}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9c5952456055ae1b/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
15
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
-
}
|
|
17
|
-
return cachedUint8Memory0;
|
|
18
|
-
}
|
|
13
|
+
let heap_next = heap.length;
|
|
19
14
|
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function dropObject(idx) {
|
|
16
|
+
if (idx < 132) return;
|
|
17
|
+
heap[idx] = heap_next;
|
|
18
|
+
heap_next = idx;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
function takeObject(idx) {
|
|
22
|
+
const ret = getObject(idx);
|
|
23
|
+
dropObject(idx);
|
|
24
|
+
return ret;
|
|
25
|
+
}
|
|
30
26
|
|
|
31
27
|
function addHeapObject(obj) {
|
|
32
28
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -37,18 +33,22 @@ function addHeapObject(obj) {
|
|
|
37
33
|
return idx;
|
|
38
34
|
}
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
41
37
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
cachedTextDecoder.decode();
|
|
39
|
+
|
|
40
|
+
let cachedUint8Memory0 = null;
|
|
41
|
+
|
|
42
|
+
function getUint8Memory0() {
|
|
43
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
44
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
45
|
+
}
|
|
46
|
+
return cachedUint8Memory0;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return ret;
|
|
49
|
+
function getStringFromWasm0(ptr, len) {
|
|
50
|
+
ptr = ptr >>> 0;
|
|
51
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -228,6 +228,28 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
|
228
228
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h98faef90f1d66b80(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
function handleError(f, args) {
|
|
232
|
+
try {
|
|
233
|
+
return f.apply(this, args);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function _assertClass(instance, klass) {
|
|
240
|
+
if (!(instance instanceof klass)) {
|
|
241
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
242
|
+
}
|
|
243
|
+
return instance.ptr;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
let stack_pointer = 128;
|
|
247
|
+
|
|
248
|
+
function addBorrowedObject(obj) {
|
|
249
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
250
|
+
heap[--stack_pointer] = obj;
|
|
251
|
+
return stack_pointer;
|
|
252
|
+
}
|
|
231
253
|
/**
|
|
232
254
|
* @param {string} config_json
|
|
233
255
|
* @param {string} private_key
|
|
@@ -517,12 +539,6 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
517
539
|
return takeObject(ret);
|
|
518
540
|
};
|
|
519
541
|
|
|
520
|
-
function _assertClass(instance, klass) {
|
|
521
|
-
if (!(instance instanceof klass)) {
|
|
522
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
523
|
-
}
|
|
524
|
-
return instance.ptr;
|
|
525
|
-
}
|
|
526
542
|
/**
|
|
527
543
|
* @param {WasmBalanceSnapshot} snapshot
|
|
528
544
|
* @returns {Promise<void>}
|
|
@@ -706,21 +722,6 @@ module.exports.get_congestion_stats = function() {
|
|
|
706
722
|
return takeObject(ret);
|
|
707
723
|
};
|
|
708
724
|
|
|
709
|
-
function handleError(f, args) {
|
|
710
|
-
try {
|
|
711
|
-
return f.apply(this, args);
|
|
712
|
-
} catch (e) {
|
|
713
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
let stack_pointer = 128;
|
|
718
|
-
|
|
719
|
-
function addBorrowedObject(obj) {
|
|
720
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
721
|
-
heap[--stack_pointer] = obj;
|
|
722
|
-
return stack_pointer;
|
|
723
|
-
}
|
|
724
725
|
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
725
726
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0e9b83b2cf010e75(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
726
727
|
}
|
|
@@ -2625,13 +2626,18 @@ class WasmWalletSlip {
|
|
|
2625
2626
|
}
|
|
2626
2627
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2627
2628
|
|
|
2628
|
-
module.exports.
|
|
2629
|
-
|
|
2629
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2630
|
+
takeObject(arg0);
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2634
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2630
2635
|
return addHeapObject(ret);
|
|
2631
2636
|
};
|
|
2632
2637
|
|
|
2633
|
-
module.exports.
|
|
2634
|
-
|
|
2638
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2639
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2640
|
+
return addHeapObject(ret);
|
|
2635
2641
|
};
|
|
2636
2642
|
|
|
2637
2643
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
@@ -2639,18 +2645,28 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2639
2645
|
return addHeapObject(ret);
|
|
2640
2646
|
};
|
|
2641
2647
|
|
|
2648
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2649
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2650
|
+
return addHeapObject(ret);
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2653
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2654
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2655
|
+
return addHeapObject(ret);
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2642
2658
|
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2643
2659
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2644
2660
|
return addHeapObject(ret);
|
|
2645
2661
|
};
|
|
2646
2662
|
|
|
2647
|
-
module.exports.
|
|
2648
|
-
const ret =
|
|
2663
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2664
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2649
2665
|
return addHeapObject(ret);
|
|
2650
2666
|
};
|
|
2651
2667
|
|
|
2652
|
-
module.exports.
|
|
2653
|
-
const ret =
|
|
2668
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2669
|
+
const ret = getObject(arg0);
|
|
2654
2670
|
return addHeapObject(ret);
|
|
2655
2671
|
};
|
|
2656
2672
|
|
|
@@ -2659,8 +2675,8 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2659
2675
|
return addHeapObject(ret);
|
|
2660
2676
|
};
|
|
2661
2677
|
|
|
2662
|
-
module.exports.
|
|
2663
|
-
const ret =
|
|
2678
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2679
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2664
2680
|
return addHeapObject(ret);
|
|
2665
2681
|
};
|
|
2666
2682
|
|
|
@@ -2673,16 +2689,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2673
2689
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2674
2690
|
};
|
|
2675
2691
|
|
|
2676
|
-
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2677
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2678
|
-
return addHeapObject(ret);
|
|
2679
|
-
};
|
|
2680
|
-
|
|
2681
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2682
|
-
const ret = getObject(arg0);
|
|
2683
|
-
return addHeapObject(ret);
|
|
2684
|
-
};
|
|
2685
|
-
|
|
2686
2692
|
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2687
2693
|
const ret = WasmWallet.__wrap(arg0);
|
|
2688
2694
|
return addHeapObject(ret);
|
|
@@ -2693,46 +2699,15 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2693
2699
|
return addHeapObject(ret);
|
|
2694
2700
|
};
|
|
2695
2701
|
|
|
2696
|
-
module.exports.
|
|
2697
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2698
|
-
return addHeapObject(ret);
|
|
2699
|
-
};
|
|
2700
|
-
|
|
2701
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2702
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2703
|
-
return addHeapObject(ret);
|
|
2704
|
-
};
|
|
2705
|
-
|
|
2706
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2707
|
-
const val = getObject(arg0);
|
|
2708
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2709
|
-
return ret;
|
|
2710
|
-
};
|
|
2711
|
-
|
|
2712
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2713
|
-
const ret = getObject(arg0) === undefined;
|
|
2714
|
-
return ret;
|
|
2715
|
-
};
|
|
2716
|
-
|
|
2717
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2718
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2719
|
-
return ret;
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2723
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2724
|
-
return addHeapObject(ret);
|
|
2725
|
-
};
|
|
2726
|
-
|
|
2727
|
-
module.exports.__wbg_sendmessage_937058085ce0dd2c = function(arg0, arg1) {
|
|
2702
|
+
module.exports.__wbg_sendmessage_d00656f38631ae68 = function(arg0, arg1) {
|
|
2728
2703
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2729
2704
|
};
|
|
2730
2705
|
|
|
2731
|
-
module.exports.
|
|
2706
|
+
module.exports.__wbg_sendmessagetoall_e6728da594fd8dbf = function(arg0, arg1) {
|
|
2732
2707
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2733
2708
|
};
|
|
2734
2709
|
|
|
2735
|
-
module.exports.
|
|
2710
|
+
module.exports.__wbg_connecttopeer_8d4697224ba9b173 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2736
2711
|
let deferred0_0;
|
|
2737
2712
|
let deferred0_1;
|
|
2738
2713
|
try {
|
|
@@ -2745,12 +2720,12 @@ module.exports.__wbg_connecttopeer_1b11c5fb783f743d = function() { return handle
|
|
|
2745
2720
|
}
|
|
2746
2721
|
}, arguments) };
|
|
2747
2722
|
|
|
2748
|
-
module.exports.
|
|
2723
|
+
module.exports.__wbg_disconnectfrompeer_5de1d8fd12717a08 = function() { return handleError(function (arg0) {
|
|
2749
2724
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2750
2725
|
return addHeapObject(ret);
|
|
2751
2726
|
}, arguments) };
|
|
2752
2727
|
|
|
2753
|
-
module.exports.
|
|
2728
|
+
module.exports.__wbg_fetchblockfrompeer_97d8ddae14146191 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2754
2729
|
let deferred0_0;
|
|
2755
2730
|
let deferred0_1;
|
|
2756
2731
|
try {
|
|
@@ -2763,7 +2738,7 @@ module.exports.__wbg_fetchblockfrompeer_740ab6fd9648ca9b = function() { return h
|
|
|
2763
2738
|
}
|
|
2764
2739
|
}, arguments) };
|
|
2765
2740
|
|
|
2766
|
-
module.exports.
|
|
2741
|
+
module.exports.__wbg_writevalue_0828f36fb446eda4 = function(arg0, arg1, arg2) {
|
|
2767
2742
|
let deferred0_0;
|
|
2768
2743
|
let deferred0_1;
|
|
2769
2744
|
try {
|
|
@@ -2775,7 +2750,7 @@ module.exports.__wbg_writevalue_d0ba3defa73f8327 = function(arg0, arg1, arg2) {
|
|
|
2775
2750
|
}
|
|
2776
2751
|
};
|
|
2777
2752
|
|
|
2778
|
-
module.exports.
|
|
2753
|
+
module.exports.__wbg_appendvalue_ff24385b95289abc = function(arg0, arg1, arg2) {
|
|
2779
2754
|
let deferred0_0;
|
|
2780
2755
|
let deferred0_1;
|
|
2781
2756
|
try {
|
|
@@ -2787,7 +2762,7 @@ module.exports.__wbg_appendvalue_f627772b317f98b7 = function(arg0, arg1, arg2) {
|
|
|
2787
2762
|
}
|
|
2788
2763
|
};
|
|
2789
2764
|
|
|
2790
|
-
module.exports.
|
|
2765
|
+
module.exports.__wbg_flushdata_03207ddd8658d5d9 = function(arg0, arg1) {
|
|
2791
2766
|
let deferred0_0;
|
|
2792
2767
|
let deferred0_1;
|
|
2793
2768
|
try {
|
|
@@ -2799,7 +2774,7 @@ module.exports.__wbg_flushdata_60819ec9ed4c08b1 = function(arg0, arg1) {
|
|
|
2799
2774
|
}
|
|
2800
2775
|
};
|
|
2801
2776
|
|
|
2802
|
-
module.exports.
|
|
2777
|
+
module.exports.__wbg_readvalue_0a153f9c5e0d39d3 = function() { return handleError(function (arg0, arg1) {
|
|
2803
2778
|
let deferred0_0;
|
|
2804
2779
|
let deferred0_1;
|
|
2805
2780
|
try {
|
|
@@ -2812,12 +2787,12 @@ module.exports.__wbg_readvalue_d81f7a8145fd1bee = function() { return handleErro
|
|
|
2812
2787
|
}
|
|
2813
2788
|
}, arguments) };
|
|
2814
2789
|
|
|
2815
|
-
module.exports.
|
|
2790
|
+
module.exports.__wbg_loadblockfilelist_9ffbbff6c1e33773 = function() { return handleError(function () {
|
|
2816
2791
|
const ret = MsgHandler.load_block_file_list();
|
|
2817
2792
|
return addHeapObject(ret);
|
|
2818
2793
|
}, arguments) };
|
|
2819
2794
|
|
|
2820
|
-
module.exports.
|
|
2795
|
+
module.exports.__wbg_isexistingfile_05d5fab4ad51c075 = function() { return handleError(function (arg0, arg1) {
|
|
2821
2796
|
let deferred0_0;
|
|
2822
2797
|
let deferred0_1;
|
|
2823
2798
|
try {
|
|
@@ -2830,7 +2805,7 @@ module.exports.__wbg_isexistingfile_46a5b378623080b1 = function() { return handl
|
|
|
2830
2805
|
}
|
|
2831
2806
|
}, arguments) };
|
|
2832
2807
|
|
|
2833
|
-
module.exports.
|
|
2808
|
+
module.exports.__wbg_removevalue_9985d8c1c7b2f967 = function() { return handleError(function (arg0, arg1) {
|
|
2834
2809
|
let deferred0_0;
|
|
2835
2810
|
let deferred0_1;
|
|
2836
2811
|
try {
|
|
@@ -2843,7 +2818,7 @@ module.exports.__wbg_removevalue_7e7702fc6a353e01 = function() { return handleEr
|
|
|
2843
2818
|
}
|
|
2844
2819
|
}, arguments) };
|
|
2845
2820
|
|
|
2846
|
-
module.exports.
|
|
2821
|
+
module.exports.__wbg_ensureblockdirectoryexists_cec285b659a1e390 = function() { return handleError(function (arg0, arg1) {
|
|
2847
2822
|
let deferred0_0;
|
|
2848
2823
|
let deferred0_1;
|
|
2849
2824
|
try {
|
|
@@ -2855,19 +2830,19 @@ module.exports.__wbg_ensureblockdirectoryexists_778dfaf6b01785f3 = function() {
|
|
|
2855
2830
|
}
|
|
2856
2831
|
}, arguments) };
|
|
2857
2832
|
|
|
2858
|
-
module.exports.
|
|
2833
|
+
module.exports.__wbg_processapicall_99b6e305077666bd = function(arg0, arg1, arg2) {
|
|
2859
2834
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2860
2835
|
};
|
|
2861
2836
|
|
|
2862
|
-
module.exports.
|
|
2837
|
+
module.exports.__wbg_processapisuccess_7ef2cbecf47d4919 = function(arg0, arg1, arg2) {
|
|
2863
2838
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2864
2839
|
};
|
|
2865
2840
|
|
|
2866
|
-
module.exports.
|
|
2841
|
+
module.exports.__wbg_processapierror_035f54808d3afe74 = function(arg0, arg1, arg2) {
|
|
2867
2842
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2868
2843
|
};
|
|
2869
2844
|
|
|
2870
|
-
module.exports.
|
|
2845
|
+
module.exports.__wbg_sendinterfaceevent_48d80dad10b68e46 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2871
2846
|
let deferred0_0;
|
|
2872
2847
|
let deferred0_1;
|
|
2873
2848
|
let deferred1_0;
|
|
@@ -2884,7 +2859,7 @@ module.exports.__wbg_sendinterfaceevent_973ac933242d19f1 = function(arg0, arg1,
|
|
|
2884
2859
|
}
|
|
2885
2860
|
};
|
|
2886
2861
|
|
|
2887
|
-
module.exports.
|
|
2862
|
+
module.exports.__wbg_sendblocksuccess_fb8cec8da214e4de = function(arg0, arg1, arg2) {
|
|
2888
2863
|
let deferred0_0;
|
|
2889
2864
|
let deferred0_1;
|
|
2890
2865
|
try {
|
|
@@ -2896,11 +2871,11 @@ module.exports.__wbg_sendblocksuccess_580996dd750763c8 = function(arg0, arg1, ar
|
|
|
2896
2871
|
}
|
|
2897
2872
|
};
|
|
2898
2873
|
|
|
2899
|
-
module.exports.
|
|
2874
|
+
module.exports.__wbg_sendwalletupdate_7c88be600ba8b4ef = function() {
|
|
2900
2875
|
MsgHandler.send_wallet_update();
|
|
2901
2876
|
};
|
|
2902
2877
|
|
|
2903
|
-
module.exports.
|
|
2878
|
+
module.exports.__wbg_sendnewversionalert_a52c4edacd19bc79 = function(arg0, arg1, arg2) {
|
|
2904
2879
|
let deferred0_0;
|
|
2905
2880
|
let deferred0_1;
|
|
2906
2881
|
try {
|
|
@@ -2912,34 +2887,60 @@ module.exports.__wbg_sendnewversionalert_30daccc2d21dc8cd = function(arg0, arg1,
|
|
|
2912
2887
|
}
|
|
2913
2888
|
};
|
|
2914
2889
|
|
|
2915
|
-
module.exports.
|
|
2890
|
+
module.exports.__wbg_sendblockfetchstatusevent_f86d564c1a898c00 = function(arg0) {
|
|
2916
2891
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2917
2892
|
};
|
|
2918
2893
|
|
|
2919
|
-
module.exports.
|
|
2894
|
+
module.exports.__wbg_sendnewchaindetectedevent_f1d0477bc67084c7 = function() {
|
|
2920
2895
|
MsgHandler.send_new_chain_detected_event();
|
|
2921
2896
|
};
|
|
2922
2897
|
|
|
2923
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_savewallet_7458d0058b96dbe6 = function() {
|
|
2924
2899
|
MsgHandler.save_wallet();
|
|
2925
2900
|
};
|
|
2926
2901
|
|
|
2927
|
-
module.exports.
|
|
2902
|
+
module.exports.__wbg_loadwallet_1db9babd4037f22c = function() {
|
|
2928
2903
|
MsgHandler.load_wallet();
|
|
2929
2904
|
};
|
|
2930
2905
|
|
|
2931
|
-
module.exports.
|
|
2906
|
+
module.exports.__wbg_getmyservices_b4cd51e728baedfe = function() {
|
|
2932
2907
|
const ret = MsgHandler.get_my_services();
|
|
2933
2908
|
_assertClass(ret, WasmPeerServiceList);
|
|
2934
2909
|
var ptr1 = ret.__destroy_into_raw();
|
|
2935
2910
|
return ptr1;
|
|
2936
2911
|
};
|
|
2937
2912
|
|
|
2913
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2914
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2915
|
+
return addHeapObject(ret);
|
|
2916
|
+
};
|
|
2917
|
+
|
|
2938
2918
|
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2939
2919
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2940
2920
|
return addHeapObject(ret);
|
|
2941
2921
|
};
|
|
2942
2922
|
|
|
2923
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2924
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2925
|
+
return addHeapObject(ret);
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2929
|
+
const val = getObject(arg0);
|
|
2930
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2931
|
+
return ret;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2935
|
+
const ret = getObject(arg0) === undefined;
|
|
2936
|
+
return ret;
|
|
2937
|
+
};
|
|
2938
|
+
|
|
2939
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2940
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2941
|
+
return ret;
|
|
2942
|
+
};
|
|
2943
|
+
|
|
2943
2944
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2944
2945
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2945
2946
|
return ret;
|
|
@@ -3316,8 +3317,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3316
3317
|
return addHeapObject(ret);
|
|
3317
3318
|
};
|
|
3318
3319
|
|
|
3319
|
-
module.exports.
|
|
3320
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3320
|
+
module.exports.__wbindgen_closure_wrapper1559 = function(arg0, arg1, arg2) {
|
|
3321
|
+
const ret = makeMutClosure(arg0, arg1, 555, __wbg_adapter_38);
|
|
3321
3322
|
return addHeapObject(ret);
|
|
3322
3323
|
};
|
|
3323
3324
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|