saito-wasm 0.2.119 → 0.2.121
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 +120 -115
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +167 -167
- package/pkg/node/package.json +3 -3
- package/pkg/node/snippets/{saito-wasm-2b21003b58ec6897 → saito-wasm-5584c7cdedcba091}/js/msg_handler.js +3 -0
- package/pkg/web/index.d.ts +167 -167
- package/pkg/web/index.js +114 -110
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +167 -167
- package/pkg/web/package.json +1 -1
- package/pkg/web/snippets/{saito-wasm-2b21003b58ec6897 → saito-wasm-5584c7cdedcba091}/js/msg_handler.js +3 -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-5584c7cdedcba091/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');
|
|
@@ -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__h5b81f38714849c11(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
|
|
@@ -519,12 +541,6 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
519
541
|
return takeObject(ret);
|
|
520
542
|
};
|
|
521
543
|
|
|
522
|
-
function _assertClass(instance, klass) {
|
|
523
|
-
if (!(instance instanceof klass)) {
|
|
524
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
525
|
-
}
|
|
526
|
-
return instance.ptr;
|
|
527
|
-
}
|
|
528
544
|
/**
|
|
529
545
|
* @param {WasmBalanceSnapshot} snapshot
|
|
530
546
|
* @returns {Promise<void>}
|
|
@@ -708,22 +724,7 @@ module.exports.get_congestion_stats = function() {
|
|
|
708
724
|
return takeObject(ret);
|
|
709
725
|
};
|
|
710
726
|
|
|
711
|
-
function
|
|
712
|
-
try {
|
|
713
|
-
return f.apply(this, args);
|
|
714
|
-
} catch (e) {
|
|
715
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
let stack_pointer = 128;
|
|
720
|
-
|
|
721
|
-
function addBorrowedObject(obj) {
|
|
722
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
723
|
-
heap[--stack_pointer] = obj;
|
|
724
|
-
return stack_pointer;
|
|
725
|
-
}
|
|
726
|
-
function __wbg_adapter_424(arg0, arg1, arg2, arg3) {
|
|
727
|
+
function __wbg_adapter_426(arg0, arg1, arg2, arg3) {
|
|
727
728
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h181ffbb7749dfc48(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
728
729
|
}
|
|
729
730
|
|
|
@@ -2603,8 +2604,8 @@ class WasmWalletSlip {
|
|
|
2603
2604
|
}
|
|
2604
2605
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2605
2606
|
|
|
2606
|
-
module.exports.
|
|
2607
|
-
const ret =
|
|
2607
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2608
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2608
2609
|
return addHeapObject(ret);
|
|
2609
2610
|
};
|
|
2610
2611
|
|
|
@@ -2612,29 +2613,28 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2612
2613
|
takeObject(arg0);
|
|
2613
2614
|
};
|
|
2614
2615
|
|
|
2615
|
-
module.exports.
|
|
2616
|
-
const ret =
|
|
2617
|
-
return addHeapObject(ret);
|
|
2618
|
-
};
|
|
2619
|
-
|
|
2620
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2621
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2616
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2617
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2622
2618
|
return addHeapObject(ret);
|
|
2623
2619
|
};
|
|
2624
2620
|
|
|
2625
|
-
module.exports.
|
|
2626
|
-
const ret =
|
|
2621
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2622
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2627
2623
|
return addHeapObject(ret);
|
|
2628
2624
|
};
|
|
2629
2625
|
|
|
2630
|
-
module.exports.
|
|
2631
|
-
const ret =
|
|
2626
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2627
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2632
2628
|
return addHeapObject(ret);
|
|
2633
2629
|
};
|
|
2634
2630
|
|
|
2635
|
-
module.exports.
|
|
2636
|
-
const
|
|
2637
|
-
|
|
2631
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2632
|
+
const obj = getObject(arg1);
|
|
2633
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2634
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2635
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2636
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2637
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2638
2638
|
};
|
|
2639
2639
|
|
|
2640
2640
|
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
@@ -2652,60 +2652,35 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2652
2652
|
return addHeapObject(ret);
|
|
2653
2653
|
};
|
|
2654
2654
|
|
|
2655
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2656
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2657
|
-
return addHeapObject(ret);
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2661
|
-
const obj = getObject(arg1);
|
|
2662
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2663
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2664
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2665
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2666
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2667
|
-
};
|
|
2668
|
-
|
|
2669
2655
|
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2670
2656
|
const ret = WasmBlock.__wrap(arg0);
|
|
2671
2657
|
return addHeapObject(ret);
|
|
2672
2658
|
};
|
|
2673
2659
|
|
|
2674
|
-
module.exports.
|
|
2675
|
-
const
|
|
2676
|
-
|
|
2677
|
-
return ret;
|
|
2678
|
-
};
|
|
2679
|
-
|
|
2680
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2681
|
-
const ret = getObject(arg0) === undefined;
|
|
2682
|
-
return ret;
|
|
2683
|
-
};
|
|
2684
|
-
|
|
2685
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2686
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2687
|
-
return ret;
|
|
2660
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2661
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2662
|
+
return addHeapObject(ret);
|
|
2688
2663
|
};
|
|
2689
2664
|
|
|
2690
|
-
module.exports.
|
|
2691
|
-
const ret =
|
|
2665
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2666
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2692
2667
|
return addHeapObject(ret);
|
|
2693
2668
|
};
|
|
2694
2669
|
|
|
2695
|
-
module.exports.
|
|
2696
|
-
const ret =
|
|
2670
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2671
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2697
2672
|
return addHeapObject(ret);
|
|
2698
2673
|
};
|
|
2699
2674
|
|
|
2700
|
-
module.exports.
|
|
2675
|
+
module.exports.__wbg_sendmessage_8fa3c5ee97e8cb01 = function(arg0, arg1) {
|
|
2701
2676
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2702
2677
|
};
|
|
2703
2678
|
|
|
2704
|
-
module.exports.
|
|
2679
|
+
module.exports.__wbg_sendmessagetoall_7416dffb9706a9db = function(arg0, arg1) {
|
|
2705
2680
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2706
2681
|
};
|
|
2707
2682
|
|
|
2708
|
-
module.exports.
|
|
2683
|
+
module.exports.__wbg_connecttopeer_b61998bd9d72d0f0 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2709
2684
|
let deferred0_0;
|
|
2710
2685
|
let deferred0_1;
|
|
2711
2686
|
try {
|
|
@@ -2718,12 +2693,12 @@ module.exports.__wbg_connecttopeer_687358177632d3e7 = function() { return handle
|
|
|
2718
2693
|
}
|
|
2719
2694
|
}, arguments) };
|
|
2720
2695
|
|
|
2721
|
-
module.exports.
|
|
2696
|
+
module.exports.__wbg_disconnectfrompeer_e830ac505cc7358e = function() { return handleError(function (arg0) {
|
|
2722
2697
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2723
2698
|
return addHeapObject(ret);
|
|
2724
2699
|
}, arguments) };
|
|
2725
2700
|
|
|
2726
|
-
module.exports.
|
|
2701
|
+
module.exports.__wbg_fetchblockfrompeer_c18789dd3a94fd4a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2727
2702
|
let deferred0_0;
|
|
2728
2703
|
let deferred0_1;
|
|
2729
2704
|
try {
|
|
@@ -2736,7 +2711,7 @@ module.exports.__wbg_fetchblockfrompeer_be8a7fda67315d94 = function() { return h
|
|
|
2736
2711
|
}
|
|
2737
2712
|
}, arguments) };
|
|
2738
2713
|
|
|
2739
|
-
module.exports.
|
|
2714
|
+
module.exports.__wbg_writevalue_6a73aa192df7ed07 = function(arg0, arg1, arg2) {
|
|
2740
2715
|
let deferred0_0;
|
|
2741
2716
|
let deferred0_1;
|
|
2742
2717
|
try {
|
|
@@ -2748,7 +2723,7 @@ module.exports.__wbg_writevalue_21f2da03b09a9229 = function(arg0, arg1, arg2) {
|
|
|
2748
2723
|
}
|
|
2749
2724
|
};
|
|
2750
2725
|
|
|
2751
|
-
module.exports.
|
|
2726
|
+
module.exports.__wbg_appendvalue_ddd69643e9aef080 = function(arg0, arg1, arg2) {
|
|
2752
2727
|
let deferred0_0;
|
|
2753
2728
|
let deferred0_1;
|
|
2754
2729
|
try {
|
|
@@ -2760,7 +2735,7 @@ module.exports.__wbg_appendvalue_fa848aa748c16658 = function(arg0, arg1, arg2) {
|
|
|
2760
2735
|
}
|
|
2761
2736
|
};
|
|
2762
2737
|
|
|
2763
|
-
module.exports.
|
|
2738
|
+
module.exports.__wbg_flushdata_6204361db37251e9 = function(arg0, arg1) {
|
|
2764
2739
|
let deferred0_0;
|
|
2765
2740
|
let deferred0_1;
|
|
2766
2741
|
try {
|
|
@@ -2772,7 +2747,7 @@ module.exports.__wbg_flushdata_f57c50ff1d03553c = function(arg0, arg1) {
|
|
|
2772
2747
|
}
|
|
2773
2748
|
};
|
|
2774
2749
|
|
|
2775
|
-
module.exports.
|
|
2750
|
+
module.exports.__wbg_readvalue_313706238137103d = function() { return handleError(function (arg0, arg1) {
|
|
2776
2751
|
let deferred0_0;
|
|
2777
2752
|
let deferred0_1;
|
|
2778
2753
|
try {
|
|
@@ -2785,12 +2760,12 @@ module.exports.__wbg_readvalue_f63ea6930b75460d = function() { return handleErro
|
|
|
2785
2760
|
}
|
|
2786
2761
|
}, arguments) };
|
|
2787
2762
|
|
|
2788
|
-
module.exports.
|
|
2763
|
+
module.exports.__wbg_loadblockfilelist_23797dcc7c1dab6d = function() { return handleError(function () {
|
|
2789
2764
|
const ret = MsgHandler.load_block_file_list();
|
|
2790
2765
|
return addHeapObject(ret);
|
|
2791
2766
|
}, arguments) };
|
|
2792
2767
|
|
|
2793
|
-
module.exports.
|
|
2768
|
+
module.exports.__wbg_isexistingfile_0f2742b971ad547a = function() { return handleError(function (arg0, arg1) {
|
|
2794
2769
|
let deferred0_0;
|
|
2795
2770
|
let deferred0_1;
|
|
2796
2771
|
try {
|
|
@@ -2803,7 +2778,7 @@ module.exports.__wbg_isexistingfile_a82e13dc5d003060 = function() { return handl
|
|
|
2803
2778
|
}
|
|
2804
2779
|
}, arguments) };
|
|
2805
2780
|
|
|
2806
|
-
module.exports.
|
|
2781
|
+
module.exports.__wbg_removevalue_cb3d86e477b82913 = function() { return handleError(function (arg0, arg1) {
|
|
2807
2782
|
let deferred0_0;
|
|
2808
2783
|
let deferred0_1;
|
|
2809
2784
|
try {
|
|
@@ -2816,7 +2791,7 @@ module.exports.__wbg_removevalue_4ecde917128f1b80 = function() { return handleEr
|
|
|
2816
2791
|
}
|
|
2817
2792
|
}, arguments) };
|
|
2818
2793
|
|
|
2819
|
-
module.exports.
|
|
2794
|
+
module.exports.__wbg_ensureblockdirectoryexists_e8130e8ef33668b1 = function() { return handleError(function (arg0, arg1) {
|
|
2820
2795
|
let deferred0_0;
|
|
2821
2796
|
let deferred0_1;
|
|
2822
2797
|
try {
|
|
@@ -2828,19 +2803,19 @@ module.exports.__wbg_ensureblockdirectoryexists_1ea9ae02b53f348a = function() {
|
|
|
2828
2803
|
}
|
|
2829
2804
|
}, arguments) };
|
|
2830
2805
|
|
|
2831
|
-
module.exports.
|
|
2806
|
+
module.exports.__wbg_processapicall_6c2b604efdd257d0 = function(arg0, arg1, arg2) {
|
|
2832
2807
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2833
2808
|
};
|
|
2834
2809
|
|
|
2835
|
-
module.exports.
|
|
2810
|
+
module.exports.__wbg_processapisuccess_2e0161ed43c4fa98 = function(arg0, arg1, arg2) {
|
|
2836
2811
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2837
2812
|
};
|
|
2838
2813
|
|
|
2839
|
-
module.exports.
|
|
2814
|
+
module.exports.__wbg_processapierror_651c099f61dd8f34 = function(arg0, arg1, arg2) {
|
|
2840
2815
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2841
2816
|
};
|
|
2842
2817
|
|
|
2843
|
-
module.exports.
|
|
2818
|
+
module.exports.__wbg_sendinterfaceevent_2aef700bd809e332 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2844
2819
|
let deferred0_0;
|
|
2845
2820
|
let deferred0_1;
|
|
2846
2821
|
let deferred1_0;
|
|
@@ -2857,7 +2832,7 @@ module.exports.__wbg_sendinterfaceevent_eb08d15cdb995b48 = function(arg0, arg1,
|
|
|
2857
2832
|
}
|
|
2858
2833
|
};
|
|
2859
2834
|
|
|
2860
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_sendblocksuccess_cdc2813998ee15f3 = function(arg0, arg1, arg2) {
|
|
2861
2836
|
let deferred0_0;
|
|
2862
2837
|
let deferred0_1;
|
|
2863
2838
|
try {
|
|
@@ -2869,11 +2844,11 @@ module.exports.__wbg_sendblocksuccess_1a4679a550ae36cb = function(arg0, arg1, ar
|
|
|
2869
2844
|
}
|
|
2870
2845
|
};
|
|
2871
2846
|
|
|
2872
|
-
module.exports.
|
|
2847
|
+
module.exports.__wbg_sendwalletupdate_5524021f3f52cabe = function() {
|
|
2873
2848
|
MsgHandler.send_wallet_update();
|
|
2874
2849
|
};
|
|
2875
2850
|
|
|
2876
|
-
module.exports.
|
|
2851
|
+
module.exports.__wbg_sendnewversionalert_7b3186f6c0d06446 = function(arg0, arg1, arg2) {
|
|
2877
2852
|
let deferred0_0;
|
|
2878
2853
|
let deferred0_1;
|
|
2879
2854
|
try {
|
|
@@ -2885,19 +2860,23 @@ module.exports.__wbg_sendnewversionalert_5c7114b5314d55de = function(arg0, arg1,
|
|
|
2885
2860
|
}
|
|
2886
2861
|
};
|
|
2887
2862
|
|
|
2888
|
-
module.exports.
|
|
2863
|
+
module.exports.__wbg_sendblockfetchstatusevent_0b22efc2d2cc581e = function(arg0) {
|
|
2889
2864
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2890
2865
|
};
|
|
2891
2866
|
|
|
2892
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_sendnewchaindetectedevent_0237c309a94f8039 = function() {
|
|
2868
|
+
MsgHandler.send_new_chain_detected_event();
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
module.exports.__wbg_savewallet_87bfe76350b09cb5 = function() {
|
|
2893
2872
|
MsgHandler.save_wallet();
|
|
2894
2873
|
};
|
|
2895
2874
|
|
|
2896
|
-
module.exports.
|
|
2875
|
+
module.exports.__wbg_loadwallet_fa17bf9a9fb0f611 = function() {
|
|
2897
2876
|
MsgHandler.load_wallet();
|
|
2898
2877
|
};
|
|
2899
2878
|
|
|
2900
|
-
module.exports.
|
|
2879
|
+
module.exports.__wbg_getmyservices_fdada8b49ecd32e8 = function() {
|
|
2901
2880
|
const ret = MsgHandler.get_my_services();
|
|
2902
2881
|
_assertClass(ret, WasmPeerServiceList);
|
|
2903
2882
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2909,6 +2888,32 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2909
2888
|
return addHeapObject(ret);
|
|
2910
2889
|
};
|
|
2911
2890
|
|
|
2891
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2892
|
+
const val = getObject(arg0);
|
|
2893
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2894
|
+
return ret;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2898
|
+
const ret = getObject(arg0) === undefined;
|
|
2899
|
+
return ret;
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2903
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2904
|
+
return ret;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2908
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2909
|
+
return addHeapObject(ret);
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2913
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2914
|
+
return addHeapObject(ret);
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2912
2917
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2913
2918
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2914
2919
|
return ret;
|
|
@@ -3177,7 +3182,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3177
3182
|
const a = state0.a;
|
|
3178
3183
|
state0.a = 0;
|
|
3179
3184
|
try {
|
|
3180
|
-
return
|
|
3185
|
+
return __wbg_adapter_426(a, state0.b, arg0, arg1);
|
|
3181
3186
|
} finally {
|
|
3182
3187
|
state0.a = a;
|
|
3183
3188
|
}
|
|
@@ -3275,7 +3280,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3275
3280
|
return addHeapObject(ret);
|
|
3276
3281
|
};
|
|
3277
3282
|
|
|
3278
|
-
module.exports.
|
|
3283
|
+
module.exports.__wbindgen_closure_wrapper1511 = function(arg0, arg1, arg2) {
|
|
3279
3284
|
const ret = makeMutClosure(arg0, arg1, 536, __wbg_adapter_38);
|
|
3280
3285
|
return addHeapObject(ret);
|
|
3281
3286
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|