saito-wasm 0.2.39 → 0.2.40
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 +3 -3
- package/pkg/web/index.js +55 -55
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-b053f12f10a01e18 → saito-wasm-2ff95434bf6d7096}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-b053f12f10a01e18 → saito-wasm-2ff95434bf6d7096}/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-2ff95434bf6d7096/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();
|
|
@@ -2324,15 +2324,15 @@ class WasmWalletSlip {
|
|
|
2324
2324
|
}
|
|
2325
2325
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2326
2326
|
|
|
2327
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2328
|
-
takeObject(arg0);
|
|
2329
|
-
};
|
|
2330
|
-
|
|
2331
2327
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2332
2328
|
const ret = BigInt.asUintN(64, arg0);
|
|
2333
2329
|
return addHeapObject(ret);
|
|
2334
2330
|
};
|
|
2335
2331
|
|
|
2332
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2333
|
+
takeObject(arg0);
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
2336
|
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2337
2337
|
const ret = WasmPeer.__wrap(arg0);
|
|
2338
2338
|
return addHeapObject(ret);
|
|
@@ -2348,13 +2348,23 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2348
2348
|
return addHeapObject(ret);
|
|
2349
2349
|
};
|
|
2350
2350
|
|
|
2351
|
-
module.exports.
|
|
2352
|
-
const ret =
|
|
2351
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2352
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2353
2353
|
return addHeapObject(ret);
|
|
2354
2354
|
};
|
|
2355
2355
|
|
|
2356
|
-
module.exports.
|
|
2357
|
-
const ret =
|
|
2356
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2357
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2358
|
+
return addHeapObject(ret);
|
|
2359
|
+
};
|
|
2360
|
+
|
|
2361
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2362
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2363
|
+
return addHeapObject(ret);
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2367
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2358
2368
|
return addHeapObject(ret);
|
|
2359
2369
|
};
|
|
2360
2370
|
|
|
@@ -2363,6 +2373,11 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2363
2373
|
return addHeapObject(ret);
|
|
2364
2374
|
};
|
|
2365
2375
|
|
|
2376
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2377
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2378
|
+
return addHeapObject(ret);
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2366
2381
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2367
2382
|
const obj = getObject(arg1);
|
|
2368
2383
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2372,21 +2387,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2372
2387
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2373
2388
|
};
|
|
2374
2389
|
|
|
2375
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2376
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2377
|
-
return addHeapObject(ret);
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
|
-
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2381
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2382
|
-
return addHeapObject(ret);
|
|
2383
|
-
};
|
|
2384
|
-
|
|
2385
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2386
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2387
|
-
return addHeapObject(ret);
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
2390
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2391
2391
|
const val = getObject(arg0);
|
|
2392
2392
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2413,15 +2413,15 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
|
2413
2413
|
return addHeapObject(ret);
|
|
2414
2414
|
};
|
|
2415
2415
|
|
|
2416
|
-
module.exports.
|
|
2416
|
+
module.exports.__wbg_sendmessage_907664c7a7d6d1f3 = function(arg0, arg1) {
|
|
2417
2417
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2418
2418
|
};
|
|
2419
2419
|
|
|
2420
|
-
module.exports.
|
|
2420
|
+
module.exports.__wbg_sendmessagetoall_2b8117d6a9c8841f = function(arg0, arg1) {
|
|
2421
2421
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2422
2422
|
};
|
|
2423
2423
|
|
|
2424
|
-
module.exports.
|
|
2424
|
+
module.exports.__wbg_connecttopeer_2b438be60bfc865f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2425
2425
|
let deferred0_0;
|
|
2426
2426
|
let deferred0_1;
|
|
2427
2427
|
try {
|
|
@@ -2434,12 +2434,12 @@ module.exports.__wbg_connecttopeer_6bf29f8eaec84e85 = function() { return handle
|
|
|
2434
2434
|
}
|
|
2435
2435
|
}, arguments) };
|
|
2436
2436
|
|
|
2437
|
-
module.exports.
|
|
2437
|
+
module.exports.__wbg_disconnectfrompeer_e180a2ca755b793d = function() { return handleError(function (arg0) {
|
|
2438
2438
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2439
2439
|
return addHeapObject(ret);
|
|
2440
2440
|
}, arguments) };
|
|
2441
2441
|
|
|
2442
|
-
module.exports.
|
|
2442
|
+
module.exports.__wbg_fetchblockfrompeer_c7601bf559c40e3c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2443
2443
|
let deferred0_0;
|
|
2444
2444
|
let deferred0_1;
|
|
2445
2445
|
try {
|
|
@@ -2452,7 +2452,7 @@ module.exports.__wbg_fetchblockfrompeer_606e753c51a7f061 = function() { return h
|
|
|
2452
2452
|
}
|
|
2453
2453
|
}, arguments) };
|
|
2454
2454
|
|
|
2455
|
-
module.exports.
|
|
2455
|
+
module.exports.__wbg_writevalue_260c07c1f8db849a = function(arg0, arg1, arg2) {
|
|
2456
2456
|
let deferred0_0;
|
|
2457
2457
|
let deferred0_1;
|
|
2458
2458
|
try {
|
|
@@ -2464,7 +2464,7 @@ module.exports.__wbg_writevalue_fd255aefd22695c6 = function(arg0, arg1, arg2) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
};
|
|
2466
2466
|
|
|
2467
|
-
module.exports.
|
|
2467
|
+
module.exports.__wbg_appendvalue_6ea65b8bf9889e42 = function(arg0, arg1, arg2) {
|
|
2468
2468
|
let deferred0_0;
|
|
2469
2469
|
let deferred0_1;
|
|
2470
2470
|
try {
|
|
@@ -2476,7 +2476,7 @@ module.exports.__wbg_appendvalue_a1de6a3928e92b54 = function(arg0, arg1, arg2) {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
};
|
|
2478
2478
|
|
|
2479
|
-
module.exports.
|
|
2479
|
+
module.exports.__wbg_flushdata_a6318642899e61a9 = function(arg0, arg1) {
|
|
2480
2480
|
let deferred0_0;
|
|
2481
2481
|
let deferred0_1;
|
|
2482
2482
|
try {
|
|
@@ -2488,7 +2488,7 @@ module.exports.__wbg_flushdata_d3499d4bbd96bc2b = function(arg0, arg1) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
|
-
module.exports.
|
|
2491
|
+
module.exports.__wbg_readvalue_fdf9f724324e1f50 = function() { return handleError(function (arg0, arg1) {
|
|
2492
2492
|
let deferred0_0;
|
|
2493
2493
|
let deferred0_1;
|
|
2494
2494
|
try {
|
|
@@ -2501,12 +2501,12 @@ module.exports.__wbg_readvalue_04cc82efe25e2bbc = function() { return handleErro
|
|
|
2501
2501
|
}
|
|
2502
2502
|
}, arguments) };
|
|
2503
2503
|
|
|
2504
|
-
module.exports.
|
|
2504
|
+
module.exports.__wbg_loadblockfilelist_540266dde01bdb0f = function() { return handleError(function () {
|
|
2505
2505
|
const ret = MsgHandler.load_block_file_list();
|
|
2506
2506
|
return addHeapObject(ret);
|
|
2507
2507
|
}, arguments) };
|
|
2508
2508
|
|
|
2509
|
-
module.exports.
|
|
2509
|
+
module.exports.__wbg_isexistingfile_ccfa321cd111f06f = function() { return handleError(function (arg0, arg1) {
|
|
2510
2510
|
let deferred0_0;
|
|
2511
2511
|
let deferred0_1;
|
|
2512
2512
|
try {
|
|
@@ -2519,7 +2519,7 @@ module.exports.__wbg_isexistingfile_f33b4d7483d96186 = function() { return handl
|
|
|
2519
2519
|
}
|
|
2520
2520
|
}, arguments) };
|
|
2521
2521
|
|
|
2522
|
-
module.exports.
|
|
2522
|
+
module.exports.__wbg_removevalue_e6518c184101d09d = function() { return handleError(function (arg0, arg1) {
|
|
2523
2523
|
let deferred0_0;
|
|
2524
2524
|
let deferred0_1;
|
|
2525
2525
|
try {
|
|
@@ -2532,7 +2532,7 @@ module.exports.__wbg_removevalue_6ae7d610a70b3425 = function() { return handleEr
|
|
|
2532
2532
|
}
|
|
2533
2533
|
}, arguments) };
|
|
2534
2534
|
|
|
2535
|
-
module.exports.
|
|
2535
|
+
module.exports.__wbg_ensureblockdirectoryexists_959c743c30df951b = function() { return handleError(function (arg0, arg1) {
|
|
2536
2536
|
let deferred0_0;
|
|
2537
2537
|
let deferred0_1;
|
|
2538
2538
|
try {
|
|
@@ -2544,19 +2544,19 @@ module.exports.__wbg_ensureblockdirectoryexists_cdb4f7cfb5cc599f = function() {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
}, arguments) };
|
|
2546
2546
|
|
|
2547
|
-
module.exports.
|
|
2547
|
+
module.exports.__wbg_processapicall_dba60f8359d9b50a = function(arg0, arg1, arg2) {
|
|
2548
2548
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2549
2549
|
};
|
|
2550
2550
|
|
|
2551
|
-
module.exports.
|
|
2551
|
+
module.exports.__wbg_processapisuccess_1c037003f04435e3 = function(arg0, arg1, arg2) {
|
|
2552
2552
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2553
2553
|
};
|
|
2554
2554
|
|
|
2555
|
-
module.exports.
|
|
2555
|
+
module.exports.__wbg_processapierror_860b665d66ead90d = function(arg0, arg1, arg2) {
|
|
2556
2556
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2557
2557
|
};
|
|
2558
2558
|
|
|
2559
|
-
module.exports.
|
|
2559
|
+
module.exports.__wbg_sendinterfaceevent_c5f7780356c4e75e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2560
2560
|
let deferred0_0;
|
|
2561
2561
|
let deferred0_1;
|
|
2562
2562
|
let deferred1_0;
|
|
@@ -2573,7 +2573,7 @@ module.exports.__wbg_sendinterfaceevent_ee0aa57ab3248bf9 = function(arg0, arg1,
|
|
|
2573
2573
|
}
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
-
module.exports.
|
|
2576
|
+
module.exports.__wbg_sendblocksuccess_3cea711b020cb349 = function(arg0, arg1, arg2) {
|
|
2577
2577
|
let deferred0_0;
|
|
2578
2578
|
let deferred0_1;
|
|
2579
2579
|
try {
|
|
@@ -2585,11 +2585,11 @@ module.exports.__wbg_sendblocksuccess_657fd7e51d25a22c = function(arg0, arg1, ar
|
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
2587
|
|
|
2588
|
-
module.exports.
|
|
2588
|
+
module.exports.__wbg_sendwalletupdate_4c939763880bfb6e = function() {
|
|
2589
2589
|
MsgHandler.send_wallet_update();
|
|
2590
2590
|
};
|
|
2591
2591
|
|
|
2592
|
-
module.exports.
|
|
2592
|
+
module.exports.__wbg_sendnewversionalert_a46b12c8fb79bace = function(arg0, arg1, arg2) {
|
|
2593
2593
|
let deferred0_0;
|
|
2594
2594
|
let deferred0_1;
|
|
2595
2595
|
try {
|
|
@@ -2601,19 +2601,19 @@ module.exports.__wbg_sendnewversionalert_10dd8bb869754a80 = function(arg0, arg1,
|
|
|
2601
2601
|
}
|
|
2602
2602
|
};
|
|
2603
2603
|
|
|
2604
|
-
module.exports.
|
|
2604
|
+
module.exports.__wbg_sendblockfetchstatusevent_55ba1a4bdac5edbf = function(arg0) {
|
|
2605
2605
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2606
2606
|
};
|
|
2607
2607
|
|
|
2608
|
-
module.exports.
|
|
2608
|
+
module.exports.__wbg_savewallet_3c09443d53d40c94 = function() {
|
|
2609
2609
|
MsgHandler.save_wallet();
|
|
2610
2610
|
};
|
|
2611
2611
|
|
|
2612
|
-
module.exports.
|
|
2612
|
+
module.exports.__wbg_loadwallet_5e1133c64196517a = function() {
|
|
2613
2613
|
MsgHandler.load_wallet();
|
|
2614
2614
|
};
|
|
2615
2615
|
|
|
2616
|
-
module.exports.
|
|
2616
|
+
module.exports.__wbg_getmyservices_e4b594a9ade6254c = function() {
|
|
2617
2617
|
const ret = MsgHandler.get_my_services();
|
|
2618
2618
|
_assertClass(ret, WasmPeerServiceList);
|
|
2619
2619
|
var ptr1 = ret.__destroy_into_raw();
|
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.40",
|
|
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-2ff95434bf6d7096/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(); };
|
|
@@ -2342,13 +2342,13 @@ async function __wbg_load(module, imports) {
|
|
|
2342
2342
|
function __wbg_get_imports() {
|
|
2343
2343
|
const imports = {};
|
|
2344
2344
|
imports.wbg = {};
|
|
2345
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2346
|
-
takeObject(arg0);
|
|
2347
|
-
};
|
|
2348
2345
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2349
2346
|
const ret = BigInt.asUintN(64, arg0);
|
|
2350
2347
|
return addHeapObject(ret);
|
|
2351
2348
|
};
|
|
2349
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2350
|
+
takeObject(arg0);
|
|
2351
|
+
};
|
|
2352
2352
|
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2353
2353
|
const ret = WasmPeer.__wrap(arg0);
|
|
2354
2354
|
return addHeapObject(ret);
|
|
@@ -2361,18 +2361,30 @@ function __wbg_get_imports() {
|
|
|
2361
2361
|
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2362
2362
|
return addHeapObject(ret);
|
|
2363
2363
|
};
|
|
2364
|
-
imports.wbg.
|
|
2365
|
-
const ret =
|
|
2364
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2365
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2366
2366
|
return addHeapObject(ret);
|
|
2367
2367
|
};
|
|
2368
|
-
imports.wbg.
|
|
2369
|
-
const ret =
|
|
2368
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2369
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2370
|
+
return addHeapObject(ret);
|
|
2371
|
+
};
|
|
2372
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2373
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2374
|
+
return addHeapObject(ret);
|
|
2375
|
+
};
|
|
2376
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2377
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2370
2378
|
return addHeapObject(ret);
|
|
2371
2379
|
};
|
|
2372
2380
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2373
2381
|
const ret = WasmBlock.__wrap(arg0);
|
|
2374
2382
|
return addHeapObject(ret);
|
|
2375
2383
|
};
|
|
2384
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2385
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2386
|
+
return addHeapObject(ret);
|
|
2387
|
+
};
|
|
2376
2388
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2377
2389
|
const obj = getObject(arg1);
|
|
2378
2390
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2381,18 +2393,6 @@ function __wbg_get_imports() {
|
|
|
2381
2393
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2382
2394
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2383
2395
|
};
|
|
2384
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2385
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2386
|
-
return addHeapObject(ret);
|
|
2387
|
-
};
|
|
2388
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2389
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2390
|
-
return addHeapObject(ret);
|
|
2391
|
-
};
|
|
2392
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2393
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2394
|
-
return addHeapObject(ret);
|
|
2395
|
-
};
|
|
2396
2396
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2397
2397
|
const val = getObject(arg0);
|
|
2398
2398
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2414,13 +2414,13 @@ function __wbg_get_imports() {
|
|
|
2414
2414
|
const ret = WasmHop.__wrap(arg0);
|
|
2415
2415
|
return addHeapObject(ret);
|
|
2416
2416
|
};
|
|
2417
|
-
imports.wbg.
|
|
2417
|
+
imports.wbg.__wbg_sendmessage_907664c7a7d6d1f3 = function(arg0, arg1) {
|
|
2418
2418
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2419
2419
|
};
|
|
2420
|
-
imports.wbg.
|
|
2420
|
+
imports.wbg.__wbg_sendmessagetoall_2b8117d6a9c8841f = function(arg0, arg1) {
|
|
2421
2421
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2422
2422
|
};
|
|
2423
|
-
imports.wbg.
|
|
2423
|
+
imports.wbg.__wbg_connecttopeer_2b438be60bfc865f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2424
2424
|
let deferred0_0;
|
|
2425
2425
|
let deferred0_1;
|
|
2426
2426
|
try {
|
|
@@ -2432,11 +2432,11 @@ function __wbg_get_imports() {
|
|
|
2432
2432
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2433
2433
|
}
|
|
2434
2434
|
}, arguments) };
|
|
2435
|
-
imports.wbg.
|
|
2435
|
+
imports.wbg.__wbg_disconnectfrompeer_e180a2ca755b793d = function() { return handleError(function (arg0) {
|
|
2436
2436
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2437
2437
|
return addHeapObject(ret);
|
|
2438
2438
|
}, arguments) };
|
|
2439
|
-
imports.wbg.
|
|
2439
|
+
imports.wbg.__wbg_fetchblockfrompeer_c7601bf559c40e3c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2440
2440
|
let deferred0_0;
|
|
2441
2441
|
let deferred0_1;
|
|
2442
2442
|
try {
|
|
@@ -2448,7 +2448,7 @@ function __wbg_get_imports() {
|
|
|
2448
2448
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2449
2449
|
}
|
|
2450
2450
|
}, arguments) };
|
|
2451
|
-
imports.wbg.
|
|
2451
|
+
imports.wbg.__wbg_writevalue_260c07c1f8db849a = function(arg0, arg1, arg2) {
|
|
2452
2452
|
let deferred0_0;
|
|
2453
2453
|
let deferred0_1;
|
|
2454
2454
|
try {
|
|
@@ -2459,7 +2459,7 @@ function __wbg_get_imports() {
|
|
|
2459
2459
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2460
2460
|
}
|
|
2461
2461
|
};
|
|
2462
|
-
imports.wbg.
|
|
2462
|
+
imports.wbg.__wbg_appendvalue_6ea65b8bf9889e42 = function(arg0, arg1, arg2) {
|
|
2463
2463
|
let deferred0_0;
|
|
2464
2464
|
let deferred0_1;
|
|
2465
2465
|
try {
|
|
@@ -2470,7 +2470,7 @@ function __wbg_get_imports() {
|
|
|
2470
2470
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2471
2471
|
}
|
|
2472
2472
|
};
|
|
2473
|
-
imports.wbg.
|
|
2473
|
+
imports.wbg.__wbg_flushdata_a6318642899e61a9 = function(arg0, arg1) {
|
|
2474
2474
|
let deferred0_0;
|
|
2475
2475
|
let deferred0_1;
|
|
2476
2476
|
try {
|
|
@@ -2481,7 +2481,7 @@ function __wbg_get_imports() {
|
|
|
2481
2481
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2482
2482
|
}
|
|
2483
2483
|
};
|
|
2484
|
-
imports.wbg.
|
|
2484
|
+
imports.wbg.__wbg_readvalue_fdf9f724324e1f50 = function() { return handleError(function (arg0, arg1) {
|
|
2485
2485
|
let deferred0_0;
|
|
2486
2486
|
let deferred0_1;
|
|
2487
2487
|
try {
|
|
@@ -2493,11 +2493,11 @@ function __wbg_get_imports() {
|
|
|
2493
2493
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2494
2494
|
}
|
|
2495
2495
|
}, arguments) };
|
|
2496
|
-
imports.wbg.
|
|
2496
|
+
imports.wbg.__wbg_loadblockfilelist_540266dde01bdb0f = function() { return handleError(function () {
|
|
2497
2497
|
const ret = MsgHandler.load_block_file_list();
|
|
2498
2498
|
return addHeapObject(ret);
|
|
2499
2499
|
}, arguments) };
|
|
2500
|
-
imports.wbg.
|
|
2500
|
+
imports.wbg.__wbg_isexistingfile_ccfa321cd111f06f = function() { return handleError(function (arg0, arg1) {
|
|
2501
2501
|
let deferred0_0;
|
|
2502
2502
|
let deferred0_1;
|
|
2503
2503
|
try {
|
|
@@ -2509,7 +2509,7 @@ function __wbg_get_imports() {
|
|
|
2509
2509
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2510
2510
|
}
|
|
2511
2511
|
}, arguments) };
|
|
2512
|
-
imports.wbg.
|
|
2512
|
+
imports.wbg.__wbg_removevalue_e6518c184101d09d = function() { return handleError(function (arg0, arg1) {
|
|
2513
2513
|
let deferred0_0;
|
|
2514
2514
|
let deferred0_1;
|
|
2515
2515
|
try {
|
|
@@ -2521,7 +2521,7 @@ function __wbg_get_imports() {
|
|
|
2521
2521
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2522
2522
|
}
|
|
2523
2523
|
}, arguments) };
|
|
2524
|
-
imports.wbg.
|
|
2524
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_959c743c30df951b = function() { return handleError(function (arg0, arg1) {
|
|
2525
2525
|
let deferred0_0;
|
|
2526
2526
|
let deferred0_1;
|
|
2527
2527
|
try {
|
|
@@ -2532,16 +2532,16 @@ function __wbg_get_imports() {
|
|
|
2532
2532
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2533
2533
|
}
|
|
2534
2534
|
}, arguments) };
|
|
2535
|
-
imports.wbg.
|
|
2535
|
+
imports.wbg.__wbg_processapicall_dba60f8359d9b50a = function(arg0, arg1, arg2) {
|
|
2536
2536
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2537
2537
|
};
|
|
2538
|
-
imports.wbg.
|
|
2538
|
+
imports.wbg.__wbg_processapisuccess_1c037003f04435e3 = function(arg0, arg1, arg2) {
|
|
2539
2539
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2540
2540
|
};
|
|
2541
|
-
imports.wbg.
|
|
2541
|
+
imports.wbg.__wbg_processapierror_860b665d66ead90d = function(arg0, arg1, arg2) {
|
|
2542
2542
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2543
2543
|
};
|
|
2544
|
-
imports.wbg.
|
|
2544
|
+
imports.wbg.__wbg_sendinterfaceevent_c5f7780356c4e75e = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2545
2545
|
let deferred0_0;
|
|
2546
2546
|
let deferred0_1;
|
|
2547
2547
|
let deferred1_0;
|
|
@@ -2557,7 +2557,7 @@ function __wbg_get_imports() {
|
|
|
2557
2557
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2558
2558
|
}
|
|
2559
2559
|
};
|
|
2560
|
-
imports.wbg.
|
|
2560
|
+
imports.wbg.__wbg_sendblocksuccess_3cea711b020cb349 = function(arg0, arg1, arg2) {
|
|
2561
2561
|
let deferred0_0;
|
|
2562
2562
|
let deferred0_1;
|
|
2563
2563
|
try {
|
|
@@ -2568,10 +2568,10 @@ function __wbg_get_imports() {
|
|
|
2568
2568
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2569
2569
|
}
|
|
2570
2570
|
};
|
|
2571
|
-
imports.wbg.
|
|
2571
|
+
imports.wbg.__wbg_sendwalletupdate_4c939763880bfb6e = function() {
|
|
2572
2572
|
MsgHandler.send_wallet_update();
|
|
2573
2573
|
};
|
|
2574
|
-
imports.wbg.
|
|
2574
|
+
imports.wbg.__wbg_sendnewversionalert_a46b12c8fb79bace = function(arg0, arg1, arg2) {
|
|
2575
2575
|
let deferred0_0;
|
|
2576
2576
|
let deferred0_1;
|
|
2577
2577
|
try {
|
|
@@ -2582,16 +2582,16 @@ function __wbg_get_imports() {
|
|
|
2582
2582
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
|
-
imports.wbg.
|
|
2585
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_55ba1a4bdac5edbf = function(arg0) {
|
|
2586
2586
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2587
2587
|
};
|
|
2588
|
-
imports.wbg.
|
|
2588
|
+
imports.wbg.__wbg_savewallet_3c09443d53d40c94 = function() {
|
|
2589
2589
|
MsgHandler.save_wallet();
|
|
2590
2590
|
};
|
|
2591
|
-
imports.wbg.
|
|
2591
|
+
imports.wbg.__wbg_loadwallet_5e1133c64196517a = function() {
|
|
2592
2592
|
MsgHandler.load_wallet();
|
|
2593
2593
|
};
|
|
2594
|
-
imports.wbg.
|
|
2594
|
+
imports.wbg.__wbg_getmyservices_e4b594a9ade6254c = function() {
|
|
2595
2595
|
const ret = MsgHandler.get_my_services();
|
|
2596
2596
|
_assertClass(ret, WasmPeerServiceList);
|
|
2597
2597
|
var ptr1 = ret.__destroy_into_raw();
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/web/package.json
CHANGED
|
File without changes
|
|
File without changes
|