saito-wasm 0.2.46 → 0.2.47
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 +64 -64
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.js +63 -63
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-0612662a0f07d3ef → saito-wasm-fa6f5d071c260c51}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-0612662a0f07d3ef → saito-wasm-fa6f5d071c260c51}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
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-fa6f5d071c260c51/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
+
const heap = new Array(128).fill(undefined);
|
|
8
|
+
|
|
9
|
+
heap.push(undefined, null, true, false);
|
|
10
|
+
|
|
11
|
+
function getObject(idx) { return heap[idx]; }
|
|
12
|
+
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
15
|
+
function dropObject(idx) {
|
|
16
|
+
if (idx < 132) return;
|
|
17
|
+
heap[idx] = heap_next;
|
|
18
|
+
heap_next = idx;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function takeObject(idx) {
|
|
22
|
+
const ret = getObject(idx);
|
|
23
|
+
dropObject(idx);
|
|
24
|
+
return ret;
|
|
25
|
+
}
|
|
26
|
+
|
|
7
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
8
28
|
|
|
9
29
|
cachedTextDecoder.decode();
|
|
@@ -22,12 +42,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
22
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
23
43
|
}
|
|
24
44
|
|
|
25
|
-
const heap = new Array(128).fill(undefined);
|
|
26
|
-
|
|
27
|
-
heap.push(undefined, null, true, false);
|
|
28
|
-
|
|
29
|
-
let heap_next = heap.length;
|
|
30
|
-
|
|
31
45
|
function addHeapObject(obj) {
|
|
32
46
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
33
47
|
const idx = heap_next;
|
|
@@ -37,20 +51,6 @@ function addHeapObject(obj) {
|
|
|
37
51
|
return idx;
|
|
38
52
|
}
|
|
39
53
|
|
|
40
|
-
function getObject(idx) { return heap[idx]; }
|
|
41
|
-
|
|
42
|
-
function dropObject(idx) {
|
|
43
|
-
if (idx < 132) return;
|
|
44
|
-
heap[idx] = heap_next;
|
|
45
|
-
heap_next = idx;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function takeObject(idx) {
|
|
49
|
-
const ret = getObject(idx);
|
|
50
|
-
dropObject(idx);
|
|
51
|
-
return ret;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -2338,17 +2338,17 @@ class WasmWalletSlip {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2340
2340
|
|
|
2341
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2342
|
+
takeObject(arg0);
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2341
2345
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2342
2346
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2343
2347
|
return addHeapObject(ret);
|
|
2344
2348
|
};
|
|
2345
2349
|
|
|
2346
|
-
module.exports.
|
|
2347
|
-
|
|
2348
|
-
};
|
|
2349
|
-
|
|
2350
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2351
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2350
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2351
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2352
2352
|
return addHeapObject(ret);
|
|
2353
2353
|
};
|
|
2354
2354
|
|
|
@@ -2357,18 +2357,18 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2357
2357
|
return addHeapObject(ret);
|
|
2358
2358
|
};
|
|
2359
2359
|
|
|
2360
|
-
module.exports.
|
|
2361
|
-
const ret =
|
|
2360
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2361
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2362
2362
|
return addHeapObject(ret);
|
|
2363
2363
|
};
|
|
2364
2364
|
|
|
2365
|
-
module.exports.
|
|
2366
|
-
const ret =
|
|
2365
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2366
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2367
2367
|
return addHeapObject(ret);
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
|
-
module.exports.
|
|
2371
|
-
const ret =
|
|
2370
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2371
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2372
2372
|
return addHeapObject(ret);
|
|
2373
2373
|
};
|
|
2374
2374
|
|
|
@@ -2381,8 +2381,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2381
2381
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2382
2382
|
};
|
|
2383
2383
|
|
|
2384
|
-
module.exports.
|
|
2385
|
-
const ret =
|
|
2384
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2385
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2386
2386
|
return addHeapObject(ret);
|
|
2387
2387
|
};
|
|
2388
2388
|
|
|
@@ -2391,13 +2391,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2391
2391
|
return addHeapObject(ret);
|
|
2392
2392
|
};
|
|
2393
2393
|
|
|
2394
|
-
module.exports.
|
|
2395
|
-
const ret =
|
|
2394
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2395
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2396
2396
|
return addHeapObject(ret);
|
|
2397
2397
|
};
|
|
2398
2398
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2399
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2400
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2401
2401
|
return addHeapObject(ret);
|
|
2402
2402
|
};
|
|
2403
2403
|
|
|
@@ -2427,15 +2427,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2427
2427
|
return ret;
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_sendmessage_c17bb4b2c64a2cd5 = function(arg0, arg1) {
|
|
2431
2431
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2432
2432
|
};
|
|
2433
2433
|
|
|
2434
|
-
module.exports.
|
|
2434
|
+
module.exports.__wbg_sendmessagetoall_c15ae76a2ebf32e8 = function(arg0, arg1) {
|
|
2435
2435
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2436
2436
|
};
|
|
2437
2437
|
|
|
2438
|
-
module.exports.
|
|
2438
|
+
module.exports.__wbg_connecttopeer_e802cb4fc8dc1c56 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2439
2439
|
let deferred0_0;
|
|
2440
2440
|
let deferred0_1;
|
|
2441
2441
|
try {
|
|
@@ -2448,12 +2448,12 @@ module.exports.__wbg_connecttopeer_b9a6881a9c6d45bb = function() { return handle
|
|
|
2448
2448
|
}
|
|
2449
2449
|
}, arguments) };
|
|
2450
2450
|
|
|
2451
|
-
module.exports.
|
|
2451
|
+
module.exports.__wbg_disconnectfrompeer_3767febffe69eed4 = function() { return handleError(function (arg0) {
|
|
2452
2452
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2453
2453
|
return addHeapObject(ret);
|
|
2454
2454
|
}, arguments) };
|
|
2455
2455
|
|
|
2456
|
-
module.exports.
|
|
2456
|
+
module.exports.__wbg_fetchblockfrompeer_f8cc634110d5aac4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2457
2457
|
let deferred0_0;
|
|
2458
2458
|
let deferred0_1;
|
|
2459
2459
|
try {
|
|
@@ -2466,7 +2466,7 @@ module.exports.__wbg_fetchblockfrompeer_e6b4007bc085a4ed = function() { return h
|
|
|
2466
2466
|
}
|
|
2467
2467
|
}, arguments) };
|
|
2468
2468
|
|
|
2469
|
-
module.exports.
|
|
2469
|
+
module.exports.__wbg_writevalue_dd606cfac0badbab = function(arg0, arg1, arg2) {
|
|
2470
2470
|
let deferred0_0;
|
|
2471
2471
|
let deferred0_1;
|
|
2472
2472
|
try {
|
|
@@ -2478,7 +2478,7 @@ module.exports.__wbg_writevalue_5e74a152df35725c = function(arg0, arg1, arg2) {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
};
|
|
2480
2480
|
|
|
2481
|
-
module.exports.
|
|
2481
|
+
module.exports.__wbg_appendvalue_c6a090d14f62deeb = function(arg0, arg1, arg2) {
|
|
2482
2482
|
let deferred0_0;
|
|
2483
2483
|
let deferred0_1;
|
|
2484
2484
|
try {
|
|
@@ -2490,7 +2490,7 @@ module.exports.__wbg_appendvalue_318867728649a158 = function(arg0, arg1, arg2) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
};
|
|
2492
2492
|
|
|
2493
|
-
module.exports.
|
|
2493
|
+
module.exports.__wbg_flushdata_16e92e0d7a248fe5 = function(arg0, arg1) {
|
|
2494
2494
|
let deferred0_0;
|
|
2495
2495
|
let deferred0_1;
|
|
2496
2496
|
try {
|
|
@@ -2502,7 +2502,7 @@ module.exports.__wbg_flushdata_94f9a9adbab238e5 = function(arg0, arg1) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
};
|
|
2504
2504
|
|
|
2505
|
-
module.exports.
|
|
2505
|
+
module.exports.__wbg_readvalue_5415a0144f951574 = function() { return handleError(function (arg0, arg1) {
|
|
2506
2506
|
let deferred0_0;
|
|
2507
2507
|
let deferred0_1;
|
|
2508
2508
|
try {
|
|
@@ -2515,12 +2515,12 @@ module.exports.__wbg_readvalue_de8b867d73635733 = function() { return handleErro
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}, arguments) };
|
|
2517
2517
|
|
|
2518
|
-
module.exports.
|
|
2518
|
+
module.exports.__wbg_loadblockfilelist_8fcee7030596dc75 = function() { return handleError(function () {
|
|
2519
2519
|
const ret = MsgHandler.load_block_file_list();
|
|
2520
2520
|
return addHeapObject(ret);
|
|
2521
2521
|
}, arguments) };
|
|
2522
2522
|
|
|
2523
|
-
module.exports.
|
|
2523
|
+
module.exports.__wbg_isexistingfile_299ee7557f161118 = function() { return handleError(function (arg0, arg1) {
|
|
2524
2524
|
let deferred0_0;
|
|
2525
2525
|
let deferred0_1;
|
|
2526
2526
|
try {
|
|
@@ -2533,7 +2533,7 @@ module.exports.__wbg_isexistingfile_042a6883c468936b = function() { return handl
|
|
|
2533
2533
|
}
|
|
2534
2534
|
}, arguments) };
|
|
2535
2535
|
|
|
2536
|
-
module.exports.
|
|
2536
|
+
module.exports.__wbg_removevalue_63b680169aa507e9 = function() { return handleError(function (arg0, arg1) {
|
|
2537
2537
|
let deferred0_0;
|
|
2538
2538
|
let deferred0_1;
|
|
2539
2539
|
try {
|
|
@@ -2546,7 +2546,7 @@ module.exports.__wbg_removevalue_0e053c572d9c13f1 = function() { return handleEr
|
|
|
2546
2546
|
}
|
|
2547
2547
|
}, arguments) };
|
|
2548
2548
|
|
|
2549
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_ensureblockdirectoryexists_7bf196ada1ce9616 = function() { return handleError(function (arg0, arg1) {
|
|
2550
2550
|
let deferred0_0;
|
|
2551
2551
|
let deferred0_1;
|
|
2552
2552
|
try {
|
|
@@ -2558,19 +2558,19 @@ module.exports.__wbg_ensureblockdirectoryexists_241bafe6b8c1f988 = function() {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
}, arguments) };
|
|
2560
2560
|
|
|
2561
|
-
module.exports.
|
|
2561
|
+
module.exports.__wbg_processapicall_39b1c86d275aa9dc = function(arg0, arg1, arg2) {
|
|
2562
2562
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2563
2563
|
};
|
|
2564
2564
|
|
|
2565
|
-
module.exports.
|
|
2565
|
+
module.exports.__wbg_processapisuccess_b28d68f330f9df7a = function(arg0, arg1, arg2) {
|
|
2566
2566
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
|
-
module.exports.
|
|
2569
|
+
module.exports.__wbg_processapierror_ce0f946f1dde2055 = function(arg0, arg1, arg2) {
|
|
2570
2570
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2571
2571
|
};
|
|
2572
2572
|
|
|
2573
|
-
module.exports.
|
|
2573
|
+
module.exports.__wbg_sendinterfaceevent_55fb09ee075086ed = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2574
2574
|
let deferred0_0;
|
|
2575
2575
|
let deferred0_1;
|
|
2576
2576
|
let deferred1_0;
|
|
@@ -2587,7 +2587,7 @@ module.exports.__wbg_sendinterfaceevent_e795fa0f890807fd = function(arg0, arg1,
|
|
|
2587
2587
|
}
|
|
2588
2588
|
};
|
|
2589
2589
|
|
|
2590
|
-
module.exports.
|
|
2590
|
+
module.exports.__wbg_sendblocksuccess_19d80b820ff29055 = function(arg0, arg1, arg2) {
|
|
2591
2591
|
let deferred0_0;
|
|
2592
2592
|
let deferred0_1;
|
|
2593
2593
|
try {
|
|
@@ -2599,11 +2599,11 @@ module.exports.__wbg_sendblocksuccess_74cd402bfa876c45 = function(arg0, arg1, ar
|
|
|
2599
2599
|
}
|
|
2600
2600
|
};
|
|
2601
2601
|
|
|
2602
|
-
module.exports.
|
|
2602
|
+
module.exports.__wbg_sendwalletupdate_9af33aac008f85ef = function() {
|
|
2603
2603
|
MsgHandler.send_wallet_update();
|
|
2604
2604
|
};
|
|
2605
2605
|
|
|
2606
|
-
module.exports.
|
|
2606
|
+
module.exports.__wbg_sendnewversionalert_6546210ce51b1993 = function(arg0, arg1, arg2) {
|
|
2607
2607
|
let deferred0_0;
|
|
2608
2608
|
let deferred0_1;
|
|
2609
2609
|
try {
|
|
@@ -2615,19 +2615,19 @@ module.exports.__wbg_sendnewversionalert_e7347a3894b05f2e = function(arg0, arg1,
|
|
|
2615
2615
|
}
|
|
2616
2616
|
};
|
|
2617
2617
|
|
|
2618
|
-
module.exports.
|
|
2618
|
+
module.exports.__wbg_sendblockfetchstatusevent_75af13f516ddb066 = function(arg0) {
|
|
2619
2619
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2620
2620
|
};
|
|
2621
2621
|
|
|
2622
|
-
module.exports.
|
|
2622
|
+
module.exports.__wbg_savewallet_0987aaef843b312e = function() {
|
|
2623
2623
|
MsgHandler.save_wallet();
|
|
2624
2624
|
};
|
|
2625
2625
|
|
|
2626
|
-
module.exports.
|
|
2626
|
+
module.exports.__wbg_loadwallet_f444f37f296513d1 = function() {
|
|
2627
2627
|
MsgHandler.load_wallet();
|
|
2628
2628
|
};
|
|
2629
2629
|
|
|
2630
|
-
module.exports.
|
|
2630
|
+
module.exports.__wbg_getmyservices_ab30b6d0644a3a46 = function() {
|
|
2631
2631
|
const ret = MsgHandler.get_my_services();
|
|
2632
2632
|
_assertClass(ret, WasmPeerServiceList);
|
|
2633
2633
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -3010,7 +3010,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3010
3010
|
};
|
|
3011
3011
|
|
|
3012
3012
|
module.exports.__wbindgen_closure_wrapper1343 = function(arg0, arg1, arg2) {
|
|
3013
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3013
|
+
const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
|
|
3014
3014
|
return addHeapObject(ret);
|
|
3015
3015
|
};
|
|
3016
3016
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
package/pkg/node/package.json
CHANGED
package/pkg/web/index.js
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-fa6f5d071c260c51/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
5
|
+
const heap = new Array(128).fill(undefined);
|
|
6
|
+
|
|
7
|
+
heap.push(undefined, null, true, false);
|
|
8
|
+
|
|
9
|
+
function getObject(idx) { return heap[idx]; }
|
|
10
|
+
|
|
11
|
+
let heap_next = heap.length;
|
|
12
|
+
|
|
13
|
+
function dropObject(idx) {
|
|
14
|
+
if (idx < 132) return;
|
|
15
|
+
heap[idx] = heap_next;
|
|
16
|
+
heap_next = idx;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function takeObject(idx) {
|
|
20
|
+
const ret = getObject(idx);
|
|
21
|
+
dropObject(idx);
|
|
22
|
+
return ret;
|
|
23
|
+
}
|
|
24
|
+
|
|
5
25
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
6
26
|
|
|
7
27
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -20,12 +40,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
20
40
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
41
|
}
|
|
22
42
|
|
|
23
|
-
const heap = new Array(128).fill(undefined);
|
|
24
|
-
|
|
25
|
-
heap.push(undefined, null, true, false);
|
|
26
|
-
|
|
27
|
-
let heap_next = heap.length;
|
|
28
|
-
|
|
29
43
|
function addHeapObject(obj) {
|
|
30
44
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
31
45
|
const idx = heap_next;
|
|
@@ -35,20 +49,6 @@ function addHeapObject(obj) {
|
|
|
35
49
|
return idx;
|
|
36
50
|
}
|
|
37
51
|
|
|
38
|
-
function getObject(idx) { return heap[idx]; }
|
|
39
|
-
|
|
40
|
-
function dropObject(idx) {
|
|
41
|
-
if (idx < 132) return;
|
|
42
|
-
heap[idx] = heap_next;
|
|
43
|
-
heap_next = idx;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function takeObject(idx) {
|
|
47
|
-
const ret = getObject(idx);
|
|
48
|
-
dropObject(idx);
|
|
49
|
-
return ret;
|
|
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') } } );
|
|
@@ -2356,31 +2356,31 @@ async function __wbg_load(module, imports) {
|
|
|
2356
2356
|
function __wbg_get_imports() {
|
|
2357
2357
|
const imports = {};
|
|
2358
2358
|
imports.wbg = {};
|
|
2359
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2360
|
+
takeObject(arg0);
|
|
2361
|
+
};
|
|
2359
2362
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2360
2363
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2361
2364
|
return addHeapObject(ret);
|
|
2362
2365
|
};
|
|
2363
|
-
imports.wbg.
|
|
2364
|
-
|
|
2365
|
-
};
|
|
2366
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2367
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2366
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2367
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2368
2368
|
return addHeapObject(ret);
|
|
2369
2369
|
};
|
|
2370
2370
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2371
2371
|
const ret = BigInt.asUintN(64, arg0);
|
|
2372
2372
|
return addHeapObject(ret);
|
|
2373
2373
|
};
|
|
2374
|
-
imports.wbg.
|
|
2375
|
-
const ret =
|
|
2374
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2375
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2376
2376
|
return addHeapObject(ret);
|
|
2377
2377
|
};
|
|
2378
|
-
imports.wbg.
|
|
2379
|
-
const ret =
|
|
2378
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2379
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2380
2380
|
return addHeapObject(ret);
|
|
2381
2381
|
};
|
|
2382
|
-
imports.wbg.
|
|
2383
|
-
const ret =
|
|
2382
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2383
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2384
2384
|
return addHeapObject(ret);
|
|
2385
2385
|
};
|
|
2386
2386
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -2391,20 +2391,20 @@ function __wbg_get_imports() {
|
|
|
2391
2391
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2392
2392
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2393
2393
|
};
|
|
2394
|
-
imports.wbg.
|
|
2395
|
-
const ret =
|
|
2394
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2395
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2396
2396
|
return addHeapObject(ret);
|
|
2397
2397
|
};
|
|
2398
2398
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2399
2399
|
const ret = WasmSlip.__wrap(arg0);
|
|
2400
2400
|
return addHeapObject(ret);
|
|
2401
2401
|
};
|
|
2402
|
-
imports.wbg.
|
|
2403
|
-
const ret =
|
|
2402
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2403
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2404
2404
|
return addHeapObject(ret);
|
|
2405
2405
|
};
|
|
2406
|
-
imports.wbg.
|
|
2407
|
-
const ret =
|
|
2406
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2407
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2408
2408
|
return addHeapObject(ret);
|
|
2409
2409
|
};
|
|
2410
2410
|
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
@@ -2428,13 +2428,13 @@ function __wbg_get_imports() {
|
|
|
2428
2428
|
const ret = getObject(arg0) in getObject(arg1);
|
|
2429
2429
|
return ret;
|
|
2430
2430
|
};
|
|
2431
|
-
imports.wbg.
|
|
2431
|
+
imports.wbg.__wbg_sendmessage_c17bb4b2c64a2cd5 = function(arg0, arg1) {
|
|
2432
2432
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2433
2433
|
};
|
|
2434
|
-
imports.wbg.
|
|
2434
|
+
imports.wbg.__wbg_sendmessagetoall_c15ae76a2ebf32e8 = function(arg0, arg1) {
|
|
2435
2435
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2436
2436
|
};
|
|
2437
|
-
imports.wbg.
|
|
2437
|
+
imports.wbg.__wbg_connecttopeer_e802cb4fc8dc1c56 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2438
2438
|
let deferred0_0;
|
|
2439
2439
|
let deferred0_1;
|
|
2440
2440
|
try {
|
|
@@ -2446,11 +2446,11 @@ function __wbg_get_imports() {
|
|
|
2446
2446
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2447
2447
|
}
|
|
2448
2448
|
}, arguments) };
|
|
2449
|
-
imports.wbg.
|
|
2449
|
+
imports.wbg.__wbg_disconnectfrompeer_3767febffe69eed4 = function() { return handleError(function (arg0) {
|
|
2450
2450
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2451
2451
|
return addHeapObject(ret);
|
|
2452
2452
|
}, arguments) };
|
|
2453
|
-
imports.wbg.
|
|
2453
|
+
imports.wbg.__wbg_fetchblockfrompeer_f8cc634110d5aac4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2454
2454
|
let deferred0_0;
|
|
2455
2455
|
let deferred0_1;
|
|
2456
2456
|
try {
|
|
@@ -2462,7 +2462,7 @@ function __wbg_get_imports() {
|
|
|
2462
2462
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2463
2463
|
}
|
|
2464
2464
|
}, arguments) };
|
|
2465
|
-
imports.wbg.
|
|
2465
|
+
imports.wbg.__wbg_writevalue_dd606cfac0badbab = function(arg0, arg1, arg2) {
|
|
2466
2466
|
let deferred0_0;
|
|
2467
2467
|
let deferred0_1;
|
|
2468
2468
|
try {
|
|
@@ -2473,7 +2473,7 @@ function __wbg_get_imports() {
|
|
|
2473
2473
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2474
2474
|
}
|
|
2475
2475
|
};
|
|
2476
|
-
imports.wbg.
|
|
2476
|
+
imports.wbg.__wbg_appendvalue_c6a090d14f62deeb = 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_flushdata_16e92e0d7a248fe5 = function(arg0, arg1) {
|
|
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_readvalue_5415a0144f951574 = function() { return handleError(function (arg0, arg1) {
|
|
2499
2499
|
let deferred0_0;
|
|
2500
2500
|
let deferred0_1;
|
|
2501
2501
|
try {
|
|
@@ -2507,11 +2507,11 @@ function __wbg_get_imports() {
|
|
|
2507
2507
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2508
2508
|
}
|
|
2509
2509
|
}, arguments) };
|
|
2510
|
-
imports.wbg.
|
|
2510
|
+
imports.wbg.__wbg_loadblockfilelist_8fcee7030596dc75 = function() { return handleError(function () {
|
|
2511
2511
|
const ret = MsgHandler.load_block_file_list();
|
|
2512
2512
|
return addHeapObject(ret);
|
|
2513
2513
|
}, arguments) };
|
|
2514
|
-
imports.wbg.
|
|
2514
|
+
imports.wbg.__wbg_isexistingfile_299ee7557f161118 = function() { return handleError(function (arg0, arg1) {
|
|
2515
2515
|
let deferred0_0;
|
|
2516
2516
|
let deferred0_1;
|
|
2517
2517
|
try {
|
|
@@ -2523,7 +2523,7 @@ function __wbg_get_imports() {
|
|
|
2523
2523
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2524
2524
|
}
|
|
2525
2525
|
}, arguments) };
|
|
2526
|
-
imports.wbg.
|
|
2526
|
+
imports.wbg.__wbg_removevalue_63b680169aa507e9 = function() { return handleError(function (arg0, arg1) {
|
|
2527
2527
|
let deferred0_0;
|
|
2528
2528
|
let deferred0_1;
|
|
2529
2529
|
try {
|
|
@@ -2535,7 +2535,7 @@ function __wbg_get_imports() {
|
|
|
2535
2535
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2536
2536
|
}
|
|
2537
2537
|
}, arguments) };
|
|
2538
|
-
imports.wbg.
|
|
2538
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_7bf196ada1ce9616 = function() { return handleError(function (arg0, arg1) {
|
|
2539
2539
|
let deferred0_0;
|
|
2540
2540
|
let deferred0_1;
|
|
2541
2541
|
try {
|
|
@@ -2546,16 +2546,16 @@ 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_processapicall_39b1c86d275aa9dc = function(arg0, arg1, arg2) {
|
|
2550
2550
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2551
2551
|
};
|
|
2552
|
-
imports.wbg.
|
|
2552
|
+
imports.wbg.__wbg_processapisuccess_b28d68f330f9df7a = function(arg0, arg1, arg2) {
|
|
2553
2553
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2554
2554
|
};
|
|
2555
|
-
imports.wbg.
|
|
2555
|
+
imports.wbg.__wbg_processapierror_ce0f946f1dde2055 = function(arg0, arg1, arg2) {
|
|
2556
2556
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2557
2557
|
};
|
|
2558
|
-
imports.wbg.
|
|
2558
|
+
imports.wbg.__wbg_sendinterfaceevent_55fb09ee075086ed = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2559
2559
|
let deferred0_0;
|
|
2560
2560
|
let deferred0_1;
|
|
2561
2561
|
let deferred1_0;
|
|
@@ -2571,7 +2571,7 @@ function __wbg_get_imports() {
|
|
|
2571
2571
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2572
2572
|
}
|
|
2573
2573
|
};
|
|
2574
|
-
imports.wbg.
|
|
2574
|
+
imports.wbg.__wbg_sendblocksuccess_19d80b820ff29055 = function(arg0, arg1, arg2) {
|
|
2575
2575
|
let deferred0_0;
|
|
2576
2576
|
let deferred0_1;
|
|
2577
2577
|
try {
|
|
@@ -2582,10 +2582,10 @@ 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_sendwalletupdate_9af33aac008f85ef = function() {
|
|
2586
2586
|
MsgHandler.send_wallet_update();
|
|
2587
2587
|
};
|
|
2588
|
-
imports.wbg.
|
|
2588
|
+
imports.wbg.__wbg_sendnewversionalert_6546210ce51b1993 = function(arg0, arg1, arg2) {
|
|
2589
2589
|
let deferred0_0;
|
|
2590
2590
|
let deferred0_1;
|
|
2591
2591
|
try {
|
|
@@ -2596,16 +2596,16 @@ function __wbg_get_imports() {
|
|
|
2596
2596
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
|
-
imports.wbg.
|
|
2599
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_75af13f516ddb066 = function(arg0) {
|
|
2600
2600
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2601
2601
|
};
|
|
2602
|
-
imports.wbg.
|
|
2602
|
+
imports.wbg.__wbg_savewallet_0987aaef843b312e = function() {
|
|
2603
2603
|
MsgHandler.save_wallet();
|
|
2604
2604
|
};
|
|
2605
|
-
imports.wbg.
|
|
2605
|
+
imports.wbg.__wbg_loadwallet_f444f37f296513d1 = function() {
|
|
2606
2606
|
MsgHandler.load_wallet();
|
|
2607
2607
|
};
|
|
2608
|
-
imports.wbg.
|
|
2608
|
+
imports.wbg.__wbg_getmyservices_ab30b6d0644a3a46 = function() {
|
|
2609
2609
|
const ret = MsgHandler.get_my_services();
|
|
2610
2610
|
_assertClass(ret, WasmPeerServiceList);
|
|
2611
2611
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2919,7 +2919,7 @@ function __wbg_get_imports() {
|
|
|
2919
2919
|
return addHeapObject(ret);
|
|
2920
2920
|
};
|
|
2921
2921
|
imports.wbg.__wbindgen_closure_wrapper1343 = function(arg0, arg1, arg2) {
|
|
2922
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2922
|
+
const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
|
|
2923
2923
|
return addHeapObject(ret);
|
|
2924
2924
|
};
|
|
2925
2925
|
|
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.47",
|
|
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
|