saito-wasm 0.2.95 → 0.2.96
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 +65 -65
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +21 -21
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +21 -21
- package/pkg/web/index.js +63 -63
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +21 -21
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-54beba3cbd6d7df7 → saito-wasm-d7370202607d5c1c}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-54beba3cbd6d7df7 → saito-wasm-d7370202607d5c1c}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
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-d7370202607d5c1c/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -24,16 +24,9 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
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
|
-
}
|
|
27
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
cachedTextDecoder.decode();
|
|
37
30
|
|
|
38
31
|
let cachedUint8Memory0 = null;
|
|
39
32
|
|
|
@@ -44,6 +37,22 @@ function getUint8Memory0() {
|
|
|
44
37
|
return cachedUint8Memory0;
|
|
45
38
|
}
|
|
46
39
|
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
+
}
|
|
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
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
47
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
48
57
|
|
|
49
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,15 +120,6 @@ function getInt32Memory0() {
|
|
|
111
120
|
return cachedInt32Memory0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
-
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
|
|
118
|
-
function getStringFromWasm0(ptr, len) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -2214,7 +2214,7 @@ class WasmTransaction {
|
|
|
2214
2214
|
* @returns {bigint}
|
|
2215
2215
|
*/
|
|
2216
2216
|
get timestamp() {
|
|
2217
|
-
const ret = wasm.
|
|
2217
|
+
const ret = wasm.wasmtransaction_get_timestamp(this.__wbg_ptr);
|
|
2218
2218
|
return BigInt.asUintN(64, ret);
|
|
2219
2219
|
}
|
|
2220
2220
|
/**
|
|
@@ -2559,13 +2559,8 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2559
2559
|
takeObject(arg0);
|
|
2560
2560
|
};
|
|
2561
2561
|
|
|
2562
|
-
module.exports.
|
|
2563
|
-
const ret =
|
|
2564
|
-
return addHeapObject(ret);
|
|
2565
|
-
};
|
|
2566
|
-
|
|
2567
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2568
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2562
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2563
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2569
2564
|
return addHeapObject(ret);
|
|
2570
2565
|
};
|
|
2571
2566
|
|
|
@@ -2578,18 +2573,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2578
2573
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2579
2574
|
};
|
|
2580
2575
|
|
|
2581
|
-
module.exports.
|
|
2582
|
-
const ret =
|
|
2576
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2577
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2583
2578
|
return addHeapObject(ret);
|
|
2584
2579
|
};
|
|
2585
2580
|
|
|
2586
|
-
module.exports.
|
|
2587
|
-
const ret =
|
|
2581
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2582
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2588
2583
|
return addHeapObject(ret);
|
|
2589
2584
|
};
|
|
2590
2585
|
|
|
2591
|
-
module.exports.
|
|
2592
|
-
const ret =
|
|
2586
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2587
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2593
2588
|
return addHeapObject(ret);
|
|
2594
2589
|
};
|
|
2595
2590
|
|
|
@@ -2598,18 +2593,18 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2598
2593
|
return addHeapObject(ret);
|
|
2599
2594
|
};
|
|
2600
2595
|
|
|
2601
|
-
module.exports.
|
|
2602
|
-
const ret =
|
|
2596
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2597
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2603
2598
|
return addHeapObject(ret);
|
|
2604
2599
|
};
|
|
2605
2600
|
|
|
2606
|
-
module.exports.
|
|
2607
|
-
const ret =
|
|
2601
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2602
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2608
2603
|
return addHeapObject(ret);
|
|
2609
2604
|
};
|
|
2610
2605
|
|
|
2611
|
-
module.exports.
|
|
2612
|
-
const ret =
|
|
2606
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2607
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2613
2608
|
return addHeapObject(ret);
|
|
2614
2609
|
};
|
|
2615
2610
|
|
|
@@ -2618,6 +2613,11 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2618
2613
|
return addHeapObject(ret);
|
|
2619
2614
|
};
|
|
2620
2615
|
|
|
2616
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2617
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2618
|
+
return addHeapObject(ret);
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
2621
|
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2622
2622
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2623
2623
|
return addHeapObject(ret);
|
|
@@ -2644,15 +2644,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2644
2644
|
return ret;
|
|
2645
2645
|
};
|
|
2646
2646
|
|
|
2647
|
-
module.exports.
|
|
2647
|
+
module.exports.__wbg_sendmessage_fa7a8124c7dbe00e = function(arg0, arg1) {
|
|
2648
2648
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2649
2649
|
};
|
|
2650
2650
|
|
|
2651
|
-
module.exports.
|
|
2651
|
+
module.exports.__wbg_sendmessagetoall_7c973814ebd92595 = function(arg0, arg1) {
|
|
2652
2652
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2653
2653
|
};
|
|
2654
2654
|
|
|
2655
|
-
module.exports.
|
|
2655
|
+
module.exports.__wbg_connecttopeer_a1e2c4cfd6cb6997 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2656
2656
|
let deferred0_0;
|
|
2657
2657
|
let deferred0_1;
|
|
2658
2658
|
try {
|
|
@@ -2665,12 +2665,12 @@ module.exports.__wbg_connecttopeer_50264b7f7d8f3348 = function() { return handle
|
|
|
2665
2665
|
}
|
|
2666
2666
|
}, arguments) };
|
|
2667
2667
|
|
|
2668
|
-
module.exports.
|
|
2668
|
+
module.exports.__wbg_disconnectfrompeer_8aa5ebd3ec5a11a4 = function() { return handleError(function (arg0) {
|
|
2669
2669
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2670
2670
|
return addHeapObject(ret);
|
|
2671
2671
|
}, arguments) };
|
|
2672
2672
|
|
|
2673
|
-
module.exports.
|
|
2673
|
+
module.exports.__wbg_fetchblockfrompeer_ea41df70b4b768e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2674
2674
|
let deferred0_0;
|
|
2675
2675
|
let deferred0_1;
|
|
2676
2676
|
try {
|
|
@@ -2683,7 +2683,7 @@ module.exports.__wbg_fetchblockfrompeer_d9e340951116fd5e = function() { return h
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}, arguments) };
|
|
2685
2685
|
|
|
2686
|
-
module.exports.
|
|
2686
|
+
module.exports.__wbg_writevalue_f9b709ddde5c102b = function(arg0, arg1, arg2) {
|
|
2687
2687
|
let deferred0_0;
|
|
2688
2688
|
let deferred0_1;
|
|
2689
2689
|
try {
|
|
@@ -2695,7 +2695,7 @@ module.exports.__wbg_writevalue_ea54b07da8d73841 = function(arg0, arg1, arg2) {
|
|
|
2695
2695
|
}
|
|
2696
2696
|
};
|
|
2697
2697
|
|
|
2698
|
-
module.exports.
|
|
2698
|
+
module.exports.__wbg_appendvalue_00a0891256e2d1af = function(arg0, arg1, arg2) {
|
|
2699
2699
|
let deferred0_0;
|
|
2700
2700
|
let deferred0_1;
|
|
2701
2701
|
try {
|
|
@@ -2707,7 +2707,7 @@ module.exports.__wbg_appendvalue_93d3921c67970198 = function(arg0, arg1, arg2) {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
};
|
|
2709
2709
|
|
|
2710
|
-
module.exports.
|
|
2710
|
+
module.exports.__wbg_flushdata_d74e84968bb2bb0f = function(arg0, arg1) {
|
|
2711
2711
|
let deferred0_0;
|
|
2712
2712
|
let deferred0_1;
|
|
2713
2713
|
try {
|
|
@@ -2719,7 +2719,7 @@ module.exports.__wbg_flushdata_f28f633aed082e26 = function(arg0, arg1) {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
};
|
|
2721
2721
|
|
|
2722
|
-
module.exports.
|
|
2722
|
+
module.exports.__wbg_readvalue_7b7cdfd5b703d8f5 = function() { return handleError(function (arg0, arg1) {
|
|
2723
2723
|
let deferred0_0;
|
|
2724
2724
|
let deferred0_1;
|
|
2725
2725
|
try {
|
|
@@ -2732,12 +2732,12 @@ module.exports.__wbg_readvalue_2931aceaeb438aff = function() { return handleErro
|
|
|
2732
2732
|
}
|
|
2733
2733
|
}, arguments) };
|
|
2734
2734
|
|
|
2735
|
-
module.exports.
|
|
2735
|
+
module.exports.__wbg_loadblockfilelist_72f526d78d5b4cb3 = function() { return handleError(function () {
|
|
2736
2736
|
const ret = MsgHandler.load_block_file_list();
|
|
2737
2737
|
return addHeapObject(ret);
|
|
2738
2738
|
}, arguments) };
|
|
2739
2739
|
|
|
2740
|
-
module.exports.
|
|
2740
|
+
module.exports.__wbg_isexistingfile_c5ee5093903eb9e7 = function() { return handleError(function (arg0, arg1) {
|
|
2741
2741
|
let deferred0_0;
|
|
2742
2742
|
let deferred0_1;
|
|
2743
2743
|
try {
|
|
@@ -2750,7 +2750,7 @@ module.exports.__wbg_isexistingfile_9fbf96fdc0412096 = function() { return handl
|
|
|
2750
2750
|
}
|
|
2751
2751
|
}, arguments) };
|
|
2752
2752
|
|
|
2753
|
-
module.exports.
|
|
2753
|
+
module.exports.__wbg_removevalue_558005620aef5e36 = function() { return handleError(function (arg0, arg1) {
|
|
2754
2754
|
let deferred0_0;
|
|
2755
2755
|
let deferred0_1;
|
|
2756
2756
|
try {
|
|
@@ -2763,7 +2763,7 @@ module.exports.__wbg_removevalue_0c4b6b558e89215f = function() { return handleEr
|
|
|
2763
2763
|
}
|
|
2764
2764
|
}, arguments) };
|
|
2765
2765
|
|
|
2766
|
-
module.exports.
|
|
2766
|
+
module.exports.__wbg_ensureblockdirectoryexists_336ca16e9d60923b = function() { return handleError(function (arg0, arg1) {
|
|
2767
2767
|
let deferred0_0;
|
|
2768
2768
|
let deferred0_1;
|
|
2769
2769
|
try {
|
|
@@ -2775,19 +2775,19 @@ module.exports.__wbg_ensureblockdirectoryexists_24dd763a83b0b2b0 = function() {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
}, arguments) };
|
|
2777
2777
|
|
|
2778
|
-
module.exports.
|
|
2778
|
+
module.exports.__wbg_processapicall_f721e50b94451ca2 = function(arg0, arg1, arg2) {
|
|
2779
2779
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2780
2780
|
};
|
|
2781
2781
|
|
|
2782
|
-
module.exports.
|
|
2782
|
+
module.exports.__wbg_processapisuccess_900a9588104f9c34 = function(arg0, arg1, arg2) {
|
|
2783
2783
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2784
2784
|
};
|
|
2785
2785
|
|
|
2786
|
-
module.exports.
|
|
2786
|
+
module.exports.__wbg_processapierror_945b908899bd8e09 = function(arg0, arg1, arg2) {
|
|
2787
2787
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2788
2788
|
};
|
|
2789
2789
|
|
|
2790
|
-
module.exports.
|
|
2790
|
+
module.exports.__wbg_sendinterfaceevent_685c5971bbaee5b9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2791
2791
|
let deferred0_0;
|
|
2792
2792
|
let deferred0_1;
|
|
2793
2793
|
let deferred1_0;
|
|
@@ -2804,7 +2804,7 @@ module.exports.__wbg_sendinterfaceevent_71da58d10523e1c2 = function(arg0, arg1,
|
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
2806
|
|
|
2807
|
-
module.exports.
|
|
2807
|
+
module.exports.__wbg_sendblocksuccess_585f8b5f0a75cf55 = function(arg0, arg1, arg2) {
|
|
2808
2808
|
let deferred0_0;
|
|
2809
2809
|
let deferred0_1;
|
|
2810
2810
|
try {
|
|
@@ -2816,11 +2816,11 @@ module.exports.__wbg_sendblocksuccess_7db37b555c014b46 = function(arg0, arg1, ar
|
|
|
2816
2816
|
}
|
|
2817
2817
|
};
|
|
2818
2818
|
|
|
2819
|
-
module.exports.
|
|
2819
|
+
module.exports.__wbg_sendwalletupdate_ddf2562957aaa462 = function() {
|
|
2820
2820
|
MsgHandler.send_wallet_update();
|
|
2821
2821
|
};
|
|
2822
2822
|
|
|
2823
|
-
module.exports.
|
|
2823
|
+
module.exports.__wbg_sendnewversionalert_96efb3efb614663b = function(arg0, arg1, arg2) {
|
|
2824
2824
|
let deferred0_0;
|
|
2825
2825
|
let deferred0_1;
|
|
2826
2826
|
try {
|
|
@@ -2832,19 +2832,19 @@ module.exports.__wbg_sendnewversionalert_632ad4258760c5ea = function(arg0, arg1,
|
|
|
2832
2832
|
}
|
|
2833
2833
|
};
|
|
2834
2834
|
|
|
2835
|
-
module.exports.
|
|
2835
|
+
module.exports.__wbg_sendblockfetchstatusevent_a5dc70100cf5a94b = function(arg0) {
|
|
2836
2836
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2837
2837
|
};
|
|
2838
2838
|
|
|
2839
|
-
module.exports.
|
|
2839
|
+
module.exports.__wbg_savewallet_88b3d39db83ef7bc = function() {
|
|
2840
2840
|
MsgHandler.save_wallet();
|
|
2841
2841
|
};
|
|
2842
2842
|
|
|
2843
|
-
module.exports.
|
|
2843
|
+
module.exports.__wbg_loadwallet_103853d18e46f437 = function() {
|
|
2844
2844
|
MsgHandler.load_wallet();
|
|
2845
2845
|
};
|
|
2846
2846
|
|
|
2847
|
-
module.exports.
|
|
2847
|
+
module.exports.__wbg_getmyservices_76e2d5fd1c547778 = function() {
|
|
2848
2848
|
const ret = MsgHandler.get_my_services();
|
|
2849
2849
|
_assertClass(ret, WasmPeerServiceList);
|
|
2850
2850
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -3227,7 +3227,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3227
3227
|
return addHeapObject(ret);
|
|
3228
3228
|
};
|
|
3229
3229
|
|
|
3230
|
-
module.exports.
|
|
3230
|
+
module.exports.__wbindgen_closure_wrapper1369 = function(arg0, arg1, arg2) {
|
|
3231
3231
|
const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_38);
|
|
3232
3232
|
return addHeapObject(ret);
|
|
3233
3233
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -64,10 +64,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
|
64
64
|
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
65
65
|
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
66
66
|
export function wasmwalletslip_new_(): number;
|
|
67
|
-
export function
|
|
68
|
-
export function
|
|
69
|
-
export function
|
|
70
|
-
export function
|
|
67
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
68
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
69
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
70
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
71
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
72
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
73
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
74
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
75
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
76
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
77
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
78
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
79
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
80
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
81
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
82
|
+
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
71
83
|
export function __wbg_saitowasm_free(a: number): void;
|
|
72
84
|
export function initialize(a: number, b: number, c: number, d: number, e: number): number;
|
|
73
85
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -112,22 +124,10 @@ export function produce_block_with_gt(): number;
|
|
|
112
124
|
export function produce_block_without_gt(): number;
|
|
113
125
|
export function get_stats(): number;
|
|
114
126
|
export function get_peer_stats(): number;
|
|
115
|
-
export function
|
|
116
|
-
export function
|
|
117
|
-
export function
|
|
118
|
-
export function
|
|
119
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
120
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
121
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
122
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
123
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
124
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
125
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
126
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
127
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
128
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
129
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
130
|
-
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
127
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
128
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
129
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
130
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
131
131
|
export function __wbg_wasmblock_free(a: number): void;
|
|
132
132
|
export function wasmblock_new(): number;
|
|
133
133
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -227,6 +227,7 @@ export function wasmtransaction_is_from(a: number, b: number): number;
|
|
|
227
227
|
export function wasmtransaction_is_to(a: number, b: number): number;
|
|
228
228
|
export function wasmtransaction_get_data(a: number): number;
|
|
229
229
|
export function wasmtransaction_set_data(a: number, b: number): void;
|
|
230
|
+
export function wasmtransaction_get_timestamp(a: number): number;
|
|
230
231
|
export function wasmtransaction_set_timestamp(a: number, b: number): void;
|
|
231
232
|
export function wasmtransaction_sign(a: number): number;
|
|
232
233
|
export function wasmtransaction_get_type(a: number): number;
|
|
@@ -235,7 +236,6 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
235
236
|
export function wasmtransaction_serialize(a: number): number;
|
|
236
237
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
237
238
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
238
|
-
export function wasmtransaction_get_timestamp(a: number): number;
|
|
239
239
|
export function __wbg_wasmblockchain_free(a: number): void;
|
|
240
240
|
export function wasmblockchain_reset(a: number): number;
|
|
241
241
|
export function wasmblockchain_get_last_block_id(a: number): number;
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.d.ts
CHANGED
|
@@ -983,10 +983,22 @@ export interface InitOutput {
|
|
|
983
983
|
readonly wasmwalletslip_get_slip_type: (a: number) => number;
|
|
984
984
|
readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
|
|
985
985
|
readonly wasmwalletslip_new_: () => number;
|
|
986
|
-
readonly
|
|
987
|
-
readonly
|
|
988
|
-
readonly
|
|
989
|
-
readonly
|
|
986
|
+
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
987
|
+
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
988
|
+
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
989
|
+
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
990
|
+
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
991
|
+
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
992
|
+
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
993
|
+
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
994
|
+
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
995
|
+
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
996
|
+
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
997
|
+
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
998
|
+
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
999
|
+
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1000
|
+
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
1001
|
+
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
990
1002
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
991
1003
|
readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
992
1004
|
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -1031,22 +1043,10 @@ export interface InitOutput {
|
|
|
1031
1043
|
readonly produce_block_without_gt: () => number;
|
|
1032
1044
|
readonly get_stats: () => number;
|
|
1033
1045
|
readonly get_peer_stats: () => number;
|
|
1034
|
-
readonly
|
|
1035
|
-
readonly
|
|
1036
|
-
readonly
|
|
1037
|
-
readonly
|
|
1038
|
-
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
1039
|
-
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
1040
|
-
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
1041
|
-
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
1042
|
-
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
1043
|
-
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1044
|
-
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1045
|
-
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
1046
|
-
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1047
|
-
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1048
|
-
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
1049
|
-
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
1046
|
+
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
1047
|
+
readonly wasmhop_from: (a: number, b: number) => void;
|
|
1048
|
+
readonly wasmhop_sig: (a: number, b: number) => void;
|
|
1049
|
+
readonly wasmhop_to: (a: number, b: number) => void;
|
|
1050
1050
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1051
1051
|
readonly wasmblock_new: () => number;
|
|
1052
1052
|
readonly wasmblock_get_transactions: (a: number) => number;
|
|
@@ -1146,6 +1146,7 @@ export interface InitOutput {
|
|
|
1146
1146
|
readonly wasmtransaction_is_to: (a: number, b: number) => number;
|
|
1147
1147
|
readonly wasmtransaction_get_data: (a: number) => number;
|
|
1148
1148
|
readonly wasmtransaction_set_data: (a: number, b: number) => void;
|
|
1149
|
+
readonly wasmtransaction_get_timestamp: (a: number) => number;
|
|
1149
1150
|
readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
|
|
1150
1151
|
readonly wasmtransaction_sign: (a: number) => number;
|
|
1151
1152
|
readonly wasmtransaction_get_type: (a: number) => number;
|
|
@@ -1154,7 +1155,6 @@ export interface InitOutput {
|
|
|
1154
1155
|
readonly wasmtransaction_serialize: (a: number) => number;
|
|
1155
1156
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
1156
1157
|
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1157
|
-
readonly wasmtransaction_get_timestamp: (a: number) => number;
|
|
1158
1158
|
readonly __wbg_wasmblockchain_free: (a: number) => void;
|
|
1159
1159
|
readonly wasmblockchain_reset: (a: number) => number;
|
|
1160
1160
|
readonly wasmblockchain_get_last_block_id: (a: number) => number;
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-d7370202607d5c1c/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,16 +22,9 @@ function takeObject(idx) {
|
|
|
22
22
|
return ret;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
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
|
-
}
|
|
25
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
26
|
|
|
34
|
-
|
|
27
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
35
28
|
|
|
36
29
|
let cachedUint8Memory0 = null;
|
|
37
30
|
|
|
@@ -42,6 +35,22 @@ function getUint8Memory0() {
|
|
|
42
35
|
return cachedUint8Memory0;
|
|
43
36
|
}
|
|
44
37
|
|
|
38
|
+
function getStringFromWasm0(ptr, len) {
|
|
39
|
+
ptr = ptr >>> 0;
|
|
40
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
+
}
|
|
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
|
+
let WASM_VECTOR_LEN = 0;
|
|
53
|
+
|
|
45
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
46
55
|
|
|
47
56
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -109,15 +118,6 @@ function getInt32Memory0() {
|
|
|
109
118
|
return cachedInt32Memory0;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
-
|
|
114
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
-
|
|
116
|
-
function getStringFromWasm0(ptr, len) {
|
|
117
|
-
ptr = ptr >>> 0;
|
|
118
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -2199,7 +2199,7 @@ export class WasmTransaction {
|
|
|
2199
2199
|
* @returns {bigint}
|
|
2200
2200
|
*/
|
|
2201
2201
|
get timestamp() {
|
|
2202
|
-
const ret = wasm.
|
|
2202
|
+
const ret = wasm.wasmtransaction_get_timestamp(this.__wbg_ptr);
|
|
2203
2203
|
return BigInt.asUintN(64, ret);
|
|
2204
2204
|
}
|
|
2205
2205
|
/**
|
|
@@ -2574,12 +2574,8 @@ function __wbg_get_imports() {
|
|
|
2574
2574
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2575
2575
|
takeObject(arg0);
|
|
2576
2576
|
};
|
|
2577
|
-
imports.wbg.
|
|
2578
|
-
const ret =
|
|
2579
|
-
return addHeapObject(ret);
|
|
2580
|
-
};
|
|
2581
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2582
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2577
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2578
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2583
2579
|
return addHeapObject(ret);
|
|
2584
2580
|
};
|
|
2585
2581
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2590,38 +2586,42 @@ function __wbg_get_imports() {
|
|
|
2590
2586
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2591
2587
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2592
2588
|
};
|
|
2593
|
-
imports.wbg.
|
|
2594
|
-
const ret =
|
|
2589
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2590
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2595
2591
|
return addHeapObject(ret);
|
|
2596
2592
|
};
|
|
2597
|
-
imports.wbg.
|
|
2598
|
-
const ret =
|
|
2593
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2594
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2599
2595
|
return addHeapObject(ret);
|
|
2600
2596
|
};
|
|
2601
|
-
imports.wbg.
|
|
2602
|
-
const ret =
|
|
2597
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2598
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2603
2599
|
return addHeapObject(ret);
|
|
2604
2600
|
};
|
|
2605
2601
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2606
2602
|
const ret = WasmBlock.__wrap(arg0);
|
|
2607
2603
|
return addHeapObject(ret);
|
|
2608
2604
|
};
|
|
2609
|
-
imports.wbg.
|
|
2610
|
-
const ret =
|
|
2605
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2606
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2611
2607
|
return addHeapObject(ret);
|
|
2612
2608
|
};
|
|
2613
|
-
imports.wbg.
|
|
2614
|
-
const ret =
|
|
2609
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2610
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2615
2611
|
return addHeapObject(ret);
|
|
2616
2612
|
};
|
|
2617
|
-
imports.wbg.
|
|
2618
|
-
const ret =
|
|
2613
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2614
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2619
2615
|
return addHeapObject(ret);
|
|
2620
2616
|
};
|
|
2621
2617
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2622
2618
|
const ret = WasmSlip.__wrap(arg0);
|
|
2623
2619
|
return addHeapObject(ret);
|
|
2624
2620
|
};
|
|
2621
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2622
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2623
|
+
return addHeapObject(ret);
|
|
2624
|
+
};
|
|
2625
2625
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2626
2626
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2627
2627
|
return addHeapObject(ret);
|
|
@@ -2643,13 +2643,13 @@ function __wbg_get_imports() {
|
|
|
2643
2643
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2644
2644
|
return ret;
|
|
2645
2645
|
};
|
|
2646
|
-
imports.wbg.
|
|
2646
|
+
imports.wbg.__wbg_sendmessage_fa7a8124c7dbe00e = function(arg0, arg1) {
|
|
2647
2647
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2648
2648
|
};
|
|
2649
|
-
imports.wbg.
|
|
2649
|
+
imports.wbg.__wbg_sendmessagetoall_7c973814ebd92595 = function(arg0, arg1) {
|
|
2650
2650
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2651
2651
|
};
|
|
2652
|
-
imports.wbg.
|
|
2652
|
+
imports.wbg.__wbg_connecttopeer_a1e2c4cfd6cb6997 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2653
2653
|
let deferred0_0;
|
|
2654
2654
|
let deferred0_1;
|
|
2655
2655
|
try {
|
|
@@ -2661,11 +2661,11 @@ function __wbg_get_imports() {
|
|
|
2661
2661
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2662
2662
|
}
|
|
2663
2663
|
}, arguments) };
|
|
2664
|
-
imports.wbg.
|
|
2664
|
+
imports.wbg.__wbg_disconnectfrompeer_8aa5ebd3ec5a11a4 = function() { return handleError(function (arg0) {
|
|
2665
2665
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2666
2666
|
return addHeapObject(ret);
|
|
2667
2667
|
}, arguments) };
|
|
2668
|
-
imports.wbg.
|
|
2668
|
+
imports.wbg.__wbg_fetchblockfrompeer_ea41df70b4b768e4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2669
2669
|
let deferred0_0;
|
|
2670
2670
|
let deferred0_1;
|
|
2671
2671
|
try {
|
|
@@ -2677,7 +2677,7 @@ function __wbg_get_imports() {
|
|
|
2677
2677
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2678
2678
|
}
|
|
2679
2679
|
}, arguments) };
|
|
2680
|
-
imports.wbg.
|
|
2680
|
+
imports.wbg.__wbg_writevalue_f9b709ddde5c102b = function(arg0, arg1, arg2) {
|
|
2681
2681
|
let deferred0_0;
|
|
2682
2682
|
let deferred0_1;
|
|
2683
2683
|
try {
|
|
@@ -2688,7 +2688,7 @@ function __wbg_get_imports() {
|
|
|
2688
2688
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2689
2689
|
}
|
|
2690
2690
|
};
|
|
2691
|
-
imports.wbg.
|
|
2691
|
+
imports.wbg.__wbg_appendvalue_00a0891256e2d1af = function(arg0, arg1, arg2) {
|
|
2692
2692
|
let deferred0_0;
|
|
2693
2693
|
let deferred0_1;
|
|
2694
2694
|
try {
|
|
@@ -2699,7 +2699,7 @@ function __wbg_get_imports() {
|
|
|
2699
2699
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2700
2700
|
}
|
|
2701
2701
|
};
|
|
2702
|
-
imports.wbg.
|
|
2702
|
+
imports.wbg.__wbg_flushdata_d74e84968bb2bb0f = function(arg0, arg1) {
|
|
2703
2703
|
let deferred0_0;
|
|
2704
2704
|
let deferred0_1;
|
|
2705
2705
|
try {
|
|
@@ -2710,7 +2710,7 @@ function __wbg_get_imports() {
|
|
|
2710
2710
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2711
2711
|
}
|
|
2712
2712
|
};
|
|
2713
|
-
imports.wbg.
|
|
2713
|
+
imports.wbg.__wbg_readvalue_7b7cdfd5b703d8f5 = function() { return handleError(function (arg0, arg1) {
|
|
2714
2714
|
let deferred0_0;
|
|
2715
2715
|
let deferred0_1;
|
|
2716
2716
|
try {
|
|
@@ -2722,11 +2722,11 @@ function __wbg_get_imports() {
|
|
|
2722
2722
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2723
2723
|
}
|
|
2724
2724
|
}, arguments) };
|
|
2725
|
-
imports.wbg.
|
|
2725
|
+
imports.wbg.__wbg_loadblockfilelist_72f526d78d5b4cb3 = function() { return handleError(function () {
|
|
2726
2726
|
const ret = MsgHandler.load_block_file_list();
|
|
2727
2727
|
return addHeapObject(ret);
|
|
2728
2728
|
}, arguments) };
|
|
2729
|
-
imports.wbg.
|
|
2729
|
+
imports.wbg.__wbg_isexistingfile_c5ee5093903eb9e7 = function() { return handleError(function (arg0, arg1) {
|
|
2730
2730
|
let deferred0_0;
|
|
2731
2731
|
let deferred0_1;
|
|
2732
2732
|
try {
|
|
@@ -2738,7 +2738,7 @@ function __wbg_get_imports() {
|
|
|
2738
2738
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2739
2739
|
}
|
|
2740
2740
|
}, arguments) };
|
|
2741
|
-
imports.wbg.
|
|
2741
|
+
imports.wbg.__wbg_removevalue_558005620aef5e36 = function() { return handleError(function (arg0, arg1) {
|
|
2742
2742
|
let deferred0_0;
|
|
2743
2743
|
let deferred0_1;
|
|
2744
2744
|
try {
|
|
@@ -2750,7 +2750,7 @@ function __wbg_get_imports() {
|
|
|
2750
2750
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2751
2751
|
}
|
|
2752
2752
|
}, arguments) };
|
|
2753
|
-
imports.wbg.
|
|
2753
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_336ca16e9d60923b = function() { return handleError(function (arg0, arg1) {
|
|
2754
2754
|
let deferred0_0;
|
|
2755
2755
|
let deferred0_1;
|
|
2756
2756
|
try {
|
|
@@ -2761,16 +2761,16 @@ function __wbg_get_imports() {
|
|
|
2761
2761
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2762
2762
|
}
|
|
2763
2763
|
}, arguments) };
|
|
2764
|
-
imports.wbg.
|
|
2764
|
+
imports.wbg.__wbg_processapicall_f721e50b94451ca2 = function(arg0, arg1, arg2) {
|
|
2765
2765
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2766
2766
|
};
|
|
2767
|
-
imports.wbg.
|
|
2767
|
+
imports.wbg.__wbg_processapisuccess_900a9588104f9c34 = function(arg0, arg1, arg2) {
|
|
2768
2768
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2769
2769
|
};
|
|
2770
|
-
imports.wbg.
|
|
2770
|
+
imports.wbg.__wbg_processapierror_945b908899bd8e09 = function(arg0, arg1, arg2) {
|
|
2771
2771
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2772
2772
|
};
|
|
2773
|
-
imports.wbg.
|
|
2773
|
+
imports.wbg.__wbg_sendinterfaceevent_685c5971bbaee5b9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2774
2774
|
let deferred0_0;
|
|
2775
2775
|
let deferred0_1;
|
|
2776
2776
|
let deferred1_0;
|
|
@@ -2786,7 +2786,7 @@ function __wbg_get_imports() {
|
|
|
2786
2786
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2787
2787
|
}
|
|
2788
2788
|
};
|
|
2789
|
-
imports.wbg.
|
|
2789
|
+
imports.wbg.__wbg_sendblocksuccess_585f8b5f0a75cf55 = function(arg0, arg1, arg2) {
|
|
2790
2790
|
let deferred0_0;
|
|
2791
2791
|
let deferred0_1;
|
|
2792
2792
|
try {
|
|
@@ -2797,10 +2797,10 @@ function __wbg_get_imports() {
|
|
|
2797
2797
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2798
2798
|
}
|
|
2799
2799
|
};
|
|
2800
|
-
imports.wbg.
|
|
2800
|
+
imports.wbg.__wbg_sendwalletupdate_ddf2562957aaa462 = function() {
|
|
2801
2801
|
MsgHandler.send_wallet_update();
|
|
2802
2802
|
};
|
|
2803
|
-
imports.wbg.
|
|
2803
|
+
imports.wbg.__wbg_sendnewversionalert_96efb3efb614663b = function(arg0, arg1, arg2) {
|
|
2804
2804
|
let deferred0_0;
|
|
2805
2805
|
let deferred0_1;
|
|
2806
2806
|
try {
|
|
@@ -2811,16 +2811,16 @@ function __wbg_get_imports() {
|
|
|
2811
2811
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2812
2812
|
}
|
|
2813
2813
|
};
|
|
2814
|
-
imports.wbg.
|
|
2814
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_a5dc70100cf5a94b = function(arg0) {
|
|
2815
2815
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2816
2816
|
};
|
|
2817
|
-
imports.wbg.
|
|
2817
|
+
imports.wbg.__wbg_savewallet_88b3d39db83ef7bc = function() {
|
|
2818
2818
|
MsgHandler.save_wallet();
|
|
2819
2819
|
};
|
|
2820
|
-
imports.wbg.
|
|
2820
|
+
imports.wbg.__wbg_loadwallet_103853d18e46f437 = function() {
|
|
2821
2821
|
MsgHandler.load_wallet();
|
|
2822
2822
|
};
|
|
2823
|
-
imports.wbg.
|
|
2823
|
+
imports.wbg.__wbg_getmyservices_76e2d5fd1c547778 = function() {
|
|
2824
2824
|
const ret = MsgHandler.get_my_services();
|
|
2825
2825
|
_assertClass(ret, WasmPeerServiceList);
|
|
2826
2826
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -3134,7 +3134,7 @@ function __wbg_get_imports() {
|
|
|
3134
3134
|
const ret = wasm.memory;
|
|
3135
3135
|
return addHeapObject(ret);
|
|
3136
3136
|
};
|
|
3137
|
-
imports.wbg.
|
|
3137
|
+
imports.wbg.__wbindgen_closure_wrapper1369 = function(arg0, arg1, arg2) {
|
|
3138
3138
|
const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_38);
|
|
3139
3139
|
return addHeapObject(ret);
|
|
3140
3140
|
};
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -64,10 +64,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
|
64
64
|
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
65
65
|
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
66
66
|
export function wasmwalletslip_new_(): number;
|
|
67
|
-
export function
|
|
68
|
-
export function
|
|
69
|
-
export function
|
|
70
|
-
export function
|
|
67
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
68
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
69
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
70
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
71
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
72
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
73
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
74
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
75
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
76
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
77
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
78
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
79
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
80
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
81
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
82
|
+
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
71
83
|
export function __wbg_saitowasm_free(a: number): void;
|
|
72
84
|
export function initialize(a: number, b: number, c: number, d: number, e: number): number;
|
|
73
85
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -112,22 +124,10 @@ export function produce_block_with_gt(): number;
|
|
|
112
124
|
export function produce_block_without_gt(): number;
|
|
113
125
|
export function get_stats(): number;
|
|
114
126
|
export function get_peer_stats(): number;
|
|
115
|
-
export function
|
|
116
|
-
export function
|
|
117
|
-
export function
|
|
118
|
-
export function
|
|
119
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
120
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
121
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
122
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
123
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
124
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
125
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
126
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
127
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
128
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
129
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
130
|
-
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
127
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
128
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
129
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
130
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
131
131
|
export function __wbg_wasmblock_free(a: number): void;
|
|
132
132
|
export function wasmblock_new(): number;
|
|
133
133
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -227,6 +227,7 @@ export function wasmtransaction_is_from(a: number, b: number): number;
|
|
|
227
227
|
export function wasmtransaction_is_to(a: number, b: number): number;
|
|
228
228
|
export function wasmtransaction_get_data(a: number): number;
|
|
229
229
|
export function wasmtransaction_set_data(a: number, b: number): void;
|
|
230
|
+
export function wasmtransaction_get_timestamp(a: number): number;
|
|
230
231
|
export function wasmtransaction_set_timestamp(a: number, b: number): void;
|
|
231
232
|
export function wasmtransaction_sign(a: number): number;
|
|
232
233
|
export function wasmtransaction_get_type(a: number): number;
|
|
@@ -235,7 +236,6 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
235
236
|
export function wasmtransaction_serialize(a: number): number;
|
|
236
237
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
237
238
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
238
|
-
export function wasmtransaction_get_timestamp(a: number): number;
|
|
239
239
|
export function __wbg_wasmblockchain_free(a: number): void;
|
|
240
240
|
export function wasmblockchain_reset(a: number): number;
|
|
241
241
|
export function wasmblockchain_get_last_block_id(a: number): number;
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|