saito-wasm 0.2.72 → 0.2.74
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 +2 -2
- package/package.json +1 -1
- package/pkg/node/index.js +103 -103
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +85 -85
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +85 -85
- package/pkg/web/index.js +97 -97
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +85 -85
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-ea8a3725f588acec → saito-wasm-fd0c48d08efcc35a}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-ea8a3725f588acec → saito-wasm-fd0c48d08efcc35a}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "saito-wasm"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.74"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
6
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
@@ -23,7 +23,7 @@ console_log = { version = "1.0.0", features = ["color"] }
|
|
|
23
23
|
log = "0.4.21"
|
|
24
24
|
getrandom = { version = "0.2.15", features = ["js", "std"] }
|
|
25
25
|
rand = { version = "0.8.5", features = ["getrandom"] }
|
|
26
|
-
secp256k1 = { version = "0.
|
|
26
|
+
secp256k1 = { version = "0.30.0", features = ["hashes", "global-context", "serde"] }
|
|
27
27
|
bs58 = "0.5.0"
|
|
28
28
|
figment = { version = "0.10.12", features = ["json"] }
|
|
29
29
|
serde_json = { version = "1.0.117" }
|
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-fd0c48d08efcc35a/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');
|
|
@@ -225,7 +225,14 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc45362b09104e54e(arg0, arg1, addHeapObject(arg2));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function _assertClass(instance, klass) {
|
|
232
|
+
if (!(instance instanceof klass)) {
|
|
233
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
234
|
+
}
|
|
235
|
+
return instance.ptr;
|
|
229
236
|
}
|
|
230
237
|
|
|
231
238
|
function handleError(f, args) {
|
|
@@ -235,13 +242,6 @@ function handleError(f, args) {
|
|
|
235
242
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
|
-
|
|
239
|
-
function _assertClass(instance, klass) {
|
|
240
|
-
if (!(instance instanceof klass)) {
|
|
241
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
242
|
-
}
|
|
243
|
-
return instance.ptr;
|
|
244
|
-
}
|
|
245
245
|
/**
|
|
246
246
|
* @param {string} json
|
|
247
247
|
* @param {string} private_key
|
|
@@ -628,7 +628,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
628
628
|
};
|
|
629
629
|
|
|
630
630
|
function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
|
|
631
|
-
wasm.
|
|
631
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2352,8 +2352,8 @@ class WasmWalletSlip {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2354
2354
|
|
|
2355
|
-
module.exports.
|
|
2356
|
-
const ret =
|
|
2355
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2356
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2357
2357
|
return addHeapObject(ret);
|
|
2358
2358
|
};
|
|
2359
2359
|
|
|
@@ -2361,13 +2361,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2361
2361
|
takeObject(arg0);
|
|
2362
2362
|
};
|
|
2363
2363
|
|
|
2364
|
-
module.exports.
|
|
2365
|
-
const ret =
|
|
2364
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2365
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2366
2366
|
return addHeapObject(ret);
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
-
module.exports.
|
|
2370
|
-
const ret =
|
|
2369
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2370
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2371
2371
|
return addHeapObject(ret);
|
|
2372
2372
|
};
|
|
2373
2373
|
|
|
@@ -2376,13 +2376,14 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2376
2376
|
return addHeapObject(ret);
|
|
2377
2377
|
};
|
|
2378
2378
|
|
|
2379
|
-
module.exports.
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2379
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2380
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2381
|
+
return addHeapObject(ret);
|
|
2382
|
+
};
|
|
2383
|
+
|
|
2384
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2385
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2386
|
+
return addHeapObject(ret);
|
|
2386
2387
|
};
|
|
2387
2388
|
|
|
2388
2389
|
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
@@ -2390,8 +2391,8 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2390
2391
|
return addHeapObject(ret);
|
|
2391
2392
|
};
|
|
2392
2393
|
|
|
2393
|
-
module.exports.
|
|
2394
|
-
const ret =
|
|
2394
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2395
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2395
2396
|
return addHeapObject(ret);
|
|
2396
2397
|
};
|
|
2397
2398
|
|
|
@@ -2400,30 +2401,55 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2400
2401
|
return addHeapObject(ret);
|
|
2401
2402
|
};
|
|
2402
2403
|
|
|
2403
|
-
module.exports.
|
|
2404
|
-
const ret =
|
|
2404
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2405
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2405
2406
|
return addHeapObject(ret);
|
|
2406
2407
|
};
|
|
2407
2408
|
|
|
2408
|
-
module.exports.
|
|
2409
|
-
const
|
|
2409
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2410
|
+
const obj = getObject(arg1);
|
|
2411
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2412
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2413
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2414
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2415
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2416
|
+
};
|
|
2417
|
+
|
|
2418
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2419
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2410
2420
|
return addHeapObject(ret);
|
|
2411
2421
|
};
|
|
2412
2422
|
|
|
2413
|
-
module.exports.
|
|
2414
|
-
const ret =
|
|
2423
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2424
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2415
2425
|
return addHeapObject(ret);
|
|
2416
2426
|
};
|
|
2417
2427
|
|
|
2418
|
-
module.exports.
|
|
2428
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2429
|
+
const val = getObject(arg0);
|
|
2430
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2431
|
+
return ret;
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2435
|
+
const ret = getObject(arg0) === undefined;
|
|
2436
|
+
return ret;
|
|
2437
|
+
};
|
|
2438
|
+
|
|
2439
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2440
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2441
|
+
return ret;
|
|
2442
|
+
};
|
|
2443
|
+
|
|
2444
|
+
module.exports.__wbg_sendmessage_bfff55492b637c1b = function(arg0, arg1) {
|
|
2419
2445
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2420
2446
|
};
|
|
2421
2447
|
|
|
2422
|
-
module.exports.
|
|
2448
|
+
module.exports.__wbg_sendmessagetoall_eb0177358fe75c65 = function(arg0, arg1) {
|
|
2423
2449
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2424
2450
|
};
|
|
2425
2451
|
|
|
2426
|
-
module.exports.
|
|
2452
|
+
module.exports.__wbg_connecttopeer_602ecc761cba1874 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2427
2453
|
let deferred0_0;
|
|
2428
2454
|
let deferred0_1;
|
|
2429
2455
|
try {
|
|
@@ -2436,12 +2462,12 @@ module.exports.__wbg_connecttopeer_9b4c08818780c079 = function() { return handle
|
|
|
2436
2462
|
}
|
|
2437
2463
|
}, arguments) };
|
|
2438
2464
|
|
|
2439
|
-
module.exports.
|
|
2465
|
+
module.exports.__wbg_disconnectfrompeer_a380c6acf766dca3 = function() { return handleError(function (arg0) {
|
|
2440
2466
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2441
2467
|
return addHeapObject(ret);
|
|
2442
2468
|
}, arguments) };
|
|
2443
2469
|
|
|
2444
|
-
module.exports.
|
|
2470
|
+
module.exports.__wbg_fetchblockfrompeer_45780d6a3e046915 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2445
2471
|
let deferred0_0;
|
|
2446
2472
|
let deferred0_1;
|
|
2447
2473
|
try {
|
|
@@ -2454,7 +2480,7 @@ module.exports.__wbg_fetchblockfrompeer_c343386fabfcc4b9 = function() { return h
|
|
|
2454
2480
|
}
|
|
2455
2481
|
}, arguments) };
|
|
2456
2482
|
|
|
2457
|
-
module.exports.
|
|
2483
|
+
module.exports.__wbg_writevalue_49caa2a9ddfd725d = function(arg0, arg1, arg2) {
|
|
2458
2484
|
let deferred0_0;
|
|
2459
2485
|
let deferred0_1;
|
|
2460
2486
|
try {
|
|
@@ -2466,7 +2492,7 @@ module.exports.__wbg_writevalue_c5a32b7ca1b814eb = function(arg0, arg1, arg2) {
|
|
|
2466
2492
|
}
|
|
2467
2493
|
};
|
|
2468
2494
|
|
|
2469
|
-
module.exports.
|
|
2495
|
+
module.exports.__wbg_appendvalue_253aaf26bb87a3c1 = function(arg0, arg1, arg2) {
|
|
2470
2496
|
let deferred0_0;
|
|
2471
2497
|
let deferred0_1;
|
|
2472
2498
|
try {
|
|
@@ -2478,7 +2504,7 @@ module.exports.__wbg_appendvalue_dd7f0b58d9ebfcf7 = function(arg0, arg1, arg2) {
|
|
|
2478
2504
|
}
|
|
2479
2505
|
};
|
|
2480
2506
|
|
|
2481
|
-
module.exports.
|
|
2507
|
+
module.exports.__wbg_flushdata_e61817e773fdb5f3 = function(arg0, arg1) {
|
|
2482
2508
|
let deferred0_0;
|
|
2483
2509
|
let deferred0_1;
|
|
2484
2510
|
try {
|
|
@@ -2490,7 +2516,7 @@ module.exports.__wbg_flushdata_22236f2822e215fe = function(arg0, arg1) {
|
|
|
2490
2516
|
}
|
|
2491
2517
|
};
|
|
2492
2518
|
|
|
2493
|
-
module.exports.
|
|
2519
|
+
module.exports.__wbg_readvalue_c2e64d015d104bba = function() { return handleError(function (arg0, arg1) {
|
|
2494
2520
|
let deferred0_0;
|
|
2495
2521
|
let deferred0_1;
|
|
2496
2522
|
try {
|
|
@@ -2503,12 +2529,12 @@ module.exports.__wbg_readvalue_cd400e054097ee02 = function() { return handleErro
|
|
|
2503
2529
|
}
|
|
2504
2530
|
}, arguments) };
|
|
2505
2531
|
|
|
2506
|
-
module.exports.
|
|
2532
|
+
module.exports.__wbg_loadblockfilelist_5965d72a5a36355f = function() { return handleError(function () {
|
|
2507
2533
|
const ret = MsgHandler.load_block_file_list();
|
|
2508
2534
|
return addHeapObject(ret);
|
|
2509
2535
|
}, arguments) };
|
|
2510
2536
|
|
|
2511
|
-
module.exports.
|
|
2537
|
+
module.exports.__wbg_isexistingfile_47e33b82a6ecb605 = function() { return handleError(function (arg0, arg1) {
|
|
2512
2538
|
let deferred0_0;
|
|
2513
2539
|
let deferred0_1;
|
|
2514
2540
|
try {
|
|
@@ -2521,7 +2547,7 @@ module.exports.__wbg_isexistingfile_bd1b88ea7b81abec = function() { return handl
|
|
|
2521
2547
|
}
|
|
2522
2548
|
}, arguments) };
|
|
2523
2549
|
|
|
2524
|
-
module.exports.
|
|
2550
|
+
module.exports.__wbg_removevalue_be6f10024c6867e8 = function() { return handleError(function (arg0, arg1) {
|
|
2525
2551
|
let deferred0_0;
|
|
2526
2552
|
let deferred0_1;
|
|
2527
2553
|
try {
|
|
@@ -2534,7 +2560,7 @@ module.exports.__wbg_removevalue_380722d59631b1ba = function() { return handleEr
|
|
|
2534
2560
|
}
|
|
2535
2561
|
}, arguments) };
|
|
2536
2562
|
|
|
2537
|
-
module.exports.
|
|
2563
|
+
module.exports.__wbg_ensureblockdirectoryexists_409559396dece9eb = function() { return handleError(function (arg0, arg1) {
|
|
2538
2564
|
let deferred0_0;
|
|
2539
2565
|
let deferred0_1;
|
|
2540
2566
|
try {
|
|
@@ -2546,19 +2572,19 @@ module.exports.__wbg_ensureblockdirectoryexists_2d15501d6833dc41 = function() {
|
|
|
2546
2572
|
}
|
|
2547
2573
|
}, arguments) };
|
|
2548
2574
|
|
|
2549
|
-
module.exports.
|
|
2575
|
+
module.exports.__wbg_processapicall_803d8e8012af7d79 = function(arg0, arg1, arg2) {
|
|
2550
2576
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2551
2577
|
};
|
|
2552
2578
|
|
|
2553
|
-
module.exports.
|
|
2579
|
+
module.exports.__wbg_processapisuccess_f6da4d569c5e95e3 = function(arg0, arg1, arg2) {
|
|
2554
2580
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2555
2581
|
};
|
|
2556
2582
|
|
|
2557
|
-
module.exports.
|
|
2583
|
+
module.exports.__wbg_processapierror_ddcb2725c45cf33d = function(arg0, arg1, arg2) {
|
|
2558
2584
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2559
2585
|
};
|
|
2560
2586
|
|
|
2561
|
-
module.exports.
|
|
2587
|
+
module.exports.__wbg_sendinterfaceevent_25d8f4d5e934dd7c = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2562
2588
|
let deferred0_0;
|
|
2563
2589
|
let deferred0_1;
|
|
2564
2590
|
let deferred1_0;
|
|
@@ -2575,7 +2601,7 @@ module.exports.__wbg_sendinterfaceevent_f0f0e0bfbd39f6a2 = function(arg0, arg1,
|
|
|
2575
2601
|
}
|
|
2576
2602
|
};
|
|
2577
2603
|
|
|
2578
|
-
module.exports.
|
|
2604
|
+
module.exports.__wbg_sendblocksuccess_87a65cad1456496f = function(arg0, arg1, arg2) {
|
|
2579
2605
|
let deferred0_0;
|
|
2580
2606
|
let deferred0_1;
|
|
2581
2607
|
try {
|
|
@@ -2587,11 +2613,11 @@ module.exports.__wbg_sendblocksuccess_7df9a1bf786b61d7 = function(arg0, arg1, ar
|
|
|
2587
2613
|
}
|
|
2588
2614
|
};
|
|
2589
2615
|
|
|
2590
|
-
module.exports.
|
|
2616
|
+
module.exports.__wbg_sendwalletupdate_bdfe2457d9da8bcf = function() {
|
|
2591
2617
|
MsgHandler.send_wallet_update();
|
|
2592
2618
|
};
|
|
2593
2619
|
|
|
2594
|
-
module.exports.
|
|
2620
|
+
module.exports.__wbg_sendnewversionalert_f5be73cf3822ae62 = function(arg0, arg1, arg2) {
|
|
2595
2621
|
let deferred0_0;
|
|
2596
2622
|
let deferred0_1;
|
|
2597
2623
|
try {
|
|
@@ -2603,56 +2629,30 @@ module.exports.__wbg_sendnewversionalert_b17751bea0598011 = function(arg0, arg1,
|
|
|
2603
2629
|
}
|
|
2604
2630
|
};
|
|
2605
2631
|
|
|
2606
|
-
module.exports.
|
|
2632
|
+
module.exports.__wbg_sendblockfetchstatusevent_0c59faaee0a578f9 = function(arg0) {
|
|
2607
2633
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2608
2634
|
};
|
|
2609
2635
|
|
|
2610
|
-
module.exports.
|
|
2636
|
+
module.exports.__wbg_savewallet_e64c4b4c2bf78fed = function() {
|
|
2611
2637
|
MsgHandler.save_wallet();
|
|
2612
2638
|
};
|
|
2613
2639
|
|
|
2614
|
-
module.exports.
|
|
2640
|
+
module.exports.__wbg_loadwallet_616fb1ff6cc4a14d = function() {
|
|
2615
2641
|
MsgHandler.load_wallet();
|
|
2616
2642
|
};
|
|
2617
2643
|
|
|
2618
|
-
module.exports.
|
|
2644
|
+
module.exports.__wbg_getmyservices_6ca02d475e46def0 = function() {
|
|
2619
2645
|
const ret = MsgHandler.get_my_services();
|
|
2620
2646
|
_assertClass(ret, WasmPeerServiceList);
|
|
2621
2647
|
var ptr1 = ret.__destroy_into_raw();
|
|
2622
2648
|
return ptr1;
|
|
2623
2649
|
};
|
|
2624
2650
|
|
|
2625
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2626
|
-
const val = getObject(arg0);
|
|
2627
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2628
|
-
return ret;
|
|
2629
|
-
};
|
|
2630
|
-
|
|
2631
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2632
|
-
const ret = getObject(arg0) === undefined;
|
|
2633
|
-
return ret;
|
|
2634
|
-
};
|
|
2635
|
-
|
|
2636
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2637
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2638
|
-
return ret;
|
|
2639
|
-
};
|
|
2640
|
-
|
|
2641
2651
|
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2642
2652
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2643
2653
|
return addHeapObject(ret);
|
|
2644
2654
|
};
|
|
2645
2655
|
|
|
2646
|
-
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2647
|
-
const ret = WasmHop.__wrap(arg0);
|
|
2648
|
-
return addHeapObject(ret);
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2652
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2653
|
-
return addHeapObject(ret);
|
|
2654
|
-
};
|
|
2655
|
-
|
|
2656
2656
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2657
2657
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2658
2658
|
return ret;
|
|
@@ -3023,8 +3023,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3023
3023
|
return addHeapObject(ret);
|
|
3024
3024
|
};
|
|
3025
3025
|
|
|
3026
|
-
module.exports.
|
|
3027
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3026
|
+
module.exports.__wbindgen_closure_wrapper1300 = function(arg0, arg1, arg2) {
|
|
3027
|
+
const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_38);
|
|
3028
3028
|
return addHeapObject(ret);
|
|
3029
3029
|
};
|
|
3030
3030
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,74 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function __wbg_wasmblockchain_free(a: number): void;
|
|
5
|
-
export function wasmblockchain_reset(a: number): number;
|
|
6
|
-
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
7
|
-
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
8
|
-
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
9
|
-
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
10
|
-
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
11
|
-
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
12
|
-
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
13
|
-
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
14
|
-
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
15
|
-
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
16
|
-
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
17
|
-
export function wasmblockchain_get_fork_id(a: number): number;
|
|
18
|
-
export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
19
|
-
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
20
|
-
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
21
|
-
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
22
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
23
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
24
|
-
export function wasmpeerservice_new(): number;
|
|
25
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
26
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
27
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
28
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
29
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
30
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
31
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
32
|
-
export function wasmpeerservicelist_new(): number;
|
|
33
|
-
export function __wbg_saitowasm_free(a: number): void;
|
|
34
|
-
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
35
|
-
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
36
|
-
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
37
|
-
export function get_latest_block_hash(): number;
|
|
38
|
-
export function get_block(a: number): number;
|
|
39
|
-
export function process_new_peer(a: number, b: number): number;
|
|
40
|
-
export function process_stun_peer(a: number, b: number): number;
|
|
41
|
-
export function remove_stun_peer(a: number): number;
|
|
42
|
-
export function get_next_peer_index(): number;
|
|
43
|
-
export function process_peer_disconnection(a: number): number;
|
|
44
|
-
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
45
|
-
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
46
|
-
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
47
|
-
export function process_timer_event(a: number): number;
|
|
48
|
-
export function process_stat_interval(a: number): number;
|
|
49
|
-
export function hash(a: number): number;
|
|
50
|
-
export function sign_buffer(a: number, b: number, c: number): void;
|
|
51
|
-
export function verify_signature(a: number, b: number, c: number): number;
|
|
52
|
-
export function get_peers(): number;
|
|
53
|
-
export function get_peer(a: number): number;
|
|
54
|
-
export function get_account_slips(a: number): number;
|
|
55
|
-
export function get_balance_snapshot(a: number): number;
|
|
56
|
-
export function update_from_balance_snapshot(a: number): number;
|
|
57
|
-
export function generate_private_key(): number;
|
|
58
|
-
export function generate_public_key(a: number, b: number): void;
|
|
59
|
-
export function propagate_transaction(a: number): number;
|
|
60
|
-
export function send_api_call(a: number, b: number, c: number): number;
|
|
61
|
-
export function send_api_success(a: number, b: number, c: number): number;
|
|
62
|
-
export function send_api_error(a: number, b: number, c: number): number;
|
|
63
|
-
export function get_wallet(): number;
|
|
64
|
-
export function get_blockchain(): number;
|
|
65
|
-
export function get_mempool_txs(): number;
|
|
66
|
-
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
67
|
-
export function is_valid_public_key(a: number): number;
|
|
68
|
-
export function write_issuance_file(a: number): number;
|
|
69
|
-
export function disable_producing_blocks_by_timer(): number;
|
|
70
|
-
export function produce_block_with_gt(): number;
|
|
71
|
-
export function produce_block_without_gt(): number;
|
|
72
4
|
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
73
5
|
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
74
6
|
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
@@ -76,20 +8,6 @@ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
|
76
8
|
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
77
9
|
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
78
10
|
export function wasmconfiguration_new(): number;
|
|
79
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
80
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
81
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
82
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
83
|
-
export function __wbg_wasmpeer_free(a: number): void;
|
|
84
|
-
export function wasmpeer_get_public_key(a: number): number;
|
|
85
|
-
export function wasmpeer_get_key_list(a: number): number;
|
|
86
|
-
export function wasmpeer_get_peer_index(a: number): number;
|
|
87
|
-
export function wasmpeer_new(a: number): number;
|
|
88
|
-
export function wasmpeer_get_sync_type(a: number): number;
|
|
89
|
-
export function wasmpeer_get_services(a: number): number;
|
|
90
|
-
export function wasmpeer_set_services(a: number, b: number): void;
|
|
91
|
-
export function wasmpeer_has_service(a: number, b: number): number;
|
|
92
|
-
export function wasmpeer_get_status(a: number): number;
|
|
93
11
|
export function __wbg_wasmwallet_free(a: number): void;
|
|
94
12
|
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
95
13
|
export function wasmwallet_save(a: number): number;
|
|
@@ -180,6 +98,24 @@ export function wasmblock_golden_ticket_index(a: number): number;
|
|
|
180
98
|
export function wasmblock_fee_transaction_index(a: number): number;
|
|
181
99
|
export function wasmblock_total_payout_atr(a: number): number;
|
|
182
100
|
export function wasmblock_avg_payout_mining(a: number): number;
|
|
101
|
+
export function __wbg_wasmblockchain_free(a: number): void;
|
|
102
|
+
export function wasmblockchain_reset(a: number): number;
|
|
103
|
+
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
104
|
+
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
105
|
+
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
106
|
+
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
107
|
+
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
108
|
+
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
109
|
+
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
110
|
+
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
111
|
+
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
112
|
+
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
113
|
+
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
114
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
115
|
+
export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
116
|
+
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
117
|
+
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
118
|
+
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
183
119
|
export function __wbg_wasmslip_free(a: number): void;
|
|
184
120
|
export function wasmslip_amount(a: number): number;
|
|
185
121
|
export function wasmslip_set_amount(a: number, b: number): void;
|
|
@@ -220,6 +156,31 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
220
156
|
export function wasmtransaction_serialize(a: number): number;
|
|
221
157
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
222
158
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
159
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
160
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
161
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
162
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
163
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
164
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
165
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
166
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
167
|
+
export function wasmpeer_new(a: number): number;
|
|
168
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
169
|
+
export function wasmpeer_get_services(a: number): number;
|
|
170
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
171
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
172
|
+
export function wasmpeer_get_status(a: number): number;
|
|
173
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
174
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
175
|
+
export function wasmpeerservice_new(): number;
|
|
176
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
177
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
178
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
179
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
180
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
181
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
182
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
183
|
+
export function wasmpeerservicelist_new(): number;
|
|
223
184
|
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
224
185
|
export function wasmconsensusvalues_it_num(a: number): number;
|
|
225
186
|
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
@@ -236,6 +197,45 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
|
|
|
236
197
|
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
237
198
|
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
238
199
|
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
200
|
+
export function __wbg_saitowasm_free(a: number): void;
|
|
201
|
+
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
202
|
+
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
203
|
+
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
204
|
+
export function get_latest_block_hash(): number;
|
|
205
|
+
export function get_block(a: number): number;
|
|
206
|
+
export function process_new_peer(a: number, b: number): number;
|
|
207
|
+
export function process_stun_peer(a: number, b: number): number;
|
|
208
|
+
export function remove_stun_peer(a: number): number;
|
|
209
|
+
export function get_next_peer_index(): number;
|
|
210
|
+
export function process_peer_disconnection(a: number): number;
|
|
211
|
+
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
212
|
+
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
213
|
+
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
214
|
+
export function process_timer_event(a: number): number;
|
|
215
|
+
export function process_stat_interval(a: number): number;
|
|
216
|
+
export function hash(a: number): number;
|
|
217
|
+
export function sign_buffer(a: number, b: number, c: number): void;
|
|
218
|
+
export function verify_signature(a: number, b: number, c: number): number;
|
|
219
|
+
export function get_peers(): number;
|
|
220
|
+
export function get_peer(a: number): number;
|
|
221
|
+
export function get_account_slips(a: number): number;
|
|
222
|
+
export function get_balance_snapshot(a: number): number;
|
|
223
|
+
export function update_from_balance_snapshot(a: number): number;
|
|
224
|
+
export function generate_private_key(): number;
|
|
225
|
+
export function generate_public_key(a: number, b: number): void;
|
|
226
|
+
export function propagate_transaction(a: number): number;
|
|
227
|
+
export function send_api_call(a: number, b: number, c: number): number;
|
|
228
|
+
export function send_api_success(a: number, b: number, c: number): number;
|
|
229
|
+
export function send_api_error(a: number, b: number, c: number): number;
|
|
230
|
+
export function get_wallet(): number;
|
|
231
|
+
export function get_blockchain(): number;
|
|
232
|
+
export function get_mempool_txs(): number;
|
|
233
|
+
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
234
|
+
export function is_valid_public_key(a: number): number;
|
|
235
|
+
export function write_issuance_file(a: number): number;
|
|
236
|
+
export function disable_producing_blocks_by_timer(): number;
|
|
237
|
+
export function produce_block_with_gt(): number;
|
|
238
|
+
export function produce_block_without_gt(): number;
|
|
239
239
|
export function rustsecp256k1_v0_10_0_context_create(a: number): number;
|
|
240
240
|
export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
|
|
241
241
|
export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
|
|
@@ -243,8 +243,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
|
|
|
243
243
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
244
244
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
245
245
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
246
|
-
export function
|
|
246
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc45362b09104e54e(a: number, b: number, c: number): void;
|
|
247
|
+
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
247
248
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
248
249
|
export function __wbindgen_exn_store(a: number): void;
|
|
249
|
-
export function
|
|
250
|
-
export function wasm_bindgen__convert__closures__invoke2_mut__h336d190f5ae19b12(a: number, b: number, c: number, d: number): void;
|
|
250
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(a: number, b: number, c: number, d: number): void;
|