saito-wasm 0.2.98 → 0.2.99
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 +6 -2
- package/pkg/node/index.js +92 -85
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +146 -145
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +152 -147
- package/pkg/web/index.js +88 -81
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +146 -145
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-8f3832290c6efbb8 → saito-wasm-4375448d2b4dc1d8}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-8f3832290c6efbb8 → saito-wasm-4375448d2b4dc1d8}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string}
|
|
4
|
+
* @param {string} config_json
|
|
5
5
|
* @param {string} private_key
|
|
6
6
|
* @param {number} log_level_num
|
|
7
7
|
* @param {bigint} hasten_multiplier
|
|
8
8
|
* @param {boolean} delete_old_blocks
|
|
9
9
|
* @returns {Promise<any>}
|
|
10
10
|
*/
|
|
11
|
-
export function initialize(
|
|
11
|
+
export function initialize(config_json: string, private_key: string, log_level_num: number, hasten_multiplier: bigint, delete_old_blocks: boolean): Promise<any>;
|
|
12
12
|
/**
|
|
13
13
|
* @param {string} public_key
|
|
14
14
|
* @param {bigint} amount
|
|
@@ -247,6 +247,10 @@ export function get_stats(): Promise<string>;
|
|
|
247
247
|
*/
|
|
248
248
|
export function get_peer_stats(): Promise<string>;
|
|
249
249
|
/**
|
|
250
|
+
* @returns {Promise<string>}
|
|
251
|
+
*/
|
|
252
|
+
export function get_congestion_stats(): Promise<string>;
|
|
253
|
+
/**
|
|
250
254
|
*/
|
|
251
255
|
export class SaitoWasm {
|
|
252
256
|
free(): void;
|
package/pkg/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-4375448d2b4dc1d8/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,15 +24,6 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function addHeapObject(obj) {
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
28
|
|
|
38
29
|
cachedTextDecoder.decode();
|
|
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
51
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
43
|
}
|
|
53
44
|
|
|
45
|
+
function addHeapObject(obj) {
|
|
46
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
+
const idx = heap_next;
|
|
48
|
+
heap_next = heap[idx];
|
|
49
|
+
|
|
50
|
+
heap[idx] = obj;
|
|
51
|
+
return idx;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -228,38 +228,22 @@ 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__h575b308e3e106cb6(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
231
|
function _assertClass(instance, klass) {
|
|
240
232
|
if (!(instance instanceof klass)) {
|
|
241
233
|
throw new Error(`expected instance of ${klass.name}`);
|
|
242
234
|
}
|
|
243
235
|
return instance.ptr;
|
|
244
236
|
}
|
|
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
|
-
}
|
|
253
237
|
/**
|
|
254
|
-
* @param {string}
|
|
238
|
+
* @param {string} config_json
|
|
255
239
|
* @param {string} private_key
|
|
256
240
|
* @param {number} log_level_num
|
|
257
241
|
* @param {bigint} hasten_multiplier
|
|
258
242
|
* @param {boolean} delete_old_blocks
|
|
259
243
|
* @returns {Promise<any>}
|
|
260
244
|
*/
|
|
261
|
-
module.exports.initialize = function(
|
|
262
|
-
const ret = wasm.initialize(addHeapObject(
|
|
245
|
+
module.exports.initialize = function(config_json, private_key, log_level_num, hasten_multiplier, delete_old_blocks) {
|
|
246
|
+
const ret = wasm.initialize(addHeapObject(config_json), addHeapObject(private_key), log_level_num, hasten_multiplier, delete_old_blocks);
|
|
263
247
|
return takeObject(ret);
|
|
264
248
|
};
|
|
265
249
|
|
|
@@ -697,7 +681,30 @@ module.exports.get_peer_stats = function() {
|
|
|
697
681
|
return takeObject(ret);
|
|
698
682
|
};
|
|
699
683
|
|
|
700
|
-
|
|
684
|
+
/**
|
|
685
|
+
* @returns {Promise<string>}
|
|
686
|
+
*/
|
|
687
|
+
module.exports.get_congestion_stats = function() {
|
|
688
|
+
const ret = wasm.get_congestion_stats();
|
|
689
|
+
return takeObject(ret);
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
let stack_pointer = 128;
|
|
693
|
+
|
|
694
|
+
function addBorrowedObject(obj) {
|
|
695
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
696
|
+
heap[--stack_pointer] = obj;
|
|
697
|
+
return stack_pointer;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
function handleError(f, args) {
|
|
701
|
+
try {
|
|
702
|
+
return f.apply(this, args);
|
|
703
|
+
} catch (e) {
|
|
704
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
function __wbg_adapter_421(arg0, arg1, arg2, arg3) {
|
|
701
708
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
702
709
|
}
|
|
703
710
|
|
|
@@ -2559,23 +2566,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2559
2566
|
takeObject(arg0);
|
|
2560
2567
|
};
|
|
2561
2568
|
|
|
2562
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2563
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2564
|
-
return addHeapObject(ret);
|
|
2565
|
-
};
|
|
2566
|
-
|
|
2567
2569
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2568
2570
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2569
2571
|
return addHeapObject(ret);
|
|
2570
2572
|
};
|
|
2571
2573
|
|
|
2572
|
-
module.exports.
|
|
2573
|
-
const ret =
|
|
2574
|
-
return addHeapObject(ret);
|
|
2575
|
-
};
|
|
2576
|
-
|
|
2577
|
-
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2578
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2574
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2575
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2579
2576
|
return addHeapObject(ret);
|
|
2580
2577
|
};
|
|
2581
2578
|
|
|
@@ -2584,8 +2581,8 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2584
2581
|
return addHeapObject(ret);
|
|
2585
2582
|
};
|
|
2586
2583
|
|
|
2587
|
-
module.exports.
|
|
2588
|
-
const ret =
|
|
2584
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2585
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2589
2586
|
return addHeapObject(ret);
|
|
2590
2587
|
};
|
|
2591
2588
|
|
|
@@ -2598,18 +2595,28 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2598
2595
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2599
2596
|
};
|
|
2600
2597
|
|
|
2598
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2599
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2600
|
+
return addHeapObject(ret);
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2601
2603
|
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2602
2604
|
const ret = WasmPeer.__wrap(arg0);
|
|
2603
2605
|
return addHeapObject(ret);
|
|
2604
2606
|
};
|
|
2605
2607
|
|
|
2608
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2609
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2610
|
+
return addHeapObject(ret);
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2606
2613
|
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2607
2614
|
const ret = WasmBlock.__wrap(arg0);
|
|
2608
2615
|
return addHeapObject(ret);
|
|
2609
2616
|
};
|
|
2610
2617
|
|
|
2611
|
-
module.exports.
|
|
2612
|
-
const ret =
|
|
2618
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2619
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2613
2620
|
return addHeapObject(ret);
|
|
2614
2621
|
};
|
|
2615
2622
|
|
|
@@ -2618,8 +2625,13 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2618
2625
|
return addHeapObject(ret);
|
|
2619
2626
|
};
|
|
2620
2627
|
|
|
2621
|
-
module.exports.
|
|
2622
|
-
const ret =
|
|
2628
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2629
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2630
|
+
return addHeapObject(ret);
|
|
2631
|
+
};
|
|
2632
|
+
|
|
2633
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2634
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2623
2635
|
return addHeapObject(ret);
|
|
2624
2636
|
};
|
|
2625
2637
|
|
|
@@ -2628,6 +2640,11 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2628
2640
|
return addHeapObject(ret);
|
|
2629
2641
|
};
|
|
2630
2642
|
|
|
2643
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2644
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2645
|
+
return addHeapObject(ret);
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2631
2648
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2632
2649
|
const val = getObject(arg0);
|
|
2633
2650
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2644,15 +2661,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2644
2661
|
return ret;
|
|
2645
2662
|
};
|
|
2646
2663
|
|
|
2647
|
-
module.exports.
|
|
2664
|
+
module.exports.__wbg_sendmessage_97d7f022a877467e = function(arg0, arg1) {
|
|
2648
2665
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2649
2666
|
};
|
|
2650
2667
|
|
|
2651
|
-
module.exports.
|
|
2668
|
+
module.exports.__wbg_sendmessagetoall_ba211b96dfa65fe5 = function(arg0, arg1) {
|
|
2652
2669
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2653
2670
|
};
|
|
2654
2671
|
|
|
2655
|
-
module.exports.
|
|
2672
|
+
module.exports.__wbg_connecttopeer_2ab190f6ca71f5f7 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2656
2673
|
let deferred0_0;
|
|
2657
2674
|
let deferred0_1;
|
|
2658
2675
|
try {
|
|
@@ -2665,12 +2682,12 @@ module.exports.__wbg_connecttopeer_493c98d991aeec52 = function() { return handle
|
|
|
2665
2682
|
}
|
|
2666
2683
|
}, arguments) };
|
|
2667
2684
|
|
|
2668
|
-
module.exports.
|
|
2685
|
+
module.exports.__wbg_disconnectfrompeer_fa7180862666085b = function() { return handleError(function (arg0) {
|
|
2669
2686
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2670
2687
|
return addHeapObject(ret);
|
|
2671
2688
|
}, arguments) };
|
|
2672
2689
|
|
|
2673
|
-
module.exports.
|
|
2690
|
+
module.exports.__wbg_fetchblockfrompeer_ebaf495142809113 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2674
2691
|
let deferred0_0;
|
|
2675
2692
|
let deferred0_1;
|
|
2676
2693
|
try {
|
|
@@ -2683,7 +2700,7 @@ module.exports.__wbg_fetchblockfrompeer_c2a8fd4e320c63a0 = function() { return h
|
|
|
2683
2700
|
}
|
|
2684
2701
|
}, arguments) };
|
|
2685
2702
|
|
|
2686
|
-
module.exports.
|
|
2703
|
+
module.exports.__wbg_writevalue_db033c89e3cc6ce1 = function(arg0, arg1, arg2) {
|
|
2687
2704
|
let deferred0_0;
|
|
2688
2705
|
let deferred0_1;
|
|
2689
2706
|
try {
|
|
@@ -2695,7 +2712,7 @@ module.exports.__wbg_writevalue_532d3d2233e98f52 = function(arg0, arg1, arg2) {
|
|
|
2695
2712
|
}
|
|
2696
2713
|
};
|
|
2697
2714
|
|
|
2698
|
-
module.exports.
|
|
2715
|
+
module.exports.__wbg_appendvalue_b71488e99c0b2acc = function(arg0, arg1, arg2) {
|
|
2699
2716
|
let deferred0_0;
|
|
2700
2717
|
let deferred0_1;
|
|
2701
2718
|
try {
|
|
@@ -2707,7 +2724,7 @@ module.exports.__wbg_appendvalue_662936daac4a5b0e = function(arg0, arg1, arg2) {
|
|
|
2707
2724
|
}
|
|
2708
2725
|
};
|
|
2709
2726
|
|
|
2710
|
-
module.exports.
|
|
2727
|
+
module.exports.__wbg_flushdata_9472c01596035377 = function(arg0, arg1) {
|
|
2711
2728
|
let deferred0_0;
|
|
2712
2729
|
let deferred0_1;
|
|
2713
2730
|
try {
|
|
@@ -2719,7 +2736,7 @@ module.exports.__wbg_flushdata_511d8aa6d443a83d = function(arg0, arg1) {
|
|
|
2719
2736
|
}
|
|
2720
2737
|
};
|
|
2721
2738
|
|
|
2722
|
-
module.exports.
|
|
2739
|
+
module.exports.__wbg_readvalue_52aaffc6b45c3221 = function() { return handleError(function (arg0, arg1) {
|
|
2723
2740
|
let deferred0_0;
|
|
2724
2741
|
let deferred0_1;
|
|
2725
2742
|
try {
|
|
@@ -2732,12 +2749,12 @@ module.exports.__wbg_readvalue_0bfb240761c739d6 = function() { return handleErro
|
|
|
2732
2749
|
}
|
|
2733
2750
|
}, arguments) };
|
|
2734
2751
|
|
|
2735
|
-
module.exports.
|
|
2752
|
+
module.exports.__wbg_loadblockfilelist_a4e2a6d9d03ee691 = function() { return handleError(function () {
|
|
2736
2753
|
const ret = MsgHandler.load_block_file_list();
|
|
2737
2754
|
return addHeapObject(ret);
|
|
2738
2755
|
}, arguments) };
|
|
2739
2756
|
|
|
2740
|
-
module.exports.
|
|
2757
|
+
module.exports.__wbg_isexistingfile_961bc3427edd9588 = function() { return handleError(function (arg0, arg1) {
|
|
2741
2758
|
let deferred0_0;
|
|
2742
2759
|
let deferred0_1;
|
|
2743
2760
|
try {
|
|
@@ -2750,7 +2767,7 @@ module.exports.__wbg_isexistingfile_b472c19fc3f3e390 = function() { return handl
|
|
|
2750
2767
|
}
|
|
2751
2768
|
}, arguments) };
|
|
2752
2769
|
|
|
2753
|
-
module.exports.
|
|
2770
|
+
module.exports.__wbg_removevalue_04f5e8da4126f5ff = function() { return handleError(function (arg0, arg1) {
|
|
2754
2771
|
let deferred0_0;
|
|
2755
2772
|
let deferred0_1;
|
|
2756
2773
|
try {
|
|
@@ -2763,7 +2780,7 @@ module.exports.__wbg_removevalue_8e6e2c062de19687 = function() { return handleEr
|
|
|
2763
2780
|
}
|
|
2764
2781
|
}, arguments) };
|
|
2765
2782
|
|
|
2766
|
-
module.exports.
|
|
2783
|
+
module.exports.__wbg_ensureblockdirectoryexists_a66636c752771723 = function() { return handleError(function (arg0, arg1) {
|
|
2767
2784
|
let deferred0_0;
|
|
2768
2785
|
let deferred0_1;
|
|
2769
2786
|
try {
|
|
@@ -2775,19 +2792,19 @@ module.exports.__wbg_ensureblockdirectoryexists_26facff149bb01da = function() {
|
|
|
2775
2792
|
}
|
|
2776
2793
|
}, arguments) };
|
|
2777
2794
|
|
|
2778
|
-
module.exports.
|
|
2795
|
+
module.exports.__wbg_processapicall_58ba2d9ccb130e31 = function(arg0, arg1, arg2) {
|
|
2779
2796
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2780
2797
|
};
|
|
2781
2798
|
|
|
2782
|
-
module.exports.
|
|
2799
|
+
module.exports.__wbg_processapisuccess_9ead7dfd1f7243b6 = function(arg0, arg1, arg2) {
|
|
2783
2800
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2784
2801
|
};
|
|
2785
2802
|
|
|
2786
|
-
module.exports.
|
|
2803
|
+
module.exports.__wbg_processapierror_5edd170759073625 = function(arg0, arg1, arg2) {
|
|
2787
2804
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2788
2805
|
};
|
|
2789
2806
|
|
|
2790
|
-
module.exports.
|
|
2807
|
+
module.exports.__wbg_sendinterfaceevent_d7add55de27c21bc = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2791
2808
|
let deferred0_0;
|
|
2792
2809
|
let deferred0_1;
|
|
2793
2810
|
let deferred1_0;
|
|
@@ -2804,7 +2821,7 @@ module.exports.__wbg_sendinterfaceevent_7dc37fec97ed4c9b = function(arg0, arg1,
|
|
|
2804
2821
|
}
|
|
2805
2822
|
};
|
|
2806
2823
|
|
|
2807
|
-
module.exports.
|
|
2824
|
+
module.exports.__wbg_sendblocksuccess_35d6fef02f71245a = function(arg0, arg1, arg2) {
|
|
2808
2825
|
let deferred0_0;
|
|
2809
2826
|
let deferred0_1;
|
|
2810
2827
|
try {
|
|
@@ -2816,11 +2833,11 @@ module.exports.__wbg_sendblocksuccess_dbde6f387ab3df0f = function(arg0, arg1, ar
|
|
|
2816
2833
|
}
|
|
2817
2834
|
};
|
|
2818
2835
|
|
|
2819
|
-
module.exports.
|
|
2836
|
+
module.exports.__wbg_sendwalletupdate_7943305ec88b0155 = function() {
|
|
2820
2837
|
MsgHandler.send_wallet_update();
|
|
2821
2838
|
};
|
|
2822
2839
|
|
|
2823
|
-
module.exports.
|
|
2840
|
+
module.exports.__wbg_sendnewversionalert_7edac17a51748e05 = function(arg0, arg1, arg2) {
|
|
2824
2841
|
let deferred0_0;
|
|
2825
2842
|
let deferred0_1;
|
|
2826
2843
|
try {
|
|
@@ -2832,35 +2849,25 @@ module.exports.__wbg_sendnewversionalert_0611167010c3d4ac = function(arg0, arg1,
|
|
|
2832
2849
|
}
|
|
2833
2850
|
};
|
|
2834
2851
|
|
|
2835
|
-
module.exports.
|
|
2852
|
+
module.exports.__wbg_sendblockfetchstatusevent_87def7f265f52508 = function(arg0) {
|
|
2836
2853
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2837
2854
|
};
|
|
2838
2855
|
|
|
2839
|
-
module.exports.
|
|
2856
|
+
module.exports.__wbg_savewallet_36ef14fa90357832 = function() {
|
|
2840
2857
|
MsgHandler.save_wallet();
|
|
2841
2858
|
};
|
|
2842
2859
|
|
|
2843
|
-
module.exports.
|
|
2860
|
+
module.exports.__wbg_loadwallet_c140164674179902 = function() {
|
|
2844
2861
|
MsgHandler.load_wallet();
|
|
2845
2862
|
};
|
|
2846
2863
|
|
|
2847
|
-
module.exports.
|
|
2864
|
+
module.exports.__wbg_getmyservices_3277a77e136f5719 = function() {
|
|
2848
2865
|
const ret = MsgHandler.get_my_services();
|
|
2849
2866
|
_assertClass(ret, WasmPeerServiceList);
|
|
2850
2867
|
var ptr1 = ret.__destroy_into_raw();
|
|
2851
2868
|
return ptr1;
|
|
2852
2869
|
};
|
|
2853
2870
|
|
|
2854
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2855
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2856
|
-
return addHeapObject(ret);
|
|
2857
|
-
};
|
|
2858
|
-
|
|
2859
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2860
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2861
|
-
return addHeapObject(ret);
|
|
2862
|
-
};
|
|
2863
|
-
|
|
2864
2871
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2865
2872
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2866
2873
|
return ret;
|
|
@@ -3129,7 +3136,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3129
3136
|
const a = state0.a;
|
|
3130
3137
|
state0.a = 0;
|
|
3131
3138
|
try {
|
|
3132
|
-
return
|
|
3139
|
+
return __wbg_adapter_421(a, state0.b, arg0, arg1);
|
|
3133
3140
|
} finally {
|
|
3134
3141
|
state0.a = a;
|
|
3135
3142
|
}
|
|
@@ -3227,8 +3234,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3227
3234
|
return addHeapObject(ret);
|
|
3228
3235
|
};
|
|
3229
3236
|
|
|
3230
|
-
module.exports.
|
|
3231
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3237
|
+
module.exports.__wbindgen_closure_wrapper1475 = function(arg0, arg1, arg2) {
|
|
3238
|
+
const ret = makeMutClosure(arg0, arg1, 519, __wbg_adapter_38);
|
|
3232
3239
|
return addHeapObject(ret);
|
|
3233
3240
|
};
|
|
3234
3241
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|