saito-wasm 0.2.42 → 0.2.44
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 +99 -99
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +89 -89
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +89 -89
- package/pkg/web/index.js +93 -93
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +89 -89
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-8c34863971fc4dee → saito-wasm-a2b0ac58ed89dd19}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-8c34863971fc4dee → saito-wasm-a2b0ac58ed89dd19}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-a2b0ac58ed89dd19/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,6 +24,15 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
function addHeapObject(obj) {
|
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
|
+
const idx = heap_next;
|
|
30
|
+
heap_next = heap[idx];
|
|
31
|
+
|
|
32
|
+
heap[idx] = obj;
|
|
33
|
+
return idx;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
37
|
|
|
29
38
|
cachedTextDecoder.decode();
|
|
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
51
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
52
|
}
|
|
44
53
|
|
|
45
|
-
function addHeapObject(obj) {
|
|
46
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
47
|
-
const idx = heap_next;
|
|
48
|
-
heap_next = heap[idx];
|
|
49
|
-
|
|
50
|
-
heap[idx] = obj;
|
|
51
|
-
return idx;
|
|
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__h9a522aab16cd3a22(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_402(arg0, arg1, arg2, arg3) {
|
|
631
|
-
wasm.
|
|
631
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -2338,8 +2338,8 @@ class WasmWalletSlip {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2340
2340
|
|
|
2341
|
-
module.exports.
|
|
2342
|
-
const ret =
|
|
2341
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2342
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2343
2343
|
return addHeapObject(ret);
|
|
2344
2344
|
};
|
|
2345
2345
|
|
|
@@ -2347,24 +2347,28 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2347
2347
|
takeObject(arg0);
|
|
2348
2348
|
};
|
|
2349
2349
|
|
|
2350
|
-
module.exports.
|
|
2351
|
-
const ret =
|
|
2350
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2351
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2352
2352
|
return addHeapObject(ret);
|
|
2353
2353
|
};
|
|
2354
2354
|
|
|
2355
|
-
module.exports.
|
|
2356
|
-
const ret =
|
|
2355
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2356
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
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
|
|
2367
|
-
|
|
2365
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2366
|
+
const obj = getObject(arg1);
|
|
2367
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2368
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2369
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2370
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2371
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2368
2372
|
};
|
|
2369
2373
|
|
|
2370
2374
|
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
@@ -2372,13 +2376,13 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2372
2376
|
return addHeapObject(ret);
|
|
2373
2377
|
};
|
|
2374
2378
|
|
|
2375
|
-
module.exports.
|
|
2376
|
-
const ret =
|
|
2379
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2380
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2377
2381
|
return addHeapObject(ret);
|
|
2378
2382
|
};
|
|
2379
2383
|
|
|
2380
|
-
module.exports.
|
|
2381
|
-
const ret =
|
|
2384
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2385
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2382
2386
|
return addHeapObject(ret);
|
|
2383
2387
|
};
|
|
2384
2388
|
|
|
@@ -2387,18 +2391,14 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
|
2387
2391
|
return addHeapObject(ret);
|
|
2388
2392
|
};
|
|
2389
2393
|
|
|
2390
|
-
module.exports.
|
|
2391
|
-
const ret =
|
|
2394
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2395
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2392
2396
|
return addHeapObject(ret);
|
|
2393
2397
|
};
|
|
2394
2398
|
|
|
2395
|
-
module.exports.
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2398
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2399
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2400
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2401
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2399
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2400
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2401
|
+
return addHeapObject(ret);
|
|
2402
2402
|
};
|
|
2403
2403
|
|
|
2404
2404
|
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
@@ -2406,15 +2406,36 @@ module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
|
2406
2406
|
return addHeapObject(ret);
|
|
2407
2407
|
};
|
|
2408
2408
|
|
|
2409
|
-
module.exports.
|
|
2409
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2410
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2411
|
+
return addHeapObject(ret);
|
|
2412
|
+
};
|
|
2413
|
+
|
|
2414
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2415
|
+
const val = getObject(arg0);
|
|
2416
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2417
|
+
return ret;
|
|
2418
|
+
};
|
|
2419
|
+
|
|
2420
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2421
|
+
const ret = getObject(arg0) === undefined;
|
|
2422
|
+
return ret;
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2425
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2426
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2427
|
+
return ret;
|
|
2428
|
+
};
|
|
2429
|
+
|
|
2430
|
+
module.exports.__wbg_sendmessage_f290dcf65ab48329 = function(arg0, arg1) {
|
|
2410
2431
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2411
2432
|
};
|
|
2412
2433
|
|
|
2413
|
-
module.exports.
|
|
2434
|
+
module.exports.__wbg_sendmessagetoall_cce075e52b917d07 = function(arg0, arg1) {
|
|
2414
2435
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2415
2436
|
};
|
|
2416
2437
|
|
|
2417
|
-
module.exports.
|
|
2438
|
+
module.exports.__wbg_connecttopeer_cedf0bb35c2783d0 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2418
2439
|
let deferred0_0;
|
|
2419
2440
|
let deferred0_1;
|
|
2420
2441
|
try {
|
|
@@ -2427,12 +2448,12 @@ module.exports.__wbg_connecttopeer_b41f72b7a76e7256 = function() { return handle
|
|
|
2427
2448
|
}
|
|
2428
2449
|
}, arguments) };
|
|
2429
2450
|
|
|
2430
|
-
module.exports.
|
|
2451
|
+
module.exports.__wbg_disconnectfrompeer_6ca3e436f4b0d1b1 = function() { return handleError(function (arg0) {
|
|
2431
2452
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2432
2453
|
return addHeapObject(ret);
|
|
2433
2454
|
}, arguments) };
|
|
2434
2455
|
|
|
2435
|
-
module.exports.
|
|
2456
|
+
module.exports.__wbg_fetchblockfrompeer_df6a997a11934d1a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2436
2457
|
let deferred0_0;
|
|
2437
2458
|
let deferred0_1;
|
|
2438
2459
|
try {
|
|
@@ -2445,7 +2466,7 @@ module.exports.__wbg_fetchblockfrompeer_4bcb368d01a23747 = function() { return h
|
|
|
2445
2466
|
}
|
|
2446
2467
|
}, arguments) };
|
|
2447
2468
|
|
|
2448
|
-
module.exports.
|
|
2469
|
+
module.exports.__wbg_writevalue_c6cbef38b3c0b8c2 = function(arg0, arg1, arg2) {
|
|
2449
2470
|
let deferred0_0;
|
|
2450
2471
|
let deferred0_1;
|
|
2451
2472
|
try {
|
|
@@ -2457,7 +2478,7 @@ module.exports.__wbg_writevalue_bc8c704a67ecc0d4 = function(arg0, arg1, arg2) {
|
|
|
2457
2478
|
}
|
|
2458
2479
|
};
|
|
2459
2480
|
|
|
2460
|
-
module.exports.
|
|
2481
|
+
module.exports.__wbg_appendvalue_f9513e743686fa19 = function(arg0, arg1, arg2) {
|
|
2461
2482
|
let deferred0_0;
|
|
2462
2483
|
let deferred0_1;
|
|
2463
2484
|
try {
|
|
@@ -2469,7 +2490,7 @@ module.exports.__wbg_appendvalue_d7320a00d84fc52d = function(arg0, arg1, arg2) {
|
|
|
2469
2490
|
}
|
|
2470
2491
|
};
|
|
2471
2492
|
|
|
2472
|
-
module.exports.
|
|
2493
|
+
module.exports.__wbg_flushdata_217ab4b2062bf2c7 = function(arg0, arg1) {
|
|
2473
2494
|
let deferred0_0;
|
|
2474
2495
|
let deferred0_1;
|
|
2475
2496
|
try {
|
|
@@ -2481,7 +2502,7 @@ module.exports.__wbg_flushdata_e87e679eecada4b8 = function(arg0, arg1) {
|
|
|
2481
2502
|
}
|
|
2482
2503
|
};
|
|
2483
2504
|
|
|
2484
|
-
module.exports.
|
|
2505
|
+
module.exports.__wbg_readvalue_58831cf01ab6555e = function() { return handleError(function (arg0, arg1) {
|
|
2485
2506
|
let deferred0_0;
|
|
2486
2507
|
let deferred0_1;
|
|
2487
2508
|
try {
|
|
@@ -2494,12 +2515,12 @@ module.exports.__wbg_readvalue_c1dcf73c9b268b01 = function() { return handleErro
|
|
|
2494
2515
|
}
|
|
2495
2516
|
}, arguments) };
|
|
2496
2517
|
|
|
2497
|
-
module.exports.
|
|
2518
|
+
module.exports.__wbg_loadblockfilelist_0dbfdcb9f7757021 = function() { return handleError(function () {
|
|
2498
2519
|
const ret = MsgHandler.load_block_file_list();
|
|
2499
2520
|
return addHeapObject(ret);
|
|
2500
2521
|
}, arguments) };
|
|
2501
2522
|
|
|
2502
|
-
module.exports.
|
|
2523
|
+
module.exports.__wbg_isexistingfile_26961d0ea4357e4f = function() { return handleError(function (arg0, arg1) {
|
|
2503
2524
|
let deferred0_0;
|
|
2504
2525
|
let deferred0_1;
|
|
2505
2526
|
try {
|
|
@@ -2512,7 +2533,7 @@ module.exports.__wbg_isexistingfile_b7e144a2f680959f = function() { return handl
|
|
|
2512
2533
|
}
|
|
2513
2534
|
}, arguments) };
|
|
2514
2535
|
|
|
2515
|
-
module.exports.
|
|
2536
|
+
module.exports.__wbg_removevalue_b000ba34ce831a37 = function() { return handleError(function (arg0, arg1) {
|
|
2516
2537
|
let deferred0_0;
|
|
2517
2538
|
let deferred0_1;
|
|
2518
2539
|
try {
|
|
@@ -2525,7 +2546,7 @@ module.exports.__wbg_removevalue_1e64a6b4bd16f5df = function() { return handleEr
|
|
|
2525
2546
|
}
|
|
2526
2547
|
}, arguments) };
|
|
2527
2548
|
|
|
2528
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_ensureblockdirectoryexists_99a86edab8bf6a99 = function() { return handleError(function (arg0, arg1) {
|
|
2529
2550
|
let deferred0_0;
|
|
2530
2551
|
let deferred0_1;
|
|
2531
2552
|
try {
|
|
@@ -2537,19 +2558,19 @@ module.exports.__wbg_ensureblockdirectoryexists_a787aa1e71d09f5d = function() {
|
|
|
2537
2558
|
}
|
|
2538
2559
|
}, arguments) };
|
|
2539
2560
|
|
|
2540
|
-
module.exports.
|
|
2561
|
+
module.exports.__wbg_processapicall_09b9372222883c21 = function(arg0, arg1, arg2) {
|
|
2541
2562
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2542
2563
|
};
|
|
2543
2564
|
|
|
2544
|
-
module.exports.
|
|
2565
|
+
module.exports.__wbg_processapisuccess_9c5e4ae9037495bb = function(arg0, arg1, arg2) {
|
|
2545
2566
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2546
2567
|
};
|
|
2547
2568
|
|
|
2548
|
-
module.exports.
|
|
2569
|
+
module.exports.__wbg_processapierror_024d1df913f8c03f = function(arg0, arg1, arg2) {
|
|
2549
2570
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2550
2571
|
};
|
|
2551
2572
|
|
|
2552
|
-
module.exports.
|
|
2573
|
+
module.exports.__wbg_sendinterfaceevent_e5c1c96af80307c6 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2553
2574
|
let deferred0_0;
|
|
2554
2575
|
let deferred0_1;
|
|
2555
2576
|
let deferred1_0;
|
|
@@ -2566,7 +2587,7 @@ module.exports.__wbg_sendinterfaceevent_052f26b47ec1da51 = function(arg0, arg1,
|
|
|
2566
2587
|
}
|
|
2567
2588
|
};
|
|
2568
2589
|
|
|
2569
|
-
module.exports.
|
|
2590
|
+
module.exports.__wbg_sendblocksuccess_dbeec697ead737cc = function(arg0, arg1, arg2) {
|
|
2570
2591
|
let deferred0_0;
|
|
2571
2592
|
let deferred0_1;
|
|
2572
2593
|
try {
|
|
@@ -2578,11 +2599,11 @@ module.exports.__wbg_sendblocksuccess_2b33d685a5bb3281 = function(arg0, arg1, ar
|
|
|
2578
2599
|
}
|
|
2579
2600
|
};
|
|
2580
2601
|
|
|
2581
|
-
module.exports.
|
|
2602
|
+
module.exports.__wbg_sendwalletupdate_7816e9f2b93a26d7 = function() {
|
|
2582
2603
|
MsgHandler.send_wallet_update();
|
|
2583
2604
|
};
|
|
2584
2605
|
|
|
2585
|
-
module.exports.
|
|
2606
|
+
module.exports.__wbg_sendnewversionalert_20153bf911d5374b = function(arg0, arg1, arg2) {
|
|
2586
2607
|
let deferred0_0;
|
|
2587
2608
|
let deferred0_1;
|
|
2588
2609
|
try {
|
|
@@ -2594,46 +2615,25 @@ module.exports.__wbg_sendnewversionalert_b76b2127abfa69ef = function(arg0, arg1,
|
|
|
2594
2615
|
}
|
|
2595
2616
|
};
|
|
2596
2617
|
|
|
2597
|
-
module.exports.
|
|
2618
|
+
module.exports.__wbg_sendblockfetchstatusevent_d891a47912a620c6 = function(arg0) {
|
|
2598
2619
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2599
2620
|
};
|
|
2600
2621
|
|
|
2601
|
-
module.exports.
|
|
2622
|
+
module.exports.__wbg_savewallet_5ecec1d72f7c0e97 = function() {
|
|
2602
2623
|
MsgHandler.save_wallet();
|
|
2603
2624
|
};
|
|
2604
2625
|
|
|
2605
|
-
module.exports.
|
|
2626
|
+
module.exports.__wbg_loadwallet_ffa52ef4ea4e8a14 = function() {
|
|
2606
2627
|
MsgHandler.load_wallet();
|
|
2607
2628
|
};
|
|
2608
2629
|
|
|
2609
|
-
module.exports.
|
|
2630
|
+
module.exports.__wbg_getmyservices_8d5c13e99b8faa44 = function() {
|
|
2610
2631
|
const ret = MsgHandler.get_my_services();
|
|
2611
2632
|
_assertClass(ret, WasmPeerServiceList);
|
|
2612
2633
|
var ptr1 = ret.__destroy_into_raw();
|
|
2613
2634
|
return ptr1;
|
|
2614
2635
|
};
|
|
2615
2636
|
|
|
2616
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2617
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
2618
|
-
return addHeapObject(ret);
|
|
2619
|
-
};
|
|
2620
|
-
|
|
2621
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2622
|
-
const val = getObject(arg0);
|
|
2623
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2624
|
-
return ret;
|
|
2625
|
-
};
|
|
2626
|
-
|
|
2627
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2628
|
-
const ret = getObject(arg0) === undefined;
|
|
2629
|
-
return ret;
|
|
2630
|
-
};
|
|
2631
|
-
|
|
2632
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2633
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2634
|
-
return ret;
|
|
2635
|
-
};
|
|
2636
|
-
|
|
2637
2637
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2638
2638
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2639
2639
|
return addHeapObject(ret);
|
|
@@ -2667,16 +2667,6 @@ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
|
2667
2667
|
return addHeapObject(ret);
|
|
2668
2668
|
};
|
|
2669
2669
|
|
|
2670
|
-
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2671
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
2672
|
-
return addHeapObject(ret);
|
|
2673
|
-
};
|
|
2674
|
-
|
|
2675
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
2676
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
2677
|
-
return ret;
|
|
2678
|
-
};
|
|
2679
|
-
|
|
2680
2670
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
2681
2671
|
const obj = takeObject(arg0).original;
|
|
2682
2672
|
if (obj.cnt-- == 1) {
|
|
@@ -2687,6 +2677,16 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2687
2677
|
return ret;
|
|
2688
2678
|
};
|
|
2689
2679
|
|
|
2680
|
+
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2681
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
2682
|
+
return addHeapObject(ret);
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2685
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
2686
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
2687
|
+
return ret;
|
|
2688
|
+
};
|
|
2689
|
+
|
|
2690
2690
|
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2691
2691
|
queueMicrotask(getObject(arg0));
|
|
2692
2692
|
};
|
|
@@ -3009,7 +3009,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3009
3009
|
return addHeapObject(ret);
|
|
3010
3010
|
};
|
|
3011
3011
|
|
|
3012
|
-
module.exports.
|
|
3012
|
+
module.exports.__wbindgen_closure_wrapper1343 = function(arg0, arg1, arg2) {
|
|
3013
3013
|
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
3014
3014
|
return addHeapObject(ret);
|
|
3015
3015
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
5
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
6
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
7
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
8
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
9
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
10
|
+
export function wasmconfiguration_new(): number;
|
|
11
|
+
export function __wbg_wasmhop_free(a: number): void;
|
|
12
|
+
export function wasmhop_from(a: number, b: number): void;
|
|
13
|
+
export function wasmhop_sig(a: number, b: number): void;
|
|
14
|
+
export function wasmhop_to(a: number, b: number): void;
|
|
4
15
|
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
5
16
|
export function wasmconsensusvalues_it_num(a: number): number;
|
|
6
17
|
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
@@ -17,6 +28,82 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
|
|
|
17
28
|
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
18
29
|
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
19
30
|
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
31
|
+
export function __wbg_wasmblockchain_free(a: number): void;
|
|
32
|
+
export function wasmblockchain_reset(a: number): number;
|
|
33
|
+
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
34
|
+
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
35
|
+
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
36
|
+
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
37
|
+
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
38
|
+
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
39
|
+
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
40
|
+
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
41
|
+
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
42
|
+
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
43
|
+
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
44
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
45
|
+
export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
46
|
+
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
47
|
+
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
48
|
+
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
49
|
+
export function __wbg_wasmpeer_free(a: number): void;
|
|
50
|
+
export function wasmpeer_get_public_key(a: number): number;
|
|
51
|
+
export function wasmpeer_get_key_list(a: number): number;
|
|
52
|
+
export function wasmpeer_get_peer_index(a: number): number;
|
|
53
|
+
export function wasmpeer_new(a: number): number;
|
|
54
|
+
export function wasmpeer_get_sync_type(a: number): number;
|
|
55
|
+
export function wasmpeer_get_services(a: number): number;
|
|
56
|
+
export function wasmpeer_set_services(a: number, b: number): void;
|
|
57
|
+
export function wasmpeer_has_service(a: number, b: number): number;
|
|
58
|
+
export function __wbg_wasmslip_free(a: number): void;
|
|
59
|
+
export function wasmslip_amount(a: number): number;
|
|
60
|
+
export function wasmslip_set_amount(a: number, b: number): void;
|
|
61
|
+
export function wasmslip_slip_type(a: number): number;
|
|
62
|
+
export function wasmslip_set_slip_type(a: number, b: number): void;
|
|
63
|
+
export function wasmslip_public_key(a: number): number;
|
|
64
|
+
export function wasmslip_set_public_key(a: number, b: number): void;
|
|
65
|
+
export function wasmslip_slip_index(a: number): number;
|
|
66
|
+
export function wasmslip_set_slip_index(a: number, b: number): void;
|
|
67
|
+
export function wasmslip_block_id(a: number): number;
|
|
68
|
+
export function wasmslip_set_block_id(a: number, b: number): void;
|
|
69
|
+
export function wasmslip_tx_ordinal(a: number): number;
|
|
70
|
+
export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
71
|
+
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
72
|
+
export function wasmslip_utxo_key(a: number): number;
|
|
73
|
+
export function wasmslip_new(): number;
|
|
74
|
+
export function __wbg_wasmwallet_free(a: number): void;
|
|
75
|
+
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
76
|
+
export function wasmwallet_save(a: number): number;
|
|
77
|
+
export function wasmwallet_reset(a: number, b: number): number;
|
|
78
|
+
export function wasmwallet_load(a: number): number;
|
|
79
|
+
export function wasmwallet_get_public_key(a: number): number;
|
|
80
|
+
export function wasmwallet_set_public_key(a: number, b: number): number;
|
|
81
|
+
export function wasmwallet_get_private_key(a: number): number;
|
|
82
|
+
export function wasmwallet_set_private_key(a: number, b: number): number;
|
|
83
|
+
export function wasmwallet_get_balance(a: number): number;
|
|
84
|
+
export function wasmwallet_get_pending_txs(a: number): number;
|
|
85
|
+
export function wasmwallet_get_slips(a: number): number;
|
|
86
|
+
export function wasmwallet_add_slip(a: number, b: number): number;
|
|
87
|
+
export function wasmwallet_add_to_pending(a: number, b: number): number;
|
|
88
|
+
export function wasmwallet_get_key_list(a: number): number;
|
|
89
|
+
export function wasmwallet_set_key_list(a: number, b: number): number;
|
|
90
|
+
export function wasmwalletslip_get_utxokey(a: number): number;
|
|
91
|
+
export function wasmwalletslip_set_utxokey(a: number, b: number): void;
|
|
92
|
+
export function wasmwalletslip_get_slip_index(a: number): number;
|
|
93
|
+
export function wasmwalletslip_set_slip_index(a: number, b: number): void;
|
|
94
|
+
export function wasmwalletslip_is_spent(a: number): number;
|
|
95
|
+
export function wasmwalletslip_set_spent(a: number, b: number): void;
|
|
96
|
+
export function wasmwalletslip_is_lc(a: number): number;
|
|
97
|
+
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
98
|
+
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
99
|
+
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
100
|
+
export function wasmwalletslip_new_(): number;
|
|
101
|
+
export function wasmwalletslip_get_amount(a: number): number;
|
|
102
|
+
export function wasmwalletslip_get_block_id(a: number): number;
|
|
103
|
+
export function wasmwalletslip_get_tx_ordinal(a: number): number;
|
|
104
|
+
export function wasmwalletslip_set_amount(a: number, b: number): void;
|
|
105
|
+
export function wasmwalletslip_set_block_id(a: number, b: number): void;
|
|
106
|
+
export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
|
|
20
107
|
export function __wbg_wasmblock_free(a: number): void;
|
|
21
108
|
export function wasmblock_new(): number;
|
|
22
109
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -97,93 +184,6 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
97
184
|
export function wasmtransaction_serialize(a: number): number;
|
|
98
185
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
99
186
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
100
|
-
export function __wbg_wasmblockchain_free(a: number): void;
|
|
101
|
-
export function wasmblockchain_reset(a: number): number;
|
|
102
|
-
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
103
|
-
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
104
|
-
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
105
|
-
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
106
|
-
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
107
|
-
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
108
|
-
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
109
|
-
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
110
|
-
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
111
|
-
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
112
|
-
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
113
|
-
export function wasmblockchain_get_fork_id(a: number): number;
|
|
114
|
-
export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
115
|
-
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
116
|
-
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
117
|
-
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
118
|
-
export function __wbg_wasmslip_free(a: number): void;
|
|
119
|
-
export function wasmslip_amount(a: number): number;
|
|
120
|
-
export function wasmslip_set_amount(a: number, b: number): void;
|
|
121
|
-
export function wasmslip_slip_type(a: number): number;
|
|
122
|
-
export function wasmslip_set_slip_type(a: number, b: number): void;
|
|
123
|
-
export function wasmslip_public_key(a: number): number;
|
|
124
|
-
export function wasmslip_set_public_key(a: number, b: number): void;
|
|
125
|
-
export function wasmslip_slip_index(a: number): number;
|
|
126
|
-
export function wasmslip_set_slip_index(a: number, b: number): void;
|
|
127
|
-
export function wasmslip_block_id(a: number): number;
|
|
128
|
-
export function wasmslip_set_block_id(a: number, b: number): void;
|
|
129
|
-
export function wasmslip_tx_ordinal(a: number): number;
|
|
130
|
-
export function wasmslip_set_tx_ordinal(a: number, b: number): void;
|
|
131
|
-
export function wasmslip_set_utxo_key(a: number, b: number): void;
|
|
132
|
-
export function wasmslip_utxo_key(a: number): number;
|
|
133
|
-
export function wasmslip_new(): number;
|
|
134
|
-
export function __wbg_wasmwallet_free(a: number): void;
|
|
135
|
-
export function __wbg_wasmwalletslip_free(a: number): void;
|
|
136
|
-
export function wasmwallet_save(a: number): number;
|
|
137
|
-
export function wasmwallet_reset(a: number, b: number): number;
|
|
138
|
-
export function wasmwallet_load(a: number): number;
|
|
139
|
-
export function wasmwallet_get_public_key(a: number): number;
|
|
140
|
-
export function wasmwallet_set_public_key(a: number, b: number): number;
|
|
141
|
-
export function wasmwallet_get_private_key(a: number): number;
|
|
142
|
-
export function wasmwallet_set_private_key(a: number, b: number): number;
|
|
143
|
-
export function wasmwallet_get_balance(a: number): number;
|
|
144
|
-
export function wasmwallet_get_pending_txs(a: number): number;
|
|
145
|
-
export function wasmwallet_get_slips(a: number): number;
|
|
146
|
-
export function wasmwallet_add_slip(a: number, b: number): number;
|
|
147
|
-
export function wasmwallet_add_to_pending(a: number, b: number): number;
|
|
148
|
-
export function wasmwallet_get_key_list(a: number): number;
|
|
149
|
-
export function wasmwallet_set_key_list(a: number, b: number): number;
|
|
150
|
-
export function wasmwalletslip_get_utxokey(a: number): number;
|
|
151
|
-
export function wasmwalletslip_set_utxokey(a: number, b: number): void;
|
|
152
|
-
export function wasmwalletslip_get_slip_index(a: number): number;
|
|
153
|
-
export function wasmwalletslip_set_slip_index(a: number, b: number): void;
|
|
154
|
-
export function wasmwalletslip_is_spent(a: number): number;
|
|
155
|
-
export function wasmwalletslip_set_spent(a: number, b: number): void;
|
|
156
|
-
export function wasmwalletslip_is_lc(a: number): number;
|
|
157
|
-
export function wasmwalletslip_set_lc(a: number, b: number): void;
|
|
158
|
-
export function wasmwalletslip_get_slip_type(a: number): number;
|
|
159
|
-
export function wasmwalletslip_set_slip_type(a: number, b: number): void;
|
|
160
|
-
export function wasmwalletslip_new_(): number;
|
|
161
|
-
export function wasmwalletslip_get_amount(a: number): number;
|
|
162
|
-
export function wasmwalletslip_get_block_id(a: number): number;
|
|
163
|
-
export function wasmwalletslip_get_tx_ordinal(a: number): number;
|
|
164
|
-
export function wasmwalletslip_set_amount(a: number, b: number): void;
|
|
165
|
-
export function wasmwalletslip_set_block_id(a: number, b: number): void;
|
|
166
|
-
export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
|
|
167
|
-
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
168
|
-
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
169
|
-
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
170
|
-
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
171
|
-
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
172
|
-
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
173
|
-
export function wasmconfiguration_new(): number;
|
|
174
|
-
export function __wbg_wasmhop_free(a: number): void;
|
|
175
|
-
export function wasmhop_from(a: number, b: number): void;
|
|
176
|
-
export function wasmhop_sig(a: number, b: number): void;
|
|
177
|
-
export function wasmhop_to(a: number, b: number): void;
|
|
178
|
-
export function __wbg_wasmpeer_free(a: number): void;
|
|
179
|
-
export function wasmpeer_get_public_key(a: number): number;
|
|
180
|
-
export function wasmpeer_get_key_list(a: number): number;
|
|
181
|
-
export function wasmpeer_get_peer_index(a: number): number;
|
|
182
|
-
export function wasmpeer_new(a: number): number;
|
|
183
|
-
export function wasmpeer_get_sync_type(a: number): number;
|
|
184
|
-
export function wasmpeer_get_services(a: number): number;
|
|
185
|
-
export function wasmpeer_set_services(a: number, b: number): void;
|
|
186
|
-
export function wasmpeer_has_service(a: number, b: number): number;
|
|
187
187
|
export function __wbg_saitowasm_free(a: number): void;
|
|
188
188
|
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
189
189
|
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
@@ -241,8 +241,8 @@ export function rustsecp256k1_v0_10_0_default_error_callback_fn(a: number, b: nu
|
|
|
241
241
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
242
242
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
243
243
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
244
|
-
export function
|
|
244
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a522aab16cd3a22(a: number, b: number, c: number): void;
|
|
245
245
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
246
246
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
247
247
|
export function __wbindgen_exn_store(a: number): void;
|
|
248
|
-
export function
|
|
248
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h11dba571cf0b0a8a(a: number, b: number, c: number, d: number): void;
|
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.44",
|
|
4
4
|
"files": [
|
|
5
5
|
"index_bg.wasm",
|
|
6
6
|
"index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"types": "index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"cross-env": "^7.0.3",
|
|
13
|
+
"node-fetch": "^3.3.0"
|
|
14
14
|
}
|
|
15
15
|
}
|