saito-wasm 0.2.157 → 0.2.160
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 +4 -0
- package/pkg/node/index.js +87 -79
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +92 -91
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +96 -91
- package/pkg/web/index.js +85 -77
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +92 -91
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-9b87abdade59d28b → saito-wasm-122825cf7c5f39f7}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-9b87abdade59d28b → saito-wasm-122825cf7c5f39f7}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -266,6 +266,10 @@ export function get_congestion_stats(): Promise<string>;
|
|
|
266
266
|
*/
|
|
267
267
|
export function get_confirmations(): Promise<any>;
|
|
268
268
|
/**
|
|
269
|
+
* @returns {Promise<void>}
|
|
270
|
+
*/
|
|
271
|
+
export function start_from_received_ghost_chain(): Promise<void>;
|
|
272
|
+
/**
|
|
269
273
|
*/
|
|
270
274
|
export class SaitoWasm {
|
|
271
275
|
free(): void;
|
package/pkg/node/index.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
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-122825cf7c5f39f7/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
9
|
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
let heap_next = heap.length;
|
|
12
|
-
|
|
13
|
-
function addHeapObject(obj) {
|
|
14
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
-
const idx = heap_next;
|
|
16
|
-
heap_next = heap[idx];
|
|
17
|
-
|
|
18
|
-
heap[idx] = obj;
|
|
19
|
-
return idx;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
11
|
function getObject(idx) { return heap[idx]; }
|
|
23
12
|
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
24
15
|
function dropObject(idx) {
|
|
25
16
|
if (idx < 132) return;
|
|
26
17
|
heap[idx] = heap_next;
|
|
@@ -33,6 +24,15 @@ function takeObject(idx) {
|
|
|
33
24
|
return ret;
|
|
34
25
|
}
|
|
35
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
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
37
|
|
|
38
38
|
cachedTextDecoder.decode();
|
|
@@ -228,12 +228,12 @@ 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__ha9b2035dcda98f3e(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
231
|
+
let stack_pointer = 128;
|
|
232
|
+
|
|
233
|
+
function addBorrowedObject(obj) {
|
|
234
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
235
|
+
heap[--stack_pointer] = obj;
|
|
236
|
+
return stack_pointer;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function _assertClass(instance, klass) {
|
|
@@ -243,12 +243,12 @@ function _assertClass(instance, klass) {
|
|
|
243
243
|
return instance.ptr;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
246
|
+
function handleError(f, args) {
|
|
247
|
+
try {
|
|
248
|
+
return f.apply(this, args);
|
|
249
|
+
} catch (e) {
|
|
250
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
251
|
+
}
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
* @param {string} config_json
|
|
@@ -730,7 +730,15 @@ module.exports.get_confirmations = function() {
|
|
|
730
730
|
return takeObject(ret);
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
-
|
|
733
|
+
/**
|
|
734
|
+
* @returns {Promise<void>}
|
|
735
|
+
*/
|
|
736
|
+
module.exports.start_from_received_ghost_chain = function() {
|
|
737
|
+
const ret = wasm.start_from_received_ghost_chain();
|
|
738
|
+
return takeObject(ret);
|
|
739
|
+
};
|
|
740
|
+
|
|
741
|
+
function __wbg_adapter_435(arg0, arg1, arg2, arg3) {
|
|
734
742
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__he53ebe6ac6430729(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
735
743
|
}
|
|
736
744
|
|
|
@@ -2634,13 +2642,18 @@ class WasmWalletSlip {
|
|
|
2634
2642
|
}
|
|
2635
2643
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2636
2644
|
|
|
2645
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2646
|
+
takeObject(arg0);
|
|
2647
|
+
};
|
|
2648
|
+
|
|
2637
2649
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2638
2650
|
const ret = BigInt.asUintN(64, arg0);
|
|
2639
2651
|
return addHeapObject(ret);
|
|
2640
2652
|
};
|
|
2641
2653
|
|
|
2642
|
-
module.exports.
|
|
2643
|
-
|
|
2654
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2655
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2656
|
+
return addHeapObject(ret);
|
|
2644
2657
|
};
|
|
2645
2658
|
|
|
2646
2659
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -2653,18 +2666,18 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2653
2666
|
return addHeapObject(ret);
|
|
2654
2667
|
};
|
|
2655
2668
|
|
|
2656
|
-
module.exports.
|
|
2657
|
-
const ret =
|
|
2669
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2670
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2658
2671
|
return addHeapObject(ret);
|
|
2659
2672
|
};
|
|
2660
2673
|
|
|
2661
|
-
module.exports.
|
|
2662
|
-
const ret =
|
|
2674
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2675
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2663
2676
|
return addHeapObject(ret);
|
|
2664
2677
|
};
|
|
2665
2678
|
|
|
2666
|
-
module.exports.
|
|
2667
|
-
const ret =
|
|
2679
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2680
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2668
2681
|
return addHeapObject(ret);
|
|
2669
2682
|
};
|
|
2670
2683
|
|
|
@@ -2677,8 +2690,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2677
2690
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2678
2691
|
};
|
|
2679
2692
|
|
|
2680
|
-
module.exports.
|
|
2681
|
-
const ret =
|
|
2693
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2694
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2682
2695
|
return addHeapObject(ret);
|
|
2683
2696
|
};
|
|
2684
2697
|
|
|
@@ -2692,30 +2705,35 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2692
2705
|
return addHeapObject(ret);
|
|
2693
2706
|
};
|
|
2694
2707
|
|
|
2695
|
-
module.exports.
|
|
2696
|
-
const ret =
|
|
2708
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2709
|
+
const ret = getObject(arg0);
|
|
2697
2710
|
return addHeapObject(ret);
|
|
2698
2711
|
};
|
|
2699
2712
|
|
|
2700
|
-
module.exports.
|
|
2701
|
-
const ret =
|
|
2713
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2714
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2702
2715
|
return addHeapObject(ret);
|
|
2703
2716
|
};
|
|
2704
2717
|
|
|
2705
|
-
module.exports.
|
|
2706
|
-
const ret =
|
|
2718
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2719
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2720
|
+
return addHeapObject(ret);
|
|
2721
|
+
};
|
|
2722
|
+
|
|
2723
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2724
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2707
2725
|
return addHeapObject(ret);
|
|
2708
2726
|
};
|
|
2709
2727
|
|
|
2710
|
-
module.exports.
|
|
2728
|
+
module.exports.__wbg_sendmessage_c80eaa9b19e0ac36 = function(arg0, arg1) {
|
|
2711
2729
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2712
2730
|
};
|
|
2713
2731
|
|
|
2714
|
-
module.exports.
|
|
2732
|
+
module.exports.__wbg_sendmessagetoall_2a745f01564e1a27 = function(arg0, arg1) {
|
|
2715
2733
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2716
2734
|
};
|
|
2717
2735
|
|
|
2718
|
-
module.exports.
|
|
2736
|
+
module.exports.__wbg_connecttopeer_c9687fa011b843ee = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2719
2737
|
let deferred0_0;
|
|
2720
2738
|
let deferred0_1;
|
|
2721
2739
|
try {
|
|
@@ -2728,12 +2746,12 @@ module.exports.__wbg_connecttopeer_d21f465c4a3a97d6 = function() { return handle
|
|
|
2728
2746
|
}
|
|
2729
2747
|
}, arguments) };
|
|
2730
2748
|
|
|
2731
|
-
module.exports.
|
|
2749
|
+
module.exports.__wbg_disconnectfrompeer_252c41da932cfd9f = function() { return handleError(function (arg0) {
|
|
2732
2750
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2733
2751
|
return addHeapObject(ret);
|
|
2734
2752
|
}, arguments) };
|
|
2735
2753
|
|
|
2736
|
-
module.exports.
|
|
2754
|
+
module.exports.__wbg_fetchblockfrompeer_a544fc87bb886d10 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2737
2755
|
let deferred0_0;
|
|
2738
2756
|
let deferred0_1;
|
|
2739
2757
|
try {
|
|
@@ -2746,7 +2764,7 @@ module.exports.__wbg_fetchblockfrompeer_1a2afd32b50d7fe2 = function() { return h
|
|
|
2746
2764
|
}
|
|
2747
2765
|
}, arguments) };
|
|
2748
2766
|
|
|
2749
|
-
module.exports.
|
|
2767
|
+
module.exports.__wbg_writevalue_1de47e80b5beca95 = function(arg0, arg1, arg2) {
|
|
2750
2768
|
let deferred0_0;
|
|
2751
2769
|
let deferred0_1;
|
|
2752
2770
|
try {
|
|
@@ -2758,7 +2776,7 @@ module.exports.__wbg_writevalue_8a7ca2ba27933d70 = function(arg0, arg1, arg2) {
|
|
|
2758
2776
|
}
|
|
2759
2777
|
};
|
|
2760
2778
|
|
|
2761
|
-
module.exports.
|
|
2779
|
+
module.exports.__wbg_appendvalue_c4fdadef535a2ed8 = function(arg0, arg1, arg2) {
|
|
2762
2780
|
let deferred0_0;
|
|
2763
2781
|
let deferred0_1;
|
|
2764
2782
|
try {
|
|
@@ -2770,7 +2788,7 @@ module.exports.__wbg_appendvalue_fd32afb3b1b75fc7 = function(arg0, arg1, arg2) {
|
|
|
2770
2788
|
}
|
|
2771
2789
|
};
|
|
2772
2790
|
|
|
2773
|
-
module.exports.
|
|
2791
|
+
module.exports.__wbg_flushdata_581cc9cb44db9d33 = function(arg0, arg1) {
|
|
2774
2792
|
let deferred0_0;
|
|
2775
2793
|
let deferred0_1;
|
|
2776
2794
|
try {
|
|
@@ -2782,7 +2800,7 @@ module.exports.__wbg_flushdata_763c707a57d51546 = function(arg0, arg1) {
|
|
|
2782
2800
|
}
|
|
2783
2801
|
};
|
|
2784
2802
|
|
|
2785
|
-
module.exports.
|
|
2803
|
+
module.exports.__wbg_readvalue_d87fdba36bd6d60e = function() { return handleError(function (arg0, arg1) {
|
|
2786
2804
|
let deferred0_0;
|
|
2787
2805
|
let deferred0_1;
|
|
2788
2806
|
try {
|
|
@@ -2795,12 +2813,12 @@ module.exports.__wbg_readvalue_c8e144da28820989 = function() { return handleErro
|
|
|
2795
2813
|
}
|
|
2796
2814
|
}, arguments) };
|
|
2797
2815
|
|
|
2798
|
-
module.exports.
|
|
2816
|
+
module.exports.__wbg_loadblockfilelist_7e2487784e15319e = function() { return handleError(function () {
|
|
2799
2817
|
const ret = MsgHandler.load_block_file_list();
|
|
2800
2818
|
return addHeapObject(ret);
|
|
2801
2819
|
}, arguments) };
|
|
2802
2820
|
|
|
2803
|
-
module.exports.
|
|
2821
|
+
module.exports.__wbg_isexistingfile_c1cf4925a7493fef = function() { return handleError(function (arg0, arg1) {
|
|
2804
2822
|
let deferred0_0;
|
|
2805
2823
|
let deferred0_1;
|
|
2806
2824
|
try {
|
|
@@ -2813,7 +2831,7 @@ module.exports.__wbg_isexistingfile_b36d33129756086d = function() { return handl
|
|
|
2813
2831
|
}
|
|
2814
2832
|
}, arguments) };
|
|
2815
2833
|
|
|
2816
|
-
module.exports.
|
|
2834
|
+
module.exports.__wbg_removevalue_1acaace00e2d4fc2 = function() { return handleError(function (arg0, arg1) {
|
|
2817
2835
|
let deferred0_0;
|
|
2818
2836
|
let deferred0_1;
|
|
2819
2837
|
try {
|
|
@@ -2826,7 +2844,7 @@ module.exports.__wbg_removevalue_d33d0fa2681c7c19 = function() { return handleEr
|
|
|
2826
2844
|
}
|
|
2827
2845
|
}, arguments) };
|
|
2828
2846
|
|
|
2829
|
-
module.exports.
|
|
2847
|
+
module.exports.__wbg_ensureblockdirectoryexists_b6ce5b7f9adb4b80 = function() { return handleError(function (arg0, arg1) {
|
|
2830
2848
|
let deferred0_0;
|
|
2831
2849
|
let deferred0_1;
|
|
2832
2850
|
try {
|
|
@@ -2838,19 +2856,19 @@ module.exports.__wbg_ensureblockdirectoryexists_1f0706f8a1bde219 = function() {
|
|
|
2838
2856
|
}
|
|
2839
2857
|
}, arguments) };
|
|
2840
2858
|
|
|
2841
|
-
module.exports.
|
|
2859
|
+
module.exports.__wbg_processapicall_9b7712d650f2b70e = function(arg0, arg1, arg2) {
|
|
2842
2860
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2843
2861
|
};
|
|
2844
2862
|
|
|
2845
|
-
module.exports.
|
|
2863
|
+
module.exports.__wbg_processapisuccess_7391a7e5c6ee9416 = function(arg0, arg1, arg2) {
|
|
2846
2864
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2847
2865
|
};
|
|
2848
2866
|
|
|
2849
|
-
module.exports.
|
|
2867
|
+
module.exports.__wbg_processapierror_f05e49407e18b500 = function(arg0, arg1, arg2) {
|
|
2850
2868
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2851
2869
|
};
|
|
2852
2870
|
|
|
2853
|
-
module.exports.
|
|
2871
|
+
module.exports.__wbg_sendinterfaceevent_92fcef30fc9a3ff0 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2854
2872
|
let deferred0_0;
|
|
2855
2873
|
let deferred0_1;
|
|
2856
2874
|
let deferred1_0;
|
|
@@ -2867,7 +2885,7 @@ module.exports.__wbg_sendinterfaceevent_0626f70075aa57b5 = function(arg0, arg1,
|
|
|
2867
2885
|
}
|
|
2868
2886
|
};
|
|
2869
2887
|
|
|
2870
|
-
module.exports.
|
|
2888
|
+
module.exports.__wbg_sendblocksuccess_6f7db513ee6cb0cf = function(arg0, arg1, arg2) {
|
|
2871
2889
|
let deferred0_0;
|
|
2872
2890
|
let deferred0_1;
|
|
2873
2891
|
try {
|
|
@@ -2879,11 +2897,11 @@ module.exports.__wbg_sendblocksuccess_db789107d3cd2adb = function(arg0, arg1, ar
|
|
|
2879
2897
|
}
|
|
2880
2898
|
};
|
|
2881
2899
|
|
|
2882
|
-
module.exports.
|
|
2900
|
+
module.exports.__wbg_sendwalletupdate_4b0ff2bea21f690c = function() {
|
|
2883
2901
|
MsgHandler.send_wallet_update();
|
|
2884
2902
|
};
|
|
2885
2903
|
|
|
2886
|
-
module.exports.
|
|
2904
|
+
module.exports.__wbg_sendnewversionalert_c4835a2f1dd01953 = function(arg0, arg1, arg2) {
|
|
2887
2905
|
let deferred0_0;
|
|
2888
2906
|
let deferred0_1;
|
|
2889
2907
|
try {
|
|
@@ -2895,39 +2913,29 @@ module.exports.__wbg_sendnewversionalert_621a8f1d12d0ef9e = function(arg0, arg1,
|
|
|
2895
2913
|
}
|
|
2896
2914
|
};
|
|
2897
2915
|
|
|
2898
|
-
module.exports.
|
|
2916
|
+
module.exports.__wbg_sendblockfetchstatusevent_774c4d8d0f67b37b = function(arg0) {
|
|
2899
2917
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2900
2918
|
};
|
|
2901
2919
|
|
|
2902
|
-
module.exports.
|
|
2920
|
+
module.exports.__wbg_sendnewchaindetectedevent_3ee3257a7ec6d32f = function() {
|
|
2903
2921
|
MsgHandler.send_new_chain_detected_event();
|
|
2904
2922
|
};
|
|
2905
2923
|
|
|
2906
|
-
module.exports.
|
|
2924
|
+
module.exports.__wbg_savewallet_3848dd4bd7f71304 = function() {
|
|
2907
2925
|
MsgHandler.save_wallet();
|
|
2908
2926
|
};
|
|
2909
2927
|
|
|
2910
|
-
module.exports.
|
|
2928
|
+
module.exports.__wbg_loadwallet_343de9de6ae9b3da = function() {
|
|
2911
2929
|
MsgHandler.load_wallet();
|
|
2912
2930
|
};
|
|
2913
2931
|
|
|
2914
|
-
module.exports.
|
|
2932
|
+
module.exports.__wbg_getmyservices_d61e4c83e12e7dcd = function() {
|
|
2915
2933
|
const ret = MsgHandler.get_my_services();
|
|
2916
2934
|
_assertClass(ret, WasmPeerServiceList);
|
|
2917
2935
|
var ptr1 = ret.__destroy_into_raw();
|
|
2918
2936
|
return ptr1;
|
|
2919
2937
|
};
|
|
2920
2938
|
|
|
2921
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2922
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2923
|
-
return addHeapObject(ret);
|
|
2924
|
-
};
|
|
2925
|
-
|
|
2926
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2927
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2928
|
-
return addHeapObject(ret);
|
|
2929
|
-
};
|
|
2930
|
-
|
|
2931
2939
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2932
2940
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2933
2941
|
return addHeapObject(ret);
|
|
@@ -3222,7 +3230,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3222
3230
|
const a = state0.a;
|
|
3223
3231
|
state0.a = 0;
|
|
3224
3232
|
try {
|
|
3225
|
-
return
|
|
3233
|
+
return __wbg_adapter_435(a, state0.b, arg0, arg1);
|
|
3226
3234
|
} finally {
|
|
3227
3235
|
state0.a = a;
|
|
3228
3236
|
}
|
|
@@ -3325,8 +3333,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3325
3333
|
return addHeapObject(ret);
|
|
3326
3334
|
};
|
|
3327
3335
|
|
|
3328
|
-
module.exports.
|
|
3329
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3336
|
+
module.exports.__wbindgen_closure_wrapper1623 = function(arg0, arg1, arg2) {
|
|
3337
|
+
const ret = makeMutClosure(arg0, arg1, 580, __wbg_adapter_38);
|
|
3330
3338
|
return addHeapObject(ret);
|
|
3331
3339
|
};
|
|
3332
3340
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,65 +1,46 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function
|
|
5
|
-
export function
|
|
6
|
-
export function
|
|
7
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
8
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
9
|
-
export function __wbg_wasmslip_free(a: number): void;
|
|
10
|
-
export function wasmslip_amount(a: number): number;
|
|
11
|
-
export function wasmslip_set_amount(a: number, b: number): void;
|
|
12
|
-
export function wasmslip_slip_type(a: number): number;
|
|
13
|
-
export function wasmslip_set_slip_type(a: number, b: number): void;
|
|
14
|
-
export function wasmslip_public_key(a: number): number;
|
|
15
|
-
export function wasmslip_set_public_key(a: number, b: number): void;
|
|
16
|
-
export function wasmslip_slip_index(a: number): number;
|
|
17
|
-
export function wasmslip_set_slip_index(a: number, b: number): void;
|
|
18
|
-
export function wasmslip_block_id(a: number): number;
|
|
19
|
-
export function wasmslip_set_block_id(a: number, b: number): void;
|
|
20
|
-
export function wasmslip_tx_ordinal(a: number): number;
|
|
21
|
-
export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
22
|
-
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
23
|
-
export function wasmslip_utxo_key(a: number): number;
|
|
24
|
-
export function wasmslip_new(): number;
|
|
25
|
-
export function __wbg_wasmwallet_free(a: number): void;
|
|
26
|
-
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
27
|
-
export function wasmwallet_save(a: number): number;
|
|
28
|
-
export function wasmwallet_reset(a: number, b: number): number;
|
|
29
|
-
export function wasmwallet_load(a: number): number;
|
|
30
|
-
export function wasmwallet_get_public_key(a: number): number;
|
|
31
|
-
export function wasmwallet_set_public_key(a: number, b: number): number;
|
|
32
|
-
export function wasmwallet_get_private_key(a: number): number;
|
|
33
|
-
export function wasmwallet_set_private_key(a: number, b: number): number;
|
|
34
|
-
export function wasmwallet_get_balance(a: number): number;
|
|
35
|
-
export function wasmwallet_get_pending_txs(a: number): number;
|
|
36
|
-
export function wasmwallet_get_slips(a: number): number;
|
|
37
|
-
export function wasmwallet_add_slip(a: number, b: number): number;
|
|
38
|
-
export function wasmwallet_add_to_pending(a: number, b: number): number;
|
|
39
|
-
export function wasmwallet_get_key_list(a: number): number;
|
|
40
|
-
export function wasmwallet_set_key_list(a: number, b: number): number;
|
|
41
|
-
export function wasmwallet_add_nft(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number): number;
|
|
42
|
-
export function wasmwalletslip_get_utxokey(a: number): number;
|
|
43
|
-
export function wasmwalletslip_set_utxokey(a: number, b: number): void;
|
|
44
|
-
export function wasmwalletslip_get_slip_index(a: number): number;
|
|
45
|
-
export function wasmwalletslip_set_slip_index(a: number, b: number): void;
|
|
46
|
-
export function wasmwalletslip_is_spent(a: number): number;
|
|
47
|
-
export function wasmwalletslip_set_spent(a: number, b: number): void;
|
|
48
|
-
export function wasmwalletslip_is_lc(a: number): number;
|
|
49
|
-
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
50
|
-
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
51
|
-
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
52
|
-
export function wasmwalletslip_new_(): number;
|
|
53
|
-
export function wasmwalletslip_set_amount(a: number, b: number): void;
|
|
54
|
-
export function wasmwalletslip_set_block_id(a: number, b: number): void;
|
|
55
|
-
export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
|
|
56
|
-
export function wasmwalletslip_get_amount(a: number): number;
|
|
57
|
-
export function wasmwalletslip_get_block_id(a: number): number;
|
|
58
|
-
export function wasmwalletslip_get_tx_ordinal(a: number): number;
|
|
4
|
+
export function __wbg_wasmstats_free(a: number): void;
|
|
5
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
6
|
+
export function wasmconfiguration_new(): number;
|
|
59
7
|
export function __wbg_wasmhop_free(a: number): void;
|
|
60
8
|
export function wasmhop_from(a: number, b: number): void;
|
|
61
9
|
export function wasmhop_sig(a: number, b: number): void;
|
|
62
10
|
export function wasmhop_to(a: number, b: number): void;
|
|
11
|
+
export function __wbg_wasmnft_free(a: number): void;
|
|
12
|
+
export function wasmnft_new(): number;
|
|
13
|
+
export function wasmnft_id(a: number): number;
|
|
14
|
+
export function wasmnft_set_id(a: number, b: number): void;
|
|
15
|
+
export function wasmnft_tx_sig(a: number): number;
|
|
16
|
+
export function wasmnft_set_tx_sig(a: number, b: number): void;
|
|
17
|
+
export function wasmnft_slip1(a: number): number;
|
|
18
|
+
export function wasmnft_set_slip1(a: number, b: number): void;
|
|
19
|
+
export function wasmnft_slip2(a: number): number;
|
|
20
|
+
export function wasmnft_set_slip2(a: number, b: number): void;
|
|
21
|
+
export function wasmnft_slip3(a: number): number;
|
|
22
|
+
export function wasmnft_set_slip3(a: number, b: number): void;
|
|
23
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
24
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
25
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
26
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
27
|
+
export function wasmpeer_new(a: number): number;
|
|
28
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
29
|
+
export function wasmpeer_get_services(a: number): number;
|
|
30
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
31
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
32
|
+
export function wasmpeer_get_status(a: number): number;
|
|
33
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
34
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
35
|
+
export function wasmpeerservice_new(): number;
|
|
36
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
37
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
38
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
39
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
40
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
41
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
42
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
43
|
+
export function wasmpeerservicelist_new(): number;
|
|
63
44
|
export function __wbg_wasmblock_free(a: number): void;
|
|
64
45
|
export function wasmblock_new(): number;
|
|
65
46
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -134,42 +115,61 @@ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
|
134
115
|
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
135
116
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
136
117
|
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
137
|
-
export function
|
|
138
|
-
export function
|
|
139
|
-
export function
|
|
140
|
-
export function
|
|
141
|
-
export function
|
|
142
|
-
export function
|
|
143
|
-
export function
|
|
144
|
-
export function
|
|
145
|
-
export function
|
|
146
|
-
export function
|
|
147
|
-
export function
|
|
148
|
-
export function
|
|
149
|
-
export function
|
|
150
|
-
export function
|
|
151
|
-
export function
|
|
152
|
-
export function
|
|
153
|
-
export function
|
|
154
|
-
export function
|
|
155
|
-
export function
|
|
156
|
-
export function
|
|
157
|
-
export function
|
|
158
|
-
export function
|
|
159
|
-
export function
|
|
160
|
-
export function
|
|
161
|
-
export function
|
|
162
|
-
export function
|
|
163
|
-
export function
|
|
164
|
-
export function
|
|
165
|
-
export function
|
|
166
|
-
export function
|
|
167
|
-
export function
|
|
168
|
-
export function
|
|
169
|
-
export function
|
|
170
|
-
export function
|
|
171
|
-
export function
|
|
172
|
-
export function
|
|
118
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
119
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
120
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
121
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
122
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
123
|
+
export function __wbg_wasmslip_free(a: number): void;
|
|
124
|
+
export function wasmslip_amount(a: number): number;
|
|
125
|
+
export function wasmslip_set_amount(a: number, b: number): void;
|
|
126
|
+
export function wasmslip_slip_type(a: number): number;
|
|
127
|
+
export function wasmslip_set_slip_type(a: number, b: number): void;
|
|
128
|
+
export function wasmslip_public_key(a: number): number;
|
|
129
|
+
export function wasmslip_set_public_key(a: number, b: number): void;
|
|
130
|
+
export function wasmslip_slip_index(a: number): number;
|
|
131
|
+
export function wasmslip_set_slip_index(a: number, b: number): void;
|
|
132
|
+
export function wasmslip_block_id(a: number): number;
|
|
133
|
+
export function wasmslip_set_block_id(a: number, b: number): void;
|
|
134
|
+
export function wasmslip_tx_ordinal(a: number): number;
|
|
135
|
+
export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
136
|
+
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
137
|
+
export function wasmslip_utxo_key(a: number): number;
|
|
138
|
+
export function wasmslip_new(): number;
|
|
139
|
+
export function __wbg_wasmwallet_free(a: number): void;
|
|
140
|
+
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
141
|
+
export function wasmwallet_save(a: number): number;
|
|
142
|
+
export function wasmwallet_reset(a: number, b: number): number;
|
|
143
|
+
export function wasmwallet_load(a: number): number;
|
|
144
|
+
export function wasmwallet_get_public_key(a: number): number;
|
|
145
|
+
export function wasmwallet_set_public_key(a: number, b: number): number;
|
|
146
|
+
export function wasmwallet_get_private_key(a: number): number;
|
|
147
|
+
export function wasmwallet_set_private_key(a: number, b: number): number;
|
|
148
|
+
export function wasmwallet_get_balance(a: number): number;
|
|
149
|
+
export function wasmwallet_get_pending_txs(a: number): number;
|
|
150
|
+
export function wasmwallet_get_slips(a: number): number;
|
|
151
|
+
export function wasmwallet_add_slip(a: number, b: number): number;
|
|
152
|
+
export function wasmwallet_add_to_pending(a: number, b: number): number;
|
|
153
|
+
export function wasmwallet_get_key_list(a: number): number;
|
|
154
|
+
export function wasmwallet_set_key_list(a: number, b: number): number;
|
|
155
|
+
export function wasmwallet_add_nft(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number): number;
|
|
156
|
+
export function wasmwalletslip_get_utxokey(a: number): number;
|
|
157
|
+
export function wasmwalletslip_set_utxokey(a: number, b: number): void;
|
|
158
|
+
export function wasmwalletslip_get_slip_index(a: number): number;
|
|
159
|
+
export function wasmwalletslip_set_slip_index(a: number, b: number): void;
|
|
160
|
+
export function wasmwalletslip_is_spent(a: number): number;
|
|
161
|
+
export function wasmwalletslip_set_spent(a: number, b: number): void;
|
|
162
|
+
export function wasmwalletslip_is_lc(a: number): number;
|
|
163
|
+
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
164
|
+
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
165
|
+
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
166
|
+
export function wasmwalletslip_new_(): number;
|
|
167
|
+
export function wasmwalletslip_set_amount(a: number, b: number): void;
|
|
168
|
+
export function wasmwalletslip_set_block_id(a: number, b: number): void;
|
|
169
|
+
export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
|
|
170
|
+
export function wasmwalletslip_get_amount(a: number): number;
|
|
171
|
+
export function wasmwalletslip_get_block_id(a: number): number;
|
|
172
|
+
export function wasmwalletslip_get_tx_ordinal(a: number): number;
|
|
173
173
|
export function __wbg_saitowasm_free(a: number): void;
|
|
174
174
|
export function initialize(a: number, b: number, c: number, d: number, e: number): number;
|
|
175
175
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -218,6 +218,7 @@ export function get_stats(): number;
|
|
|
218
218
|
export function get_peer_stats(): number;
|
|
219
219
|
export function get_congestion_stats(): number;
|
|
220
220
|
export function get_confirmations(): number;
|
|
221
|
+
export function start_from_received_ghost_chain(): number;
|
|
221
222
|
export function __wbg_wasmblockchain_free(a: number): void;
|
|
222
223
|
export function wasmblockchain_reset(a: number): number;
|
|
223
224
|
export function wasmblockchain_get_last_block_id(a: number): number;
|