saito-wasm 0.2.112 → 0.2.113
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 +59 -59
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.js +58 -58
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-eab9fda75cbbdea2 → saito-wasm-f010d5b73513e84e}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-eab9fda75cbbdea2 → saito-wasm-f010d5b73513e84e}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
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-f010d5b73513e84e/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');
|
|
@@ -2612,8 +2612,13 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2612
2612
|
return addHeapObject(ret);
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
module.exports.
|
|
2616
|
-
const ret =
|
|
2615
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2616
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2617
|
+
return addHeapObject(ret);
|
|
2618
|
+
};
|
|
2619
|
+
|
|
2620
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2621
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2617
2622
|
return addHeapObject(ret);
|
|
2618
2623
|
};
|
|
2619
2624
|
|
|
@@ -2622,27 +2627,23 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2622
2627
|
return addHeapObject(ret);
|
|
2623
2628
|
};
|
|
2624
2629
|
|
|
2625
|
-
module.exports.
|
|
2626
|
-
const ret =
|
|
2630
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2631
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2627
2632
|
return addHeapObject(ret);
|
|
2628
2633
|
};
|
|
2629
2634
|
|
|
2630
|
-
module.exports.
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2633
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2634
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2635
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2636
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2635
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2636
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2637
|
+
return addHeapObject(ret);
|
|
2637
2638
|
};
|
|
2638
2639
|
|
|
2639
|
-
module.exports.
|
|
2640
|
-
const ret =
|
|
2640
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2641
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2641
2642
|
return addHeapObject(ret);
|
|
2642
2643
|
};
|
|
2643
2644
|
|
|
2644
|
-
module.exports.
|
|
2645
|
-
const ret =
|
|
2645
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2646
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2646
2647
|
return addHeapObject(ret);
|
|
2647
2648
|
};
|
|
2648
2649
|
|
|
@@ -2651,24 +2652,23 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2651
2652
|
return addHeapObject(ret);
|
|
2652
2653
|
};
|
|
2653
2654
|
|
|
2654
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2655
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2656
|
-
return addHeapObject(ret);
|
|
2657
|
-
};
|
|
2658
|
-
|
|
2659
2655
|
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2660
2656
|
const ret = WasmWallet.__wrap(arg0);
|
|
2661
2657
|
return addHeapObject(ret);
|
|
2662
2658
|
};
|
|
2663
2659
|
|
|
2664
|
-
module.exports.
|
|
2665
|
-
const ret =
|
|
2660
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2661
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2666
2662
|
return addHeapObject(ret);
|
|
2667
2663
|
};
|
|
2668
2664
|
|
|
2669
|
-
module.exports.
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2665
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2666
|
+
const obj = getObject(arg1);
|
|
2667
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2668
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2669
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2670
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2671
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2672
2672
|
};
|
|
2673
2673
|
|
|
2674
2674
|
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
@@ -2697,15 +2697,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2697
2697
|
return ret;
|
|
2698
2698
|
};
|
|
2699
2699
|
|
|
2700
|
-
module.exports.
|
|
2700
|
+
module.exports.__wbg_sendmessage_8722a66575d1854e = function(arg0, arg1) {
|
|
2701
2701
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2702
2702
|
};
|
|
2703
2703
|
|
|
2704
|
-
module.exports.
|
|
2704
|
+
module.exports.__wbg_sendmessagetoall_bd91166af695f94c = function(arg0, arg1) {
|
|
2705
2705
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2706
2706
|
};
|
|
2707
2707
|
|
|
2708
|
-
module.exports.
|
|
2708
|
+
module.exports.__wbg_connecttopeer_117958f7e95e268a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2709
2709
|
let deferred0_0;
|
|
2710
2710
|
let deferred0_1;
|
|
2711
2711
|
try {
|
|
@@ -2718,12 +2718,12 @@ module.exports.__wbg_connecttopeer_f0a611583029a101 = function() { return handle
|
|
|
2718
2718
|
}
|
|
2719
2719
|
}, arguments) };
|
|
2720
2720
|
|
|
2721
|
-
module.exports.
|
|
2721
|
+
module.exports.__wbg_disconnectfrompeer_8229bcb16bda426d = function() { return handleError(function (arg0) {
|
|
2722
2722
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2723
2723
|
return addHeapObject(ret);
|
|
2724
2724
|
}, arguments) };
|
|
2725
2725
|
|
|
2726
|
-
module.exports.
|
|
2726
|
+
module.exports.__wbg_fetchblockfrompeer_6fee081796e68a5a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2727
2727
|
let deferred0_0;
|
|
2728
2728
|
let deferred0_1;
|
|
2729
2729
|
try {
|
|
@@ -2736,7 +2736,7 @@ module.exports.__wbg_fetchblockfrompeer_6339f61d8b14d9a2 = function() { return h
|
|
|
2736
2736
|
}
|
|
2737
2737
|
}, arguments) };
|
|
2738
2738
|
|
|
2739
|
-
module.exports.
|
|
2739
|
+
module.exports.__wbg_writevalue_02b5f7d74343f8b0 = function(arg0, arg1, arg2) {
|
|
2740
2740
|
let deferred0_0;
|
|
2741
2741
|
let deferred0_1;
|
|
2742
2742
|
try {
|
|
@@ -2748,7 +2748,7 @@ module.exports.__wbg_writevalue_a7746821d12a2727 = function(arg0, arg1, arg2) {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
};
|
|
2750
2750
|
|
|
2751
|
-
module.exports.
|
|
2751
|
+
module.exports.__wbg_appendvalue_3740587baf44c84e = function(arg0, arg1, arg2) {
|
|
2752
2752
|
let deferred0_0;
|
|
2753
2753
|
let deferred0_1;
|
|
2754
2754
|
try {
|
|
@@ -2760,7 +2760,7 @@ module.exports.__wbg_appendvalue_06fb3aacb33b9878 = function(arg0, arg1, arg2) {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
};
|
|
2762
2762
|
|
|
2763
|
-
module.exports.
|
|
2763
|
+
module.exports.__wbg_flushdata_af9a0f9908ae50ed = function(arg0, arg1) {
|
|
2764
2764
|
let deferred0_0;
|
|
2765
2765
|
let deferred0_1;
|
|
2766
2766
|
try {
|
|
@@ -2772,7 +2772,7 @@ module.exports.__wbg_flushdata_e80a3415d73b6ff3 = function(arg0, arg1) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
};
|
|
2774
2774
|
|
|
2775
|
-
module.exports.
|
|
2775
|
+
module.exports.__wbg_readvalue_c995da6b55de8a77 = function() { return handleError(function (arg0, arg1) {
|
|
2776
2776
|
let deferred0_0;
|
|
2777
2777
|
let deferred0_1;
|
|
2778
2778
|
try {
|
|
@@ -2785,12 +2785,12 @@ module.exports.__wbg_readvalue_6c3566c068041f88 = function() { return handleErro
|
|
|
2785
2785
|
}
|
|
2786
2786
|
}, arguments) };
|
|
2787
2787
|
|
|
2788
|
-
module.exports.
|
|
2788
|
+
module.exports.__wbg_loadblockfilelist_a580848ed34ea94b = function() { return handleError(function () {
|
|
2789
2789
|
const ret = MsgHandler.load_block_file_list();
|
|
2790
2790
|
return addHeapObject(ret);
|
|
2791
2791
|
}, arguments) };
|
|
2792
2792
|
|
|
2793
|
-
module.exports.
|
|
2793
|
+
module.exports.__wbg_isexistingfile_8f6a6dae02f00450 = function() { return handleError(function (arg0, arg1) {
|
|
2794
2794
|
let deferred0_0;
|
|
2795
2795
|
let deferred0_1;
|
|
2796
2796
|
try {
|
|
@@ -2803,7 +2803,7 @@ module.exports.__wbg_isexistingfile_85e05fe131c18dea = function() { return handl
|
|
|
2803
2803
|
}
|
|
2804
2804
|
}, arguments) };
|
|
2805
2805
|
|
|
2806
|
-
module.exports.
|
|
2806
|
+
module.exports.__wbg_removevalue_c5283a55097ba6fc = function() { return handleError(function (arg0, arg1) {
|
|
2807
2807
|
let deferred0_0;
|
|
2808
2808
|
let deferred0_1;
|
|
2809
2809
|
try {
|
|
@@ -2816,7 +2816,7 @@ module.exports.__wbg_removevalue_400affcfdd635e19 = function() { return handleEr
|
|
|
2816
2816
|
}
|
|
2817
2817
|
}, arguments) };
|
|
2818
2818
|
|
|
2819
|
-
module.exports.
|
|
2819
|
+
module.exports.__wbg_ensureblockdirectoryexists_8e69d56d3ad8b76a = function() { return handleError(function (arg0, arg1) {
|
|
2820
2820
|
let deferred0_0;
|
|
2821
2821
|
let deferred0_1;
|
|
2822
2822
|
try {
|
|
@@ -2828,19 +2828,19 @@ module.exports.__wbg_ensureblockdirectoryexists_62478fc743a2b094 = function() {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
}, arguments) };
|
|
2830
2830
|
|
|
2831
|
-
module.exports.
|
|
2831
|
+
module.exports.__wbg_processapicall_8462a8cebc0fe396 = function(arg0, arg1, arg2) {
|
|
2832
2832
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2833
2833
|
};
|
|
2834
2834
|
|
|
2835
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_processapisuccess_6708fb1f7ed307a0 = function(arg0, arg1, arg2) {
|
|
2836
2836
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2837
2837
|
};
|
|
2838
2838
|
|
|
2839
|
-
module.exports.
|
|
2839
|
+
module.exports.__wbg_processapierror_3b457a14e7be41f6 = function(arg0, arg1, arg2) {
|
|
2840
2840
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2841
2841
|
};
|
|
2842
2842
|
|
|
2843
|
-
module.exports.
|
|
2843
|
+
module.exports.__wbg_sendinterfaceevent_51185eb4fc26234a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2844
2844
|
let deferred0_0;
|
|
2845
2845
|
let deferred0_1;
|
|
2846
2846
|
let deferred1_0;
|
|
@@ -2857,7 +2857,7 @@ module.exports.__wbg_sendinterfaceevent_aae9b8960eeaf539 = function(arg0, arg1,
|
|
|
2857
2857
|
}
|
|
2858
2858
|
};
|
|
2859
2859
|
|
|
2860
|
-
module.exports.
|
|
2860
|
+
module.exports.__wbg_sendblocksuccess_7424ddcf6473780c = function(arg0, arg1, arg2) {
|
|
2861
2861
|
let deferred0_0;
|
|
2862
2862
|
let deferred0_1;
|
|
2863
2863
|
try {
|
|
@@ -2869,11 +2869,11 @@ module.exports.__wbg_sendblocksuccess_f64a68e984a0ce84 = function(arg0, arg1, ar
|
|
|
2869
2869
|
}
|
|
2870
2870
|
};
|
|
2871
2871
|
|
|
2872
|
-
module.exports.
|
|
2872
|
+
module.exports.__wbg_sendwalletupdate_167ed1772fab15a9 = function() {
|
|
2873
2873
|
MsgHandler.send_wallet_update();
|
|
2874
2874
|
};
|
|
2875
2875
|
|
|
2876
|
-
module.exports.
|
|
2876
|
+
module.exports.__wbg_sendnewversionalert_8d48f6b130c658a3 = function(arg0, arg1, arg2) {
|
|
2877
2877
|
let deferred0_0;
|
|
2878
2878
|
let deferred0_1;
|
|
2879
2879
|
try {
|
|
@@ -2885,19 +2885,19 @@ module.exports.__wbg_sendnewversionalert_ca1e3abf55511d65 = function(arg0, arg1,
|
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
2887
|
|
|
2888
|
-
module.exports.
|
|
2888
|
+
module.exports.__wbg_sendblockfetchstatusevent_0350ab2ed387a55a = function(arg0) {
|
|
2889
2889
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2890
2890
|
};
|
|
2891
2891
|
|
|
2892
|
-
module.exports.
|
|
2892
|
+
module.exports.__wbg_savewallet_cc14cc773f9a5fd5 = function() {
|
|
2893
2893
|
MsgHandler.save_wallet();
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
|
-
module.exports.
|
|
2896
|
+
module.exports.__wbg_loadwallet_7ac2e55235986788 = function() {
|
|
2897
2897
|
MsgHandler.load_wallet();
|
|
2898
2898
|
};
|
|
2899
2899
|
|
|
2900
|
-
module.exports.
|
|
2900
|
+
module.exports.__wbg_getmyservices_eab8b1151f757b1b = function() {
|
|
2901
2901
|
const ret = MsgHandler.get_my_services();
|
|
2902
2902
|
_assertClass(ret, WasmPeerServiceList);
|
|
2903
2903
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-f010d5b73513e84e/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,15 +22,6 @@ function takeObject(idx) {
|
|
|
22
22
|
return ret;
|
|
23
23
|
}
|
|
24
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
25
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
26
|
|
|
36
27
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
49
40
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
41
|
}
|
|
51
42
|
|
|
43
|
+
function addHeapObject(obj) {
|
|
44
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
+
const idx = heap_next;
|
|
46
|
+
heap_next = heap[idx];
|
|
47
|
+
|
|
48
|
+
heap[idx] = obj;
|
|
49
|
+
return idx;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -2626,46 +2626,26 @@ function __wbg_get_imports() {
|
|
|
2626
2626
|
const ret = WasmPeer.__wrap(arg0);
|
|
2627
2627
|
return addHeapObject(ret);
|
|
2628
2628
|
};
|
|
2629
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2630
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2631
|
-
return addHeapObject(ret);
|
|
2632
|
-
};
|
|
2633
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2634
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2635
|
-
return addHeapObject(ret);
|
|
2636
|
-
};
|
|
2637
2629
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2638
2630
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2639
2631
|
return addHeapObject(ret);
|
|
2640
2632
|
};
|
|
2641
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2642
|
-
const obj = getObject(arg1);
|
|
2643
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2644
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2645
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2646
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2647
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2648
|
-
};
|
|
2649
2633
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2650
2634
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2651
2635
|
return addHeapObject(ret);
|
|
2652
2636
|
};
|
|
2653
|
-
imports.wbg.
|
|
2654
|
-
const ret =
|
|
2637
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2638
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2655
2639
|
return addHeapObject(ret);
|
|
2656
2640
|
};
|
|
2657
|
-
imports.wbg.
|
|
2658
|
-
const ret =
|
|
2641
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2642
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2659
2643
|
return addHeapObject(ret);
|
|
2660
2644
|
};
|
|
2661
2645
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2662
2646
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2663
2647
|
return addHeapObject(ret);
|
|
2664
2648
|
};
|
|
2665
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2666
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2667
|
-
return addHeapObject(ret);
|
|
2668
|
-
};
|
|
2669
2649
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2670
2650
|
const ret = WasmSlip.__wrap(arg0);
|
|
2671
2651
|
return addHeapObject(ret);
|
|
@@ -2674,6 +2654,26 @@ function __wbg_get_imports() {
|
|
|
2674
2654
|
const ret = WasmNFT.__wrap(arg0);
|
|
2675
2655
|
return addHeapObject(ret);
|
|
2676
2656
|
};
|
|
2657
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2658
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2659
|
+
return addHeapObject(ret);
|
|
2660
|
+
};
|
|
2661
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2662
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2663
|
+
return addHeapObject(ret);
|
|
2664
|
+
};
|
|
2665
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2666
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2667
|
+
return addHeapObject(ret);
|
|
2668
|
+
};
|
|
2669
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2670
|
+
const obj = getObject(arg1);
|
|
2671
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2672
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2673
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2674
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2675
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2676
|
+
};
|
|
2677
2677
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2678
2678
|
const ret = WasmHop.__wrap(arg0);
|
|
2679
2679
|
return addHeapObject(ret);
|
|
@@ -2695,13 +2695,13 @@ function __wbg_get_imports() {
|
|
|
2695
2695
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2696
2696
|
return ret;
|
|
2697
2697
|
};
|
|
2698
|
-
imports.wbg.
|
|
2698
|
+
imports.wbg.__wbg_sendmessage_8722a66575d1854e = function(arg0, arg1) {
|
|
2699
2699
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2700
2700
|
};
|
|
2701
|
-
imports.wbg.
|
|
2701
|
+
imports.wbg.__wbg_sendmessagetoall_bd91166af695f94c = function(arg0, arg1) {
|
|
2702
2702
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2703
2703
|
};
|
|
2704
|
-
imports.wbg.
|
|
2704
|
+
imports.wbg.__wbg_connecttopeer_117958f7e95e268a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2705
2705
|
let deferred0_0;
|
|
2706
2706
|
let deferred0_1;
|
|
2707
2707
|
try {
|
|
@@ -2713,11 +2713,11 @@ function __wbg_get_imports() {
|
|
|
2713
2713
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2714
2714
|
}
|
|
2715
2715
|
}, arguments) };
|
|
2716
|
-
imports.wbg.
|
|
2716
|
+
imports.wbg.__wbg_disconnectfrompeer_8229bcb16bda426d = function() { return handleError(function (arg0) {
|
|
2717
2717
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2718
2718
|
return addHeapObject(ret);
|
|
2719
2719
|
}, arguments) };
|
|
2720
|
-
imports.wbg.
|
|
2720
|
+
imports.wbg.__wbg_fetchblockfrompeer_6fee081796e68a5a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2721
2721
|
let deferred0_0;
|
|
2722
2722
|
let deferred0_1;
|
|
2723
2723
|
try {
|
|
@@ -2729,7 +2729,7 @@ function __wbg_get_imports() {
|
|
|
2729
2729
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2730
2730
|
}
|
|
2731
2731
|
}, arguments) };
|
|
2732
|
-
imports.wbg.
|
|
2732
|
+
imports.wbg.__wbg_writevalue_02b5f7d74343f8b0 = function(arg0, arg1, arg2) {
|
|
2733
2733
|
let deferred0_0;
|
|
2734
2734
|
let deferred0_1;
|
|
2735
2735
|
try {
|
|
@@ -2740,7 +2740,7 @@ function __wbg_get_imports() {
|
|
|
2740
2740
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2741
2741
|
}
|
|
2742
2742
|
};
|
|
2743
|
-
imports.wbg.
|
|
2743
|
+
imports.wbg.__wbg_appendvalue_3740587baf44c84e = function(arg0, arg1, arg2) {
|
|
2744
2744
|
let deferred0_0;
|
|
2745
2745
|
let deferred0_1;
|
|
2746
2746
|
try {
|
|
@@ -2751,7 +2751,7 @@ function __wbg_get_imports() {
|
|
|
2751
2751
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2752
2752
|
}
|
|
2753
2753
|
};
|
|
2754
|
-
imports.wbg.
|
|
2754
|
+
imports.wbg.__wbg_flushdata_af9a0f9908ae50ed = function(arg0, arg1) {
|
|
2755
2755
|
let deferred0_0;
|
|
2756
2756
|
let deferred0_1;
|
|
2757
2757
|
try {
|
|
@@ -2762,7 +2762,7 @@ function __wbg_get_imports() {
|
|
|
2762
2762
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2763
2763
|
}
|
|
2764
2764
|
};
|
|
2765
|
-
imports.wbg.
|
|
2765
|
+
imports.wbg.__wbg_readvalue_c995da6b55de8a77 = function() { return handleError(function (arg0, arg1) {
|
|
2766
2766
|
let deferred0_0;
|
|
2767
2767
|
let deferred0_1;
|
|
2768
2768
|
try {
|
|
@@ -2774,11 +2774,11 @@ function __wbg_get_imports() {
|
|
|
2774
2774
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2775
2775
|
}
|
|
2776
2776
|
}, arguments) };
|
|
2777
|
-
imports.wbg.
|
|
2777
|
+
imports.wbg.__wbg_loadblockfilelist_a580848ed34ea94b = function() { return handleError(function () {
|
|
2778
2778
|
const ret = MsgHandler.load_block_file_list();
|
|
2779
2779
|
return addHeapObject(ret);
|
|
2780
2780
|
}, arguments) };
|
|
2781
|
-
imports.wbg.
|
|
2781
|
+
imports.wbg.__wbg_isexistingfile_8f6a6dae02f00450 = function() { return handleError(function (arg0, arg1) {
|
|
2782
2782
|
let deferred0_0;
|
|
2783
2783
|
let deferred0_1;
|
|
2784
2784
|
try {
|
|
@@ -2790,7 +2790,7 @@ function __wbg_get_imports() {
|
|
|
2790
2790
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2791
2791
|
}
|
|
2792
2792
|
}, arguments) };
|
|
2793
|
-
imports.wbg.
|
|
2793
|
+
imports.wbg.__wbg_removevalue_c5283a55097ba6fc = function() { return handleError(function (arg0, arg1) {
|
|
2794
2794
|
let deferred0_0;
|
|
2795
2795
|
let deferred0_1;
|
|
2796
2796
|
try {
|
|
@@ -2802,7 +2802,7 @@ function __wbg_get_imports() {
|
|
|
2802
2802
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2803
2803
|
}
|
|
2804
2804
|
}, arguments) };
|
|
2805
|
-
imports.wbg.
|
|
2805
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_8e69d56d3ad8b76a = function() { return handleError(function (arg0, arg1) {
|
|
2806
2806
|
let deferred0_0;
|
|
2807
2807
|
let deferred0_1;
|
|
2808
2808
|
try {
|
|
@@ -2813,16 +2813,16 @@ function __wbg_get_imports() {
|
|
|
2813
2813
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2814
2814
|
}
|
|
2815
2815
|
}, arguments) };
|
|
2816
|
-
imports.wbg.
|
|
2816
|
+
imports.wbg.__wbg_processapicall_8462a8cebc0fe396 = function(arg0, arg1, arg2) {
|
|
2817
2817
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2818
2818
|
};
|
|
2819
|
-
imports.wbg.
|
|
2819
|
+
imports.wbg.__wbg_processapisuccess_6708fb1f7ed307a0 = function(arg0, arg1, arg2) {
|
|
2820
2820
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2821
2821
|
};
|
|
2822
|
-
imports.wbg.
|
|
2822
|
+
imports.wbg.__wbg_processapierror_3b457a14e7be41f6 = function(arg0, arg1, arg2) {
|
|
2823
2823
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2824
2824
|
};
|
|
2825
|
-
imports.wbg.
|
|
2825
|
+
imports.wbg.__wbg_sendinterfaceevent_51185eb4fc26234a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2826
2826
|
let deferred0_0;
|
|
2827
2827
|
let deferred0_1;
|
|
2828
2828
|
let deferred1_0;
|
|
@@ -2838,7 +2838,7 @@ function __wbg_get_imports() {
|
|
|
2838
2838
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2839
2839
|
}
|
|
2840
2840
|
};
|
|
2841
|
-
imports.wbg.
|
|
2841
|
+
imports.wbg.__wbg_sendblocksuccess_7424ddcf6473780c = function(arg0, arg1, arg2) {
|
|
2842
2842
|
let deferred0_0;
|
|
2843
2843
|
let deferred0_1;
|
|
2844
2844
|
try {
|
|
@@ -2849,10 +2849,10 @@ function __wbg_get_imports() {
|
|
|
2849
2849
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2850
2850
|
}
|
|
2851
2851
|
};
|
|
2852
|
-
imports.wbg.
|
|
2852
|
+
imports.wbg.__wbg_sendwalletupdate_167ed1772fab15a9 = function() {
|
|
2853
2853
|
MsgHandler.send_wallet_update();
|
|
2854
2854
|
};
|
|
2855
|
-
imports.wbg.
|
|
2855
|
+
imports.wbg.__wbg_sendnewversionalert_8d48f6b130c658a3 = function(arg0, arg1, arg2) {
|
|
2856
2856
|
let deferred0_0;
|
|
2857
2857
|
let deferred0_1;
|
|
2858
2858
|
try {
|
|
@@ -2863,16 +2863,16 @@ function __wbg_get_imports() {
|
|
|
2863
2863
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2864
2864
|
}
|
|
2865
2865
|
};
|
|
2866
|
-
imports.wbg.
|
|
2866
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_0350ab2ed387a55a = function(arg0) {
|
|
2867
2867
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2868
2868
|
};
|
|
2869
|
-
imports.wbg.
|
|
2869
|
+
imports.wbg.__wbg_savewallet_cc14cc773f9a5fd5 = function() {
|
|
2870
2870
|
MsgHandler.save_wallet();
|
|
2871
2871
|
};
|
|
2872
|
-
imports.wbg.
|
|
2872
|
+
imports.wbg.__wbg_loadwallet_7ac2e55235986788 = function() {
|
|
2873
2873
|
MsgHandler.load_wallet();
|
|
2874
2874
|
};
|
|
2875
|
-
imports.wbg.
|
|
2875
|
+
imports.wbg.__wbg_getmyservices_eab8b1151f757b1b = function() {
|
|
2876
2876
|
const ret = MsgHandler.get_my_services();
|
|
2877
2877
|
_assertClass(ret, WasmPeerServiceList);
|
|
2878
2878
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|