saito-wasm 0.2.80 → 0.2.82
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 +60 -60
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +3 -3
- 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-a7a480dcce53f88d → saito-wasm-3423e9a2962a4bf4}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-a7a480dcce53f88d → saito-wasm-3423e9a2962a4bf4}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
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-3423e9a2962a4bf4/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
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
11
|
let heap_next = heap.length;
|
|
14
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
|
+
function getObject(idx) { return heap[idx]; }
|
|
23
|
+
|
|
15
24
|
function dropObject(idx) {
|
|
16
25
|
if (idx < 132) return;
|
|
17
26
|
heap[idx] = heap_next;
|
|
@@ -24,15 +33,6 @@ function takeObject(idx) {
|
|
|
24
33
|
return ret;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
function addHeapObject(obj) {
|
|
28
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
-
const idx = heap_next;
|
|
30
|
-
heap_next = heap[idx];
|
|
31
|
-
|
|
32
|
-
heap[idx] = obj;
|
|
33
|
-
return idx;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
37
|
|
|
38
38
|
cachedTextDecoder.decode();
|
|
@@ -2353,12 +2353,17 @@ class WasmWalletSlip {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2355
2355
|
|
|
2356
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2357
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2358
|
+
return addHeapObject(ret);
|
|
2359
|
+
};
|
|
2360
|
+
|
|
2356
2361
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2357
2362
|
takeObject(arg0);
|
|
2358
2363
|
};
|
|
2359
2364
|
|
|
2360
|
-
module.exports.
|
|
2361
|
-
const ret =
|
|
2365
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2366
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2362
2367
|
return addHeapObject(ret);
|
|
2363
2368
|
};
|
|
2364
2369
|
|
|
@@ -2367,18 +2372,13 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2367
2372
|
return addHeapObject(ret);
|
|
2368
2373
|
};
|
|
2369
2374
|
|
|
2370
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2371
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2372
|
-
return addHeapObject(ret);
|
|
2373
|
-
};
|
|
2374
|
-
|
|
2375
2375
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2376
2376
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2377
2377
|
return addHeapObject(ret);
|
|
2378
2378
|
};
|
|
2379
2379
|
|
|
2380
|
-
module.exports.
|
|
2381
|
-
const ret =
|
|
2380
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2381
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2382
2382
|
return addHeapObject(ret);
|
|
2383
2383
|
};
|
|
2384
2384
|
|
|
@@ -2387,16 +2387,6 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2387
2387
|
return addHeapObject(ret);
|
|
2388
2388
|
};
|
|
2389
2389
|
|
|
2390
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2391
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2392
|
-
return addHeapObject(ret);
|
|
2393
|
-
};
|
|
2394
|
-
|
|
2395
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2396
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2397
|
-
return addHeapObject(ret);
|
|
2398
|
-
};
|
|
2399
|
-
|
|
2400
2390
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2401
2391
|
const obj = getObject(arg1);
|
|
2402
2392
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2406,13 +2396,23 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2406
2396
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2407
2397
|
};
|
|
2408
2398
|
|
|
2409
|
-
module.exports.
|
|
2410
|
-
const ret =
|
|
2399
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2400
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2411
2401
|
return addHeapObject(ret);
|
|
2412
2402
|
};
|
|
2413
2403
|
|
|
2414
|
-
module.exports.
|
|
2415
|
-
const ret =
|
|
2404
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2405
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2406
|
+
return addHeapObject(ret);
|
|
2407
|
+
};
|
|
2408
|
+
|
|
2409
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2410
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2411
|
+
return addHeapObject(ret);
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2415
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2416
2416
|
return addHeapObject(ret);
|
|
2417
2417
|
};
|
|
2418
2418
|
|
|
@@ -2437,15 +2437,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2437
2437
|
return ret;
|
|
2438
2438
|
};
|
|
2439
2439
|
|
|
2440
|
-
module.exports.
|
|
2440
|
+
module.exports.__wbg_sendmessage_43d65544ca63a0c2 = function(arg0, arg1) {
|
|
2441
2441
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
module.exports.
|
|
2444
|
+
module.exports.__wbg_sendmessagetoall_caa6a5c8f0c7c4ed = function(arg0, arg1) {
|
|
2445
2445
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2446
2446
|
};
|
|
2447
2447
|
|
|
2448
|
-
module.exports.
|
|
2448
|
+
module.exports.__wbg_connecttopeer_0cac3c2f8ea9d0e6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2449
2449
|
let deferred0_0;
|
|
2450
2450
|
let deferred0_1;
|
|
2451
2451
|
try {
|
|
@@ -2458,12 +2458,12 @@ module.exports.__wbg_connecttopeer_9c6761c9fcc20a19 = function() { return handle
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}, arguments) };
|
|
2460
2460
|
|
|
2461
|
-
module.exports.
|
|
2461
|
+
module.exports.__wbg_disconnectfrompeer_12c1b89683403f06 = function() { return handleError(function (arg0) {
|
|
2462
2462
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2463
2463
|
return addHeapObject(ret);
|
|
2464
2464
|
}, arguments) };
|
|
2465
2465
|
|
|
2466
|
-
module.exports.
|
|
2466
|
+
module.exports.__wbg_fetchblockfrompeer_0d29cd0dbc59e4e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2467
2467
|
let deferred0_0;
|
|
2468
2468
|
let deferred0_1;
|
|
2469
2469
|
try {
|
|
@@ -2476,7 +2476,7 @@ module.exports.__wbg_fetchblockfrompeer_9b2841a6f79db213 = function() { return h
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}, arguments) };
|
|
2478
2478
|
|
|
2479
|
-
module.exports.
|
|
2479
|
+
module.exports.__wbg_writevalue_bba6530c66905706 = function(arg0, arg1, arg2) {
|
|
2480
2480
|
let deferred0_0;
|
|
2481
2481
|
let deferred0_1;
|
|
2482
2482
|
try {
|
|
@@ -2488,7 +2488,7 @@ module.exports.__wbg_writevalue_a8403cf977e4052e = function(arg0, arg1, arg2) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
|
-
module.exports.
|
|
2491
|
+
module.exports.__wbg_appendvalue_c5fbb47f3c0513fe = function(arg0, arg1, arg2) {
|
|
2492
2492
|
let deferred0_0;
|
|
2493
2493
|
let deferred0_1;
|
|
2494
2494
|
try {
|
|
@@ -2500,7 +2500,7 @@ module.exports.__wbg_appendvalue_190095493f5c4495 = function(arg0, arg1, arg2) {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
};
|
|
2502
2502
|
|
|
2503
|
-
module.exports.
|
|
2503
|
+
module.exports.__wbg_flushdata_0d484dcefe02f7a5 = function(arg0, arg1) {
|
|
2504
2504
|
let deferred0_0;
|
|
2505
2505
|
let deferred0_1;
|
|
2506
2506
|
try {
|
|
@@ -2512,7 +2512,7 @@ module.exports.__wbg_flushdata_eadfae44e1856e60 = function(arg0, arg1) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
};
|
|
2514
2514
|
|
|
2515
|
-
module.exports.
|
|
2515
|
+
module.exports.__wbg_readvalue_f40cb048b9bfd677 = function() { return handleError(function (arg0, arg1) {
|
|
2516
2516
|
let deferred0_0;
|
|
2517
2517
|
let deferred0_1;
|
|
2518
2518
|
try {
|
|
@@ -2525,12 +2525,12 @@ module.exports.__wbg_readvalue_8ab291f863bcbeca = function() { return handleErro
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}, arguments) };
|
|
2527
2527
|
|
|
2528
|
-
module.exports.
|
|
2528
|
+
module.exports.__wbg_loadblockfilelist_9935fc6a1443da7a = function() { return handleError(function () {
|
|
2529
2529
|
const ret = MsgHandler.load_block_file_list();
|
|
2530
2530
|
return addHeapObject(ret);
|
|
2531
2531
|
}, arguments) };
|
|
2532
2532
|
|
|
2533
|
-
module.exports.
|
|
2533
|
+
module.exports.__wbg_isexistingfile_2422b5ae5b099ef7 = function() { return handleError(function (arg0, arg1) {
|
|
2534
2534
|
let deferred0_0;
|
|
2535
2535
|
let deferred0_1;
|
|
2536
2536
|
try {
|
|
@@ -2543,7 +2543,7 @@ module.exports.__wbg_isexistingfile_a28742a5ca8d5b97 = function() { return handl
|
|
|
2543
2543
|
}
|
|
2544
2544
|
}, arguments) };
|
|
2545
2545
|
|
|
2546
|
-
module.exports.
|
|
2546
|
+
module.exports.__wbg_removevalue_149dc721775efaaa = function() { return handleError(function (arg0, arg1) {
|
|
2547
2547
|
let deferred0_0;
|
|
2548
2548
|
let deferred0_1;
|
|
2549
2549
|
try {
|
|
@@ -2556,7 +2556,7 @@ module.exports.__wbg_removevalue_4d4a95a6de3f83dc = function() { return handleEr
|
|
|
2556
2556
|
}
|
|
2557
2557
|
}, arguments) };
|
|
2558
2558
|
|
|
2559
|
-
module.exports.
|
|
2559
|
+
module.exports.__wbg_ensureblockdirectoryexists_e806cc87a9822aba = function() { return handleError(function (arg0, arg1) {
|
|
2560
2560
|
let deferred0_0;
|
|
2561
2561
|
let deferred0_1;
|
|
2562
2562
|
try {
|
|
@@ -2568,19 +2568,19 @@ module.exports.__wbg_ensureblockdirectoryexists_c37d9a6766483afe = function() {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
}, arguments) };
|
|
2570
2570
|
|
|
2571
|
-
module.exports.
|
|
2571
|
+
module.exports.__wbg_processapicall_35dfbd5451f5fc39 = function(arg0, arg1, arg2) {
|
|
2572
2572
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2573
2573
|
};
|
|
2574
2574
|
|
|
2575
|
-
module.exports.
|
|
2575
|
+
module.exports.__wbg_processapisuccess_3450d1c724e044ff = function(arg0, arg1, arg2) {
|
|
2576
2576
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2577
2577
|
};
|
|
2578
2578
|
|
|
2579
|
-
module.exports.
|
|
2579
|
+
module.exports.__wbg_processapierror_c2cf61a04324572a = function(arg0, arg1, arg2) {
|
|
2580
2580
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2581
2581
|
};
|
|
2582
2582
|
|
|
2583
|
-
module.exports.
|
|
2583
|
+
module.exports.__wbg_sendinterfaceevent_2ccec5c51772bb8e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2584
2584
|
let deferred0_0;
|
|
2585
2585
|
let deferred0_1;
|
|
2586
2586
|
let deferred1_0;
|
|
@@ -2597,7 +2597,7 @@ module.exports.__wbg_sendinterfaceevent_37e6fbef320176f6 = function(arg0, arg1,
|
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
2599
|
|
|
2600
|
-
module.exports.
|
|
2600
|
+
module.exports.__wbg_sendblocksuccess_715875346c5d4e4b = function(arg0, arg1, arg2) {
|
|
2601
2601
|
let deferred0_0;
|
|
2602
2602
|
let deferred0_1;
|
|
2603
2603
|
try {
|
|
@@ -2609,11 +2609,11 @@ module.exports.__wbg_sendblocksuccess_951ef1ef8d7c4afe = function(arg0, arg1, ar
|
|
|
2609
2609
|
}
|
|
2610
2610
|
};
|
|
2611
2611
|
|
|
2612
|
-
module.exports.
|
|
2612
|
+
module.exports.__wbg_sendwalletupdate_db49a7751891faaa = function() {
|
|
2613
2613
|
MsgHandler.send_wallet_update();
|
|
2614
2614
|
};
|
|
2615
2615
|
|
|
2616
|
-
module.exports.
|
|
2616
|
+
module.exports.__wbg_sendnewversionalert_1feb30ee8db1065d = function(arg0, arg1, arg2) {
|
|
2617
2617
|
let deferred0_0;
|
|
2618
2618
|
let deferred0_1;
|
|
2619
2619
|
try {
|
|
@@ -2625,19 +2625,19 @@ module.exports.__wbg_sendnewversionalert_05420df3223668e8 = function(arg0, arg1,
|
|
|
2625
2625
|
}
|
|
2626
2626
|
};
|
|
2627
2627
|
|
|
2628
|
-
module.exports.
|
|
2628
|
+
module.exports.__wbg_sendblockfetchstatusevent_d3744deeee609c86 = function(arg0) {
|
|
2629
2629
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2630
2630
|
};
|
|
2631
2631
|
|
|
2632
|
-
module.exports.
|
|
2632
|
+
module.exports.__wbg_savewallet_46dc52ad4e02eff4 = function() {
|
|
2633
2633
|
MsgHandler.save_wallet();
|
|
2634
2634
|
};
|
|
2635
2635
|
|
|
2636
|
-
module.exports.
|
|
2636
|
+
module.exports.__wbg_loadwallet_16f8025730cc8f59 = function() {
|
|
2637
2637
|
MsgHandler.load_wallet();
|
|
2638
2638
|
};
|
|
2639
2639
|
|
|
2640
|
-
module.exports.
|
|
2640
|
+
module.exports.__wbg_getmyservices_facd8d4f6745ab65 = function() {
|
|
2641
2641
|
const ret = MsgHandler.get_my_services();
|
|
2642
2642
|
_assertClass(ret, WasmPeerServiceList);
|
|
2643
2643
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -3024,7 +3024,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3024
3024
|
return addHeapObject(ret);
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
3027
|
-
module.exports.
|
|
3027
|
+
module.exports.__wbindgen_closure_wrapper1299 = function(arg0, arg1, arg2) {
|
|
3028
3028
|
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
|
|
3029
3029
|
return addHeapObject(ret);
|
|
3030
3030
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
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.82",
|
|
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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-3423e9a2962a4bf4/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -6,10 +6,19 @@ const heap = new Array(128).fill(undefined);
|
|
|
6
6
|
|
|
7
7
|
heap.push(undefined, null, true, false);
|
|
8
8
|
|
|
9
|
-
function getObject(idx) { return heap[idx]; }
|
|
10
|
-
|
|
11
9
|
let heap_next = heap.length;
|
|
12
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
|
+
function getObject(idx) { return heap[idx]; }
|
|
21
|
+
|
|
13
22
|
function dropObject(idx) {
|
|
14
23
|
if (idx < 132) return;
|
|
15
24
|
heap[idx] = heap_next;
|
|
@@ -22,15 +31,6 @@ function takeObject(idx) {
|
|
|
22
31
|
return ret;
|
|
23
32
|
}
|
|
24
33
|
|
|
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
34
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
35
|
|
|
36
36
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -2371,41 +2371,33 @@ async function __wbg_load(module, imports) {
|
|
|
2371
2371
|
function __wbg_get_imports() {
|
|
2372
2372
|
const imports = {};
|
|
2373
2373
|
imports.wbg = {};
|
|
2374
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2375
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2376
|
+
return addHeapObject(ret);
|
|
2377
|
+
};
|
|
2374
2378
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2375
2379
|
takeObject(arg0);
|
|
2376
2380
|
};
|
|
2377
|
-
imports.wbg.
|
|
2378
|
-
const ret =
|
|
2381
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2382
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2379
2383
|
return addHeapObject(ret);
|
|
2380
2384
|
};
|
|
2381
2385
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2382
2386
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2383
2387
|
return addHeapObject(ret);
|
|
2384
2388
|
};
|
|
2385
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2386
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2387
|
-
return addHeapObject(ret);
|
|
2388
|
-
};
|
|
2389
2389
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2390
2390
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2391
2391
|
return addHeapObject(ret);
|
|
2392
2392
|
};
|
|
2393
|
-
imports.wbg.
|
|
2394
|
-
const ret =
|
|
2393
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2394
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2395
2395
|
return addHeapObject(ret);
|
|
2396
2396
|
};
|
|
2397
2397
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2398
2398
|
const ret = WasmPeer.__wrap(arg0);
|
|
2399
2399
|
return addHeapObject(ret);
|
|
2400
2400
|
};
|
|
2401
|
-
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2402
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2403
|
-
return addHeapObject(ret);
|
|
2404
|
-
};
|
|
2405
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2406
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2407
|
-
return addHeapObject(ret);
|
|
2408
|
-
};
|
|
2409
2401
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2410
2402
|
const obj = getObject(arg1);
|
|
2411
2403
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2414,12 +2406,20 @@ function __wbg_get_imports() {
|
|
|
2414
2406
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2415
2407
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2416
2408
|
};
|
|
2417
|
-
imports.wbg.
|
|
2418
|
-
const ret =
|
|
2409
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2410
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2419
2411
|
return addHeapObject(ret);
|
|
2420
2412
|
};
|
|
2421
|
-
imports.wbg.
|
|
2422
|
-
const ret =
|
|
2413
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2414
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2415
|
+
return addHeapObject(ret);
|
|
2416
|
+
};
|
|
2417
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2418
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2419
|
+
return addHeapObject(ret);
|
|
2420
|
+
};
|
|
2421
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2422
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2423
2423
|
return addHeapObject(ret);
|
|
2424
2424
|
};
|
|
2425
2425
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
@@ -2439,13 +2439,13 @@ function __wbg_get_imports() {
|
|
|
2439
2439
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2440
2440
|
return ret;
|
|
2441
2441
|
};
|
|
2442
|
-
imports.wbg.
|
|
2442
|
+
imports.wbg.__wbg_sendmessage_43d65544ca63a0c2 = function(arg0, arg1) {
|
|
2443
2443
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2444
2444
|
};
|
|
2445
|
-
imports.wbg.
|
|
2445
|
+
imports.wbg.__wbg_sendmessagetoall_caa6a5c8f0c7c4ed = function(arg0, arg1) {
|
|
2446
2446
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2447
2447
|
};
|
|
2448
|
-
imports.wbg.
|
|
2448
|
+
imports.wbg.__wbg_connecttopeer_0cac3c2f8ea9d0e6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2449
2449
|
let deferred0_0;
|
|
2450
2450
|
let deferred0_1;
|
|
2451
2451
|
try {
|
|
@@ -2457,11 +2457,11 @@ function __wbg_get_imports() {
|
|
|
2457
2457
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2458
2458
|
}
|
|
2459
2459
|
}, arguments) };
|
|
2460
|
-
imports.wbg.
|
|
2460
|
+
imports.wbg.__wbg_disconnectfrompeer_12c1b89683403f06 = function() { return handleError(function (arg0) {
|
|
2461
2461
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2462
2462
|
return addHeapObject(ret);
|
|
2463
2463
|
}, arguments) };
|
|
2464
|
-
imports.wbg.
|
|
2464
|
+
imports.wbg.__wbg_fetchblockfrompeer_0d29cd0dbc59e4e9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2465
2465
|
let deferred0_0;
|
|
2466
2466
|
let deferred0_1;
|
|
2467
2467
|
try {
|
|
@@ -2473,7 +2473,7 @@ function __wbg_get_imports() {
|
|
|
2473
2473
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2474
2474
|
}
|
|
2475
2475
|
}, arguments) };
|
|
2476
|
-
imports.wbg.
|
|
2476
|
+
imports.wbg.__wbg_writevalue_bba6530c66905706 = function(arg0, arg1, arg2) {
|
|
2477
2477
|
let deferred0_0;
|
|
2478
2478
|
let deferred0_1;
|
|
2479
2479
|
try {
|
|
@@ -2484,7 +2484,7 @@ function __wbg_get_imports() {
|
|
|
2484
2484
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2485
2485
|
}
|
|
2486
2486
|
};
|
|
2487
|
-
imports.wbg.
|
|
2487
|
+
imports.wbg.__wbg_appendvalue_c5fbb47f3c0513fe = function(arg0, arg1, arg2) {
|
|
2488
2488
|
let deferred0_0;
|
|
2489
2489
|
let deferred0_1;
|
|
2490
2490
|
try {
|
|
@@ -2495,7 +2495,7 @@ function __wbg_get_imports() {
|
|
|
2495
2495
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2496
2496
|
}
|
|
2497
2497
|
};
|
|
2498
|
-
imports.wbg.
|
|
2498
|
+
imports.wbg.__wbg_flushdata_0d484dcefe02f7a5 = function(arg0, arg1) {
|
|
2499
2499
|
let deferred0_0;
|
|
2500
2500
|
let deferred0_1;
|
|
2501
2501
|
try {
|
|
@@ -2506,7 +2506,7 @@ function __wbg_get_imports() {
|
|
|
2506
2506
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2507
2507
|
}
|
|
2508
2508
|
};
|
|
2509
|
-
imports.wbg.
|
|
2509
|
+
imports.wbg.__wbg_readvalue_f40cb048b9bfd677 = function() { return handleError(function (arg0, arg1) {
|
|
2510
2510
|
let deferred0_0;
|
|
2511
2511
|
let deferred0_1;
|
|
2512
2512
|
try {
|
|
@@ -2518,11 +2518,11 @@ function __wbg_get_imports() {
|
|
|
2518
2518
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2519
2519
|
}
|
|
2520
2520
|
}, arguments) };
|
|
2521
|
-
imports.wbg.
|
|
2521
|
+
imports.wbg.__wbg_loadblockfilelist_9935fc6a1443da7a = function() { return handleError(function () {
|
|
2522
2522
|
const ret = MsgHandler.load_block_file_list();
|
|
2523
2523
|
return addHeapObject(ret);
|
|
2524
2524
|
}, arguments) };
|
|
2525
|
-
imports.wbg.
|
|
2525
|
+
imports.wbg.__wbg_isexistingfile_2422b5ae5b099ef7 = function() { return handleError(function (arg0, arg1) {
|
|
2526
2526
|
let deferred0_0;
|
|
2527
2527
|
let deferred0_1;
|
|
2528
2528
|
try {
|
|
@@ -2534,7 +2534,7 @@ function __wbg_get_imports() {
|
|
|
2534
2534
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2535
2535
|
}
|
|
2536
2536
|
}, arguments) };
|
|
2537
|
-
imports.wbg.
|
|
2537
|
+
imports.wbg.__wbg_removevalue_149dc721775efaaa = function() { return handleError(function (arg0, arg1) {
|
|
2538
2538
|
let deferred0_0;
|
|
2539
2539
|
let deferred0_1;
|
|
2540
2540
|
try {
|
|
@@ -2546,7 +2546,7 @@ function __wbg_get_imports() {
|
|
|
2546
2546
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2547
2547
|
}
|
|
2548
2548
|
}, arguments) };
|
|
2549
|
-
imports.wbg.
|
|
2549
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_e806cc87a9822aba = function() { return handleError(function (arg0, arg1) {
|
|
2550
2550
|
let deferred0_0;
|
|
2551
2551
|
let deferred0_1;
|
|
2552
2552
|
try {
|
|
@@ -2557,16 +2557,16 @@ function __wbg_get_imports() {
|
|
|
2557
2557
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2558
2558
|
}
|
|
2559
2559
|
}, arguments) };
|
|
2560
|
-
imports.wbg.
|
|
2560
|
+
imports.wbg.__wbg_processapicall_35dfbd5451f5fc39 = function(arg0, arg1, arg2) {
|
|
2561
2561
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2562
2562
|
};
|
|
2563
|
-
imports.wbg.
|
|
2563
|
+
imports.wbg.__wbg_processapisuccess_3450d1c724e044ff = function(arg0, arg1, arg2) {
|
|
2564
2564
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2565
2565
|
};
|
|
2566
|
-
imports.wbg.
|
|
2566
|
+
imports.wbg.__wbg_processapierror_c2cf61a04324572a = function(arg0, arg1, arg2) {
|
|
2567
2567
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2568
2568
|
};
|
|
2569
|
-
imports.wbg.
|
|
2569
|
+
imports.wbg.__wbg_sendinterfaceevent_2ccec5c51772bb8e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2570
2570
|
let deferred0_0;
|
|
2571
2571
|
let deferred0_1;
|
|
2572
2572
|
let deferred1_0;
|
|
@@ -2582,7 +2582,7 @@ function __wbg_get_imports() {
|
|
|
2582
2582
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
|
-
imports.wbg.
|
|
2585
|
+
imports.wbg.__wbg_sendblocksuccess_715875346c5d4e4b = function(arg0, arg1, arg2) {
|
|
2586
2586
|
let deferred0_0;
|
|
2587
2587
|
let deferred0_1;
|
|
2588
2588
|
try {
|
|
@@ -2593,10 +2593,10 @@ function __wbg_get_imports() {
|
|
|
2593
2593
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2594
2594
|
}
|
|
2595
2595
|
};
|
|
2596
|
-
imports.wbg.
|
|
2596
|
+
imports.wbg.__wbg_sendwalletupdate_db49a7751891faaa = function() {
|
|
2597
2597
|
MsgHandler.send_wallet_update();
|
|
2598
2598
|
};
|
|
2599
|
-
imports.wbg.
|
|
2599
|
+
imports.wbg.__wbg_sendnewversionalert_1feb30ee8db1065d = function(arg0, arg1, arg2) {
|
|
2600
2600
|
let deferred0_0;
|
|
2601
2601
|
let deferred0_1;
|
|
2602
2602
|
try {
|
|
@@ -2607,16 +2607,16 @@ function __wbg_get_imports() {
|
|
|
2607
2607
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2608
2608
|
}
|
|
2609
2609
|
};
|
|
2610
|
-
imports.wbg.
|
|
2610
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_d3744deeee609c86 = function(arg0) {
|
|
2611
2611
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2612
2612
|
};
|
|
2613
|
-
imports.wbg.
|
|
2613
|
+
imports.wbg.__wbg_savewallet_46dc52ad4e02eff4 = function() {
|
|
2614
2614
|
MsgHandler.save_wallet();
|
|
2615
2615
|
};
|
|
2616
|
-
imports.wbg.
|
|
2616
|
+
imports.wbg.__wbg_loadwallet_16f8025730cc8f59 = function() {
|
|
2617
2617
|
MsgHandler.load_wallet();
|
|
2618
2618
|
};
|
|
2619
|
-
imports.wbg.
|
|
2619
|
+
imports.wbg.__wbg_getmyservices_facd8d4f6745ab65 = function() {
|
|
2620
2620
|
const ret = MsgHandler.get_my_services();
|
|
2621
2621
|
_assertClass(ret, WasmPeerServiceList);
|
|
2622
2622
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2933,7 +2933,7 @@ function __wbg_get_imports() {
|
|
|
2933
2933
|
const ret = wasm.memory;
|
|
2934
2934
|
return addHeapObject(ret);
|
|
2935
2935
|
};
|
|
2936
|
-
imports.wbg.
|
|
2936
|
+
imports.wbg.__wbindgen_closure_wrapper1299 = function(arg0, arg1, arg2) {
|
|
2937
2937
|
const ret = makeMutClosure(arg0, arg1, 460, __wbg_adapter_38);
|
|
2938
2938
|
return addHeapObject(ret);
|
|
2939
2939
|
};
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|