saito-wasm 0.2.128 → 0.2.130
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.d.ts +15 -0
- package/pkg/node/index.js +146 -112
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +101 -98
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +116 -98
- package/pkg/web/index.js +137 -105
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +101 -98
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-06b4ba4a5bfe6615 → saito-wasm-775f319667b67c19}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-06b4ba4a5bfe6615 → saito-wasm-775f319667b67c19}/js/msg_handler.js +0 -0
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-775f319667b67c19/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -8,7 +8,32 @@ heap.push(undefined, null, true, false);
|
|
|
8
8
|
|
|
9
9
|
function getObject(idx) { return heap[idx]; }
|
|
10
10
|
|
|
11
|
-
let
|
|
11
|
+
let heap_next = heap.length;
|
|
12
|
+
|
|
13
|
+
function dropObject(idx) {
|
|
14
|
+
if (idx < 132) return;
|
|
15
|
+
heap[idx] = heap_next;
|
|
16
|
+
heap_next = idx;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function takeObject(idx) {
|
|
20
|
+
const ret = getObject(idx);
|
|
21
|
+
dropObject(idx);
|
|
22
|
+
return ret;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function addHeapObject(obj) {
|
|
26
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
27
|
+
const idx = heap_next;
|
|
28
|
+
heap_next = heap[idx];
|
|
29
|
+
|
|
30
|
+
heap[idx] = obj;
|
|
31
|
+
return idx;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
|
+
|
|
36
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
12
37
|
|
|
13
38
|
let cachedUint8Memory0 = null;
|
|
14
39
|
|
|
@@ -19,6 +44,13 @@ function getUint8Memory0() {
|
|
|
19
44
|
return cachedUint8Memory0;
|
|
20
45
|
}
|
|
21
46
|
|
|
47
|
+
function getStringFromWasm0(ptr, len) {
|
|
48
|
+
ptr = ptr >>> 0;
|
|
49
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let WASM_VECTOR_LEN = 0;
|
|
53
|
+
|
|
22
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
23
55
|
|
|
24
56
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -86,38 +118,6 @@ function getInt32Memory0() {
|
|
|
86
118
|
return cachedInt32Memory0;
|
|
87
119
|
}
|
|
88
120
|
|
|
89
|
-
let heap_next = heap.length;
|
|
90
|
-
|
|
91
|
-
function dropObject(idx) {
|
|
92
|
-
if (idx < 132) return;
|
|
93
|
-
heap[idx] = heap_next;
|
|
94
|
-
heap_next = idx;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
function takeObject(idx) {
|
|
98
|
-
const ret = getObject(idx);
|
|
99
|
-
dropObject(idx);
|
|
100
|
-
return ret;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function addHeapObject(obj) {
|
|
104
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
105
|
-
const idx = heap_next;
|
|
106
|
-
heap_next = heap[idx];
|
|
107
|
-
|
|
108
|
-
heap[idx] = obj;
|
|
109
|
-
return idx;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
-
|
|
114
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
-
|
|
116
|
-
function getStringFromWasm0(ptr, len) {
|
|
117
|
-
ptr = ptr >>> 0;
|
|
118
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -720,7 +720,7 @@ export function get_congestion_stats() {
|
|
|
720
720
|
return takeObject(ret);
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
function
|
|
723
|
+
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
724
724
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e7bb10b7401ce1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
725
725
|
}
|
|
726
726
|
|
|
@@ -1398,6 +1398,30 @@ export class WasmBlockchain {
|
|
|
1398
1398
|
const ret = wasm.wasmblockchain_set_safe_to_prune_transaction(this.__wbg_ptr, block_id);
|
|
1399
1399
|
return takeObject(ret);
|
|
1400
1400
|
}
|
|
1401
|
+
/**
|
|
1402
|
+
* @returns {Promise<bigint>}
|
|
1403
|
+
*/
|
|
1404
|
+
get_prune_after_blocks() {
|
|
1405
|
+
const ret = wasm.wasmblockchain_get_prune_after_blocks(this.__wbg_ptr);
|
|
1406
|
+
return takeObject(ret);
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* @returns {Promise<bigint>}
|
|
1410
|
+
*/
|
|
1411
|
+
get_block_confirmation_limit() {
|
|
1412
|
+
const ret = wasm.wasmblockchain_get_block_confirmation_limit(this.__wbg_ptr);
|
|
1413
|
+
return takeObject(ret);
|
|
1414
|
+
}
|
|
1415
|
+
/**
|
|
1416
|
+
* @param {Function} reorg_cb
|
|
1417
|
+
* @param {Function} add_block_cb
|
|
1418
|
+
* @param {Function} confirm_cb
|
|
1419
|
+
* @returns {Promise<void>}
|
|
1420
|
+
*/
|
|
1421
|
+
register_callback(reorg_cb, add_block_cb, confirm_cb) {
|
|
1422
|
+
const ret = wasm.wasmblockchain_register_callback(this.__wbg_ptr, addHeapObject(reorg_cb), addHeapObject(add_block_cb), addHeapObject(confirm_cb));
|
|
1423
|
+
return takeObject(ret);
|
|
1424
|
+
}
|
|
1401
1425
|
}
|
|
1402
1426
|
|
|
1403
1427
|
const WasmConfigurationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2618,14 +2642,6 @@ async function __wbg_load(module, imports) {
|
|
|
2618
2642
|
function __wbg_get_imports() {
|
|
2619
2643
|
const imports = {};
|
|
2620
2644
|
imports.wbg = {};
|
|
2621
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2622
|
-
const obj = getObject(arg1);
|
|
2623
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2624
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2625
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2626
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2627
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2628
|
-
};
|
|
2629
2645
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2630
2646
|
takeObject(arg0);
|
|
2631
2647
|
};
|
|
@@ -2633,10 +2649,6 @@ function __wbg_get_imports() {
|
|
|
2633
2649
|
const ret = BigInt.asUintN(64, arg0);
|
|
2634
2650
|
return addHeapObject(ret);
|
|
2635
2651
|
};
|
|
2636
|
-
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2637
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2638
|
-
return addHeapObject(ret);
|
|
2639
|
-
};
|
|
2640
2652
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2641
2653
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2642
2654
|
return addHeapObject(ret);
|
|
@@ -2645,22 +2657,10 @@ function __wbg_get_imports() {
|
|
|
2645
2657
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2646
2658
|
return addHeapObject(ret);
|
|
2647
2659
|
};
|
|
2648
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2649
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2650
|
-
return addHeapObject(ret);
|
|
2651
|
-
};
|
|
2652
2660
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2653
2661
|
const ret = WasmPeer.__wrap(arg0);
|
|
2654
2662
|
return addHeapObject(ret);
|
|
2655
2663
|
};
|
|
2656
|
-
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2657
|
-
const ret = WasmSlip.__wrap(arg0);
|
|
2658
|
-
return addHeapObject(ret);
|
|
2659
|
-
};
|
|
2660
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2661
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2662
|
-
return addHeapObject(ret);
|
|
2663
|
-
};
|
|
2664
2664
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2665
2665
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2666
2666
|
return addHeapObject(ret);
|
|
@@ -2673,26 +2673,41 @@ function __wbg_get_imports() {
|
|
|
2673
2673
|
const ret = WasmBlock.__wrap(arg0);
|
|
2674
2674
|
return addHeapObject(ret);
|
|
2675
2675
|
};
|
|
2676
|
-
imports.wbg.
|
|
2677
|
-
const
|
|
2678
|
-
const ret = typeof(
|
|
2679
|
-
|
|
2676
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2677
|
+
const obj = getObject(arg1);
|
|
2678
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2679
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2680
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2681
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2682
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2680
2683
|
};
|
|
2681
|
-
imports.wbg.
|
|
2682
|
-
const ret = getObject(arg0)
|
|
2683
|
-
return ret;
|
|
2684
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2685
|
+
const ret = getObject(arg0);
|
|
2686
|
+
return addHeapObject(ret);
|
|
2684
2687
|
};
|
|
2685
|
-
imports.wbg.
|
|
2686
|
-
const ret =
|
|
2687
|
-
return ret;
|
|
2688
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2689
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2690
|
+
return addHeapObject(ret);
|
|
2691
|
+
};
|
|
2692
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2693
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2694
|
+
return addHeapObject(ret);
|
|
2688
2695
|
};
|
|
2689
|
-
imports.wbg.
|
|
2696
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2697
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2698
|
+
return addHeapObject(ret);
|
|
2699
|
+
};
|
|
2700
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2701
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2702
|
+
return addHeapObject(ret);
|
|
2703
|
+
};
|
|
2704
|
+
imports.wbg.__wbg_sendmessage_559d1b7a3a70434c = function(arg0, arg1) {
|
|
2690
2705
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2691
2706
|
};
|
|
2692
|
-
imports.wbg.
|
|
2707
|
+
imports.wbg.__wbg_sendmessagetoall_275686e449fc5d9a = function(arg0, arg1) {
|
|
2693
2708
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2694
2709
|
};
|
|
2695
|
-
imports.wbg.
|
|
2710
|
+
imports.wbg.__wbg_connecttopeer_f4773fd516053c07 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2696
2711
|
let deferred0_0;
|
|
2697
2712
|
let deferred0_1;
|
|
2698
2713
|
try {
|
|
@@ -2704,11 +2719,11 @@ function __wbg_get_imports() {
|
|
|
2704
2719
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2705
2720
|
}
|
|
2706
2721
|
}, arguments) };
|
|
2707
|
-
imports.wbg.
|
|
2722
|
+
imports.wbg.__wbg_disconnectfrompeer_cda711df42beed7a = function() { return handleError(function (arg0) {
|
|
2708
2723
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2709
2724
|
return addHeapObject(ret);
|
|
2710
2725
|
}, arguments) };
|
|
2711
|
-
imports.wbg.
|
|
2726
|
+
imports.wbg.__wbg_fetchblockfrompeer_1ba26b53d9fe72c9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2712
2727
|
let deferred0_0;
|
|
2713
2728
|
let deferred0_1;
|
|
2714
2729
|
try {
|
|
@@ -2720,7 +2735,7 @@ function __wbg_get_imports() {
|
|
|
2720
2735
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2721
2736
|
}
|
|
2722
2737
|
}, arguments) };
|
|
2723
|
-
imports.wbg.
|
|
2738
|
+
imports.wbg.__wbg_writevalue_69c89d13cf9725b7 = function(arg0, arg1, arg2) {
|
|
2724
2739
|
let deferred0_0;
|
|
2725
2740
|
let deferred0_1;
|
|
2726
2741
|
try {
|
|
@@ -2731,7 +2746,7 @@ function __wbg_get_imports() {
|
|
|
2731
2746
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2732
2747
|
}
|
|
2733
2748
|
};
|
|
2734
|
-
imports.wbg.
|
|
2749
|
+
imports.wbg.__wbg_appendvalue_de3fbe01a85d1a15 = function(arg0, arg1, arg2) {
|
|
2735
2750
|
let deferred0_0;
|
|
2736
2751
|
let deferred0_1;
|
|
2737
2752
|
try {
|
|
@@ -2742,7 +2757,7 @@ function __wbg_get_imports() {
|
|
|
2742
2757
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2743
2758
|
}
|
|
2744
2759
|
};
|
|
2745
|
-
imports.wbg.
|
|
2760
|
+
imports.wbg.__wbg_flushdata_ae82952591b97080 = function(arg0, arg1) {
|
|
2746
2761
|
let deferred0_0;
|
|
2747
2762
|
let deferred0_1;
|
|
2748
2763
|
try {
|
|
@@ -2753,7 +2768,7 @@ function __wbg_get_imports() {
|
|
|
2753
2768
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2754
2769
|
}
|
|
2755
2770
|
};
|
|
2756
|
-
imports.wbg.
|
|
2771
|
+
imports.wbg.__wbg_readvalue_7ef01be02ce8f458 = function() { return handleError(function (arg0, arg1) {
|
|
2757
2772
|
let deferred0_0;
|
|
2758
2773
|
let deferred0_1;
|
|
2759
2774
|
try {
|
|
@@ -2765,11 +2780,11 @@ function __wbg_get_imports() {
|
|
|
2765
2780
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2766
2781
|
}
|
|
2767
2782
|
}, arguments) };
|
|
2768
|
-
imports.wbg.
|
|
2783
|
+
imports.wbg.__wbg_loadblockfilelist_fcbb86a34acd5666 = function() { return handleError(function () {
|
|
2769
2784
|
const ret = MsgHandler.load_block_file_list();
|
|
2770
2785
|
return addHeapObject(ret);
|
|
2771
2786
|
}, arguments) };
|
|
2772
|
-
imports.wbg.
|
|
2787
|
+
imports.wbg.__wbg_isexistingfile_80049f37d0da6f4c = function() { return handleError(function (arg0, arg1) {
|
|
2773
2788
|
let deferred0_0;
|
|
2774
2789
|
let deferred0_1;
|
|
2775
2790
|
try {
|
|
@@ -2781,7 +2796,7 @@ function __wbg_get_imports() {
|
|
|
2781
2796
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2782
2797
|
}
|
|
2783
2798
|
}, arguments) };
|
|
2784
|
-
imports.wbg.
|
|
2799
|
+
imports.wbg.__wbg_removevalue_a695c2117cc0a9b8 = function() { return handleError(function (arg0, arg1) {
|
|
2785
2800
|
let deferred0_0;
|
|
2786
2801
|
let deferred0_1;
|
|
2787
2802
|
try {
|
|
@@ -2793,7 +2808,7 @@ function __wbg_get_imports() {
|
|
|
2793
2808
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2794
2809
|
}
|
|
2795
2810
|
}, arguments) };
|
|
2796
|
-
imports.wbg.
|
|
2811
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_a9b8b0e553c67d42 = function() { return handleError(function (arg0, arg1) {
|
|
2797
2812
|
let deferred0_0;
|
|
2798
2813
|
let deferred0_1;
|
|
2799
2814
|
try {
|
|
@@ -2804,16 +2819,16 @@ function __wbg_get_imports() {
|
|
|
2804
2819
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2805
2820
|
}
|
|
2806
2821
|
}, arguments) };
|
|
2807
|
-
imports.wbg.
|
|
2822
|
+
imports.wbg.__wbg_processapicall_4d457b1c21fc314f = function(arg0, arg1, arg2) {
|
|
2808
2823
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2809
2824
|
};
|
|
2810
|
-
imports.wbg.
|
|
2825
|
+
imports.wbg.__wbg_processapisuccess_14e437ad11a17130 = function(arg0, arg1, arg2) {
|
|
2811
2826
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2812
2827
|
};
|
|
2813
|
-
imports.wbg.
|
|
2828
|
+
imports.wbg.__wbg_processapierror_d8c88828ad4fc8e8 = function(arg0, arg1, arg2) {
|
|
2814
2829
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2815
2830
|
};
|
|
2816
|
-
imports.wbg.
|
|
2831
|
+
imports.wbg.__wbg_sendinterfaceevent_b32ba004edcdeac2 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2817
2832
|
let deferred0_0;
|
|
2818
2833
|
let deferred0_1;
|
|
2819
2834
|
let deferred1_0;
|
|
@@ -2829,7 +2844,7 @@ function __wbg_get_imports() {
|
|
|
2829
2844
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2830
2845
|
}
|
|
2831
2846
|
};
|
|
2832
|
-
imports.wbg.
|
|
2847
|
+
imports.wbg.__wbg_sendblocksuccess_6df46a290b6ef254 = function(arg0, arg1, arg2) {
|
|
2833
2848
|
let deferred0_0;
|
|
2834
2849
|
let deferred0_1;
|
|
2835
2850
|
try {
|
|
@@ -2840,10 +2855,10 @@ function __wbg_get_imports() {
|
|
|
2840
2855
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2841
2856
|
}
|
|
2842
2857
|
};
|
|
2843
|
-
imports.wbg.
|
|
2858
|
+
imports.wbg.__wbg_sendwalletupdate_e0215da504329563 = function() {
|
|
2844
2859
|
MsgHandler.send_wallet_update();
|
|
2845
2860
|
};
|
|
2846
|
-
imports.wbg.
|
|
2861
|
+
imports.wbg.__wbg_sendnewversionalert_eb8029050fe2c6dc = function(arg0, arg1, arg2) {
|
|
2847
2862
|
let deferred0_0;
|
|
2848
2863
|
let deferred0_1;
|
|
2849
2864
|
try {
|
|
@@ -2854,34 +2869,47 @@ function __wbg_get_imports() {
|
|
|
2854
2869
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2855
2870
|
}
|
|
2856
2871
|
};
|
|
2857
|
-
imports.wbg.
|
|
2872
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_3500f33514d731d3 = function(arg0) {
|
|
2858
2873
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2859
2874
|
};
|
|
2860
|
-
imports.wbg.
|
|
2875
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_90a56da2e2734093 = function() {
|
|
2861
2876
|
MsgHandler.send_new_chain_detected_event();
|
|
2862
2877
|
};
|
|
2863
|
-
imports.wbg.
|
|
2878
|
+
imports.wbg.__wbg_savewallet_5020cd18e496917e = function() {
|
|
2864
2879
|
MsgHandler.save_wallet();
|
|
2865
2880
|
};
|
|
2866
|
-
imports.wbg.
|
|
2881
|
+
imports.wbg.__wbg_loadwallet_baf82ab120176677 = function() {
|
|
2867
2882
|
MsgHandler.load_wallet();
|
|
2868
2883
|
};
|
|
2869
|
-
imports.wbg.
|
|
2884
|
+
imports.wbg.__wbg_getmyservices_b0183440e3f31348 = function() {
|
|
2870
2885
|
const ret = MsgHandler.get_my_services();
|
|
2871
2886
|
_assertClass(ret, WasmPeerServiceList);
|
|
2872
2887
|
var ptr1 = ret.__destroy_into_raw();
|
|
2873
2888
|
return ptr1;
|
|
2874
2889
|
};
|
|
2875
|
-
imports.wbg.
|
|
2876
|
-
const ret =
|
|
2890
|
+
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2891
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2877
2892
|
return addHeapObject(ret);
|
|
2878
2893
|
};
|
|
2894
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2895
|
+
const val = getObject(arg0);
|
|
2896
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2897
|
+
return ret;
|
|
2898
|
+
};
|
|
2899
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2900
|
+
const ret = getObject(arg0) === undefined;
|
|
2901
|
+
return ret;
|
|
2902
|
+
};
|
|
2903
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2904
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2905
|
+
return ret;
|
|
2906
|
+
};
|
|
2879
2907
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2880
2908
|
const ret = WasmHop.__wrap(arg0);
|
|
2881
2909
|
return addHeapObject(ret);
|
|
2882
2910
|
};
|
|
2883
|
-
imports.wbg.
|
|
2884
|
-
const ret =
|
|
2911
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2912
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2885
2913
|
return addHeapObject(ret);
|
|
2886
2914
|
};
|
|
2887
2915
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
@@ -2899,10 +2927,6 @@ function __wbg_get_imports() {
|
|
|
2899
2927
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
2900
2928
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
2901
2929
|
};
|
|
2902
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2903
|
-
const ret = getObject(arg0);
|
|
2904
|
-
return addHeapObject(ret);
|
|
2905
|
-
};
|
|
2906
2930
|
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
2907
2931
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
2908
2932
|
return addHeapObject(ret);
|
|
@@ -3088,6 +3112,14 @@ function __wbg_get_imports() {
|
|
|
3088
3112
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
3089
3113
|
return addHeapObject(ret);
|
|
3090
3114
|
}, arguments) };
|
|
3115
|
+
imports.wbg.__wbg_call_8e7cb608789c2528 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3116
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3117
|
+
return addHeapObject(ret);
|
|
3118
|
+
}, arguments) };
|
|
3119
|
+
imports.wbg.__wbg_call_938992c832f74314 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3120
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
3121
|
+
return addHeapObject(ret);
|
|
3122
|
+
}, arguments) };
|
|
3091
3123
|
imports.wbg.__wbg_now_3014639a94423537 = function() {
|
|
3092
3124
|
const ret = Date.now();
|
|
3093
3125
|
return ret;
|
|
@@ -3103,7 +3135,7 @@ function __wbg_get_imports() {
|
|
|
3103
3135
|
const a = state0.a;
|
|
3104
3136
|
state0.a = 0;
|
|
3105
3137
|
try {
|
|
3106
|
-
return
|
|
3138
|
+
return __wbg_adapter_433(a, state0.b, arg0, arg1);
|
|
3107
3139
|
} finally {
|
|
3108
3140
|
state0.a = a;
|
|
3109
3141
|
}
|
|
@@ -3184,8 +3216,8 @@ function __wbg_get_imports() {
|
|
|
3184
3216
|
const ret = wasm.memory;
|
|
3185
3217
|
return addHeapObject(ret);
|
|
3186
3218
|
};
|
|
3187
|
-
imports.wbg.
|
|
3188
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3219
|
+
imports.wbg.__wbindgen_closure_wrapper1534 = function(arg0, arg1, arg2) {
|
|
3220
|
+
const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_38);
|
|
3189
3221
|
return addHeapObject(ret);
|
|
3190
3222
|
};
|
|
3191
3223
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|