saito-wasm 0.2.78 → 0.2.79
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 +58 -58
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-71cdfe14e5a8808f → saito-wasm-9cf3d5681962a4cf}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-71cdfe14e5a8808f → saito-wasm-9cf3d5681962a4cf}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-9cf3d5681962a4cf/js/msg_handler.js`);
|
|
5
|
+
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
@@ -33,7 +33,9 @@ function addHeapObject(obj) {
|
|
|
33
33
|
return idx;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
let
|
|
36
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
|
+
|
|
38
|
+
cachedTextDecoder.decode();
|
|
37
39
|
|
|
38
40
|
let cachedUint8Memory0 = null;
|
|
39
41
|
|
|
@@ -44,6 +46,13 @@ function getUint8Memory0() {
|
|
|
44
46
|
return cachedUint8Memory0;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
function getStringFromWasm0(ptr, len) {
|
|
50
|
+
ptr = ptr >>> 0;
|
|
51
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let WASM_VECTOR_LEN = 0;
|
|
55
|
+
|
|
47
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
48
57
|
|
|
49
58
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -111,15 +120,6 @@ function getInt32Memory0() {
|
|
|
111
120
|
return cachedInt32Memory0;
|
|
112
121
|
}
|
|
113
122
|
|
|
114
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
-
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
|
|
118
|
-
function getStringFromWasm0(ptr, len) {
|
|
119
|
-
ptr = ptr >>> 0;
|
|
120
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
-
}
|
|
122
|
-
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -2362,47 +2362,43 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2362
2362
|
return addHeapObject(ret);
|
|
2363
2363
|
};
|
|
2364
2364
|
|
|
2365
|
-
module.exports.
|
|
2366
|
-
const ret =
|
|
2365
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2366
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2367
2367
|
return addHeapObject(ret);
|
|
2368
2368
|
};
|
|
2369
2369
|
|
|
2370
|
-
module.exports.
|
|
2371
|
-
const ret =
|
|
2370
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2371
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2372
2372
|
return addHeapObject(ret);
|
|
2373
2373
|
};
|
|
2374
2374
|
|
|
2375
|
-
module.exports.
|
|
2376
|
-
const ret =
|
|
2375
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
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_wasmblockchain_new = function(arg0) {
|
|
2381
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2382
2382
|
return addHeapObject(ret);
|
|
2383
2383
|
};
|
|
2384
2384
|
|
|
2385
|
-
module.exports.
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2388
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2389
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2390
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2391
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2385
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2386
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2387
|
+
return addHeapObject(ret);
|
|
2392
2388
|
};
|
|
2393
2389
|
|
|
2394
|
-
module.exports.
|
|
2395
|
-
const ret =
|
|
2390
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2391
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2396
2392
|
return addHeapObject(ret);
|
|
2397
2393
|
};
|
|
2398
2394
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2395
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2396
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2401
2397
|
return addHeapObject(ret);
|
|
2402
2398
|
};
|
|
2403
2399
|
|
|
2404
|
-
module.exports.
|
|
2405
|
-
const ret =
|
|
2400
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2401
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2406
2402
|
return addHeapObject(ret);
|
|
2407
2403
|
};
|
|
2408
2404
|
|
|
@@ -2411,9 +2407,13 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2411
2407
|
return addHeapObject(ret);
|
|
2412
2408
|
};
|
|
2413
2409
|
|
|
2414
|
-
module.exports.
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2410
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2411
|
+
const obj = getObject(arg1);
|
|
2412
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2413
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2414
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2415
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2416
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2417
2417
|
};
|
|
2418
2418
|
|
|
2419
2419
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
@@ -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_9c85ee873608ea49 = function(arg0, arg1) {
|
|
2441
2441
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
module.exports.
|
|
2444
|
+
module.exports.__wbg_sendmessagetoall_46504875a22375d0 = 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_1d30fbddd4b9fe0b = 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_f836124d26b116ac = function() { return handle
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}, arguments) };
|
|
2460
2460
|
|
|
2461
|
-
module.exports.
|
|
2461
|
+
module.exports.__wbg_disconnectfrompeer_1bbbcd668002365e = 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_022834d992a96a42 = 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_52de722e504ee017 = function() { return h
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}, arguments) };
|
|
2478
2478
|
|
|
2479
|
-
module.exports.
|
|
2479
|
+
module.exports.__wbg_writevalue_86e019b9b1a787f0 = 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_3bd91ce2cb5d73a0 = function(arg0, arg1, arg2) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
|
-
module.exports.
|
|
2491
|
+
module.exports.__wbg_appendvalue_86908db581518b49 = 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_737130403c3f3612 = function(arg0, arg1, arg2) {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
};
|
|
2502
2502
|
|
|
2503
|
-
module.exports.
|
|
2503
|
+
module.exports.__wbg_flushdata_13e8fa4b1d336e04 = function(arg0, arg1) {
|
|
2504
2504
|
let deferred0_0;
|
|
2505
2505
|
let deferred0_1;
|
|
2506
2506
|
try {
|
|
@@ -2512,7 +2512,7 @@ module.exports.__wbg_flushdata_d43dd54b5800fb42 = function(arg0, arg1) {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
};
|
|
2514
2514
|
|
|
2515
|
-
module.exports.
|
|
2515
|
+
module.exports.__wbg_readvalue_7e92c9c4d0e5406c = 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_93ca2dbf8ca59d13 = function() { return handleErro
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}, arguments) };
|
|
2527
2527
|
|
|
2528
|
-
module.exports.
|
|
2528
|
+
module.exports.__wbg_loadblockfilelist_b37fc55f2fa8a68f = 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_05ee106a474aafca = 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_a95574f7bacfe1be = function() { return handl
|
|
|
2543
2543
|
}
|
|
2544
2544
|
}, arguments) };
|
|
2545
2545
|
|
|
2546
|
-
module.exports.
|
|
2546
|
+
module.exports.__wbg_removevalue_314ca858d5281704 = 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_b32453eb06422b06 = function() { return handleEr
|
|
|
2556
2556
|
}
|
|
2557
2557
|
}, arguments) };
|
|
2558
2558
|
|
|
2559
|
-
module.exports.
|
|
2559
|
+
module.exports.__wbg_ensureblockdirectoryexists_504c9143369f4369 = 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_14a5d62feeb4d061 = function() {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
}, arguments) };
|
|
2570
2570
|
|
|
2571
|
-
module.exports.
|
|
2571
|
+
module.exports.__wbg_processapicall_0fa6da1d2fedf420 = 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_11413d705d6c7dcc = 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_742e4c96c29d3105 = 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_88a5ec095711f46c = 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_0a9c656019d28d82 = function(arg0, arg1,
|
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
2599
|
|
|
2600
|
-
module.exports.
|
|
2600
|
+
module.exports.__wbg_sendblocksuccess_a21361bb4986a19f = 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_774727514840b167 = function(arg0, arg1, ar
|
|
|
2609
2609
|
}
|
|
2610
2610
|
};
|
|
2611
2611
|
|
|
2612
|
-
module.exports.
|
|
2612
|
+
module.exports.__wbg_sendwalletupdate_1ec44e65cf56abd3 = function() {
|
|
2613
2613
|
MsgHandler.send_wallet_update();
|
|
2614
2614
|
};
|
|
2615
2615
|
|
|
2616
|
-
module.exports.
|
|
2616
|
+
module.exports.__wbg_sendnewversionalert_b355a63076e5aad9 = 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_9f7b2a5d8bfde2c7 = function(arg0, arg1,
|
|
|
2625
2625
|
}
|
|
2626
2626
|
};
|
|
2627
2627
|
|
|
2628
|
-
module.exports.
|
|
2628
|
+
module.exports.__wbg_sendblockfetchstatusevent_f8c989148cd3a2b7 = 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_a9e433161366017c = function() {
|
|
2633
2633
|
MsgHandler.save_wallet();
|
|
2634
2634
|
};
|
|
2635
2635
|
|
|
2636
|
-
module.exports.
|
|
2636
|
+
module.exports.__wbg_loadwallet_e5cb4c8ffab829cb = function() {
|
|
2637
2637
|
MsgHandler.load_wallet();
|
|
2638
2638
|
};
|
|
2639
2639
|
|
|
2640
|
-
module.exports.
|
|
2640
|
+
module.exports.__wbg_getmyservices_d48e8dcd636bada9 = function() {
|
|
2641
2641
|
const ret = MsgHandler.get_my_services();
|
|
2642
2642
|
_assertClass(ret, WasmPeerServiceList);
|
|
2643
2643
|
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.79",
|
|
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
|
+
"node-fetch": "^3.3.0",
|
|
13
|
+
"cross-env": "^7.0.3"
|
|
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-9cf3d5681962a4cf/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -31,7 +31,9 @@ function addHeapObject(obj) {
|
|
|
31
31
|
return idx;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
35
|
+
|
|
36
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
35
37
|
|
|
36
38
|
let cachedUint8Memory0 = null;
|
|
37
39
|
|
|
@@ -42,6 +44,13 @@ function getUint8Memory0() {
|
|
|
42
44
|
return cachedUint8Memory0;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
function getStringFromWasm0(ptr, len) {
|
|
48
|
+
ptr = ptr >>> 0;
|
|
49
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let WASM_VECTOR_LEN = 0;
|
|
53
|
+
|
|
45
54
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
46
55
|
|
|
47
56
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -109,15 +118,6 @@ function getInt32Memory0() {
|
|
|
109
118
|
return cachedInt32Memory0;
|
|
110
119
|
}
|
|
111
120
|
|
|
112
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
-
|
|
114
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
-
|
|
116
|
-
function getStringFromWasm0(ptr, len) {
|
|
117
|
-
ptr = ptr >>> 0;
|
|
118
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -2378,49 +2378,49 @@ function __wbg_get_imports() {
|
|
|
2378
2378
|
const ret = BigInt.asUintN(64, arg0);
|
|
2379
2379
|
return addHeapObject(ret);
|
|
2380
2380
|
};
|
|
2381
|
-
imports.wbg.
|
|
2382
|
-
const ret =
|
|
2383
|
-
return addHeapObject(ret);
|
|
2384
|
-
};
|
|
2385
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2386
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2381
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2382
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2387
2383
|
return addHeapObject(ret);
|
|
2388
2384
|
};
|
|
2389
|
-
imports.wbg.
|
|
2390
|
-
const ret =
|
|
2385
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2386
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2391
2387
|
return addHeapObject(ret);
|
|
2392
2388
|
};
|
|
2393
2389
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2394
2390
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2395
2391
|
return addHeapObject(ret);
|
|
2396
2392
|
};
|
|
2397
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2398
|
-
const obj = getObject(arg1);
|
|
2399
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2400
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2401
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2402
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2403
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2404
|
-
};
|
|
2405
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2406
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2407
|
-
return addHeapObject(ret);
|
|
2408
|
-
};
|
|
2409
2393
|
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2410
2394
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2411
2395
|
return addHeapObject(ret);
|
|
2412
2396
|
};
|
|
2397
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2398
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2399
|
+
return addHeapObject(ret);
|
|
2400
|
+
};
|
|
2413
2401
|
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2414
2402
|
const ret = WasmBlock.__wrap(arg0);
|
|
2415
2403
|
return addHeapObject(ret);
|
|
2416
2404
|
};
|
|
2405
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2406
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2407
|
+
return addHeapObject(ret);
|
|
2408
|
+
};
|
|
2409
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2410
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2411
|
+
return addHeapObject(ret);
|
|
2412
|
+
};
|
|
2417
2413
|
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2418
2414
|
const ret = WasmSlip.__wrap(arg0);
|
|
2419
2415
|
return addHeapObject(ret);
|
|
2420
2416
|
};
|
|
2421
|
-
imports.wbg.
|
|
2422
|
-
const
|
|
2423
|
-
|
|
2417
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2418
|
+
const obj = getObject(arg1);
|
|
2419
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2420
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2421
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2422
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2423
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2424
2424
|
};
|
|
2425
2425
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2426
2426
|
const ret = new Error(getStringFromWasm0(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_9c85ee873608ea49 = function(arg0, arg1) {
|
|
2443
2443
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2444
2444
|
};
|
|
2445
|
-
imports.wbg.
|
|
2445
|
+
imports.wbg.__wbg_sendmessagetoall_46504875a22375d0 = function(arg0, arg1) {
|
|
2446
2446
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2447
2447
|
};
|
|
2448
|
-
imports.wbg.
|
|
2448
|
+
imports.wbg.__wbg_connecttopeer_1d30fbddd4b9fe0b = 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_1bbbcd668002365e = 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_022834d992a96a42 = 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_86e019b9b1a787f0 = 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_86908db581518b49 = 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_13e8fa4b1d336e04 = 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_7e92c9c4d0e5406c = 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_b37fc55f2fa8a68f = 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_05ee106a474aafca = 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_314ca858d5281704 = 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_504c9143369f4369 = 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_0fa6da1d2fedf420 = 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_11413d705d6c7dcc = 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_742e4c96c29d3105 = 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_88a5ec095711f46c = 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_a21361bb4986a19f = 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_1ec44e65cf56abd3 = function() {
|
|
2597
2597
|
MsgHandler.send_wallet_update();
|
|
2598
2598
|
};
|
|
2599
|
-
imports.wbg.
|
|
2599
|
+
imports.wbg.__wbg_sendnewversionalert_b355a63076e5aad9 = 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_f8c989148cd3a2b7 = function(arg0) {
|
|
2611
2611
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2612
2612
|
};
|
|
2613
|
-
imports.wbg.
|
|
2613
|
+
imports.wbg.__wbg_savewallet_a9e433161366017c = function() {
|
|
2614
2614
|
MsgHandler.save_wallet();
|
|
2615
2615
|
};
|
|
2616
|
-
imports.wbg.
|
|
2616
|
+
imports.wbg.__wbg_loadwallet_e5cb4c8ffab829cb = function() {
|
|
2617
2617
|
MsgHandler.load_wallet();
|
|
2618
2618
|
};
|
|
2619
|
-
imports.wbg.
|
|
2619
|
+
imports.wbg.__wbg_getmyservices_d48e8dcd636bada9 = function() {
|
|
2620
2620
|
const ret = MsgHandler.get_my_services();
|
|
2621
2621
|
_assertClass(ret, WasmPeerServiceList);
|
|
2622
2622
|
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.79",
|
|
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
|
+
"node-fetch": "^3.3.0",
|
|
16
|
+
"cross-env": "^7.0.3"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
File without changes
|
|
File without changes
|