saito-wasm 0.2.83 → 0.2.85
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 +71 -71
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +48 -48
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +48 -48
- package/pkg/web/index.js +69 -69
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +48 -48
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-4967682c700c581e → saito-wasm-57e290b123a58f0f}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-4967682c700c581e → saito-wasm-57e290b123a58f0f}/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-57e290b123a58f0f/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,15 +24,6 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function addHeapObject(obj) {
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
28
|
|
|
38
29
|
cachedTextDecoder.decode();
|
|
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
51
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
43
|
}
|
|
53
44
|
|
|
45
|
+
function addHeapObject(obj) {
|
|
46
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
+
const idx = heap_next;
|
|
48
|
+
heap_next = heap[idx];
|
|
49
|
+
|
|
50
|
+
heap[idx] = obj;
|
|
51
|
+
return idx;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
function handleError(f, args) {
|
|
@@ -674,7 +674,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
674
674
|
};
|
|
675
675
|
|
|
676
676
|
function __wbg_adapter_415(arg0, arg1, arg2, arg3) {
|
|
677
|
-
wasm.
|
|
677
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2473,52 +2473,38 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2473
2473
|
takeObject(arg0);
|
|
2474
2474
|
};
|
|
2475
2475
|
|
|
2476
|
-
module.exports.
|
|
2477
|
-
const ret =
|
|
2478
|
-
return addHeapObject(ret);
|
|
2479
|
-
};
|
|
2480
|
-
|
|
2481
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2482
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2476
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2477
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2483
2478
|
return addHeapObject(ret);
|
|
2484
2479
|
};
|
|
2485
2480
|
|
|
2486
|
-
module.exports.
|
|
2487
|
-
const ret =
|
|
2481
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2482
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2488
2483
|
return addHeapObject(ret);
|
|
2489
2484
|
};
|
|
2490
2485
|
|
|
2491
|
-
module.exports.
|
|
2492
|
-
const ret =
|
|
2486
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2487
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2493
2488
|
return addHeapObject(ret);
|
|
2494
2489
|
};
|
|
2495
2490
|
|
|
2496
|
-
module.exports.
|
|
2497
|
-
const ret =
|
|
2491
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2492
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2498
2493
|
return addHeapObject(ret);
|
|
2499
2494
|
};
|
|
2500
2495
|
|
|
2501
|
-
module.exports.
|
|
2502
|
-
const
|
|
2503
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2504
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2505
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2506
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2507
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2508
|
-
};
|
|
2509
|
-
|
|
2510
|
-
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2511
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2496
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2497
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2512
2498
|
return addHeapObject(ret);
|
|
2513
2499
|
};
|
|
2514
2500
|
|
|
2515
|
-
module.exports.
|
|
2516
|
-
const ret =
|
|
2501
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2502
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2517
2503
|
return addHeapObject(ret);
|
|
2518
2504
|
};
|
|
2519
2505
|
|
|
2520
|
-
module.exports.
|
|
2521
|
-
const ret =
|
|
2506
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2507
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2522
2508
|
return addHeapObject(ret);
|
|
2523
2509
|
};
|
|
2524
2510
|
|
|
@@ -2527,35 +2513,44 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2527
2513
|
return addHeapObject(ret);
|
|
2528
2514
|
};
|
|
2529
2515
|
|
|
2530
|
-
module.exports.
|
|
2531
|
-
const ret =
|
|
2516
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2517
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2532
2518
|
return addHeapObject(ret);
|
|
2533
2519
|
};
|
|
2534
2520
|
|
|
2535
|
-
module.exports.
|
|
2536
|
-
const ret =
|
|
2521
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2522
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2537
2523
|
return addHeapObject(ret);
|
|
2538
2524
|
};
|
|
2539
2525
|
|
|
2540
|
-
module.exports.
|
|
2541
|
-
const ret =
|
|
2526
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2527
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2542
2528
|
return addHeapObject(ret);
|
|
2543
2529
|
};
|
|
2544
2530
|
|
|
2531
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2532
|
+
const obj = getObject(arg1);
|
|
2533
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2534
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2535
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2536
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2537
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2538
|
+
};
|
|
2539
|
+
|
|
2545
2540
|
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2546
2541
|
const ret = WasmHop.__wrap(arg0);
|
|
2547
2542
|
return addHeapObject(ret);
|
|
2548
2543
|
};
|
|
2549
2544
|
|
|
2550
|
-
module.exports.
|
|
2545
|
+
module.exports.__wbg_sendmessage_30ffde9e42027004 = function(arg0, arg1) {
|
|
2551
2546
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2552
2547
|
};
|
|
2553
2548
|
|
|
2554
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_sendmessagetoall_28150f39a51f62a1 = function(arg0, arg1) {
|
|
2555
2550
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2556
2551
|
};
|
|
2557
2552
|
|
|
2558
|
-
module.exports.
|
|
2553
|
+
module.exports.__wbg_connecttopeer_e9dd2fb26a84d705 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2559
2554
|
let deferred0_0;
|
|
2560
2555
|
let deferred0_1;
|
|
2561
2556
|
try {
|
|
@@ -2568,12 +2563,12 @@ module.exports.__wbg_connecttopeer_b6a1e227495b1cb1 = function() { return handle
|
|
|
2568
2563
|
}
|
|
2569
2564
|
}, arguments) };
|
|
2570
2565
|
|
|
2571
|
-
module.exports.
|
|
2566
|
+
module.exports.__wbg_disconnectfrompeer_f1bb57312ca5fce4 = function() { return handleError(function (arg0) {
|
|
2572
2567
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2573
2568
|
return addHeapObject(ret);
|
|
2574
2569
|
}, arguments) };
|
|
2575
2570
|
|
|
2576
|
-
module.exports.
|
|
2571
|
+
module.exports.__wbg_fetchblockfrompeer_13db356acb9b686b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2577
2572
|
let deferred0_0;
|
|
2578
2573
|
let deferred0_1;
|
|
2579
2574
|
try {
|
|
@@ -2586,7 +2581,7 @@ module.exports.__wbg_fetchblockfrompeer_b9ae42dda9e9a33c = function() { return h
|
|
|
2586
2581
|
}
|
|
2587
2582
|
}, arguments) };
|
|
2588
2583
|
|
|
2589
|
-
module.exports.
|
|
2584
|
+
module.exports.__wbg_writevalue_d5a28e805568d935 = function(arg0, arg1, arg2) {
|
|
2590
2585
|
let deferred0_0;
|
|
2591
2586
|
let deferred0_1;
|
|
2592
2587
|
try {
|
|
@@ -2598,7 +2593,7 @@ module.exports.__wbg_writevalue_7e94b66b64380b4b = function(arg0, arg1, arg2) {
|
|
|
2598
2593
|
}
|
|
2599
2594
|
};
|
|
2600
2595
|
|
|
2601
|
-
module.exports.
|
|
2596
|
+
module.exports.__wbg_appendvalue_01ac00f342b423cc = function(arg0, arg1, arg2) {
|
|
2602
2597
|
let deferred0_0;
|
|
2603
2598
|
let deferred0_1;
|
|
2604
2599
|
try {
|
|
@@ -2610,7 +2605,7 @@ module.exports.__wbg_appendvalue_b4c7e2a7d7763674 = function(arg0, arg1, arg2) {
|
|
|
2610
2605
|
}
|
|
2611
2606
|
};
|
|
2612
2607
|
|
|
2613
|
-
module.exports.
|
|
2608
|
+
module.exports.__wbg_flushdata_40d1e1b935f2876d = function(arg0, arg1) {
|
|
2614
2609
|
let deferred0_0;
|
|
2615
2610
|
let deferred0_1;
|
|
2616
2611
|
try {
|
|
@@ -2622,7 +2617,7 @@ module.exports.__wbg_flushdata_4b9fbaa4569e214e = function(arg0, arg1) {
|
|
|
2622
2617
|
}
|
|
2623
2618
|
};
|
|
2624
2619
|
|
|
2625
|
-
module.exports.
|
|
2620
|
+
module.exports.__wbg_readvalue_b1e0f550ef163143 = function() { return handleError(function (arg0, arg1) {
|
|
2626
2621
|
let deferred0_0;
|
|
2627
2622
|
let deferred0_1;
|
|
2628
2623
|
try {
|
|
@@ -2635,12 +2630,12 @@ module.exports.__wbg_readvalue_37267595302dac7b = function() { return handleErro
|
|
|
2635
2630
|
}
|
|
2636
2631
|
}, arguments) };
|
|
2637
2632
|
|
|
2638
|
-
module.exports.
|
|
2633
|
+
module.exports.__wbg_loadblockfilelist_ec96ac70d151e30c = function() { return handleError(function () {
|
|
2639
2634
|
const ret = MsgHandler.load_block_file_list();
|
|
2640
2635
|
return addHeapObject(ret);
|
|
2641
2636
|
}, arguments) };
|
|
2642
2637
|
|
|
2643
|
-
module.exports.
|
|
2638
|
+
module.exports.__wbg_isexistingfile_de1efdbb29ff99d7 = function() { return handleError(function (arg0, arg1) {
|
|
2644
2639
|
let deferred0_0;
|
|
2645
2640
|
let deferred0_1;
|
|
2646
2641
|
try {
|
|
@@ -2653,7 +2648,7 @@ module.exports.__wbg_isexistingfile_6e4609e4e910bc4e = function() { return handl
|
|
|
2653
2648
|
}
|
|
2654
2649
|
}, arguments) };
|
|
2655
2650
|
|
|
2656
|
-
module.exports.
|
|
2651
|
+
module.exports.__wbg_removevalue_f033c9af476a2dde = function() { return handleError(function (arg0, arg1) {
|
|
2657
2652
|
let deferred0_0;
|
|
2658
2653
|
let deferred0_1;
|
|
2659
2654
|
try {
|
|
@@ -2666,7 +2661,7 @@ module.exports.__wbg_removevalue_7e0c65889c574886 = function() { return handleEr
|
|
|
2666
2661
|
}
|
|
2667
2662
|
}, arguments) };
|
|
2668
2663
|
|
|
2669
|
-
module.exports.
|
|
2664
|
+
module.exports.__wbg_ensureblockdirectoryexists_babaebb421f1850f = function() { return handleError(function (arg0, arg1) {
|
|
2670
2665
|
let deferred0_0;
|
|
2671
2666
|
let deferred0_1;
|
|
2672
2667
|
try {
|
|
@@ -2678,19 +2673,19 @@ module.exports.__wbg_ensureblockdirectoryexists_fe0c297650505aac = function() {
|
|
|
2678
2673
|
}
|
|
2679
2674
|
}, arguments) };
|
|
2680
2675
|
|
|
2681
|
-
module.exports.
|
|
2676
|
+
module.exports.__wbg_processapicall_3622ede4508366ef = function(arg0, arg1, arg2) {
|
|
2682
2677
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2683
2678
|
};
|
|
2684
2679
|
|
|
2685
|
-
module.exports.
|
|
2680
|
+
module.exports.__wbg_processapisuccess_3882a08538edc344 = function(arg0, arg1, arg2) {
|
|
2686
2681
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2687
2682
|
};
|
|
2688
2683
|
|
|
2689
|
-
module.exports.
|
|
2684
|
+
module.exports.__wbg_processapierror_7ba675e1ee7ca2b5 = function(arg0, arg1, arg2) {
|
|
2690
2685
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2691
2686
|
};
|
|
2692
2687
|
|
|
2693
|
-
module.exports.
|
|
2688
|
+
module.exports.__wbg_sendinterfaceevent_b8807ce0ae89e4cf = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2694
2689
|
let deferred0_0;
|
|
2695
2690
|
let deferred0_1;
|
|
2696
2691
|
let deferred1_0;
|
|
@@ -2707,7 +2702,7 @@ module.exports.__wbg_sendinterfaceevent_8e0144ebca5ae3b8 = function(arg0, arg1,
|
|
|
2707
2702
|
}
|
|
2708
2703
|
};
|
|
2709
2704
|
|
|
2710
|
-
module.exports.
|
|
2705
|
+
module.exports.__wbg_sendblocksuccess_004853fe0751a6a9 = function(arg0, arg1, arg2) {
|
|
2711
2706
|
let deferred0_0;
|
|
2712
2707
|
let deferred0_1;
|
|
2713
2708
|
try {
|
|
@@ -2719,11 +2714,11 @@ module.exports.__wbg_sendblocksuccess_b0923779901a2cdf = function(arg0, arg1, ar
|
|
|
2719
2714
|
}
|
|
2720
2715
|
};
|
|
2721
2716
|
|
|
2722
|
-
module.exports.
|
|
2717
|
+
module.exports.__wbg_sendwalletupdate_5175c99dc0728085 = function() {
|
|
2723
2718
|
MsgHandler.send_wallet_update();
|
|
2724
2719
|
};
|
|
2725
2720
|
|
|
2726
|
-
module.exports.
|
|
2721
|
+
module.exports.__wbg_sendnewversionalert_60f37e3b6da070fb = function(arg0, arg1, arg2) {
|
|
2727
2722
|
let deferred0_0;
|
|
2728
2723
|
let deferred0_1;
|
|
2729
2724
|
try {
|
|
@@ -2735,19 +2730,19 @@ module.exports.__wbg_sendnewversionalert_7b50f28d3be53507 = function(arg0, arg1,
|
|
|
2735
2730
|
}
|
|
2736
2731
|
};
|
|
2737
2732
|
|
|
2738
|
-
module.exports.
|
|
2733
|
+
module.exports.__wbg_sendblockfetchstatusevent_5fc82b62607d1228 = function(arg0) {
|
|
2739
2734
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2740
2735
|
};
|
|
2741
2736
|
|
|
2742
|
-
module.exports.
|
|
2737
|
+
module.exports.__wbg_savewallet_0b1d2c6d16af08a6 = function() {
|
|
2743
2738
|
MsgHandler.save_wallet();
|
|
2744
2739
|
};
|
|
2745
2740
|
|
|
2746
|
-
module.exports.
|
|
2741
|
+
module.exports.__wbg_loadwallet_45d03b740a462b21 = function() {
|
|
2747
2742
|
MsgHandler.load_wallet();
|
|
2748
2743
|
};
|
|
2749
2744
|
|
|
2750
|
-
module.exports.
|
|
2745
|
+
module.exports.__wbg_getmyservices_b3767083db8d12a6 = function() {
|
|
2751
2746
|
const ret = MsgHandler.get_my_services();
|
|
2752
2747
|
_assertClass(ret, WasmPeerServiceList);
|
|
2753
2748
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2759,6 +2754,11 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2759
2754
|
return addHeapObject(ret);
|
|
2760
2755
|
};
|
|
2761
2756
|
|
|
2757
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2758
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2759
|
+
return addHeapObject(ret);
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
2762
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2763
2763
|
const val = getObject(arg0);
|
|
2764
2764
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -3145,7 +3145,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3145
3145
|
return addHeapObject(ret);
|
|
3146
3146
|
};
|
|
3147
3147
|
|
|
3148
|
-
module.exports.
|
|
3148
|
+
module.exports.__wbindgen_closure_wrapper1347 = function(arg0, arg1, arg2) {
|
|
3149
3149
|
const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_38);
|
|
3150
3150
|
return addHeapObject(ret);
|
|
3151
3151
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
5
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
6
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
7
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
8
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
9
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
10
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
11
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
12
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
13
|
+
export function __wbg_wasmnft_free(a: number): void;
|
|
14
|
+
export function wasmnft_new(): number;
|
|
15
|
+
export function wasmnft_get_slip1(a: number): number;
|
|
16
|
+
export function wasmnft_get_slip2(a: number): number;
|
|
17
|
+
export function wasmnft_get_slip3(a: number): number;
|
|
18
|
+
export function wasmnft_get_id(a: number): number;
|
|
19
|
+
export function wasmnft_get_tx_sig(a: number): number;
|
|
4
20
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
5
21
|
export function wasmpeer_get_public_key(a: number): number;
|
|
6
22
|
export function wasmpeer_get_key_list(a: number): number;
|
|
@@ -44,11 +60,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
|
44
60
|
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
45
61
|
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
46
62
|
export function wasmwalletslip_new_(): number;
|
|
47
|
-
export function
|
|
48
|
-
export function
|
|
49
|
-
export function
|
|
50
|
-
export function
|
|
51
|
-
export function
|
|
63
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
64
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
65
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
66
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
67
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
68
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
69
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
70
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
71
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
72
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
73
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
74
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
75
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
76
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
77
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
78
|
+
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
52
79
|
export function __wbg_saitowasm_free(a: number): void;
|
|
53
80
|
export function initialize(a: number, b: number, c: number, d: number, e: number): number;
|
|
54
81
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -91,30 +118,6 @@ export function write_issuance_file(a: number): number;
|
|
|
91
118
|
export function disable_producing_blocks_by_timer(): number;
|
|
92
119
|
export function produce_block_with_gt(): number;
|
|
93
120
|
export function produce_block_without_gt(): number;
|
|
94
|
-
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
95
|
-
export function wasmconfiguration_new(): number;
|
|
96
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
97
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
98
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
99
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
100
|
-
export function __wbg_wasmnft_free(a: number): void;
|
|
101
|
-
export function wasmnft_new(): number;
|
|
102
|
-
export function wasmnft_get_slip1(a: number): number;
|
|
103
|
-
export function wasmnft_get_slip2(a: number): number;
|
|
104
|
-
export function wasmnft_get_slip3(a: number): number;
|
|
105
|
-
export function wasmnft_get_id(a: number): number;
|
|
106
|
-
export function wasmnft_get_tx_sig(a: number): number;
|
|
107
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
108
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
109
|
-
export function wasmpeerservice_new(): number;
|
|
110
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
111
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
112
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
113
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
114
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
115
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
116
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
117
|
-
export function wasmpeerservicelist_new(): number;
|
|
118
121
|
export function __wbg_wasmblock_free(a: number): void;
|
|
119
122
|
export function wasmblock_new(): number;
|
|
120
123
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -190,21 +193,6 @@ export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
|
190
193
|
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
191
194
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
192
195
|
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
193
|
-
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
194
|
-
export function wasmconsensusvalues_it_num(a: number): number;
|
|
195
|
-
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
196
|
-
export function wasmconsensusvalues_it_index(a: number): number;
|
|
197
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
198
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
199
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
200
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
201
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
202
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
203
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
204
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
205
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
206
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
207
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
208
196
|
export function __wbg_wasmslip_free(a: number): void;
|
|
209
197
|
export function wasmslip_amount(a: number): number;
|
|
210
198
|
export function wasmslip_set_amount(a: number, b: number): void;
|
|
@@ -245,7 +233,19 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
245
233
|
export function wasmtransaction_serialize(a: number): number;
|
|
246
234
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
247
235
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
248
|
-
export function
|
|
236
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
237
|
+
export function wasmconfiguration_new(): number;
|
|
238
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
239
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
240
|
+
export function wasmpeerservice_new(): number;
|
|
241
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
242
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
243
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
244
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
245
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
246
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
247
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
248
|
+
export function wasmpeerservicelist_new(): number;
|
|
249
249
|
export function rustsecp256k1_v0_10_0_context_create(a: number): number;
|
|
250
250
|
export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
|
|
251
251
|
export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
|
|
@@ -253,8 +253,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
|
|
|
253
253
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
254
254
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
255
255
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
256
|
-
export function
|
|
256
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(a: number, b: number, c: number): void;
|
|
257
|
+
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
257
258
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
258
259
|
export function __wbindgen_exn_store(a: number): void;
|
|
259
|
-
export function
|
|
260
|
-
export function wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(a: number, b: number, c: number, d: number): void;
|
|
260
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(a: number, b: number, c: number, d: number): void;
|
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.85",
|
|
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.d.ts
CHANGED
|
@@ -905,6 +905,22 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
905
905
|
|
|
906
906
|
export interface InitOutput {
|
|
907
907
|
readonly memory: WebAssembly.Memory;
|
|
908
|
+
readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
|
|
909
|
+
readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
|
|
910
|
+
readonly wasmbalancesnapshot_get_entries: (a: number) => number;
|
|
911
|
+
readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
|
|
912
|
+
readonly wasmbalancesnapshot_to_string: (a: number) => number;
|
|
913
|
+
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
914
|
+
readonly wasmhop_from: (a: number, b: number) => void;
|
|
915
|
+
readonly wasmhop_sig: (a: number, b: number) => void;
|
|
916
|
+
readonly wasmhop_to: (a: number, b: number) => void;
|
|
917
|
+
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
918
|
+
readonly wasmnft_new: () => number;
|
|
919
|
+
readonly wasmnft_get_slip1: (a: number) => number;
|
|
920
|
+
readonly wasmnft_get_slip2: (a: number) => number;
|
|
921
|
+
readonly wasmnft_get_slip3: (a: number) => number;
|
|
922
|
+
readonly wasmnft_get_id: (a: number) => number;
|
|
923
|
+
readonly wasmnft_get_tx_sig: (a: number) => number;
|
|
908
924
|
readonly __wbg_wasmpeer_free: (a: number) => void;
|
|
909
925
|
readonly wasmpeer_get_public_key: (a: number) => number;
|
|
910
926
|
readonly wasmpeer_get_key_list: (a: number) => number;
|
|
@@ -948,11 +964,22 @@ export interface InitOutput {
|
|
|
948
964
|
readonly wasmwalletslip_get_slip_type: (a: number) => number;
|
|
949
965
|
readonly wasmwalletslip_set_slip_type: (a: number, b: number) => void;
|
|
950
966
|
readonly wasmwalletslip_new_: () => number;
|
|
951
|
-
readonly
|
|
952
|
-
readonly
|
|
953
|
-
readonly
|
|
954
|
-
readonly
|
|
955
|
-
readonly
|
|
967
|
+
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
968
|
+
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
969
|
+
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
970
|
+
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
971
|
+
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
972
|
+
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
973
|
+
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
974
|
+
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
975
|
+
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
976
|
+
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
977
|
+
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
978
|
+
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
979
|
+
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
980
|
+
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
981
|
+
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
982
|
+
readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
|
|
956
983
|
readonly __wbg_saitowasm_free: (a: number) => void;
|
|
957
984
|
readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
958
985
|
readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -995,30 +1022,6 @@ export interface InitOutput {
|
|
|
995
1022
|
readonly disable_producing_blocks_by_timer: () => number;
|
|
996
1023
|
readonly produce_block_with_gt: () => number;
|
|
997
1024
|
readonly produce_block_without_gt: () => number;
|
|
998
|
-
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
999
|
-
readonly wasmconfiguration_new: () => number;
|
|
1000
|
-
readonly __wbg_wasmhop_free: (a: number) => void;
|
|
1001
|
-
readonly wasmhop_from: (a: number, b: number) => void;
|
|
1002
|
-
readonly wasmhop_sig: (a: number, b: number) => void;
|
|
1003
|
-
readonly wasmhop_to: (a: number, b: number) => void;
|
|
1004
|
-
readonly __wbg_wasmnft_free: (a: number) => void;
|
|
1005
|
-
readonly wasmnft_new: () => number;
|
|
1006
|
-
readonly wasmnft_get_slip1: (a: number) => number;
|
|
1007
|
-
readonly wasmnft_get_slip2: (a: number) => number;
|
|
1008
|
-
readonly wasmnft_get_slip3: (a: number) => number;
|
|
1009
|
-
readonly wasmnft_get_id: (a: number) => number;
|
|
1010
|
-
readonly wasmnft_get_tx_sig: (a: number) => number;
|
|
1011
|
-
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
1012
|
-
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
1013
|
-
readonly wasmpeerservice_new: () => number;
|
|
1014
|
-
readonly wasmpeerservice_set_service: (a: number, b: number) => void;
|
|
1015
|
-
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
1016
|
-
readonly wasmpeerservice_set_name: (a: number, b: number) => void;
|
|
1017
|
-
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
1018
|
-
readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
|
|
1019
|
-
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
1020
|
-
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
1021
|
-
readonly wasmpeerservicelist_new: () => number;
|
|
1022
1025
|
readonly __wbg_wasmblock_free: (a: number) => void;
|
|
1023
1026
|
readonly wasmblock_new: () => number;
|
|
1024
1027
|
readonly wasmblock_get_transactions: (a: number) => number;
|
|
@@ -1094,21 +1097,6 @@ export interface InitOutput {
|
|
|
1094
1097
|
readonly wasmblockchain_get_longest_chain_hash_at_id: (a: number, b: number) => number;
|
|
1095
1098
|
readonly wasmblockchain_get_hashes_at_id: (a: number, b: number) => number;
|
|
1096
1099
|
readonly wasmblockchain_set_safe_to_prune_transaction: (a: number, b: number) => number;
|
|
1097
|
-
readonly __wbg_wasmconsensusvalues_free: (a: number) => void;
|
|
1098
|
-
readonly wasmconsensusvalues_it_num: (a: number) => number;
|
|
1099
|
-
readonly wasmconsensusvalues_fee_transaction: (a: number) => number;
|
|
1100
|
-
readonly wasmconsensusvalues_it_index: (a: number) => number;
|
|
1101
|
-
readonly wasmconsensusvalues_ft_num: (a: number) => number;
|
|
1102
|
-
readonly wasmconsensusvalues_ft_index: (a: number) => number;
|
|
1103
|
-
readonly wasmconsensusvalues_gt_index: (a: number) => number;
|
|
1104
|
-
readonly wasmconsensusvalues_total_fees: (a: number) => number;
|
|
1105
|
-
readonly wasmconsensusvalues_expected_difficulty: (a: number) => number;
|
|
1106
|
-
readonly wasmconsensusvalues_total_rebroadcast_slips: (a: number) => number;
|
|
1107
|
-
readonly wasmconsensusvalues_total_rebroadcast_nolan: (a: number) => number;
|
|
1108
|
-
readonly wasmconsensusvalues_total_rebroadcast_fees_nolan: (a: number) => number;
|
|
1109
|
-
readonly wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan: (a: number) => number;
|
|
1110
|
-
readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
|
|
1111
|
-
readonly wasmconsensusvalues_avg_income: (a: number) => number;
|
|
1112
1100
|
readonly __wbg_wasmslip_free: (a: number) => void;
|
|
1113
1101
|
readonly wasmslip_amount: (a: number) => number;
|
|
1114
1102
|
readonly wasmslip_set_amount: (a: number, b: number) => void;
|
|
@@ -1149,7 +1137,19 @@ export interface InitOutput {
|
|
|
1149
1137
|
readonly wasmtransaction_serialize: (a: number) => number;
|
|
1150
1138
|
readonly wasmtransaction_deserialize: (a: number, b: number) => void;
|
|
1151
1139
|
readonly wasmblock_avg_total_fees: (a: number) => number;
|
|
1152
|
-
readonly
|
|
1140
|
+
readonly __wbg_wasmconfiguration_free: (a: number) => void;
|
|
1141
|
+
readonly wasmconfiguration_new: () => number;
|
|
1142
|
+
readonly __wbg_wasmpeerservicelist_free: (a: number) => void;
|
|
1143
|
+
readonly __wbg_wasmpeerservice_free: (a: number) => void;
|
|
1144
|
+
readonly wasmpeerservice_new: () => number;
|
|
1145
|
+
readonly wasmpeerservice_set_service: (a: number, b: number) => void;
|
|
1146
|
+
readonly wasmpeerservice_get_service: (a: number) => number;
|
|
1147
|
+
readonly wasmpeerservice_set_name: (a: number, b: number) => void;
|
|
1148
|
+
readonly wasmpeerservice_get_name: (a: number) => number;
|
|
1149
|
+
readonly wasmpeerservice_set_domain: (a: number, b: number) => void;
|
|
1150
|
+
readonly wasmpeerservice_get_domain: (a: number) => number;
|
|
1151
|
+
readonly wasmpeerservicelist_push: (a: number, b: number) => void;
|
|
1152
|
+
readonly wasmpeerservicelist_new: () => number;
|
|
1153
1153
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
1154
1154
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
1155
1155
|
readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
@@ -1157,11 +1157,11 @@ export interface InitOutput {
|
|
|
1157
1157
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1158
1158
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1159
1159
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
1160
|
-
readonly
|
|
1160
|
+
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6: (a: number, b: number, c: number) => void;
|
|
1161
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1161
1162
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1162
1163
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1163
|
-
readonly
|
|
1164
|
-
readonly wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e: (a: number, b: number, c: number, d: number) => void;
|
|
1164
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe: (a: number, b: number, c: number, d: number) => void;
|
|
1165
1165
|
}
|
|
1166
1166
|
|
|
1167
1167
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-57e290b123a58f0f/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,15 +22,6 @@ function takeObject(idx) {
|
|
|
22
22
|
return ret;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function addHeapObject(obj) {
|
|
26
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
27
|
-
const idx = heap_next;
|
|
28
|
-
heap_next = heap[idx];
|
|
29
|
-
|
|
30
|
-
heap[idx] = obj;
|
|
31
|
-
return idx;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
25
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
26
|
|
|
36
27
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
49
40
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
41
|
}
|
|
51
42
|
|
|
43
|
+
function addHeapObject(obj) {
|
|
44
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
+
const idx = heap_next;
|
|
46
|
+
heap_next = heap[idx];
|
|
47
|
+
|
|
48
|
+
heap[idx] = obj;
|
|
49
|
+
return idx;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
223
223
|
return real;
|
|
224
224
|
}
|
|
225
225
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
226
|
-
wasm.
|
|
226
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(arg0, arg1, addHeapObject(arg2));
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
function handleError(f, args) {
|
|
@@ -672,7 +672,7 @@ export function produce_block_without_gt() {
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
function __wbg_adapter_415(arg0, arg1, arg2, arg3) {
|
|
675
|
-
wasm.
|
|
675
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2489,73 +2489,69 @@ function __wbg_get_imports() {
|
|
|
2489
2489
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2490
2490
|
takeObject(arg0);
|
|
2491
2491
|
};
|
|
2492
|
-
imports.wbg.
|
|
2493
|
-
const ret =
|
|
2494
|
-
return addHeapObject(ret);
|
|
2495
|
-
};
|
|
2496
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2497
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2498
|
-
return addHeapObject(ret);
|
|
2499
|
-
};
|
|
2500
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2501
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2492
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2493
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2502
2494
|
return addHeapObject(ret);
|
|
2503
2495
|
};
|
|
2504
|
-
imports.wbg.
|
|
2505
|
-
const ret =
|
|
2496
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2497
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2506
2498
|
return addHeapObject(ret);
|
|
2507
2499
|
};
|
|
2508
|
-
imports.wbg.
|
|
2509
|
-
const ret =
|
|
2500
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2501
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2510
2502
|
return addHeapObject(ret);
|
|
2511
2503
|
};
|
|
2512
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2513
|
-
const obj = getObject(arg1);
|
|
2514
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2515
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2516
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2517
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2518
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2519
|
-
};
|
|
2520
2504
|
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2521
2505
|
const ret = WasmNFT.__wrap(arg0);
|
|
2522
2506
|
return addHeapObject(ret);
|
|
2523
2507
|
};
|
|
2524
|
-
imports.wbg.
|
|
2525
|
-
const ret =
|
|
2508
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2509
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2526
2510
|
return addHeapObject(ret);
|
|
2527
2511
|
};
|
|
2528
|
-
imports.wbg.
|
|
2529
|
-
const ret =
|
|
2512
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2513
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2514
|
+
return addHeapObject(ret);
|
|
2515
|
+
};
|
|
2516
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2517
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2530
2518
|
return addHeapObject(ret);
|
|
2531
2519
|
};
|
|
2532
2520
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2533
2521
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2534
2522
|
return addHeapObject(ret);
|
|
2535
2523
|
};
|
|
2536
|
-
imports.wbg.
|
|
2537
|
-
const ret =
|
|
2524
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2525
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2538
2526
|
return addHeapObject(ret);
|
|
2539
2527
|
};
|
|
2540
|
-
imports.wbg.
|
|
2541
|
-
const ret =
|
|
2528
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2529
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2542
2530
|
return addHeapObject(ret);
|
|
2543
2531
|
};
|
|
2544
|
-
imports.wbg.
|
|
2545
|
-
const ret =
|
|
2532
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2533
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2546
2534
|
return addHeapObject(ret);
|
|
2547
2535
|
};
|
|
2536
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2537
|
+
const obj = getObject(arg1);
|
|
2538
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2539
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2540
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2541
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2542
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2543
|
+
};
|
|
2548
2544
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2549
2545
|
const ret = WasmHop.__wrap(arg0);
|
|
2550
2546
|
return addHeapObject(ret);
|
|
2551
2547
|
};
|
|
2552
|
-
imports.wbg.
|
|
2548
|
+
imports.wbg.__wbg_sendmessage_30ffde9e42027004 = function(arg0, arg1) {
|
|
2553
2549
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2554
2550
|
};
|
|
2555
|
-
imports.wbg.
|
|
2551
|
+
imports.wbg.__wbg_sendmessagetoall_28150f39a51f62a1 = function(arg0, arg1) {
|
|
2556
2552
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2557
2553
|
};
|
|
2558
|
-
imports.wbg.
|
|
2554
|
+
imports.wbg.__wbg_connecttopeer_e9dd2fb26a84d705 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2559
2555
|
let deferred0_0;
|
|
2560
2556
|
let deferred0_1;
|
|
2561
2557
|
try {
|
|
@@ -2567,11 +2563,11 @@ function __wbg_get_imports() {
|
|
|
2567
2563
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2568
2564
|
}
|
|
2569
2565
|
}, arguments) };
|
|
2570
|
-
imports.wbg.
|
|
2566
|
+
imports.wbg.__wbg_disconnectfrompeer_f1bb57312ca5fce4 = function() { return handleError(function (arg0) {
|
|
2571
2567
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2572
2568
|
return addHeapObject(ret);
|
|
2573
2569
|
}, arguments) };
|
|
2574
|
-
imports.wbg.
|
|
2570
|
+
imports.wbg.__wbg_fetchblockfrompeer_13db356acb9b686b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2575
2571
|
let deferred0_0;
|
|
2576
2572
|
let deferred0_1;
|
|
2577
2573
|
try {
|
|
@@ -2583,7 +2579,7 @@ function __wbg_get_imports() {
|
|
|
2583
2579
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2584
2580
|
}
|
|
2585
2581
|
}, arguments) };
|
|
2586
|
-
imports.wbg.
|
|
2582
|
+
imports.wbg.__wbg_writevalue_d5a28e805568d935 = function(arg0, arg1, arg2) {
|
|
2587
2583
|
let deferred0_0;
|
|
2588
2584
|
let deferred0_1;
|
|
2589
2585
|
try {
|
|
@@ -2594,7 +2590,7 @@ function __wbg_get_imports() {
|
|
|
2594
2590
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2595
2591
|
}
|
|
2596
2592
|
};
|
|
2597
|
-
imports.wbg.
|
|
2593
|
+
imports.wbg.__wbg_appendvalue_01ac00f342b423cc = function(arg0, arg1, arg2) {
|
|
2598
2594
|
let deferred0_0;
|
|
2599
2595
|
let deferred0_1;
|
|
2600
2596
|
try {
|
|
@@ -2605,7 +2601,7 @@ function __wbg_get_imports() {
|
|
|
2605
2601
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2606
2602
|
}
|
|
2607
2603
|
};
|
|
2608
|
-
imports.wbg.
|
|
2604
|
+
imports.wbg.__wbg_flushdata_40d1e1b935f2876d = function(arg0, arg1) {
|
|
2609
2605
|
let deferred0_0;
|
|
2610
2606
|
let deferred0_1;
|
|
2611
2607
|
try {
|
|
@@ -2616,7 +2612,7 @@ function __wbg_get_imports() {
|
|
|
2616
2612
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2617
2613
|
}
|
|
2618
2614
|
};
|
|
2619
|
-
imports.wbg.
|
|
2615
|
+
imports.wbg.__wbg_readvalue_b1e0f550ef163143 = function() { return handleError(function (arg0, arg1) {
|
|
2620
2616
|
let deferred0_0;
|
|
2621
2617
|
let deferred0_1;
|
|
2622
2618
|
try {
|
|
@@ -2628,11 +2624,11 @@ function __wbg_get_imports() {
|
|
|
2628
2624
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2629
2625
|
}
|
|
2630
2626
|
}, arguments) };
|
|
2631
|
-
imports.wbg.
|
|
2627
|
+
imports.wbg.__wbg_loadblockfilelist_ec96ac70d151e30c = function() { return handleError(function () {
|
|
2632
2628
|
const ret = MsgHandler.load_block_file_list();
|
|
2633
2629
|
return addHeapObject(ret);
|
|
2634
2630
|
}, arguments) };
|
|
2635
|
-
imports.wbg.
|
|
2631
|
+
imports.wbg.__wbg_isexistingfile_de1efdbb29ff99d7 = function() { return handleError(function (arg0, arg1) {
|
|
2636
2632
|
let deferred0_0;
|
|
2637
2633
|
let deferred0_1;
|
|
2638
2634
|
try {
|
|
@@ -2644,7 +2640,7 @@ function __wbg_get_imports() {
|
|
|
2644
2640
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2645
2641
|
}
|
|
2646
2642
|
}, arguments) };
|
|
2647
|
-
imports.wbg.
|
|
2643
|
+
imports.wbg.__wbg_removevalue_f033c9af476a2dde = function() { return handleError(function (arg0, arg1) {
|
|
2648
2644
|
let deferred0_0;
|
|
2649
2645
|
let deferred0_1;
|
|
2650
2646
|
try {
|
|
@@ -2656,7 +2652,7 @@ function __wbg_get_imports() {
|
|
|
2656
2652
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2657
2653
|
}
|
|
2658
2654
|
}, arguments) };
|
|
2659
|
-
imports.wbg.
|
|
2655
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_babaebb421f1850f = function() { return handleError(function (arg0, arg1) {
|
|
2660
2656
|
let deferred0_0;
|
|
2661
2657
|
let deferred0_1;
|
|
2662
2658
|
try {
|
|
@@ -2667,16 +2663,16 @@ function __wbg_get_imports() {
|
|
|
2667
2663
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2668
2664
|
}
|
|
2669
2665
|
}, arguments) };
|
|
2670
|
-
imports.wbg.
|
|
2666
|
+
imports.wbg.__wbg_processapicall_3622ede4508366ef = function(arg0, arg1, arg2) {
|
|
2671
2667
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2672
2668
|
};
|
|
2673
|
-
imports.wbg.
|
|
2669
|
+
imports.wbg.__wbg_processapisuccess_3882a08538edc344 = function(arg0, arg1, arg2) {
|
|
2674
2670
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2675
2671
|
};
|
|
2676
|
-
imports.wbg.
|
|
2672
|
+
imports.wbg.__wbg_processapierror_7ba675e1ee7ca2b5 = function(arg0, arg1, arg2) {
|
|
2677
2673
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2678
2674
|
};
|
|
2679
|
-
imports.wbg.
|
|
2675
|
+
imports.wbg.__wbg_sendinterfaceevent_b8807ce0ae89e4cf = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2680
2676
|
let deferred0_0;
|
|
2681
2677
|
let deferred0_1;
|
|
2682
2678
|
let deferred1_0;
|
|
@@ -2692,7 +2688,7 @@ function __wbg_get_imports() {
|
|
|
2692
2688
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2693
2689
|
}
|
|
2694
2690
|
};
|
|
2695
|
-
imports.wbg.
|
|
2691
|
+
imports.wbg.__wbg_sendblocksuccess_004853fe0751a6a9 = function(arg0, arg1, arg2) {
|
|
2696
2692
|
let deferred0_0;
|
|
2697
2693
|
let deferred0_1;
|
|
2698
2694
|
try {
|
|
@@ -2703,10 +2699,10 @@ function __wbg_get_imports() {
|
|
|
2703
2699
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2704
2700
|
}
|
|
2705
2701
|
};
|
|
2706
|
-
imports.wbg.
|
|
2702
|
+
imports.wbg.__wbg_sendwalletupdate_5175c99dc0728085 = function() {
|
|
2707
2703
|
MsgHandler.send_wallet_update();
|
|
2708
2704
|
};
|
|
2709
|
-
imports.wbg.
|
|
2705
|
+
imports.wbg.__wbg_sendnewversionalert_60f37e3b6da070fb = function(arg0, arg1, arg2) {
|
|
2710
2706
|
let deferred0_0;
|
|
2711
2707
|
let deferred0_1;
|
|
2712
2708
|
try {
|
|
@@ -2717,16 +2713,16 @@ function __wbg_get_imports() {
|
|
|
2717
2713
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2718
2714
|
}
|
|
2719
2715
|
};
|
|
2720
|
-
imports.wbg.
|
|
2716
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_5fc82b62607d1228 = function(arg0) {
|
|
2721
2717
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2722
2718
|
};
|
|
2723
|
-
imports.wbg.
|
|
2719
|
+
imports.wbg.__wbg_savewallet_0b1d2c6d16af08a6 = function() {
|
|
2724
2720
|
MsgHandler.save_wallet();
|
|
2725
2721
|
};
|
|
2726
|
-
imports.wbg.
|
|
2722
|
+
imports.wbg.__wbg_loadwallet_45d03b740a462b21 = function() {
|
|
2727
2723
|
MsgHandler.load_wallet();
|
|
2728
2724
|
};
|
|
2729
|
-
imports.wbg.
|
|
2725
|
+
imports.wbg.__wbg_getmyservices_b3767083db8d12a6 = function() {
|
|
2730
2726
|
const ret = MsgHandler.get_my_services();
|
|
2731
2727
|
_assertClass(ret, WasmPeerServiceList);
|
|
2732
2728
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2736,6 +2732,10 @@ function __wbg_get_imports() {
|
|
|
2736
2732
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2737
2733
|
return addHeapObject(ret);
|
|
2738
2734
|
};
|
|
2735
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2736
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2737
|
+
return addHeapObject(ret);
|
|
2738
|
+
};
|
|
2739
2739
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2740
2740
|
const val = getObject(arg0);
|
|
2741
2741
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -3052,7 +3052,7 @@ function __wbg_get_imports() {
|
|
|
3052
3052
|
const ret = wasm.memory;
|
|
3053
3053
|
return addHeapObject(ret);
|
|
3054
3054
|
};
|
|
3055
|
-
imports.wbg.
|
|
3055
|
+
imports.wbg.__wbindgen_closure_wrapper1347 = function(arg0, arg1, arg2) {
|
|
3056
3056
|
const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_38);
|
|
3057
3057
|
return addHeapObject(ret);
|
|
3058
3058
|
};
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
5
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
6
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
7
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
8
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
9
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
10
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
11
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
12
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
13
|
+
export function __wbg_wasmnft_free(a: number): void;
|
|
14
|
+
export function wasmnft_new(): number;
|
|
15
|
+
export function wasmnft_get_slip1(a: number): number;
|
|
16
|
+
export function wasmnft_get_slip2(a: number): number;
|
|
17
|
+
export function wasmnft_get_slip3(a: number): number;
|
|
18
|
+
export function wasmnft_get_id(a: number): number;
|
|
19
|
+
export function wasmnft_get_tx_sig(a: number): number;
|
|
4
20
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
5
21
|
export function wasmpeer_get_public_key(a: number): number;
|
|
6
22
|
export function wasmpeer_get_key_list(a: number): number;
|
|
@@ -44,11 +60,22 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
|
44
60
|
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
45
61
|
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
46
62
|
export function wasmwalletslip_new_(): number;
|
|
47
|
-
export function
|
|
48
|
-
export function
|
|
49
|
-
export function
|
|
50
|
-
export function
|
|
51
|
-
export function
|
|
63
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
64
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
65
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
66
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
67
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
68
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
69
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
70
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
71
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
72
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
73
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
74
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
75
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
76
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
77
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
78
|
+
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
52
79
|
export function __wbg_saitowasm_free(a: number): void;
|
|
53
80
|
export function initialize(a: number, b: number, c: number, d: number, e: number): number;
|
|
54
81
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -91,30 +118,6 @@ export function write_issuance_file(a: number): number;
|
|
|
91
118
|
export function disable_producing_blocks_by_timer(): number;
|
|
92
119
|
export function produce_block_with_gt(): number;
|
|
93
120
|
export function produce_block_without_gt(): number;
|
|
94
|
-
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
95
|
-
export function wasmconfiguration_new(): number;
|
|
96
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
97
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
98
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
99
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
100
|
-
export function __wbg_wasmnft_free(a: number): void;
|
|
101
|
-
export function wasmnft_new(): number;
|
|
102
|
-
export function wasmnft_get_slip1(a: number): number;
|
|
103
|
-
export function wasmnft_get_slip2(a: number): number;
|
|
104
|
-
export function wasmnft_get_slip3(a: number): number;
|
|
105
|
-
export function wasmnft_get_id(a: number): number;
|
|
106
|
-
export function wasmnft_get_tx_sig(a: number): number;
|
|
107
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
108
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
109
|
-
export function wasmpeerservice_new(): number;
|
|
110
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
111
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
112
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
113
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
114
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
115
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
116
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
117
|
-
export function wasmpeerservicelist_new(): number;
|
|
118
121
|
export function __wbg_wasmblock_free(a: number): void;
|
|
119
122
|
export function wasmblock_new(): number;
|
|
120
123
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -190,21 +193,6 @@ export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
|
190
193
|
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
191
194
|
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
192
195
|
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
193
|
-
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
194
|
-
export function wasmconsensusvalues_it_num(a: number): number;
|
|
195
|
-
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
196
|
-
export function wasmconsensusvalues_it_index(a: number): number;
|
|
197
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
198
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
199
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
200
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
201
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
202
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
203
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
204
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
205
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
206
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
207
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
208
196
|
export function __wbg_wasmslip_free(a: number): void;
|
|
209
197
|
export function wasmslip_amount(a: number): number;
|
|
210
198
|
export function wasmslip_set_amount(a: number, b: number): void;
|
|
@@ -245,7 +233,19 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
245
233
|
export function wasmtransaction_serialize(a: number): number;
|
|
246
234
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
247
235
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
248
|
-
export function
|
|
236
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
237
|
+
export function wasmconfiguration_new(): number;
|
|
238
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
239
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
240
|
+
export function wasmpeerservice_new(): number;
|
|
241
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
242
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
243
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
244
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
245
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
246
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
247
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
248
|
+
export function wasmpeerservicelist_new(): number;
|
|
249
249
|
export function rustsecp256k1_v0_10_0_context_create(a: number): number;
|
|
250
250
|
export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
|
|
251
251
|
export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
|
|
@@ -253,8 +253,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
|
|
|
253
253
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
254
254
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
255
255
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
256
|
-
export function
|
|
256
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(a: number, b: number, c: number): void;
|
|
257
|
+
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
257
258
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
258
259
|
export function __wbindgen_exn_store(a: number): void;
|
|
259
|
-
export function
|
|
260
|
-
export function wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(a: number, b: number, c: number, d: number): void;
|
|
260
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(a: number, b: number, c: number, d: number): void;
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|