saito-wasm 0.2.139 → 0.2.141
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 +121 -122
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +180 -180
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +180 -180
- package/pkg/web/index.js +114 -115
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +180 -180
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-d0fe16b097e776a2 → saito-wasm-729f93774cc6093a}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-d0fe16b097e776a2 → saito-wasm-729f93774cc6093a}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
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-729f93774cc6093a/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
|
-
|
|
9
|
-
cachedTextDecoder.decode();
|
|
10
|
-
|
|
11
|
-
let cachedUint8Memory0 = null;
|
|
12
|
-
|
|
13
|
-
function getUint8Memory0() {
|
|
14
|
-
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
15
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
-
}
|
|
17
|
-
return cachedUint8Memory0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function getStringFromWasm0(ptr, len) {
|
|
21
|
-
ptr = ptr >>> 0;
|
|
22
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
7
|
const heap = new Array(128).fill(undefined);
|
|
26
8
|
|
|
27
9
|
heap.push(undefined, null, true, false);
|
|
@@ -51,6 +33,24 @@ function takeObject(idx) {
|
|
|
51
33
|
return ret;
|
|
52
34
|
}
|
|
53
35
|
|
|
36
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
|
+
|
|
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;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function getStringFromWasm0(ptr, len) {
|
|
50
|
+
ptr = ptr >>> 0;
|
|
51
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -225,31 +225,9 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
229
|
-
}
|
|
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;
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h98faef90f1d66b80(arg0, arg1, addHeapObject(arg2));
|
|
244
229
|
}
|
|
245
230
|
|
|
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
|
-
}
|
|
253
231
|
/**
|
|
254
232
|
* @param {string} config_json
|
|
255
233
|
* @param {string} private_key
|
|
@@ -539,6 +517,12 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
539
517
|
return takeObject(ret);
|
|
540
518
|
};
|
|
541
519
|
|
|
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
|
+
}
|
|
542
526
|
/**
|
|
543
527
|
* @param {WasmBalanceSnapshot} snapshot
|
|
544
528
|
* @returns {Promise<void>}
|
|
@@ -722,8 +706,23 @@ module.exports.get_congestion_stats = function() {
|
|
|
722
706
|
return takeObject(ret);
|
|
723
707
|
};
|
|
724
708
|
|
|
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
|
+
}
|
|
725
724
|
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
726
|
-
wasm.
|
|
725
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0e9b83b2cf010e75(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
727
726
|
}
|
|
728
727
|
|
|
729
728
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2626,8 +2625,8 @@ class WasmWalletSlip {
|
|
|
2626
2625
|
}
|
|
2627
2626
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2628
2627
|
|
|
2629
|
-
module.exports.
|
|
2630
|
-
const ret =
|
|
2628
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2629
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2631
2630
|
return addHeapObject(ret);
|
|
2632
2631
|
};
|
|
2633
2632
|
|
|
@@ -2635,8 +2634,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2635
2634
|
takeObject(arg0);
|
|
2636
2635
|
};
|
|
2637
2636
|
|
|
2638
|
-
module.exports.
|
|
2639
|
-
const ret =
|
|
2637
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2638
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2640
2639
|
return addHeapObject(ret);
|
|
2641
2640
|
};
|
|
2642
2641
|
|
|
@@ -2645,23 +2644,18 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2645
2644
|
return addHeapObject(ret);
|
|
2646
2645
|
};
|
|
2647
2646
|
|
|
2648
|
-
module.exports.
|
|
2649
|
-
const ret =
|
|
2650
|
-
return addHeapObject(ret);
|
|
2651
|
-
};
|
|
2652
|
-
|
|
2653
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2654
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2647
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2648
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2655
2649
|
return addHeapObject(ret);
|
|
2656
2650
|
};
|
|
2657
2651
|
|
|
2658
|
-
module.exports.
|
|
2659
|
-
const ret =
|
|
2652
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2653
|
+
const ret = getObject(arg0);
|
|
2660
2654
|
return addHeapObject(ret);
|
|
2661
2655
|
};
|
|
2662
2656
|
|
|
2663
|
-
module.exports.
|
|
2664
|
-
const ret =
|
|
2657
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2658
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2665
2659
|
return addHeapObject(ret);
|
|
2666
2660
|
};
|
|
2667
2661
|
|
|
@@ -2674,8 +2668,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2674
2668
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2675
2669
|
};
|
|
2676
2670
|
|
|
2677
|
-
module.exports.
|
|
2678
|
-
const ret =
|
|
2671
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2672
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2673
|
+
return addHeapObject(ret);
|
|
2674
|
+
};
|
|
2675
|
+
|
|
2676
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2677
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2678
|
+
return addHeapObject(ret);
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2682
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2679
2683
|
return addHeapObject(ret);
|
|
2680
2684
|
};
|
|
2681
2685
|
|
|
@@ -2684,8 +2688,8 @@ module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
|
2684
2688
|
return addHeapObject(ret);
|
|
2685
2689
|
};
|
|
2686
2690
|
|
|
2687
|
-
module.exports.
|
|
2688
|
-
const ret =
|
|
2691
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2692
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2689
2693
|
return addHeapObject(ret);
|
|
2690
2694
|
};
|
|
2691
2695
|
|
|
@@ -2694,20 +2698,46 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
|
2694
2698
|
return addHeapObject(ret);
|
|
2695
2699
|
};
|
|
2696
2700
|
|
|
2697
|
-
module.exports.
|
|
2698
|
-
const ret =
|
|
2701
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2702
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2699
2703
|
return addHeapObject(ret);
|
|
2700
2704
|
};
|
|
2701
2705
|
|
|
2702
|
-
module.exports.
|
|
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_wasmpeerservice_new = function(arg0) {
|
|
2728
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2729
|
+
return addHeapObject(ret);
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
module.exports.__wbg_sendmessage_8522b3d18a33c86b = function(arg0, arg1) {
|
|
2703
2733
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2704
2734
|
};
|
|
2705
2735
|
|
|
2706
|
-
module.exports.
|
|
2736
|
+
module.exports.__wbg_sendmessagetoall_bf60eb94f5afdaaf = function(arg0, arg1) {
|
|
2707
2737
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2708
2738
|
};
|
|
2709
2739
|
|
|
2710
|
-
module.exports.
|
|
2740
|
+
module.exports.__wbg_connecttopeer_550b89223445d381 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2711
2741
|
let deferred0_0;
|
|
2712
2742
|
let deferred0_1;
|
|
2713
2743
|
try {
|
|
@@ -2720,12 +2750,12 @@ module.exports.__wbg_connecttopeer_752fddbaac70c15c = function() { return handle
|
|
|
2720
2750
|
}
|
|
2721
2751
|
}, arguments) };
|
|
2722
2752
|
|
|
2723
|
-
module.exports.
|
|
2753
|
+
module.exports.__wbg_disconnectfrompeer_2e1efacae4da58ba = function() { return handleError(function (arg0) {
|
|
2724
2754
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2725
2755
|
return addHeapObject(ret);
|
|
2726
2756
|
}, arguments) };
|
|
2727
2757
|
|
|
2728
|
-
module.exports.
|
|
2758
|
+
module.exports.__wbg_fetchblockfrompeer_73a428920ce517ff = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2729
2759
|
let deferred0_0;
|
|
2730
2760
|
let deferred0_1;
|
|
2731
2761
|
try {
|
|
@@ -2738,7 +2768,7 @@ module.exports.__wbg_fetchblockfrompeer_e9cbdc12f921efdf = function() { return h
|
|
|
2738
2768
|
}
|
|
2739
2769
|
}, arguments) };
|
|
2740
2770
|
|
|
2741
|
-
module.exports.
|
|
2771
|
+
module.exports.__wbg_writevalue_e6039c7a4d39894f = function(arg0, arg1, arg2) {
|
|
2742
2772
|
let deferred0_0;
|
|
2743
2773
|
let deferred0_1;
|
|
2744
2774
|
try {
|
|
@@ -2750,7 +2780,7 @@ module.exports.__wbg_writevalue_3924be56d8bd7b74 = function(arg0, arg1, arg2) {
|
|
|
2750
2780
|
}
|
|
2751
2781
|
};
|
|
2752
2782
|
|
|
2753
|
-
module.exports.
|
|
2783
|
+
module.exports.__wbg_appendvalue_76f3caf4d501d84e = function(arg0, arg1, arg2) {
|
|
2754
2784
|
let deferred0_0;
|
|
2755
2785
|
let deferred0_1;
|
|
2756
2786
|
try {
|
|
@@ -2762,7 +2792,7 @@ module.exports.__wbg_appendvalue_cae400b7a68a6311 = function(arg0, arg1, arg2) {
|
|
|
2762
2792
|
}
|
|
2763
2793
|
};
|
|
2764
2794
|
|
|
2765
|
-
module.exports.
|
|
2795
|
+
module.exports.__wbg_flushdata_b39646a17f541430 = function(arg0, arg1) {
|
|
2766
2796
|
let deferred0_0;
|
|
2767
2797
|
let deferred0_1;
|
|
2768
2798
|
try {
|
|
@@ -2774,7 +2804,7 @@ module.exports.__wbg_flushdata_05197ef9357fe97c = function(arg0, arg1) {
|
|
|
2774
2804
|
}
|
|
2775
2805
|
};
|
|
2776
2806
|
|
|
2777
|
-
module.exports.
|
|
2807
|
+
module.exports.__wbg_readvalue_0e664c2130fe5656 = function() { return handleError(function (arg0, arg1) {
|
|
2778
2808
|
let deferred0_0;
|
|
2779
2809
|
let deferred0_1;
|
|
2780
2810
|
try {
|
|
@@ -2787,12 +2817,12 @@ module.exports.__wbg_readvalue_20f044753c2dca92 = function() { return handleErro
|
|
|
2787
2817
|
}
|
|
2788
2818
|
}, arguments) };
|
|
2789
2819
|
|
|
2790
|
-
module.exports.
|
|
2820
|
+
module.exports.__wbg_loadblockfilelist_1628347391d5464a = function() { return handleError(function () {
|
|
2791
2821
|
const ret = MsgHandler.load_block_file_list();
|
|
2792
2822
|
return addHeapObject(ret);
|
|
2793
2823
|
}, arguments) };
|
|
2794
2824
|
|
|
2795
|
-
module.exports.
|
|
2825
|
+
module.exports.__wbg_isexistingfile_7c9d19cdd932ff17 = function() { return handleError(function (arg0, arg1) {
|
|
2796
2826
|
let deferred0_0;
|
|
2797
2827
|
let deferred0_1;
|
|
2798
2828
|
try {
|
|
@@ -2805,7 +2835,7 @@ module.exports.__wbg_isexistingfile_7788faa9a3b7cd22 = function() { return handl
|
|
|
2805
2835
|
}
|
|
2806
2836
|
}, arguments) };
|
|
2807
2837
|
|
|
2808
|
-
module.exports.
|
|
2838
|
+
module.exports.__wbg_removevalue_9796cc8cd9f6d12b = function() { return handleError(function (arg0, arg1) {
|
|
2809
2839
|
let deferred0_0;
|
|
2810
2840
|
let deferred0_1;
|
|
2811
2841
|
try {
|
|
@@ -2818,7 +2848,7 @@ module.exports.__wbg_removevalue_955c31895ff8af10 = function() { return handleEr
|
|
|
2818
2848
|
}
|
|
2819
2849
|
}, arguments) };
|
|
2820
2850
|
|
|
2821
|
-
module.exports.
|
|
2851
|
+
module.exports.__wbg_ensureblockdirectoryexists_981694a8ef99cc25 = function() { return handleError(function (arg0, arg1) {
|
|
2822
2852
|
let deferred0_0;
|
|
2823
2853
|
let deferred0_1;
|
|
2824
2854
|
try {
|
|
@@ -2830,19 +2860,19 @@ module.exports.__wbg_ensureblockdirectoryexists_c568d8f236ca2d2c = function() {
|
|
|
2830
2860
|
}
|
|
2831
2861
|
}, arguments) };
|
|
2832
2862
|
|
|
2833
|
-
module.exports.
|
|
2863
|
+
module.exports.__wbg_processapicall_955f07d39fa6e409 = function(arg0, arg1, arg2) {
|
|
2834
2864
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2835
2865
|
};
|
|
2836
2866
|
|
|
2837
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_processapisuccess_91a23626855aaa1e = function(arg0, arg1, arg2) {
|
|
2838
2868
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2839
2869
|
};
|
|
2840
2870
|
|
|
2841
|
-
module.exports.
|
|
2871
|
+
module.exports.__wbg_processapierror_d8464beda520b7b5 = function(arg0, arg1, arg2) {
|
|
2842
2872
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2843
2873
|
};
|
|
2844
2874
|
|
|
2845
|
-
module.exports.
|
|
2875
|
+
module.exports.__wbg_sendinterfaceevent_456153f7452c5644 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2846
2876
|
let deferred0_0;
|
|
2847
2877
|
let deferred0_1;
|
|
2848
2878
|
let deferred1_0;
|
|
@@ -2859,7 +2889,7 @@ module.exports.__wbg_sendinterfaceevent_9d0ac77e8fb795b0 = function(arg0, arg1,
|
|
|
2859
2889
|
}
|
|
2860
2890
|
};
|
|
2861
2891
|
|
|
2862
|
-
module.exports.
|
|
2892
|
+
module.exports.__wbg_sendblocksuccess_b72b04273119a3a9 = function(arg0, arg1, arg2) {
|
|
2863
2893
|
let deferred0_0;
|
|
2864
2894
|
let deferred0_1;
|
|
2865
2895
|
try {
|
|
@@ -2871,11 +2901,11 @@ module.exports.__wbg_sendblocksuccess_bf19311f27710369 = function(arg0, arg1, ar
|
|
|
2871
2901
|
}
|
|
2872
2902
|
};
|
|
2873
2903
|
|
|
2874
|
-
module.exports.
|
|
2904
|
+
module.exports.__wbg_sendwalletupdate_152b5e842033cef2 = function() {
|
|
2875
2905
|
MsgHandler.send_wallet_update();
|
|
2876
2906
|
};
|
|
2877
2907
|
|
|
2878
|
-
module.exports.
|
|
2908
|
+
module.exports.__wbg_sendnewversionalert_e33873ae48ea54ea = function(arg0, arg1, arg2) {
|
|
2879
2909
|
let deferred0_0;
|
|
2880
2910
|
let deferred0_1;
|
|
2881
2911
|
try {
|
|
@@ -2887,60 +2917,29 @@ module.exports.__wbg_sendnewversionalert_5e4224c7538efb90 = function(arg0, arg1,
|
|
|
2887
2917
|
}
|
|
2888
2918
|
};
|
|
2889
2919
|
|
|
2890
|
-
module.exports.
|
|
2920
|
+
module.exports.__wbg_sendblockfetchstatusevent_27fc21da1861fd33 = function(arg0) {
|
|
2891
2921
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2892
2922
|
};
|
|
2893
2923
|
|
|
2894
|
-
module.exports.
|
|
2924
|
+
module.exports.__wbg_sendnewchaindetectedevent_b08f1f594989796b = function() {
|
|
2895
2925
|
MsgHandler.send_new_chain_detected_event();
|
|
2896
2926
|
};
|
|
2897
2927
|
|
|
2898
|
-
module.exports.
|
|
2928
|
+
module.exports.__wbg_savewallet_c36dee2eebdd5bbc = function() {
|
|
2899
2929
|
MsgHandler.save_wallet();
|
|
2900
2930
|
};
|
|
2901
2931
|
|
|
2902
|
-
module.exports.
|
|
2932
|
+
module.exports.__wbg_loadwallet_25b3b83ec3cc9445 = function() {
|
|
2903
2933
|
MsgHandler.load_wallet();
|
|
2904
2934
|
};
|
|
2905
2935
|
|
|
2906
|
-
module.exports.
|
|
2936
|
+
module.exports.__wbg_getmyservices_c99bb8c4467e529b = function() {
|
|
2907
2937
|
const ret = MsgHandler.get_my_services();
|
|
2908
2938
|
_assertClass(ret, WasmPeerServiceList);
|
|
2909
2939
|
var ptr1 = ret.__destroy_into_raw();
|
|
2910
2940
|
return ptr1;
|
|
2911
2941
|
};
|
|
2912
2942
|
|
|
2913
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2914
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2915
|
-
return addHeapObject(ret);
|
|
2916
|
-
};
|
|
2917
|
-
|
|
2918
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2919
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2920
|
-
return addHeapObject(ret);
|
|
2921
|
-
};
|
|
2922
|
-
|
|
2923
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2924
|
-
const ret = WasmHop.__wrap(arg0);
|
|
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
|
-
|
|
2944
2943
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2945
2944
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2946
2945
|
return ret;
|
|
@@ -3317,8 +3316,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3317
3316
|
return addHeapObject(ret);
|
|
3318
3317
|
};
|
|
3319
3318
|
|
|
3320
|
-
module.exports.
|
|
3321
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3319
|
+
module.exports.__wbindgen_closure_wrapper1553 = function(arg0, arg1, arg2) {
|
|
3320
|
+
const ret = makeMutClosure(arg0, arg1, 551, __wbg_adapter_38);
|
|
3322
3321
|
return addHeapObject(ret);
|
|
3323
3322
|
};
|
|
3324
3323
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|