saito-wasm 0.2.84 → 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 +65 -65
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.js +62 -62
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-a0eec0bd75b2eea6 → saito-wasm-57e290b123a58f0f}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-a0eec0bd75b2eea6 → saito-wasm-57e290b123a58f0f}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-57e290b123a58f0f/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
9
|
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
let heap_next = heap.length;
|
|
12
|
-
|
|
13
|
-
function addHeapObject(obj) {
|
|
14
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
-
const idx = heap_next;
|
|
16
|
-
heap_next = heap[idx];
|
|
17
|
-
|
|
18
|
-
heap[idx] = obj;
|
|
19
|
-
return idx;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
11
|
function getObject(idx) { return heap[idx]; }
|
|
23
12
|
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
24
15
|
function dropObject(idx) {
|
|
25
16
|
if (idx < 132) return;
|
|
26
17
|
heap[idx] = heap_next;
|
|
@@ -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');
|
|
@@ -2469,11 +2469,6 @@ class WasmWalletSlip {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2471
2471
|
|
|
2472
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2473
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2474
|
-
return addHeapObject(ret);
|
|
2475
|
-
};
|
|
2476
|
-
|
|
2477
2472
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2478
2473
|
takeObject(arg0);
|
|
2479
2474
|
};
|
|
@@ -2483,13 +2478,23 @@ module.exports.__wbindgen_string_new = function(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);
|
|
2488
|
+
return addHeapObject(ret);
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2492
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2493
|
+
return addHeapObject(ret);
|
|
2494
|
+
};
|
|
2495
|
+
|
|
2496
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2497
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2493
2498
|
return addHeapObject(ret);
|
|
2494
2499
|
};
|
|
2495
2500
|
|
|
@@ -2498,18 +2503,19 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2498
2503
|
return addHeapObject(ret);
|
|
2499
2504
|
};
|
|
2500
2505
|
|
|
2506
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2507
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2508
|
+
return addHeapObject(ret);
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2501
2511
|
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2502
2512
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2503
2513
|
return addHeapObject(ret);
|
|
2504
2514
|
};
|
|
2505
2515
|
|
|
2506
|
-
module.exports.
|
|
2507
|
-
const
|
|
2508
|
-
|
|
2509
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2510
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2511
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2512
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2516
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2517
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2518
|
+
return addHeapObject(ret);
|
|
2513
2519
|
};
|
|
2514
2520
|
|
|
2515
2521
|
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
@@ -2517,24 +2523,18 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2517
2523
|
return addHeapObject(ret);
|
|
2518
2524
|
};
|
|
2519
2525
|
|
|
2520
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2521
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2522
|
-
return addHeapObject(ret);
|
|
2523
|
-
};
|
|
2524
|
-
|
|
2525
2526
|
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2526
2527
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2527
2528
|
return addHeapObject(ret);
|
|
2528
2529
|
};
|
|
2529
2530
|
|
|
2530
|
-
module.exports.
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
return addHeapObject(ret);
|
|
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
2538
|
};
|
|
2539
2539
|
|
|
2540
2540
|
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
@@ -2542,15 +2542,15 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
|
2542
2542
|
return addHeapObject(ret);
|
|
2543
2543
|
};
|
|
2544
2544
|
|
|
2545
|
-
module.exports.
|
|
2545
|
+
module.exports.__wbg_sendmessage_30ffde9e42027004 = function(arg0, arg1) {
|
|
2546
2546
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2547
2547
|
};
|
|
2548
2548
|
|
|
2549
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_sendmessagetoall_28150f39a51f62a1 = 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_e9dd2fb26a84d705 = 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_92e65ce03a3dd2ff = function() { return handle
|
|
|
2563
2563
|
}
|
|
2564
2564
|
}, arguments) };
|
|
2565
2565
|
|
|
2566
|
-
module.exports.
|
|
2566
|
+
module.exports.__wbg_disconnectfrompeer_f1bb57312ca5fce4 = 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_13db356acb9b686b = 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_c6bef1d0199194b8 = function() { return h
|
|
|
2581
2581
|
}
|
|
2582
2582
|
}, arguments) };
|
|
2583
2583
|
|
|
2584
|
-
module.exports.
|
|
2584
|
+
module.exports.__wbg_writevalue_d5a28e805568d935 = 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_03055d020e1c7bb1 = function(arg0, arg1, arg2) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
};
|
|
2595
2595
|
|
|
2596
|
-
module.exports.
|
|
2596
|
+
module.exports.__wbg_appendvalue_01ac00f342b423cc = 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_f544bdae2cdf94d6 = function(arg0, arg1, arg2) {
|
|
|
2605
2605
|
}
|
|
2606
2606
|
};
|
|
2607
2607
|
|
|
2608
|
-
module.exports.
|
|
2608
|
+
module.exports.__wbg_flushdata_40d1e1b935f2876d = function(arg0, arg1) {
|
|
2609
2609
|
let deferred0_0;
|
|
2610
2610
|
let deferred0_1;
|
|
2611
2611
|
try {
|
|
@@ -2617,7 +2617,7 @@ module.exports.__wbg_flushdata_e47bf17fa2c6f3d2 = function(arg0, arg1) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
2619
2619
|
|
|
2620
|
-
module.exports.
|
|
2620
|
+
module.exports.__wbg_readvalue_b1e0f550ef163143 = 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_238972be72e03556 = function() { return handleErro
|
|
|
2630
2630
|
}
|
|
2631
2631
|
}, arguments) };
|
|
2632
2632
|
|
|
2633
|
-
module.exports.
|
|
2633
|
+
module.exports.__wbg_loadblockfilelist_ec96ac70d151e30c = 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_de1efdbb29ff99d7 = 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_57fe11e1fcdcbe97 = function() { return handl
|
|
|
2648
2648
|
}
|
|
2649
2649
|
}, arguments) };
|
|
2650
2650
|
|
|
2651
|
-
module.exports.
|
|
2651
|
+
module.exports.__wbg_removevalue_f033c9af476a2dde = 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_c805fc5184627d80 = function() { return handleEr
|
|
|
2661
2661
|
}
|
|
2662
2662
|
}, arguments) };
|
|
2663
2663
|
|
|
2664
|
-
module.exports.
|
|
2664
|
+
module.exports.__wbg_ensureblockdirectoryexists_babaebb421f1850f = 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_3bee0fa43381a4e3 = function() {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
}, arguments) };
|
|
2675
2675
|
|
|
2676
|
-
module.exports.
|
|
2676
|
+
module.exports.__wbg_processapicall_3622ede4508366ef = 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_3882a08538edc344 = 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_7ba675e1ee7ca2b5 = 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_b8807ce0ae89e4cf = 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_ea5ea4523bf4d442 = function(arg0, arg1,
|
|
|
2702
2702
|
}
|
|
2703
2703
|
};
|
|
2704
2704
|
|
|
2705
|
-
module.exports.
|
|
2705
|
+
module.exports.__wbg_sendblocksuccess_004853fe0751a6a9 = 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_1860e70cac1d32fb = function(arg0, arg1, ar
|
|
|
2714
2714
|
}
|
|
2715
2715
|
};
|
|
2716
2716
|
|
|
2717
|
-
module.exports.
|
|
2717
|
+
module.exports.__wbg_sendwalletupdate_5175c99dc0728085 = function() {
|
|
2718
2718
|
MsgHandler.send_wallet_update();
|
|
2719
2719
|
};
|
|
2720
2720
|
|
|
2721
|
-
module.exports.
|
|
2721
|
+
module.exports.__wbg_sendnewversionalert_60f37e3b6da070fb = 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_e6af889e4b9dcfbe = function(arg0, arg1,
|
|
|
2730
2730
|
}
|
|
2731
2731
|
};
|
|
2732
2732
|
|
|
2733
|
-
module.exports.
|
|
2733
|
+
module.exports.__wbg_sendblockfetchstatusevent_5fc82b62607d1228 = 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_0b1d2c6d16af08a6 = function() {
|
|
2738
2738
|
MsgHandler.save_wallet();
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
|
-
module.exports.
|
|
2741
|
+
module.exports.__wbg_loadwallet_45d03b740a462b21 = function() {
|
|
2742
2742
|
MsgHandler.load_wallet();
|
|
2743
2743
|
};
|
|
2744
2744
|
|
|
2745
|
-
module.exports.
|
|
2745
|
+
module.exports.__wbg_getmyservices_b3767083db8d12a6 = function() {
|
|
2746
2746
|
const ret = MsgHandler.get_my_services();
|
|
2747
2747
|
_assertClass(ret, WasmPeerServiceList);
|
|
2748
2748
|
var ptr1 = ret.__destroy_into_raw();
|
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-57e290b123a58f0f/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -6,19 +6,10 @@ const heap = new Array(128).fill(undefined);
|
|
|
6
6
|
|
|
7
7
|
heap.push(undefined, null, true, false);
|
|
8
8
|
|
|
9
|
-
let heap_next = heap.length;
|
|
10
|
-
|
|
11
|
-
function addHeapObject(obj) {
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
15
|
-
|
|
16
|
-
heap[idx] = obj;
|
|
17
|
-
return idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
9
|
function getObject(idx) { return heap[idx]; }
|
|
21
10
|
|
|
11
|
+
let heap_next = heap.length;
|
|
12
|
+
|
|
22
13
|
function dropObject(idx) {
|
|
23
14
|
if (idx < 132) return;
|
|
24
15
|
heap[idx] = heap_next;
|
|
@@ -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') } } );
|
|
@@ -2486,10 +2486,6 @@ async function __wbg_load(module, imports) {
|
|
|
2486
2486
|
function __wbg_get_imports() {
|
|
2487
2487
|
const imports = {};
|
|
2488
2488
|
imports.wbg = {};
|
|
2489
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2490
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2491
|
-
return addHeapObject(ret);
|
|
2492
|
-
};
|
|
2493
2489
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2494
2490
|
takeObject(arg0);
|
|
2495
2491
|
};
|
|
@@ -2497,61 +2493,65 @@ function __wbg_get_imports() {
|
|
|
2497
2493
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2498
2494
|
return addHeapObject(ret);
|
|
2499
2495
|
};
|
|
2500
|
-
imports.wbg.
|
|
2501
|
-
const ret =
|
|
2496
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2497
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2502
2498
|
return addHeapObject(ret);
|
|
2503
2499
|
};
|
|
2504
|
-
imports.wbg.
|
|
2505
|
-
const ret =
|
|
2500
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2501
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2502
|
+
return addHeapObject(ret);
|
|
2503
|
+
};
|
|
2504
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2505
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2506
|
+
return addHeapObject(ret);
|
|
2507
|
+
};
|
|
2508
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2509
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2506
2510
|
return addHeapObject(ret);
|
|
2507
2511
|
};
|
|
2508
2512
|
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2509
2513
|
const ret = WasmWallet.__wrap(arg0);
|
|
2510
2514
|
return addHeapObject(ret);
|
|
2511
2515
|
};
|
|
2516
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2517
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2518
|
+
return addHeapObject(ret);
|
|
2519
|
+
};
|
|
2512
2520
|
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2513
2521
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2514
2522
|
return addHeapObject(ret);
|
|
2515
2523
|
};
|
|
2516
|
-
imports.wbg.
|
|
2517
|
-
const
|
|
2518
|
-
|
|
2519
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2520
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2521
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2522
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2524
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2525
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2526
|
+
return addHeapObject(ret);
|
|
2523
2527
|
};
|
|
2524
2528
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2525
2529
|
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2526
2530
|
return addHeapObject(ret);
|
|
2527
2531
|
};
|
|
2528
|
-
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2529
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2530
|
-
return addHeapObject(ret);
|
|
2531
|
-
};
|
|
2532
2532
|
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2533
2533
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2534
2534
|
return addHeapObject(ret);
|
|
2535
2535
|
};
|
|
2536
|
-
imports.wbg.
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
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
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_30ffde9e42027004 = function(arg0, arg1) {
|
|
2549
2549
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2550
2550
|
};
|
|
2551
|
-
imports.wbg.
|
|
2551
|
+
imports.wbg.__wbg_sendmessagetoall_28150f39a51f62a1 = function(arg0, arg1) {
|
|
2552
2552
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2553
2553
|
};
|
|
2554
|
-
imports.wbg.
|
|
2554
|
+
imports.wbg.__wbg_connecttopeer_e9dd2fb26a84d705 = 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_f1bb57312ca5fce4 = 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_13db356acb9b686b = 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_d5a28e805568d935 = 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_01ac00f342b423cc = 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_40d1e1b935f2876d = 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_b1e0f550ef163143 = 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_ec96ac70d151e30c = 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_de1efdbb29ff99d7 = 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_f033c9af476a2dde = 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_babaebb421f1850f = 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_3622ede4508366ef = 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_3882a08538edc344 = 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_7ba675e1ee7ca2b5 = 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_b8807ce0ae89e4cf = 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_004853fe0751a6a9 = 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_5175c99dc0728085 = function() {
|
|
2703
2703
|
MsgHandler.send_wallet_update();
|
|
2704
2704
|
};
|
|
2705
|
-
imports.wbg.
|
|
2705
|
+
imports.wbg.__wbg_sendnewversionalert_60f37e3b6da070fb = 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_5fc82b62607d1228 = function(arg0) {
|
|
2717
2717
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2718
2718
|
};
|
|
2719
|
-
imports.wbg.
|
|
2719
|
+
imports.wbg.__wbg_savewallet_0b1d2c6d16af08a6 = function() {
|
|
2720
2720
|
MsgHandler.save_wallet();
|
|
2721
2721
|
};
|
|
2722
|
-
imports.wbg.
|
|
2722
|
+
imports.wbg.__wbg_loadwallet_45d03b740a462b21 = function() {
|
|
2723
2723
|
MsgHandler.load_wallet();
|
|
2724
2724
|
};
|
|
2725
|
-
imports.wbg.
|
|
2725
|
+
imports.wbg.__wbg_getmyservices_b3767083db8d12a6 = function() {
|
|
2726
2726
|
const ret = MsgHandler.get_my_services();
|
|
2727
2727
|
_assertClass(ret, WasmPeerServiceList);
|
|
2728
2728
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"./snippets/*"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"cross-env": "^7.0.3",
|
|
16
|
+
"node-fetch": "^3.3.0"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
File without changes
|
|
File without changes
|