saito-wasm 0.2.88 → 0.2.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/pkg/node/index.js +59 -59
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.js +57 -57
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-5aaef047fa70d704 → saito-wasm-09a1c4534e5b725f}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-5aaef047fa70d704 → saito-wasm-09a1c4534e5b725f}/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-09a1c4534e5b725f/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,6 +24,15 @@ 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
|
+
|
|
27
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
37
|
|
|
29
38
|
cachedTextDecoder.decode();
|
|
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
51
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
52
|
}
|
|
44
53
|
|
|
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');
|
|
@@ -2473,18 +2473,14 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2473
2473
|
takeObject(arg0);
|
|
2474
2474
|
};
|
|
2475
2475
|
|
|
2476
|
-
module.exports.
|
|
2477
|
-
const ret =
|
|
2476
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2477
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2478
2478
|
return addHeapObject(ret);
|
|
2479
2479
|
};
|
|
2480
2480
|
|
|
2481
|
-
module.exports.
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2484
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2485
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2486
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2487
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2481
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2482
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2483
|
+
return addHeapObject(ret);
|
|
2488
2484
|
};
|
|
2489
2485
|
|
|
2490
2486
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
@@ -2492,28 +2488,37 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2492
2488
|
return addHeapObject(ret);
|
|
2493
2489
|
};
|
|
2494
2490
|
|
|
2495
|
-
module.exports.
|
|
2496
|
-
const ret =
|
|
2491
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2492
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2497
2493
|
return addHeapObject(ret);
|
|
2498
2494
|
};
|
|
2499
2495
|
|
|
2500
|
-
module.exports.
|
|
2501
|
-
const ret =
|
|
2496
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2497
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2502
2498
|
return addHeapObject(ret);
|
|
2503
2499
|
};
|
|
2504
2500
|
|
|
2501
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2502
|
+
const obj = getObject(arg1);
|
|
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
|
+
|
|
2505
2510
|
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2506
2511
|
const ret = WasmBlock.__wrap(arg0);
|
|
2507
2512
|
return addHeapObject(ret);
|
|
2508
2513
|
};
|
|
2509
2514
|
|
|
2510
|
-
module.exports.
|
|
2511
|
-
const ret =
|
|
2515
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2516
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2512
2517
|
return addHeapObject(ret);
|
|
2513
2518
|
};
|
|
2514
2519
|
|
|
2515
|
-
module.exports.
|
|
2516
|
-
const ret =
|
|
2520
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2521
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2517
2522
|
return addHeapObject(ret);
|
|
2518
2523
|
};
|
|
2519
2524
|
|
|
@@ -2522,8 +2527,8 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2522
2527
|
return addHeapObject(ret);
|
|
2523
2528
|
};
|
|
2524
2529
|
|
|
2525
|
-
module.exports.
|
|
2526
|
-
const ret =
|
|
2530
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2531
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2527
2532
|
return addHeapObject(ret);
|
|
2528
2533
|
};
|
|
2529
2534
|
|
|
@@ -2532,25 +2537,20 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2532
2537
|
return addHeapObject(ret);
|
|
2533
2538
|
};
|
|
2534
2539
|
|
|
2535
|
-
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2536
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2537
|
-
return addHeapObject(ret);
|
|
2538
|
-
};
|
|
2539
|
-
|
|
2540
2540
|
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2541
2541
|
const ret = WasmHop.__wrap(arg0);
|
|
2542
2542
|
return addHeapObject(ret);
|
|
2543
2543
|
};
|
|
2544
2544
|
|
|
2545
|
-
module.exports.
|
|
2545
|
+
module.exports.__wbg_sendmessage_e20181319c1702dd = function(arg0, arg1) {
|
|
2546
2546
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2547
2547
|
};
|
|
2548
2548
|
|
|
2549
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_sendmessagetoall_30f4035d050367ef = function(arg0, arg1) {
|
|
2550
2550
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2551
2551
|
};
|
|
2552
2552
|
|
|
2553
|
-
module.exports.
|
|
2553
|
+
module.exports.__wbg_connecttopeer_d6b0f49cbadf6c29 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2554
2554
|
let deferred0_0;
|
|
2555
2555
|
let deferred0_1;
|
|
2556
2556
|
try {
|
|
@@ -2563,12 +2563,12 @@ module.exports.__wbg_connecttopeer_e762034356d081f9 = function() { return handle
|
|
|
2563
2563
|
}
|
|
2564
2564
|
}, arguments) };
|
|
2565
2565
|
|
|
2566
|
-
module.exports.
|
|
2566
|
+
module.exports.__wbg_disconnectfrompeer_3ec4aa9485022ff9 = function() { return handleError(function (arg0) {
|
|
2567
2567
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2568
2568
|
return addHeapObject(ret);
|
|
2569
2569
|
}, arguments) };
|
|
2570
2570
|
|
|
2571
|
-
module.exports.
|
|
2571
|
+
module.exports.__wbg_fetchblockfrompeer_075634740b901726 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2572
2572
|
let deferred0_0;
|
|
2573
2573
|
let deferred0_1;
|
|
2574
2574
|
try {
|
|
@@ -2581,7 +2581,7 @@ module.exports.__wbg_fetchblockfrompeer_eecf9873346eebbf = function() { return h
|
|
|
2581
2581
|
}
|
|
2582
2582
|
}, arguments) };
|
|
2583
2583
|
|
|
2584
|
-
module.exports.
|
|
2584
|
+
module.exports.__wbg_writevalue_08389e57e562e5bf = function(arg0, arg1, arg2) {
|
|
2585
2585
|
let deferred0_0;
|
|
2586
2586
|
let deferred0_1;
|
|
2587
2587
|
try {
|
|
@@ -2593,7 +2593,7 @@ module.exports.__wbg_writevalue_6ae83f7eec8dc430 = function(arg0, arg1, arg2) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
};
|
|
2595
2595
|
|
|
2596
|
-
module.exports.
|
|
2596
|
+
module.exports.__wbg_appendvalue_5de2f164902dc255 = function(arg0, arg1, arg2) {
|
|
2597
2597
|
let deferred0_0;
|
|
2598
2598
|
let deferred0_1;
|
|
2599
2599
|
try {
|
|
@@ -2605,7 +2605,7 @@ module.exports.__wbg_appendvalue_1aa30ac184035844 = function(arg0, arg1, arg2) {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
2607
|
|
|
2608
|
-
module.exports.
|
|
2608
|
+
module.exports.__wbg_flushdata_0f2a3c73b5681bab = function(arg0, arg1) {
|
|
2609
2609
|
let deferred0_0;
|
|
2610
2610
|
let deferred0_1;
|
|
2611
2611
|
try {
|
|
@@ -2617,7 +2617,7 @@ module.exports.__wbg_flushdata_6b068aac658894cc = function(arg0, arg1) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
2619
2619
|
|
|
2620
|
-
module.exports.
|
|
2620
|
+
module.exports.__wbg_readvalue_83bec17c013b8d3b = function() { return handleError(function (arg0, arg1) {
|
|
2621
2621
|
let deferred0_0;
|
|
2622
2622
|
let deferred0_1;
|
|
2623
2623
|
try {
|
|
@@ -2630,12 +2630,12 @@ module.exports.__wbg_readvalue_2aa23d28d5e2b0fd = function() { return handleErro
|
|
|
2630
2630
|
}
|
|
2631
2631
|
}, arguments) };
|
|
2632
2632
|
|
|
2633
|
-
module.exports.
|
|
2633
|
+
module.exports.__wbg_loadblockfilelist_232c1b90f3f3ffe9 = function() { return handleError(function () {
|
|
2634
2634
|
const ret = MsgHandler.load_block_file_list();
|
|
2635
2635
|
return addHeapObject(ret);
|
|
2636
2636
|
}, arguments) };
|
|
2637
2637
|
|
|
2638
|
-
module.exports.
|
|
2638
|
+
module.exports.__wbg_isexistingfile_493e2a187a710193 = function() { return handleError(function (arg0, arg1) {
|
|
2639
2639
|
let deferred0_0;
|
|
2640
2640
|
let deferred0_1;
|
|
2641
2641
|
try {
|
|
@@ -2648,7 +2648,7 @@ module.exports.__wbg_isexistingfile_571df824e3a3876e = function() { return handl
|
|
|
2648
2648
|
}
|
|
2649
2649
|
}, arguments) };
|
|
2650
2650
|
|
|
2651
|
-
module.exports.
|
|
2651
|
+
module.exports.__wbg_removevalue_126ea58e99e136dc = function() { return handleError(function (arg0, arg1) {
|
|
2652
2652
|
let deferred0_0;
|
|
2653
2653
|
let deferred0_1;
|
|
2654
2654
|
try {
|
|
@@ -2661,7 +2661,7 @@ module.exports.__wbg_removevalue_b56e940d937314de = function() { return handleEr
|
|
|
2661
2661
|
}
|
|
2662
2662
|
}, arguments) };
|
|
2663
2663
|
|
|
2664
|
-
module.exports.
|
|
2664
|
+
module.exports.__wbg_ensureblockdirectoryexists_4e2873a8e2f2c11c = function() { return handleError(function (arg0, arg1) {
|
|
2665
2665
|
let deferred0_0;
|
|
2666
2666
|
let deferred0_1;
|
|
2667
2667
|
try {
|
|
@@ -2673,19 +2673,19 @@ module.exports.__wbg_ensureblockdirectoryexists_5e34a27b357da82a = function() {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
}, arguments) };
|
|
2675
2675
|
|
|
2676
|
-
module.exports.
|
|
2676
|
+
module.exports.__wbg_processapicall_374fe8c8022eafaf = function(arg0, arg1, arg2) {
|
|
2677
2677
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2678
2678
|
};
|
|
2679
2679
|
|
|
2680
|
-
module.exports.
|
|
2680
|
+
module.exports.__wbg_processapisuccess_bf6d968edbe2db32 = function(arg0, arg1, arg2) {
|
|
2681
2681
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2682
2682
|
};
|
|
2683
2683
|
|
|
2684
|
-
module.exports.
|
|
2684
|
+
module.exports.__wbg_processapierror_8beffa66bbbec8f0 = function(arg0, arg1, arg2) {
|
|
2685
2685
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2686
2686
|
};
|
|
2687
2687
|
|
|
2688
|
-
module.exports.
|
|
2688
|
+
module.exports.__wbg_sendinterfaceevent_d36eb1c3994214d3 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2689
2689
|
let deferred0_0;
|
|
2690
2690
|
let deferred0_1;
|
|
2691
2691
|
let deferred1_0;
|
|
@@ -2702,7 +2702,7 @@ module.exports.__wbg_sendinterfaceevent_73524d9a5aa7ad2d = function(arg0, arg1,
|
|
|
2702
2702
|
}
|
|
2703
2703
|
};
|
|
2704
2704
|
|
|
2705
|
-
module.exports.
|
|
2705
|
+
module.exports.__wbg_sendblocksuccess_159bdd62392e5635 = function(arg0, arg1, arg2) {
|
|
2706
2706
|
let deferred0_0;
|
|
2707
2707
|
let deferred0_1;
|
|
2708
2708
|
try {
|
|
@@ -2714,11 +2714,11 @@ module.exports.__wbg_sendblocksuccess_2a87a0fca503024d = function(arg0, arg1, ar
|
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
2716
|
|
|
2717
|
-
module.exports.
|
|
2717
|
+
module.exports.__wbg_sendwalletupdate_846bdef16815de0c = function() {
|
|
2718
2718
|
MsgHandler.send_wallet_update();
|
|
2719
2719
|
};
|
|
2720
2720
|
|
|
2721
|
-
module.exports.
|
|
2721
|
+
module.exports.__wbg_sendnewversionalert_00c9d6ca0ef4595d = function(arg0, arg1, arg2) {
|
|
2722
2722
|
let deferred0_0;
|
|
2723
2723
|
let deferred0_1;
|
|
2724
2724
|
try {
|
|
@@ -2730,19 +2730,19 @@ module.exports.__wbg_sendnewversionalert_3ac3dda0571d3afd = function(arg0, arg1,
|
|
|
2730
2730
|
}
|
|
2731
2731
|
};
|
|
2732
2732
|
|
|
2733
|
-
module.exports.
|
|
2733
|
+
module.exports.__wbg_sendblockfetchstatusevent_3d9569601adf872d = function(arg0) {
|
|
2734
2734
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2735
2735
|
};
|
|
2736
2736
|
|
|
2737
|
-
module.exports.
|
|
2737
|
+
module.exports.__wbg_savewallet_5633f57b8afaedfb = function() {
|
|
2738
2738
|
MsgHandler.save_wallet();
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
|
-
module.exports.
|
|
2741
|
+
module.exports.__wbg_loadwallet_542b99e0bc6a6f00 = function() {
|
|
2742
2742
|
MsgHandler.load_wallet();
|
|
2743
2743
|
};
|
|
2744
2744
|
|
|
2745
|
-
module.exports.
|
|
2745
|
+
module.exports.__wbg_getmyservices_5f577f67ae5c2b3c = function() {
|
|
2746
2746
|
const ret = MsgHandler.get_my_services();
|
|
2747
2747
|
_assertClass(ret, WasmPeerServiceList);
|
|
2748
2748
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -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_wrapper1348 = 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
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-09a1c4534e5b725f/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -22,6 +22,15 @@ 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
|
+
|
|
25
34
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
26
35
|
|
|
27
36
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -40,15 +49,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
40
49
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
50
|
}
|
|
42
51
|
|
|
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') } } );
|
|
@@ -2489,10 +2489,26 @@ function __wbg_get_imports() {
|
|
|
2489
2489
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2490
2490
|
takeObject(arg0);
|
|
2491
2491
|
};
|
|
2492
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2493
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2494
|
+
return addHeapObject(ret);
|
|
2495
|
+
};
|
|
2496
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2497
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2498
|
+
return addHeapObject(ret);
|
|
2499
|
+
};
|
|
2500
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2501
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2502
|
+
return addHeapObject(ret);
|
|
2503
|
+
};
|
|
2492
2504
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2493
2505
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2494
2506
|
return addHeapObject(ret);
|
|
2495
2507
|
};
|
|
2508
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2509
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2510
|
+
return addHeapObject(ret);
|
|
2511
|
+
};
|
|
2496
2512
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2497
2513
|
const obj = getObject(arg1);
|
|
2498
2514
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2501,57 +2517,41 @@ function __wbg_get_imports() {
|
|
|
2501
2517
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2502
2518
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2503
2519
|
};
|
|
2504
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2505
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2506
|
-
return addHeapObject(ret);
|
|
2507
|
-
};
|
|
2508
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2509
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2510
|
-
return addHeapObject(ret);
|
|
2511
|
-
};
|
|
2512
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2513
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2514
|
-
return addHeapObject(ret);
|
|
2515
|
-
};
|
|
2516
2520
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2517
2521
|
const ret = WasmBlock.__wrap(arg0);
|
|
2518
2522
|
return addHeapObject(ret);
|
|
2519
2523
|
};
|
|
2520
|
-
imports.wbg.
|
|
2521
|
-
const ret =
|
|
2524
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2525
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2522
2526
|
return addHeapObject(ret);
|
|
2523
2527
|
};
|
|
2524
|
-
imports.wbg.
|
|
2525
|
-
const ret =
|
|
2528
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2529
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2526
2530
|
return addHeapObject(ret);
|
|
2527
2531
|
};
|
|
2528
2532
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2529
2533
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2530
2534
|
return addHeapObject(ret);
|
|
2531
2535
|
};
|
|
2532
|
-
imports.wbg.
|
|
2533
|
-
const ret =
|
|
2536
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2537
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2534
2538
|
return addHeapObject(ret);
|
|
2535
2539
|
};
|
|
2536
2540
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2537
2541
|
const ret = WasmSlip.__wrap(arg0);
|
|
2538
2542
|
return addHeapObject(ret);
|
|
2539
2543
|
};
|
|
2540
|
-
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2541
|
-
const ret = WasmNFT.__wrap(arg0);
|
|
2542
|
-
return addHeapObject(ret);
|
|
2543
|
-
};
|
|
2544
2544
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2545
2545
|
const ret = WasmHop.__wrap(arg0);
|
|
2546
2546
|
return addHeapObject(ret);
|
|
2547
2547
|
};
|
|
2548
|
-
imports.wbg.
|
|
2548
|
+
imports.wbg.__wbg_sendmessage_e20181319c1702dd = function(arg0, arg1) {
|
|
2549
2549
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2550
2550
|
};
|
|
2551
|
-
imports.wbg.
|
|
2551
|
+
imports.wbg.__wbg_sendmessagetoall_30f4035d050367ef = function(arg0, arg1) {
|
|
2552
2552
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2553
2553
|
};
|
|
2554
|
-
imports.wbg.
|
|
2554
|
+
imports.wbg.__wbg_connecttopeer_d6b0f49cbadf6c29 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2555
2555
|
let deferred0_0;
|
|
2556
2556
|
let deferred0_1;
|
|
2557
2557
|
try {
|
|
@@ -2563,11 +2563,11 @@ function __wbg_get_imports() {
|
|
|
2563
2563
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2564
2564
|
}
|
|
2565
2565
|
}, arguments) };
|
|
2566
|
-
imports.wbg.
|
|
2566
|
+
imports.wbg.__wbg_disconnectfrompeer_3ec4aa9485022ff9 = function() { return handleError(function (arg0) {
|
|
2567
2567
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2568
2568
|
return addHeapObject(ret);
|
|
2569
2569
|
}, arguments) };
|
|
2570
|
-
imports.wbg.
|
|
2570
|
+
imports.wbg.__wbg_fetchblockfrompeer_075634740b901726 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2571
2571
|
let deferred0_0;
|
|
2572
2572
|
let deferred0_1;
|
|
2573
2573
|
try {
|
|
@@ -2579,7 +2579,7 @@ function __wbg_get_imports() {
|
|
|
2579
2579
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2580
2580
|
}
|
|
2581
2581
|
}, arguments) };
|
|
2582
|
-
imports.wbg.
|
|
2582
|
+
imports.wbg.__wbg_writevalue_08389e57e562e5bf = function(arg0, arg1, arg2) {
|
|
2583
2583
|
let deferred0_0;
|
|
2584
2584
|
let deferred0_1;
|
|
2585
2585
|
try {
|
|
@@ -2590,7 +2590,7 @@ function __wbg_get_imports() {
|
|
|
2590
2590
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2591
2591
|
}
|
|
2592
2592
|
};
|
|
2593
|
-
imports.wbg.
|
|
2593
|
+
imports.wbg.__wbg_appendvalue_5de2f164902dc255 = function(arg0, arg1, arg2) {
|
|
2594
2594
|
let deferred0_0;
|
|
2595
2595
|
let deferred0_1;
|
|
2596
2596
|
try {
|
|
@@ -2601,7 +2601,7 @@ function __wbg_get_imports() {
|
|
|
2601
2601
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2602
2602
|
}
|
|
2603
2603
|
};
|
|
2604
|
-
imports.wbg.
|
|
2604
|
+
imports.wbg.__wbg_flushdata_0f2a3c73b5681bab = function(arg0, arg1) {
|
|
2605
2605
|
let deferred0_0;
|
|
2606
2606
|
let deferred0_1;
|
|
2607
2607
|
try {
|
|
@@ -2612,7 +2612,7 @@ function __wbg_get_imports() {
|
|
|
2612
2612
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2613
2613
|
}
|
|
2614
2614
|
};
|
|
2615
|
-
imports.wbg.
|
|
2615
|
+
imports.wbg.__wbg_readvalue_83bec17c013b8d3b = function() { return handleError(function (arg0, arg1) {
|
|
2616
2616
|
let deferred0_0;
|
|
2617
2617
|
let deferred0_1;
|
|
2618
2618
|
try {
|
|
@@ -2624,11 +2624,11 @@ function __wbg_get_imports() {
|
|
|
2624
2624
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2625
2625
|
}
|
|
2626
2626
|
}, arguments) };
|
|
2627
|
-
imports.wbg.
|
|
2627
|
+
imports.wbg.__wbg_loadblockfilelist_232c1b90f3f3ffe9 = function() { return handleError(function () {
|
|
2628
2628
|
const ret = MsgHandler.load_block_file_list();
|
|
2629
2629
|
return addHeapObject(ret);
|
|
2630
2630
|
}, arguments) };
|
|
2631
|
-
imports.wbg.
|
|
2631
|
+
imports.wbg.__wbg_isexistingfile_493e2a187a710193 = function() { return handleError(function (arg0, arg1) {
|
|
2632
2632
|
let deferred0_0;
|
|
2633
2633
|
let deferred0_1;
|
|
2634
2634
|
try {
|
|
@@ -2640,7 +2640,7 @@ function __wbg_get_imports() {
|
|
|
2640
2640
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2641
2641
|
}
|
|
2642
2642
|
}, arguments) };
|
|
2643
|
-
imports.wbg.
|
|
2643
|
+
imports.wbg.__wbg_removevalue_126ea58e99e136dc = function() { return handleError(function (arg0, arg1) {
|
|
2644
2644
|
let deferred0_0;
|
|
2645
2645
|
let deferred0_1;
|
|
2646
2646
|
try {
|
|
@@ -2652,7 +2652,7 @@ function __wbg_get_imports() {
|
|
|
2652
2652
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2653
2653
|
}
|
|
2654
2654
|
}, arguments) };
|
|
2655
|
-
imports.wbg.
|
|
2655
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_4e2873a8e2f2c11c = function() { return handleError(function (arg0, arg1) {
|
|
2656
2656
|
let deferred0_0;
|
|
2657
2657
|
let deferred0_1;
|
|
2658
2658
|
try {
|
|
@@ -2663,16 +2663,16 @@ function __wbg_get_imports() {
|
|
|
2663
2663
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2664
2664
|
}
|
|
2665
2665
|
}, arguments) };
|
|
2666
|
-
imports.wbg.
|
|
2666
|
+
imports.wbg.__wbg_processapicall_374fe8c8022eafaf = function(arg0, arg1, arg2) {
|
|
2667
2667
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2668
2668
|
};
|
|
2669
|
-
imports.wbg.
|
|
2669
|
+
imports.wbg.__wbg_processapisuccess_bf6d968edbe2db32 = function(arg0, arg1, arg2) {
|
|
2670
2670
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2671
2671
|
};
|
|
2672
|
-
imports.wbg.
|
|
2672
|
+
imports.wbg.__wbg_processapierror_8beffa66bbbec8f0 = function(arg0, arg1, arg2) {
|
|
2673
2673
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2674
2674
|
};
|
|
2675
|
-
imports.wbg.
|
|
2675
|
+
imports.wbg.__wbg_sendinterfaceevent_d36eb1c3994214d3 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2676
2676
|
let deferred0_0;
|
|
2677
2677
|
let deferred0_1;
|
|
2678
2678
|
let deferred1_0;
|
|
@@ -2688,7 +2688,7 @@ function __wbg_get_imports() {
|
|
|
2688
2688
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2689
2689
|
}
|
|
2690
2690
|
};
|
|
2691
|
-
imports.wbg.
|
|
2691
|
+
imports.wbg.__wbg_sendblocksuccess_159bdd62392e5635 = function(arg0, arg1, arg2) {
|
|
2692
2692
|
let deferred0_0;
|
|
2693
2693
|
let deferred0_1;
|
|
2694
2694
|
try {
|
|
@@ -2699,10 +2699,10 @@ 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_sendwalletupdate_846bdef16815de0c = function() {
|
|
2703
2703
|
MsgHandler.send_wallet_update();
|
|
2704
2704
|
};
|
|
2705
|
-
imports.wbg.
|
|
2705
|
+
imports.wbg.__wbg_sendnewversionalert_00c9d6ca0ef4595d = function(arg0, arg1, arg2) {
|
|
2706
2706
|
let deferred0_0;
|
|
2707
2707
|
let deferred0_1;
|
|
2708
2708
|
try {
|
|
@@ -2713,16 +2713,16 @@ function __wbg_get_imports() {
|
|
|
2713
2713
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
|
-
imports.wbg.
|
|
2716
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_3d9569601adf872d = function(arg0) {
|
|
2717
2717
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2718
2718
|
};
|
|
2719
|
-
imports.wbg.
|
|
2719
|
+
imports.wbg.__wbg_savewallet_5633f57b8afaedfb = function() {
|
|
2720
2720
|
MsgHandler.save_wallet();
|
|
2721
2721
|
};
|
|
2722
|
-
imports.wbg.
|
|
2722
|
+
imports.wbg.__wbg_loadwallet_542b99e0bc6a6f00 = function() {
|
|
2723
2723
|
MsgHandler.load_wallet();
|
|
2724
2724
|
};
|
|
2725
|
-
imports.wbg.
|
|
2725
|
+
imports.wbg.__wbg_getmyservices_5f577f67ae5c2b3c = function() {
|
|
2726
2726
|
const ret = MsgHandler.get_my_services();
|
|
2727
2727
|
_assertClass(ret, WasmPeerServiceList);
|
|
2728
2728
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -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_wrapper1348 = 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
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|