saito-wasm 0.2.155 → 0.2.156
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 +52 -52
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.js +50 -50
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-6b97c5be8a9fde4d → saito-wasm-eb83d05fba136b5b}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-6b97c5be8a9fde4d → saito-wasm-eb83d05fba136b5b}/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-eb83d05fba136b5b/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -2634,11 +2634,6 @@ class WasmWalletSlip {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2636
2636
|
|
|
2637
|
-
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2638
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2639
|
-
return addHeapObject(ret);
|
|
2640
|
-
};
|
|
2641
|
-
|
|
2642
2637
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2643
2638
|
takeObject(arg0);
|
|
2644
2639
|
};
|
|
@@ -2648,22 +2643,13 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2648
2643
|
return addHeapObject(ret);
|
|
2649
2644
|
};
|
|
2650
2645
|
|
|
2651
|
-
module.exports.
|
|
2652
|
-
const
|
|
2653
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2654
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2655
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2656
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2657
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2658
|
-
};
|
|
2659
|
-
|
|
2660
|
-
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2661
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2646
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2647
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2662
2648
|
return addHeapObject(ret);
|
|
2663
2649
|
};
|
|
2664
2650
|
|
|
2665
|
-
module.exports.
|
|
2666
|
-
const ret =
|
|
2651
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2652
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2667
2653
|
return addHeapObject(ret);
|
|
2668
2654
|
};
|
|
2669
2655
|
|
|
@@ -2672,28 +2658,37 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2672
2658
|
return addHeapObject(ret);
|
|
2673
2659
|
};
|
|
2674
2660
|
|
|
2675
|
-
module.exports.
|
|
2676
|
-
const ret =
|
|
2661
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2662
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2677
2663
|
return addHeapObject(ret);
|
|
2678
2664
|
};
|
|
2679
2665
|
|
|
2680
|
-
module.exports.
|
|
2681
|
-
const ret =
|
|
2666
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2667
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2682
2668
|
return addHeapObject(ret);
|
|
2683
2669
|
};
|
|
2684
2670
|
|
|
2685
|
-
module.exports.
|
|
2686
|
-
const ret =
|
|
2671
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2672
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2687
2673
|
return addHeapObject(ret);
|
|
2688
2674
|
};
|
|
2689
2675
|
|
|
2676
|
+
module.exports.__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;
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2690
2685
|
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2691
2686
|
const ret = WasmNFT.__wrap(arg0);
|
|
2692
2687
|
return addHeapObject(ret);
|
|
2693
2688
|
};
|
|
2694
2689
|
|
|
2695
|
-
module.exports.
|
|
2696
|
-
const ret =
|
|
2690
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2691
|
+
const ret = getObject(arg0);
|
|
2697
2692
|
return addHeapObject(ret);
|
|
2698
2693
|
};
|
|
2699
2694
|
|
|
@@ -2702,20 +2697,25 @@ module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
|
2702
2697
|
return addHeapObject(ret);
|
|
2703
2698
|
};
|
|
2704
2699
|
|
|
2700
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2701
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2702
|
+
return addHeapObject(ret);
|
|
2703
|
+
};
|
|
2704
|
+
|
|
2705
2705
|
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2706
2706
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2707
2707
|
return addHeapObject(ret);
|
|
2708
2708
|
};
|
|
2709
2709
|
|
|
2710
|
-
module.exports.
|
|
2710
|
+
module.exports.__wbg_sendmessage_d40c0efee7e7b535 = function(arg0, arg1) {
|
|
2711
2711
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2712
2712
|
};
|
|
2713
2713
|
|
|
2714
|
-
module.exports.
|
|
2714
|
+
module.exports.__wbg_sendmessagetoall_459e53f3850da9b7 = function(arg0, arg1) {
|
|
2715
2715
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2716
2716
|
};
|
|
2717
2717
|
|
|
2718
|
-
module.exports.
|
|
2718
|
+
module.exports.__wbg_connecttopeer_5c5de9553b4bb50d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2719
2719
|
let deferred0_0;
|
|
2720
2720
|
let deferred0_1;
|
|
2721
2721
|
try {
|
|
@@ -2728,12 +2728,12 @@ module.exports.__wbg_connecttopeer_fcc55a0f067d1a89 = function() { return handle
|
|
|
2728
2728
|
}
|
|
2729
2729
|
}, arguments) };
|
|
2730
2730
|
|
|
2731
|
-
module.exports.
|
|
2731
|
+
module.exports.__wbg_disconnectfrompeer_2286bc0eb43e6609 = function() { return handleError(function (arg0) {
|
|
2732
2732
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2733
2733
|
return addHeapObject(ret);
|
|
2734
2734
|
}, arguments) };
|
|
2735
2735
|
|
|
2736
|
-
module.exports.
|
|
2736
|
+
module.exports.__wbg_fetchblockfrompeer_3aa81e3a2441e649 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2737
2737
|
let deferred0_0;
|
|
2738
2738
|
let deferred0_1;
|
|
2739
2739
|
try {
|
|
@@ -2746,7 +2746,7 @@ module.exports.__wbg_fetchblockfrompeer_09a8017a24ec9f64 = function() { return h
|
|
|
2746
2746
|
}
|
|
2747
2747
|
}, arguments) };
|
|
2748
2748
|
|
|
2749
|
-
module.exports.
|
|
2749
|
+
module.exports.__wbg_writevalue_63e132851967c4cf = function(arg0, arg1, arg2) {
|
|
2750
2750
|
let deferred0_0;
|
|
2751
2751
|
let deferred0_1;
|
|
2752
2752
|
try {
|
|
@@ -2758,7 +2758,7 @@ module.exports.__wbg_writevalue_e6bcbdc7641f617e = function(arg0, arg1, arg2) {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
|
|
2761
|
-
module.exports.
|
|
2761
|
+
module.exports.__wbg_appendvalue_00db9bb1936742e4 = function(arg0, arg1, arg2) {
|
|
2762
2762
|
let deferred0_0;
|
|
2763
2763
|
let deferred0_1;
|
|
2764
2764
|
try {
|
|
@@ -2770,7 +2770,7 @@ module.exports.__wbg_appendvalue_78c8f2d8daaec16e = function(arg0, arg1, arg2) {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
};
|
|
2772
2772
|
|
|
2773
|
-
module.exports.
|
|
2773
|
+
module.exports.__wbg_flushdata_e331e22ca335c21a = function(arg0, arg1) {
|
|
2774
2774
|
let deferred0_0;
|
|
2775
2775
|
let deferred0_1;
|
|
2776
2776
|
try {
|
|
@@ -2782,7 +2782,7 @@ module.exports.__wbg_flushdata_c5cf8b97c8fb175a = function(arg0, arg1) {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
};
|
|
2784
2784
|
|
|
2785
|
-
module.exports.
|
|
2785
|
+
module.exports.__wbg_readvalue_0d0477402dead4a1 = function() { return handleError(function (arg0, arg1) {
|
|
2786
2786
|
let deferred0_0;
|
|
2787
2787
|
let deferred0_1;
|
|
2788
2788
|
try {
|
|
@@ -2795,12 +2795,12 @@ module.exports.__wbg_readvalue_bf329439c99e4e88 = function() { return handleErro
|
|
|
2795
2795
|
}
|
|
2796
2796
|
}, arguments) };
|
|
2797
2797
|
|
|
2798
|
-
module.exports.
|
|
2798
|
+
module.exports.__wbg_loadblockfilelist_c413ba45063f4641 = function() { return handleError(function () {
|
|
2799
2799
|
const ret = MsgHandler.load_block_file_list();
|
|
2800
2800
|
return addHeapObject(ret);
|
|
2801
2801
|
}, arguments) };
|
|
2802
2802
|
|
|
2803
|
-
module.exports.
|
|
2803
|
+
module.exports.__wbg_isexistingfile_6ee4bf5317cc269b = function() { return handleError(function (arg0, arg1) {
|
|
2804
2804
|
let deferred0_0;
|
|
2805
2805
|
let deferred0_1;
|
|
2806
2806
|
try {
|
|
@@ -2813,7 +2813,7 @@ module.exports.__wbg_isexistingfile_ed1d80e6be75254e = function() { return handl
|
|
|
2813
2813
|
}
|
|
2814
2814
|
}, arguments) };
|
|
2815
2815
|
|
|
2816
|
-
module.exports.
|
|
2816
|
+
module.exports.__wbg_removevalue_16eb84e4c7ab14dd = function() { return handleError(function (arg0, arg1) {
|
|
2817
2817
|
let deferred0_0;
|
|
2818
2818
|
let deferred0_1;
|
|
2819
2819
|
try {
|
|
@@ -2826,7 +2826,7 @@ module.exports.__wbg_removevalue_8dabae3f5ba1cb6e = function() { return handleEr
|
|
|
2826
2826
|
}
|
|
2827
2827
|
}, arguments) };
|
|
2828
2828
|
|
|
2829
|
-
module.exports.
|
|
2829
|
+
module.exports.__wbg_ensureblockdirectoryexists_fab14dec16187364 = function() { return handleError(function (arg0, arg1) {
|
|
2830
2830
|
let deferred0_0;
|
|
2831
2831
|
let deferred0_1;
|
|
2832
2832
|
try {
|
|
@@ -2838,19 +2838,19 @@ module.exports.__wbg_ensureblockdirectoryexists_fb63c831d04d5286 = function() {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
}, arguments) };
|
|
2840
2840
|
|
|
2841
|
-
module.exports.
|
|
2841
|
+
module.exports.__wbg_processapicall_c46a3cea3900e424 = function(arg0, arg1, arg2) {
|
|
2842
2842
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2843
2843
|
};
|
|
2844
2844
|
|
|
2845
|
-
module.exports.
|
|
2845
|
+
module.exports.__wbg_processapisuccess_5df52c7cfca162f0 = function(arg0, arg1, arg2) {
|
|
2846
2846
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2847
2847
|
};
|
|
2848
2848
|
|
|
2849
|
-
module.exports.
|
|
2849
|
+
module.exports.__wbg_processapierror_2e5743601a9dab32 = function(arg0, arg1, arg2) {
|
|
2850
2850
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2851
2851
|
};
|
|
2852
2852
|
|
|
2853
|
-
module.exports.
|
|
2853
|
+
module.exports.__wbg_sendinterfaceevent_252edf0697c7dbce = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2854
2854
|
let deferred0_0;
|
|
2855
2855
|
let deferred0_1;
|
|
2856
2856
|
let deferred1_0;
|
|
@@ -2867,7 +2867,7 @@ module.exports.__wbg_sendinterfaceevent_7882bad2f4f47e2e = function(arg0, arg1,
|
|
|
2867
2867
|
}
|
|
2868
2868
|
};
|
|
2869
2869
|
|
|
2870
|
-
module.exports.
|
|
2870
|
+
module.exports.__wbg_sendblocksuccess_9556bb881a56d303 = function(arg0, arg1, arg2) {
|
|
2871
2871
|
let deferred0_0;
|
|
2872
2872
|
let deferred0_1;
|
|
2873
2873
|
try {
|
|
@@ -2879,11 +2879,11 @@ module.exports.__wbg_sendblocksuccess_53bbe8ffaa843e41 = function(arg0, arg1, ar
|
|
|
2879
2879
|
}
|
|
2880
2880
|
};
|
|
2881
2881
|
|
|
2882
|
-
module.exports.
|
|
2882
|
+
module.exports.__wbg_sendwalletupdate_a1cc68a9ca0e2ac2 = function() {
|
|
2883
2883
|
MsgHandler.send_wallet_update();
|
|
2884
2884
|
};
|
|
2885
2885
|
|
|
2886
|
-
module.exports.
|
|
2886
|
+
module.exports.__wbg_sendnewversionalert_f4a34017aec4703b = function(arg0, arg1, arg2) {
|
|
2887
2887
|
let deferred0_0;
|
|
2888
2888
|
let deferred0_1;
|
|
2889
2889
|
try {
|
|
@@ -2895,23 +2895,23 @@ module.exports.__wbg_sendnewversionalert_c6559cb759e835ba = function(arg0, arg1,
|
|
|
2895
2895
|
}
|
|
2896
2896
|
};
|
|
2897
2897
|
|
|
2898
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_sendblockfetchstatusevent_32e8fb92658f3ff4 = function(arg0) {
|
|
2899
2899
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2900
2900
|
};
|
|
2901
2901
|
|
|
2902
|
-
module.exports.
|
|
2902
|
+
module.exports.__wbg_sendnewchaindetectedevent_3a37ce6901a92746 = function() {
|
|
2903
2903
|
MsgHandler.send_new_chain_detected_event();
|
|
2904
2904
|
};
|
|
2905
2905
|
|
|
2906
|
-
module.exports.
|
|
2906
|
+
module.exports.__wbg_savewallet_38a352c2c3b4349f = function() {
|
|
2907
2907
|
MsgHandler.save_wallet();
|
|
2908
2908
|
};
|
|
2909
2909
|
|
|
2910
|
-
module.exports.
|
|
2910
|
+
module.exports.__wbg_loadwallet_96e9db6e5f85b038 = function() {
|
|
2911
2911
|
MsgHandler.load_wallet();
|
|
2912
2912
|
};
|
|
2913
2913
|
|
|
2914
|
-
module.exports.
|
|
2914
|
+
module.exports.__wbg_getmyservices_026c2b379ed04d32 = function() {
|
|
2915
2915
|
const ret = MsgHandler.get_my_services();
|
|
2916
2916
|
_assertClass(ret, WasmPeerServiceList);
|
|
2917
2917
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "saito-wasm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.156",
|
|
4
4
|
"files": [
|
|
5
5
|
"index_bg.wasm",
|
|
6
6
|
"index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"types": "index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"cross-env": "7.0.3",
|
|
13
|
+
"node-fetch": "3.3.0"
|
|
14
14
|
}
|
|
15
15
|
}
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-eb83d05fba136b5b/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -2650,10 +2650,6 @@ async function __wbg_load(module, imports) {
|
|
|
2650
2650
|
function __wbg_get_imports() {
|
|
2651
2651
|
const imports = {};
|
|
2652
2652
|
imports.wbg = {};
|
|
2653
|
-
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2654
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2655
|
-
return addHeapObject(ret);
|
|
2656
|
-
};
|
|
2657
2653
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2658
2654
|
takeObject(arg0);
|
|
2659
2655
|
};
|
|
@@ -2661,61 +2657,65 @@ function __wbg_get_imports() {
|
|
|
2661
2657
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2662
2658
|
return addHeapObject(ret);
|
|
2663
2659
|
};
|
|
2664
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2665
|
-
const obj = getObject(arg1);
|
|
2666
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2667
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2668
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2669
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2670
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2671
|
-
};
|
|
2672
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2673
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2674
|
-
return addHeapObject(ret);
|
|
2675
|
-
};
|
|
2676
2660
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2677
2661
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2678
2662
|
return addHeapObject(ret);
|
|
2679
2663
|
};
|
|
2664
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2665
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2666
|
+
return addHeapObject(ret);
|
|
2667
|
+
};
|
|
2680
2668
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2681
2669
|
const ret = BigInt.asUintN(64, arg0);
|
|
2682
2670
|
return addHeapObject(ret);
|
|
2683
2671
|
};
|
|
2684
|
-
imports.wbg.
|
|
2685
|
-
const ret =
|
|
2672
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2673
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2686
2674
|
return addHeapObject(ret);
|
|
2687
2675
|
};
|
|
2688
|
-
imports.wbg.
|
|
2689
|
-
const ret =
|
|
2676
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2677
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2690
2678
|
return addHeapObject(ret);
|
|
2691
2679
|
};
|
|
2692
|
-
imports.wbg.
|
|
2693
|
-
const ret =
|
|
2680
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2681
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2694
2682
|
return addHeapObject(ret);
|
|
2695
2683
|
};
|
|
2684
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2685
|
+
const obj = getObject(arg1);
|
|
2686
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2687
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2688
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2689
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2690
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2691
|
+
};
|
|
2696
2692
|
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2697
2693
|
const ret = WasmNFT.__wrap(arg0);
|
|
2698
2694
|
return addHeapObject(ret);
|
|
2699
2695
|
};
|
|
2700
|
-
imports.wbg.
|
|
2701
|
-
const ret =
|
|
2696
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
2697
|
+
const ret = getObject(arg0);
|
|
2702
2698
|
return addHeapObject(ret);
|
|
2703
2699
|
};
|
|
2704
2700
|
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2705
2701
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2706
2702
|
return addHeapObject(ret);
|
|
2707
2703
|
};
|
|
2704
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2705
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2706
|
+
return addHeapObject(ret);
|
|
2707
|
+
};
|
|
2708
2708
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2709
2709
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2710
2710
|
return addHeapObject(ret);
|
|
2711
2711
|
};
|
|
2712
|
-
imports.wbg.
|
|
2712
|
+
imports.wbg.__wbg_sendmessage_d40c0efee7e7b535 = function(arg0, arg1) {
|
|
2713
2713
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2714
2714
|
};
|
|
2715
|
-
imports.wbg.
|
|
2715
|
+
imports.wbg.__wbg_sendmessagetoall_459e53f3850da9b7 = function(arg0, arg1) {
|
|
2716
2716
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2717
2717
|
};
|
|
2718
|
-
imports.wbg.
|
|
2718
|
+
imports.wbg.__wbg_connecttopeer_5c5de9553b4bb50d = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2719
2719
|
let deferred0_0;
|
|
2720
2720
|
let deferred0_1;
|
|
2721
2721
|
try {
|
|
@@ -2727,11 +2727,11 @@ function __wbg_get_imports() {
|
|
|
2727
2727
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2728
2728
|
}
|
|
2729
2729
|
}, arguments) };
|
|
2730
|
-
imports.wbg.
|
|
2730
|
+
imports.wbg.__wbg_disconnectfrompeer_2286bc0eb43e6609 = function() { return handleError(function (arg0) {
|
|
2731
2731
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2732
2732
|
return addHeapObject(ret);
|
|
2733
2733
|
}, arguments) };
|
|
2734
|
-
imports.wbg.
|
|
2734
|
+
imports.wbg.__wbg_fetchblockfrompeer_3aa81e3a2441e649 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2735
2735
|
let deferred0_0;
|
|
2736
2736
|
let deferred0_1;
|
|
2737
2737
|
try {
|
|
@@ -2743,7 +2743,7 @@ function __wbg_get_imports() {
|
|
|
2743
2743
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2744
2744
|
}
|
|
2745
2745
|
}, arguments) };
|
|
2746
|
-
imports.wbg.
|
|
2746
|
+
imports.wbg.__wbg_writevalue_63e132851967c4cf = function(arg0, arg1, arg2) {
|
|
2747
2747
|
let deferred0_0;
|
|
2748
2748
|
let deferred0_1;
|
|
2749
2749
|
try {
|
|
@@ -2754,7 +2754,7 @@ function __wbg_get_imports() {
|
|
|
2754
2754
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2755
2755
|
}
|
|
2756
2756
|
};
|
|
2757
|
-
imports.wbg.
|
|
2757
|
+
imports.wbg.__wbg_appendvalue_00db9bb1936742e4 = function(arg0, arg1, arg2) {
|
|
2758
2758
|
let deferred0_0;
|
|
2759
2759
|
let deferred0_1;
|
|
2760
2760
|
try {
|
|
@@ -2765,7 +2765,7 @@ function __wbg_get_imports() {
|
|
|
2765
2765
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2766
2766
|
}
|
|
2767
2767
|
};
|
|
2768
|
-
imports.wbg.
|
|
2768
|
+
imports.wbg.__wbg_flushdata_e331e22ca335c21a = function(arg0, arg1) {
|
|
2769
2769
|
let deferred0_0;
|
|
2770
2770
|
let deferred0_1;
|
|
2771
2771
|
try {
|
|
@@ -2776,7 +2776,7 @@ function __wbg_get_imports() {
|
|
|
2776
2776
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2777
2777
|
}
|
|
2778
2778
|
};
|
|
2779
|
-
imports.wbg.
|
|
2779
|
+
imports.wbg.__wbg_readvalue_0d0477402dead4a1 = function() { return handleError(function (arg0, arg1) {
|
|
2780
2780
|
let deferred0_0;
|
|
2781
2781
|
let deferred0_1;
|
|
2782
2782
|
try {
|
|
@@ -2788,11 +2788,11 @@ function __wbg_get_imports() {
|
|
|
2788
2788
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2789
2789
|
}
|
|
2790
2790
|
}, arguments) };
|
|
2791
|
-
imports.wbg.
|
|
2791
|
+
imports.wbg.__wbg_loadblockfilelist_c413ba45063f4641 = function() { return handleError(function () {
|
|
2792
2792
|
const ret = MsgHandler.load_block_file_list();
|
|
2793
2793
|
return addHeapObject(ret);
|
|
2794
2794
|
}, arguments) };
|
|
2795
|
-
imports.wbg.
|
|
2795
|
+
imports.wbg.__wbg_isexistingfile_6ee4bf5317cc269b = function() { return handleError(function (arg0, arg1) {
|
|
2796
2796
|
let deferred0_0;
|
|
2797
2797
|
let deferred0_1;
|
|
2798
2798
|
try {
|
|
@@ -2804,7 +2804,7 @@ function __wbg_get_imports() {
|
|
|
2804
2804
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2805
2805
|
}
|
|
2806
2806
|
}, arguments) };
|
|
2807
|
-
imports.wbg.
|
|
2807
|
+
imports.wbg.__wbg_removevalue_16eb84e4c7ab14dd = function() { return handleError(function (arg0, arg1) {
|
|
2808
2808
|
let deferred0_0;
|
|
2809
2809
|
let deferred0_1;
|
|
2810
2810
|
try {
|
|
@@ -2816,7 +2816,7 @@ function __wbg_get_imports() {
|
|
|
2816
2816
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2817
2817
|
}
|
|
2818
2818
|
}, arguments) };
|
|
2819
|
-
imports.wbg.
|
|
2819
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_fab14dec16187364 = function() { return handleError(function (arg0, arg1) {
|
|
2820
2820
|
let deferred0_0;
|
|
2821
2821
|
let deferred0_1;
|
|
2822
2822
|
try {
|
|
@@ -2827,16 +2827,16 @@ function __wbg_get_imports() {
|
|
|
2827
2827
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2828
2828
|
}
|
|
2829
2829
|
}, arguments) };
|
|
2830
|
-
imports.wbg.
|
|
2830
|
+
imports.wbg.__wbg_processapicall_c46a3cea3900e424 = function(arg0, arg1, arg2) {
|
|
2831
2831
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2832
2832
|
};
|
|
2833
|
-
imports.wbg.
|
|
2833
|
+
imports.wbg.__wbg_processapisuccess_5df52c7cfca162f0 = function(arg0, arg1, arg2) {
|
|
2834
2834
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2835
2835
|
};
|
|
2836
|
-
imports.wbg.
|
|
2836
|
+
imports.wbg.__wbg_processapierror_2e5743601a9dab32 = function(arg0, arg1, arg2) {
|
|
2837
2837
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2838
2838
|
};
|
|
2839
|
-
imports.wbg.
|
|
2839
|
+
imports.wbg.__wbg_sendinterfaceevent_252edf0697c7dbce = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2840
2840
|
let deferred0_0;
|
|
2841
2841
|
let deferred0_1;
|
|
2842
2842
|
let deferred1_0;
|
|
@@ -2852,7 +2852,7 @@ function __wbg_get_imports() {
|
|
|
2852
2852
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2853
2853
|
}
|
|
2854
2854
|
};
|
|
2855
|
-
imports.wbg.
|
|
2855
|
+
imports.wbg.__wbg_sendblocksuccess_9556bb881a56d303 = function(arg0, arg1, arg2) {
|
|
2856
2856
|
let deferred0_0;
|
|
2857
2857
|
let deferred0_1;
|
|
2858
2858
|
try {
|
|
@@ -2863,10 +2863,10 @@ 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_sendwalletupdate_a1cc68a9ca0e2ac2 = function() {
|
|
2867
2867
|
MsgHandler.send_wallet_update();
|
|
2868
2868
|
};
|
|
2869
|
-
imports.wbg.
|
|
2869
|
+
imports.wbg.__wbg_sendnewversionalert_f4a34017aec4703b = function(arg0, arg1, arg2) {
|
|
2870
2870
|
let deferred0_0;
|
|
2871
2871
|
let deferred0_1;
|
|
2872
2872
|
try {
|
|
@@ -2877,19 +2877,19 @@ function __wbg_get_imports() {
|
|
|
2877
2877
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2878
2878
|
}
|
|
2879
2879
|
};
|
|
2880
|
-
imports.wbg.
|
|
2880
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_32e8fb92658f3ff4 = function(arg0) {
|
|
2881
2881
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2882
2882
|
};
|
|
2883
|
-
imports.wbg.
|
|
2883
|
+
imports.wbg.__wbg_sendnewchaindetectedevent_3a37ce6901a92746 = function() {
|
|
2884
2884
|
MsgHandler.send_new_chain_detected_event();
|
|
2885
2885
|
};
|
|
2886
|
-
imports.wbg.
|
|
2886
|
+
imports.wbg.__wbg_savewallet_38a352c2c3b4349f = function() {
|
|
2887
2887
|
MsgHandler.save_wallet();
|
|
2888
2888
|
};
|
|
2889
|
-
imports.wbg.
|
|
2889
|
+
imports.wbg.__wbg_loadwallet_96e9db6e5f85b038 = function() {
|
|
2890
2890
|
MsgHandler.load_wallet();
|
|
2891
2891
|
};
|
|
2892
|
-
imports.wbg.
|
|
2892
|
+
imports.wbg.__wbg_getmyservices_026c2b379ed04d32 = function() {
|
|
2893
2893
|
const ret = MsgHandler.get_my_services();
|
|
2894
2894
|
_assertClass(ret, WasmPeerServiceList);
|
|
2895
2895
|
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
|