saito-wasm 0.2.91 → 0.2.93
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 +9 -0
- package/pkg/node/index.js +115 -86
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +98 -96
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +107 -96
- package/pkg/web/index.js +112 -84
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +98 -96
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-f7efd141dd704c2a → saito-wasm-1508f323aa70efc2}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-f7efd141dd704c2a → saito-wasm-1508f323aa70efc2}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -239,6 +239,10 @@ export function produce_block_with_gt(): Promise<boolean>;
|
|
|
239
239
|
*/
|
|
240
240
|
export function produce_block_without_gt(): Promise<boolean>;
|
|
241
241
|
/**
|
|
242
|
+
* @returns {Promise<string>}
|
|
243
|
+
*/
|
|
244
|
+
export function get_stats(): Promise<string>;
|
|
245
|
+
/**
|
|
242
246
|
*/
|
|
243
247
|
export class SaitoWasm {
|
|
244
248
|
free(): void;
|
|
@@ -699,6 +703,11 @@ export class WasmSlip {
|
|
|
699
703
|
}
|
|
700
704
|
/**
|
|
701
705
|
*/
|
|
706
|
+
export class WasmStats {
|
|
707
|
+
free(): void;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
*/
|
|
702
711
|
export class WasmTransaction {
|
|
703
712
|
free(): void;
|
|
704
713
|
/**
|
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-1508f323aa70efc2/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -24,7 +24,18 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
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
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
|
+
|
|
38
|
+
cachedTextDecoder.decode();
|
|
28
39
|
|
|
29
40
|
let cachedUint8Memory0 = null;
|
|
30
41
|
|
|
@@ -35,6 +46,13 @@ function getUint8Memory0() {
|
|
|
35
46
|
return cachedUint8Memory0;
|
|
36
47
|
}
|
|
37
48
|
|
|
49
|
+
function getStringFromWasm0(ptr, len) {
|
|
50
|
+
ptr = ptr >>> 0;
|
|
51
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
38
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
39
57
|
|
|
40
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -102,24 +120,6 @@ function getInt32Memory0() {
|
|
|
102
120
|
return cachedInt32Memory0;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
106
|
-
|
|
107
|
-
cachedTextDecoder.decode();
|
|
108
|
-
|
|
109
|
-
function getStringFromWasm0(ptr, len) {
|
|
110
|
-
ptr = ptr >>> 0;
|
|
111
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function addHeapObject(obj) {
|
|
115
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
116
|
-
const idx = heap_next;
|
|
117
|
-
heap_next = heap[idx];
|
|
118
|
-
|
|
119
|
-
heap[idx] = obj;
|
|
120
|
-
return idx;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -228,6 +228,13 @@ 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 _assertClass(instance, klass) {
|
|
232
|
+
if (!(instance instanceof klass)) {
|
|
233
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
234
|
+
}
|
|
235
|
+
return instance.ptr;
|
|
236
|
+
}
|
|
237
|
+
|
|
231
238
|
function handleError(f, args) {
|
|
232
239
|
try {
|
|
233
240
|
return f.apply(this, args);
|
|
@@ -236,13 +243,6 @@ function handleError(f, args) {
|
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
245
|
|
|
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
246
|
let stack_pointer = 128;
|
|
247
247
|
|
|
248
248
|
function addBorrowedObject(obj) {
|
|
@@ -681,7 +681,15 @@ module.exports.produce_block_without_gt = function() {
|
|
|
681
681
|
return takeObject(ret);
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
|
|
684
|
+
/**
|
|
685
|
+
* @returns {Promise<string>}
|
|
686
|
+
*/
|
|
687
|
+
module.exports.get_stats = function() {
|
|
688
|
+
const ret = wasm.get_stats();
|
|
689
|
+
return takeObject(ret);
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
function __wbg_adapter_419(arg0, arg1, arg2, arg3) {
|
|
685
693
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
686
694
|
}
|
|
687
695
|
|
|
@@ -2048,6 +2056,27 @@ class WasmSlip {
|
|
|
2048
2056
|
}
|
|
2049
2057
|
module.exports.WasmSlip = WasmSlip;
|
|
2050
2058
|
|
|
2059
|
+
const WasmStatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2060
|
+
? { register: () => {}, unregister: () => {} }
|
|
2061
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstats_free(ptr >>> 0));
|
|
2062
|
+
/**
|
|
2063
|
+
*/
|
|
2064
|
+
class WasmStats {
|
|
2065
|
+
|
|
2066
|
+
__destroy_into_raw() {
|
|
2067
|
+
const ptr = this.__wbg_ptr;
|
|
2068
|
+
this.__wbg_ptr = 0;
|
|
2069
|
+
WasmStatsFinalization.unregister(this);
|
|
2070
|
+
return ptr;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
free() {
|
|
2074
|
+
const ptr = this.__destroy_into_raw();
|
|
2075
|
+
wasm.__wbg_wasmstats_free(ptr);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
module.exports.WasmStats = WasmStats;
|
|
2079
|
+
|
|
2051
2080
|
const WasmTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2052
2081
|
? { register: () => {}, unregister: () => {} }
|
|
2053
2082
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransaction_free(ptr >>> 0));
|
|
@@ -2522,17 +2551,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2522
2551
|
takeObject(arg0);
|
|
2523
2552
|
};
|
|
2524
2553
|
|
|
2525
|
-
module.exports.
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2528
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2529
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2530
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2531
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2554
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2555
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2556
|
+
return addHeapObject(ret);
|
|
2532
2557
|
};
|
|
2533
2558
|
|
|
2534
|
-
module.exports.
|
|
2535
|
-
const ret =
|
|
2559
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2560
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2536
2561
|
return addHeapObject(ret);
|
|
2537
2562
|
};
|
|
2538
2563
|
|
|
@@ -2541,48 +2566,57 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2541
2566
|
return addHeapObject(ret);
|
|
2542
2567
|
};
|
|
2543
2568
|
|
|
2544
|
-
module.exports.
|
|
2545
|
-
const ret =
|
|
2569
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2570
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2546
2571
|
return addHeapObject(ret);
|
|
2547
2572
|
};
|
|
2548
2573
|
|
|
2574
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2575
|
+
const obj = getObject(arg1);
|
|
2576
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2577
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2578
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2579
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2580
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2581
|
+
};
|
|
2582
|
+
|
|
2549
2583
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2550
2584
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2551
2585
|
return addHeapObject(ret);
|
|
2552
2586
|
};
|
|
2553
2587
|
|
|
2554
|
-
module.exports.
|
|
2555
|
-
const ret =
|
|
2588
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2589
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2556
2590
|
return addHeapObject(ret);
|
|
2557
2591
|
};
|
|
2558
2592
|
|
|
2559
|
-
module.exports.
|
|
2560
|
-
const ret =
|
|
2593
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2594
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2561
2595
|
return addHeapObject(ret);
|
|
2562
2596
|
};
|
|
2563
2597
|
|
|
2564
|
-
module.exports.
|
|
2565
|
-
const ret =
|
|
2598
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2599
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2566
2600
|
return addHeapObject(ret);
|
|
2567
2601
|
};
|
|
2568
2602
|
|
|
2569
|
-
module.exports.
|
|
2570
|
-
const ret =
|
|
2603
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2604
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2571
2605
|
return addHeapObject(ret);
|
|
2572
2606
|
};
|
|
2573
2607
|
|
|
2574
|
-
module.exports.
|
|
2575
|
-
const ret =
|
|
2608
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2609
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2576
2610
|
return addHeapObject(ret);
|
|
2577
2611
|
};
|
|
2578
2612
|
|
|
2579
|
-
module.exports.
|
|
2580
|
-
const ret =
|
|
2613
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2614
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2581
2615
|
return addHeapObject(ret);
|
|
2582
2616
|
};
|
|
2583
2617
|
|
|
2584
|
-
module.exports.
|
|
2585
|
-
const ret =
|
|
2618
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2619
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2586
2620
|
return addHeapObject(ret);
|
|
2587
2621
|
};
|
|
2588
2622
|
|
|
@@ -2602,15 +2636,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2602
2636
|
return ret;
|
|
2603
2637
|
};
|
|
2604
2638
|
|
|
2605
|
-
module.exports.
|
|
2639
|
+
module.exports.__wbg_sendmessage_7da6b536e60629d8 = function(arg0, arg1) {
|
|
2606
2640
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2607
2641
|
};
|
|
2608
2642
|
|
|
2609
|
-
module.exports.
|
|
2643
|
+
module.exports.__wbg_sendmessagetoall_9746becda496e1a8 = function(arg0, arg1) {
|
|
2610
2644
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2611
2645
|
};
|
|
2612
2646
|
|
|
2613
|
-
module.exports.
|
|
2647
|
+
module.exports.__wbg_connecttopeer_38a6c0f7ca69b030 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2614
2648
|
let deferred0_0;
|
|
2615
2649
|
let deferred0_1;
|
|
2616
2650
|
try {
|
|
@@ -2623,12 +2657,12 @@ module.exports.__wbg_connecttopeer_f0aa249c0cb260bb = function() { return handle
|
|
|
2623
2657
|
}
|
|
2624
2658
|
}, arguments) };
|
|
2625
2659
|
|
|
2626
|
-
module.exports.
|
|
2660
|
+
module.exports.__wbg_disconnectfrompeer_f764615b16ce87db = function() { return handleError(function (arg0) {
|
|
2627
2661
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2628
2662
|
return addHeapObject(ret);
|
|
2629
2663
|
}, arguments) };
|
|
2630
2664
|
|
|
2631
|
-
module.exports.
|
|
2665
|
+
module.exports.__wbg_fetchblockfrompeer_05f4accffdcb4e73 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2632
2666
|
let deferred0_0;
|
|
2633
2667
|
let deferred0_1;
|
|
2634
2668
|
try {
|
|
@@ -2641,7 +2675,7 @@ module.exports.__wbg_fetchblockfrompeer_446802cc5a0e8f24 = function() { return h
|
|
|
2641
2675
|
}
|
|
2642
2676
|
}, arguments) };
|
|
2643
2677
|
|
|
2644
|
-
module.exports.
|
|
2678
|
+
module.exports.__wbg_writevalue_52c350b098d8ba6d = function(arg0, arg1, arg2) {
|
|
2645
2679
|
let deferred0_0;
|
|
2646
2680
|
let deferred0_1;
|
|
2647
2681
|
try {
|
|
@@ -2653,7 +2687,7 @@ module.exports.__wbg_writevalue_7f197a2c14d6ffad = function(arg0, arg1, arg2) {
|
|
|
2653
2687
|
}
|
|
2654
2688
|
};
|
|
2655
2689
|
|
|
2656
|
-
module.exports.
|
|
2690
|
+
module.exports.__wbg_appendvalue_d52b5112f880c2bd = function(arg0, arg1, arg2) {
|
|
2657
2691
|
let deferred0_0;
|
|
2658
2692
|
let deferred0_1;
|
|
2659
2693
|
try {
|
|
@@ -2665,7 +2699,7 @@ module.exports.__wbg_appendvalue_8121a88094f3f7a8 = function(arg0, arg1, arg2) {
|
|
|
2665
2699
|
}
|
|
2666
2700
|
};
|
|
2667
2701
|
|
|
2668
|
-
module.exports.
|
|
2702
|
+
module.exports.__wbg_flushdata_7eae5dacc6aa6fd6 = function(arg0, arg1) {
|
|
2669
2703
|
let deferred0_0;
|
|
2670
2704
|
let deferred0_1;
|
|
2671
2705
|
try {
|
|
@@ -2677,7 +2711,7 @@ module.exports.__wbg_flushdata_2b2068dbe003e2b6 = function(arg0, arg1) {
|
|
|
2677
2711
|
}
|
|
2678
2712
|
};
|
|
2679
2713
|
|
|
2680
|
-
module.exports.
|
|
2714
|
+
module.exports.__wbg_readvalue_2ab41e8d220d2dea = function() { return handleError(function (arg0, arg1) {
|
|
2681
2715
|
let deferred0_0;
|
|
2682
2716
|
let deferred0_1;
|
|
2683
2717
|
try {
|
|
@@ -2690,12 +2724,12 @@ module.exports.__wbg_readvalue_b21d23088be046b6 = function() { return handleErro
|
|
|
2690
2724
|
}
|
|
2691
2725
|
}, arguments) };
|
|
2692
2726
|
|
|
2693
|
-
module.exports.
|
|
2727
|
+
module.exports.__wbg_loadblockfilelist_abd183222cb57c66 = function() { return handleError(function () {
|
|
2694
2728
|
const ret = MsgHandler.load_block_file_list();
|
|
2695
2729
|
return addHeapObject(ret);
|
|
2696
2730
|
}, arguments) };
|
|
2697
2731
|
|
|
2698
|
-
module.exports.
|
|
2732
|
+
module.exports.__wbg_isexistingfile_7adfeb51601d9a39 = function() { return handleError(function (arg0, arg1) {
|
|
2699
2733
|
let deferred0_0;
|
|
2700
2734
|
let deferred0_1;
|
|
2701
2735
|
try {
|
|
@@ -2708,7 +2742,7 @@ module.exports.__wbg_isexistingfile_f6d46fc85bf42315 = function() { return handl
|
|
|
2708
2742
|
}
|
|
2709
2743
|
}, arguments) };
|
|
2710
2744
|
|
|
2711
|
-
module.exports.
|
|
2745
|
+
module.exports.__wbg_removevalue_023a9b789c850581 = function() { return handleError(function (arg0, arg1) {
|
|
2712
2746
|
let deferred0_0;
|
|
2713
2747
|
let deferred0_1;
|
|
2714
2748
|
try {
|
|
@@ -2721,7 +2755,7 @@ module.exports.__wbg_removevalue_fed69886decc678c = function() { return handleEr
|
|
|
2721
2755
|
}
|
|
2722
2756
|
}, arguments) };
|
|
2723
2757
|
|
|
2724
|
-
module.exports.
|
|
2758
|
+
module.exports.__wbg_ensureblockdirectoryexists_18f639bed1c973ea = function() { return handleError(function (arg0, arg1) {
|
|
2725
2759
|
let deferred0_0;
|
|
2726
2760
|
let deferred0_1;
|
|
2727
2761
|
try {
|
|
@@ -2733,19 +2767,19 @@ module.exports.__wbg_ensureblockdirectoryexists_2fabac0174f39885 = function() {
|
|
|
2733
2767
|
}
|
|
2734
2768
|
}, arguments) };
|
|
2735
2769
|
|
|
2736
|
-
module.exports.
|
|
2770
|
+
module.exports.__wbg_processapicall_d4420f96292edf10 = function(arg0, arg1, arg2) {
|
|
2737
2771
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2738
2772
|
};
|
|
2739
2773
|
|
|
2740
|
-
module.exports.
|
|
2774
|
+
module.exports.__wbg_processapisuccess_22b999c5e9efd7b3 = function(arg0, arg1, arg2) {
|
|
2741
2775
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2742
2776
|
};
|
|
2743
2777
|
|
|
2744
|
-
module.exports.
|
|
2778
|
+
module.exports.__wbg_processapierror_426f26232b72bec2 = function(arg0, arg1, arg2) {
|
|
2745
2779
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2746
2780
|
};
|
|
2747
2781
|
|
|
2748
|
-
module.exports.
|
|
2782
|
+
module.exports.__wbg_sendinterfaceevent_62edd715d62b856b = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2749
2783
|
let deferred0_0;
|
|
2750
2784
|
let deferred0_1;
|
|
2751
2785
|
let deferred1_0;
|
|
@@ -2762,7 +2796,7 @@ module.exports.__wbg_sendinterfaceevent_74088ba4c3a6770e = function(arg0, arg1,
|
|
|
2762
2796
|
}
|
|
2763
2797
|
};
|
|
2764
2798
|
|
|
2765
|
-
module.exports.
|
|
2799
|
+
module.exports.__wbg_sendblocksuccess_ca14df574b2164de = function(arg0, arg1, arg2) {
|
|
2766
2800
|
let deferred0_0;
|
|
2767
2801
|
let deferred0_1;
|
|
2768
2802
|
try {
|
|
@@ -2774,11 +2808,11 @@ module.exports.__wbg_sendblocksuccess_59aa6c448defd85b = function(arg0, arg1, ar
|
|
|
2774
2808
|
}
|
|
2775
2809
|
};
|
|
2776
2810
|
|
|
2777
|
-
module.exports.
|
|
2811
|
+
module.exports.__wbg_sendwalletupdate_8da949e7c02a50a9 = function() {
|
|
2778
2812
|
MsgHandler.send_wallet_update();
|
|
2779
2813
|
};
|
|
2780
2814
|
|
|
2781
|
-
module.exports.
|
|
2815
|
+
module.exports.__wbg_sendnewversionalert_75337b4f4d4963bc = function(arg0, arg1, arg2) {
|
|
2782
2816
|
let deferred0_0;
|
|
2783
2817
|
let deferred0_1;
|
|
2784
2818
|
try {
|
|
@@ -2790,19 +2824,19 @@ module.exports.__wbg_sendnewversionalert_3d8a016478a008a8 = function(arg0, arg1,
|
|
|
2790
2824
|
}
|
|
2791
2825
|
};
|
|
2792
2826
|
|
|
2793
|
-
module.exports.
|
|
2827
|
+
module.exports.__wbg_sendblockfetchstatusevent_88042b60d97e121b = function(arg0) {
|
|
2794
2828
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2795
2829
|
};
|
|
2796
2830
|
|
|
2797
|
-
module.exports.
|
|
2831
|
+
module.exports.__wbg_savewallet_03c1a613203972ea = function() {
|
|
2798
2832
|
MsgHandler.save_wallet();
|
|
2799
2833
|
};
|
|
2800
2834
|
|
|
2801
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_loadwallet_7fa67f74fb8ed52d = function() {
|
|
2802
2836
|
MsgHandler.load_wallet();
|
|
2803
2837
|
};
|
|
2804
2838
|
|
|
2805
|
-
module.exports.
|
|
2839
|
+
module.exports.__wbg_getmyservices_07a6e1837cf0723a = function() {
|
|
2806
2840
|
const ret = MsgHandler.get_my_services();
|
|
2807
2841
|
_assertClass(ret, WasmPeerServiceList);
|
|
2808
2842
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2814,11 +2848,6 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2814
2848
|
return addHeapObject(ret);
|
|
2815
2849
|
};
|
|
2816
2850
|
|
|
2817
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2818
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2819
|
-
return addHeapObject(ret);
|
|
2820
|
-
};
|
|
2821
|
-
|
|
2822
2851
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2823
2852
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2824
2853
|
return addHeapObject(ret);
|
|
@@ -3092,7 +3121,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3092
3121
|
const a = state0.a;
|
|
3093
3122
|
state0.a = 0;
|
|
3094
3123
|
try {
|
|
3095
|
-
return
|
|
3124
|
+
return __wbg_adapter_419(a, state0.b, arg0, arg1);
|
|
3096
3125
|
} finally {
|
|
3097
3126
|
state0.a = a;
|
|
3098
3127
|
}
|
|
@@ -3190,8 +3219,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3190
3219
|
return addHeapObject(ret);
|
|
3191
3220
|
};
|
|
3192
3221
|
|
|
3193
|
-
module.exports.
|
|
3194
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3222
|
+
module.exports.__wbindgen_closure_wrapper1367 = function(arg0, arg1, arg2) {
|
|
3223
|
+
const ret = makeMutClosure(arg0, arg1, 486, __wbg_adapter_38);
|
|
3195
3224
|
return addHeapObject(ret);
|
|
3196
3225
|
};
|
|
3197
3226
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|