saito-wasm 0.2.48 → 0.2.50
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 +68 -69
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +91 -91
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +91 -91
- package/pkg/web/index.js +66 -67
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +91 -91
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-73edfc309ff7b7b2 → saito-wasm-fd8f204f2bd94136}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-73edfc309ff7b7b2 → saito-wasm-fd8f204f2bd94136}/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-fd8f204f2bd94136/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,15 +24,6 @@ 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
|
-
|
|
36
27
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
28
|
|
|
38
29
|
cachedTextDecoder.decode();
|
|
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
51
42
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
52
43
|
}
|
|
53
44
|
|
|
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');
|
|
@@ -234,14 +234,6 @@ function _assertClass(instance, klass) {
|
|
|
234
234
|
}
|
|
235
235
|
return instance.ptr;
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
function handleError(f, args) {
|
|
239
|
-
try {
|
|
240
|
-
return f.apply(this, args);
|
|
241
|
-
} catch (e) {
|
|
242
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
237
|
/**
|
|
246
238
|
* @param {string} json
|
|
247
239
|
* @param {string} private_key
|
|
@@ -627,6 +619,13 @@ module.exports.produce_block_without_gt = function() {
|
|
|
627
619
|
return takeObject(ret);
|
|
628
620
|
};
|
|
629
621
|
|
|
622
|
+
function handleError(f, args) {
|
|
623
|
+
try {
|
|
624
|
+
return f.apply(this, args);
|
|
625
|
+
} catch (e) {
|
|
626
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
627
|
+
}
|
|
628
|
+
}
|
|
630
629
|
function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
|
|
631
630
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
632
631
|
}
|
|
@@ -2342,28 +2341,28 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2342
2341
|
takeObject(arg0);
|
|
2343
2342
|
};
|
|
2344
2343
|
|
|
2345
|
-
module.exports.
|
|
2346
|
-
const ret =
|
|
2344
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2345
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2347
2346
|
return addHeapObject(ret);
|
|
2348
2347
|
};
|
|
2349
2348
|
|
|
2350
|
-
module.exports.
|
|
2351
|
-
const ret =
|
|
2349
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2350
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2352
2351
|
return addHeapObject(ret);
|
|
2353
2352
|
};
|
|
2354
2353
|
|
|
2355
|
-
module.exports.
|
|
2356
|
-
const ret =
|
|
2354
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2355
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2357
2356
|
return addHeapObject(ret);
|
|
2358
2357
|
};
|
|
2359
2358
|
|
|
2360
|
-
module.exports.
|
|
2361
|
-
const ret =
|
|
2359
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2360
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2362
2361
|
return addHeapObject(ret);
|
|
2363
2362
|
};
|
|
2364
2363
|
|
|
2365
|
-
module.exports.
|
|
2366
|
-
const ret =
|
|
2364
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2365
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2367
2366
|
return addHeapObject(ret);
|
|
2368
2367
|
};
|
|
2369
2368
|
|
|
@@ -2372,13 +2371,8 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2372
2371
|
return addHeapObject(ret);
|
|
2373
2372
|
};
|
|
2374
2373
|
|
|
2375
|
-
module.exports.
|
|
2376
|
-
const ret =
|
|
2377
|
-
return addHeapObject(ret);
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2381
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2374
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2375
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2382
2376
|
return addHeapObject(ret);
|
|
2383
2377
|
};
|
|
2384
2378
|
|
|
@@ -2396,13 +2390,13 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2396
2390
|
return addHeapObject(ret);
|
|
2397
2391
|
};
|
|
2398
2392
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2393
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2394
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2401
2395
|
return addHeapObject(ret);
|
|
2402
2396
|
};
|
|
2403
2397
|
|
|
2404
|
-
module.exports.
|
|
2405
|
-
const ret =
|
|
2398
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2399
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2406
2400
|
return addHeapObject(ret);
|
|
2407
2401
|
};
|
|
2408
2402
|
|
|
@@ -2427,15 +2421,25 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2427
2421
|
return ret;
|
|
2428
2422
|
};
|
|
2429
2423
|
|
|
2430
|
-
module.exports.
|
|
2424
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2425
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2426
|
+
return addHeapObject(ret);
|
|
2427
|
+
};
|
|
2428
|
+
|
|
2429
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2430
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2431
|
+
return addHeapObject(ret);
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
module.exports.__wbg_sendmessage_89d11ba8aeffadff = function(arg0, arg1) {
|
|
2431
2435
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2432
2436
|
};
|
|
2433
2437
|
|
|
2434
|
-
module.exports.
|
|
2438
|
+
module.exports.__wbg_sendmessagetoall_016af2ac854f835f = function(arg0, arg1) {
|
|
2435
2439
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2436
2440
|
};
|
|
2437
2441
|
|
|
2438
|
-
module.exports.
|
|
2442
|
+
module.exports.__wbg_connecttopeer_3d785fa8e8d13e30 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2439
2443
|
let deferred0_0;
|
|
2440
2444
|
let deferred0_1;
|
|
2441
2445
|
try {
|
|
@@ -2448,12 +2452,12 @@ module.exports.__wbg_connecttopeer_f6a73247f658b3ce = function() { return handle
|
|
|
2448
2452
|
}
|
|
2449
2453
|
}, arguments) };
|
|
2450
2454
|
|
|
2451
|
-
module.exports.
|
|
2455
|
+
module.exports.__wbg_disconnectfrompeer_2d1ae23d189272f8 = function() { return handleError(function (arg0) {
|
|
2452
2456
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2453
2457
|
return addHeapObject(ret);
|
|
2454
2458
|
}, arguments) };
|
|
2455
2459
|
|
|
2456
|
-
module.exports.
|
|
2460
|
+
module.exports.__wbg_fetchblockfrompeer_e90ceaf6c19e8ce4 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2457
2461
|
let deferred0_0;
|
|
2458
2462
|
let deferred0_1;
|
|
2459
2463
|
try {
|
|
@@ -2466,7 +2470,7 @@ module.exports.__wbg_fetchblockfrompeer_260c9659dbf73ef8 = function() { return h
|
|
|
2466
2470
|
}
|
|
2467
2471
|
}, arguments) };
|
|
2468
2472
|
|
|
2469
|
-
module.exports.
|
|
2473
|
+
module.exports.__wbg_writevalue_c46845d17af455a2 = function(arg0, arg1, arg2) {
|
|
2470
2474
|
let deferred0_0;
|
|
2471
2475
|
let deferred0_1;
|
|
2472
2476
|
try {
|
|
@@ -2478,7 +2482,7 @@ module.exports.__wbg_writevalue_54639ca0788a7d8b = function(arg0, arg1, arg2) {
|
|
|
2478
2482
|
}
|
|
2479
2483
|
};
|
|
2480
2484
|
|
|
2481
|
-
module.exports.
|
|
2485
|
+
module.exports.__wbg_appendvalue_17c9326e5b825533 = function(arg0, arg1, arg2) {
|
|
2482
2486
|
let deferred0_0;
|
|
2483
2487
|
let deferred0_1;
|
|
2484
2488
|
try {
|
|
@@ -2490,7 +2494,7 @@ module.exports.__wbg_appendvalue_ab02940724d7d213 = function(arg0, arg1, arg2) {
|
|
|
2490
2494
|
}
|
|
2491
2495
|
};
|
|
2492
2496
|
|
|
2493
|
-
module.exports.
|
|
2497
|
+
module.exports.__wbg_flushdata_b44cd8fddaa54bd2 = function(arg0, arg1) {
|
|
2494
2498
|
let deferred0_0;
|
|
2495
2499
|
let deferred0_1;
|
|
2496
2500
|
try {
|
|
@@ -2502,7 +2506,7 @@ module.exports.__wbg_flushdata_2699cbd625c5e489 = function(arg0, arg1) {
|
|
|
2502
2506
|
}
|
|
2503
2507
|
};
|
|
2504
2508
|
|
|
2505
|
-
module.exports.
|
|
2509
|
+
module.exports.__wbg_readvalue_17fb3f92d34e3cc9 = function() { return handleError(function (arg0, arg1) {
|
|
2506
2510
|
let deferred0_0;
|
|
2507
2511
|
let deferred0_1;
|
|
2508
2512
|
try {
|
|
@@ -2515,12 +2519,12 @@ module.exports.__wbg_readvalue_ea8a1926d96b571a = function() { return handleErro
|
|
|
2515
2519
|
}
|
|
2516
2520
|
}, arguments) };
|
|
2517
2521
|
|
|
2518
|
-
module.exports.
|
|
2522
|
+
module.exports.__wbg_loadblockfilelist_3b72f84fcd8100da = function() { return handleError(function () {
|
|
2519
2523
|
const ret = MsgHandler.load_block_file_list();
|
|
2520
2524
|
return addHeapObject(ret);
|
|
2521
2525
|
}, arguments) };
|
|
2522
2526
|
|
|
2523
|
-
module.exports.
|
|
2527
|
+
module.exports.__wbg_isexistingfile_beb9428332e8640d = function() { return handleError(function (arg0, arg1) {
|
|
2524
2528
|
let deferred0_0;
|
|
2525
2529
|
let deferred0_1;
|
|
2526
2530
|
try {
|
|
@@ -2533,7 +2537,7 @@ module.exports.__wbg_isexistingfile_d9f8a8ad838a267b = function() { return handl
|
|
|
2533
2537
|
}
|
|
2534
2538
|
}, arguments) };
|
|
2535
2539
|
|
|
2536
|
-
module.exports.
|
|
2540
|
+
module.exports.__wbg_removevalue_71b36fd7345de0e4 = function() { return handleError(function (arg0, arg1) {
|
|
2537
2541
|
let deferred0_0;
|
|
2538
2542
|
let deferred0_1;
|
|
2539
2543
|
try {
|
|
@@ -2546,7 +2550,7 @@ module.exports.__wbg_removevalue_4e56fd8f2ca683bf = function() { return handleEr
|
|
|
2546
2550
|
}
|
|
2547
2551
|
}, arguments) };
|
|
2548
2552
|
|
|
2549
|
-
module.exports.
|
|
2553
|
+
module.exports.__wbg_ensureblockdirectoryexists_345dbb9e73619efd = function() { return handleError(function (arg0, arg1) {
|
|
2550
2554
|
let deferred0_0;
|
|
2551
2555
|
let deferred0_1;
|
|
2552
2556
|
try {
|
|
@@ -2558,19 +2562,19 @@ module.exports.__wbg_ensureblockdirectoryexists_e7ffeebe14b266de = function() {
|
|
|
2558
2562
|
}
|
|
2559
2563
|
}, arguments) };
|
|
2560
2564
|
|
|
2561
|
-
module.exports.
|
|
2565
|
+
module.exports.__wbg_processapicall_2f132a9acc3e9d79 = function(arg0, arg1, arg2) {
|
|
2562
2566
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2563
2567
|
};
|
|
2564
2568
|
|
|
2565
|
-
module.exports.
|
|
2569
|
+
module.exports.__wbg_processapisuccess_9c978474a2394a24 = function(arg0, arg1, arg2) {
|
|
2566
2570
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2567
2571
|
};
|
|
2568
2572
|
|
|
2569
|
-
module.exports.
|
|
2573
|
+
module.exports.__wbg_processapierror_5513f10980ac807f = function(arg0, arg1, arg2) {
|
|
2570
2574
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2571
2575
|
};
|
|
2572
2576
|
|
|
2573
|
-
module.exports.
|
|
2577
|
+
module.exports.__wbg_sendinterfaceevent_2a94cf5153a596d4 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2574
2578
|
let deferred0_0;
|
|
2575
2579
|
let deferred0_1;
|
|
2576
2580
|
let deferred1_0;
|
|
@@ -2587,7 +2591,7 @@ module.exports.__wbg_sendinterfaceevent_3c12109d40ad45bc = function(arg0, arg1,
|
|
|
2587
2591
|
}
|
|
2588
2592
|
};
|
|
2589
2593
|
|
|
2590
|
-
module.exports.
|
|
2594
|
+
module.exports.__wbg_sendblocksuccess_ab1126ca4ee493be = function(arg0, arg1, arg2) {
|
|
2591
2595
|
let deferred0_0;
|
|
2592
2596
|
let deferred0_1;
|
|
2593
2597
|
try {
|
|
@@ -2599,11 +2603,11 @@ module.exports.__wbg_sendblocksuccess_f0fe3ddb17465e1b = function(arg0, arg1, ar
|
|
|
2599
2603
|
}
|
|
2600
2604
|
};
|
|
2601
2605
|
|
|
2602
|
-
module.exports.
|
|
2606
|
+
module.exports.__wbg_sendwalletupdate_693f0f1970553ccf = function() {
|
|
2603
2607
|
MsgHandler.send_wallet_update();
|
|
2604
2608
|
};
|
|
2605
2609
|
|
|
2606
|
-
module.exports.
|
|
2610
|
+
module.exports.__wbg_sendnewversionalert_6f7940bd28410fa4 = function(arg0, arg1, arg2) {
|
|
2607
2611
|
let deferred0_0;
|
|
2608
2612
|
let deferred0_1;
|
|
2609
2613
|
try {
|
|
@@ -2615,30 +2619,25 @@ module.exports.__wbg_sendnewversionalert_f51b00401cdac522 = function(arg0, arg1,
|
|
|
2615
2619
|
}
|
|
2616
2620
|
};
|
|
2617
2621
|
|
|
2618
|
-
module.exports.
|
|
2622
|
+
module.exports.__wbg_sendblockfetchstatusevent_2c50fdda1d1c7fe1 = function(arg0) {
|
|
2619
2623
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2620
2624
|
};
|
|
2621
2625
|
|
|
2622
|
-
module.exports.
|
|
2626
|
+
module.exports.__wbg_savewallet_5cb27eddb6935781 = function() {
|
|
2623
2627
|
MsgHandler.save_wallet();
|
|
2624
2628
|
};
|
|
2625
2629
|
|
|
2626
|
-
module.exports.
|
|
2630
|
+
module.exports.__wbg_loadwallet_9da760930c0e889d = function() {
|
|
2627
2631
|
MsgHandler.load_wallet();
|
|
2628
2632
|
};
|
|
2629
2633
|
|
|
2630
|
-
module.exports.
|
|
2634
|
+
module.exports.__wbg_getmyservices_6ecb4e8c149e2c9b = function() {
|
|
2631
2635
|
const ret = MsgHandler.get_my_services();
|
|
2632
2636
|
_assertClass(ret, WasmPeerServiceList);
|
|
2633
2637
|
var ptr1 = ret.__destroy_into_raw();
|
|
2634
2638
|
return ptr1;
|
|
2635
2639
|
};
|
|
2636
2640
|
|
|
2637
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2638
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2639
|
-
return addHeapObject(ret);
|
|
2640
|
-
};
|
|
2641
|
-
|
|
2642
2641
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2643
2642
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2644
2643
|
return ret;
|
|
@@ -3009,7 +3008,7 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3009
3008
|
return addHeapObject(ret);
|
|
3010
3009
|
};
|
|
3011
3010
|
|
|
3012
|
-
module.exports.
|
|
3011
|
+
module.exports.__wbindgen_closure_wrapper1341 = function(arg0, arg1, arg2) {
|
|
3013
3012
|
const ret = makeMutClosure(arg0, arg1, 472, __wbg_adapter_38);
|
|
3014
3013
|
return addHeapObject(ret);
|
|
3015
3014
|
};
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,51 +1,10 @@
|
|
|
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
4
|
export function __wbg_wasmhop_free(a: number): void;
|
|
12
5
|
export function wasmhop_from(a: number, b: number): void;
|
|
13
6
|
export function wasmhop_sig(a: number, b: number): void;
|
|
14
7
|
export function wasmhop_to(a: number, b: number): void;
|
|
15
|
-
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
16
|
-
export function wasmconsensusvalues_it_num(a: number): number;
|
|
17
|
-
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
18
|
-
export function wasmconsensusvalues_it_index(a: number): number;
|
|
19
|
-
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
20
|
-
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
21
|
-
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
22
|
-
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
23
|
-
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
24
|
-
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
25
|
-
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
26
|
-
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
27
|
-
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
28
|
-
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
29
|
-
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
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
8
|
export function __wbg_wasmpeer_free(a: number): void;
|
|
50
9
|
export function wasmpeer_get_public_key(a: number): number;
|
|
51
10
|
export function wasmpeer_get_key_list(a: number): number;
|
|
@@ -104,6 +63,97 @@ export function wasmwalletslip_get_tx_ordinal(a: number): number;
|
|
|
104
63
|
export function wasmwalletslip_set_amount(a: number, b: number): void;
|
|
105
64
|
export function wasmwalletslip_set_block_id(a: number, b: number): void;
|
|
106
65
|
export function wasmwalletslip_set_tx_ordinal(a: number, b: number): void;
|
|
66
|
+
export function __wbg_wasmbalancesnapshot_free(a: number): void;
|
|
67
|
+
export function wasmbalancesnapshot_get_file_name(a: number): number;
|
|
68
|
+
export function wasmbalancesnapshot_get_entries(a: number): number;
|
|
69
|
+
export function wasmbalancesnapshot_from_string(a: number, b: number): void;
|
|
70
|
+
export function wasmbalancesnapshot_to_string(a: number): number;
|
|
71
|
+
export function __wbg_wasmconfiguration_free(a: number): void;
|
|
72
|
+
export function wasmconfiguration_new(): number;
|
|
73
|
+
export function __wbg_saitowasm_free(a: number): void;
|
|
74
|
+
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
75
|
+
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
76
|
+
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
77
|
+
export function get_latest_block_hash(): number;
|
|
78
|
+
export function get_block(a: number): number;
|
|
79
|
+
export function process_new_peer(a: number, b: number): number;
|
|
80
|
+
export function process_stun_peer(a: number, b: number): number;
|
|
81
|
+
export function remove_stun_peer(a: number): number;
|
|
82
|
+
export function get_next_peer_index(): number;
|
|
83
|
+
export function process_peer_disconnection(a: number): number;
|
|
84
|
+
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
85
|
+
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
86
|
+
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
87
|
+
export function process_timer_event(a: number): number;
|
|
88
|
+
export function process_stat_interval(a: number): number;
|
|
89
|
+
export function hash(a: number): number;
|
|
90
|
+
export function sign_buffer(a: number, b: number, c: number): void;
|
|
91
|
+
export function verify_signature(a: number, b: number, c: number): number;
|
|
92
|
+
export function get_peers(): number;
|
|
93
|
+
export function get_peer(a: number): number;
|
|
94
|
+
export function get_account_slips(a: number): number;
|
|
95
|
+
export function get_balance_snapshot(a: number): number;
|
|
96
|
+
export function update_from_balance_snapshot(a: number): number;
|
|
97
|
+
export function generate_private_key(): number;
|
|
98
|
+
export function generate_public_key(a: number, b: number): void;
|
|
99
|
+
export function propagate_transaction(a: number): number;
|
|
100
|
+
export function send_api_call(a: number, b: number, c: number): number;
|
|
101
|
+
export function send_api_success(a: number, b: number, c: number): number;
|
|
102
|
+
export function send_api_error(a: number, b: number, c: number): number;
|
|
103
|
+
export function get_wallet(): number;
|
|
104
|
+
export function get_blockchain(): number;
|
|
105
|
+
export function get_mempool_txs(): number;
|
|
106
|
+
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
107
|
+
export function is_valid_public_key(a: number): number;
|
|
108
|
+
export function write_issuance_file(a: number): number;
|
|
109
|
+
export function disable_producing_blocks_by_timer(): number;
|
|
110
|
+
export function produce_block_with_gt(): number;
|
|
111
|
+
export function produce_block_without_gt(): number;
|
|
112
|
+
export function __wbg_wasmblockchain_free(a: number): void;
|
|
113
|
+
export function wasmblockchain_reset(a: number): number;
|
|
114
|
+
export function wasmblockchain_get_last_block_id(a: number): number;
|
|
115
|
+
export function wasmblockchain_get_last_timestamp(a: number): number;
|
|
116
|
+
export function wasmblockchain_get_longest_chain_hash_at(a: number, b: number): number;
|
|
117
|
+
export function wasmblockchain_get_last_block_hash(a: number): number;
|
|
118
|
+
export function wasmblockchain_get_last_burnfee(a: number): number;
|
|
119
|
+
export function wasmblockchain_get_genesis_block_id(a: number): number;
|
|
120
|
+
export function wasmblockchain_get_genesis_timestamp(a: number): number;
|
|
121
|
+
export function wasmblockchain_get_lowest_acceptable_timestamp(a: number): number;
|
|
122
|
+
export function wasmblockchain_get_lowest_acceptable_block_hash(a: number): number;
|
|
123
|
+
export function wasmblockchain_get_lowest_acceptable_block_id(a: number): number;
|
|
124
|
+
export function wasmblockchain_get_latest_block_id(a: number): number;
|
|
125
|
+
export function wasmblockchain_get_fork_id(a: number): number;
|
|
126
|
+
export function wasmblockchain_set_fork_id(a: number, b: number): number;
|
|
127
|
+
export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
|
|
128
|
+
export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
|
|
129
|
+
export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
|
|
130
|
+
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
131
|
+
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
132
|
+
export function wasmpeerservice_new(): number;
|
|
133
|
+
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
134
|
+
export function wasmpeerservice_get_service(a: number): number;
|
|
135
|
+
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
136
|
+
export function wasmpeerservice_get_name(a: number): number;
|
|
137
|
+
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
138
|
+
export function wasmpeerservice_get_domain(a: number): number;
|
|
139
|
+
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
140
|
+
export function wasmpeerservicelist_new(): number;
|
|
141
|
+
export function __wbg_wasmconsensusvalues_free(a: number): void;
|
|
142
|
+
export function wasmconsensusvalues_it_num(a: number): number;
|
|
143
|
+
export function wasmconsensusvalues_fee_transaction(a: number): number;
|
|
144
|
+
export function wasmconsensusvalues_it_index(a: number): number;
|
|
145
|
+
export function wasmconsensusvalues_ft_num(a: number): number;
|
|
146
|
+
export function wasmconsensusvalues_ft_index(a: number): number;
|
|
147
|
+
export function wasmconsensusvalues_gt_index(a: number): number;
|
|
148
|
+
export function wasmconsensusvalues_total_fees(a: number): number;
|
|
149
|
+
export function wasmconsensusvalues_expected_difficulty(a: number): number;
|
|
150
|
+
export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
|
|
151
|
+
export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
|
|
152
|
+
export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
|
|
153
|
+
export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
|
|
154
|
+
export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
|
|
155
|
+
export function wasmconsensusvalues_avg_income(a: number): number;
|
|
156
|
+
export function wasmconsensusvalues_avg_total_fees(a: number): number;
|
|
107
157
|
export function __wbg_wasmblock_free(a: number): void;
|
|
108
158
|
export function wasmblock_new(): number;
|
|
109
159
|
export function wasmblock_get_transactions(a: number): number;
|
|
@@ -184,56 +234,6 @@ export function wasmtransaction_total_fees(a: number): number;
|
|
|
184
234
|
export function wasmtransaction_serialize(a: number): number;
|
|
185
235
|
export function wasmtransaction_deserialize(a: number, b: number): void;
|
|
186
236
|
export function wasmblock_avg_total_fees(a: number): number;
|
|
187
|
-
export function __wbg_saitowasm_free(a: number): void;
|
|
188
|
-
export function initialize(a: number, b: number, c: number, d: number): number;
|
|
189
|
-
export function create_transaction(a: number, b: number, c: number, d: number): number;
|
|
190
|
-
export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
|
|
191
|
-
export function get_latest_block_hash(): number;
|
|
192
|
-
export function get_block(a: number): number;
|
|
193
|
-
export function process_new_peer(a: number, b: number): number;
|
|
194
|
-
export function process_stun_peer(a: number, b: number): number;
|
|
195
|
-
export function remove_stun_peer(a: number): number;
|
|
196
|
-
export function get_next_peer_index(): number;
|
|
197
|
-
export function process_peer_disconnection(a: number): number;
|
|
198
|
-
export function process_msg_buffer_from_peer(a: number, b: number): number;
|
|
199
|
-
export function process_fetched_block(a: number, b: number, c: number, d: number): number;
|
|
200
|
-
export function process_failed_block_fetch(a: number, b: number, c: number): number;
|
|
201
|
-
export function process_timer_event(a: number): number;
|
|
202
|
-
export function process_stat_interval(a: number): number;
|
|
203
|
-
export function hash(a: number): number;
|
|
204
|
-
export function sign_buffer(a: number, b: number, c: number): void;
|
|
205
|
-
export function verify_signature(a: number, b: number, c: number): number;
|
|
206
|
-
export function get_peers(): number;
|
|
207
|
-
export function get_peer(a: number): number;
|
|
208
|
-
export function get_account_slips(a: number): number;
|
|
209
|
-
export function get_balance_snapshot(a: number): number;
|
|
210
|
-
export function update_from_balance_snapshot(a: number): number;
|
|
211
|
-
export function generate_private_key(): number;
|
|
212
|
-
export function generate_public_key(a: number, b: number): void;
|
|
213
|
-
export function propagate_transaction(a: number): number;
|
|
214
|
-
export function send_api_call(a: number, b: number, c: number): number;
|
|
215
|
-
export function send_api_success(a: number, b: number, c: number): number;
|
|
216
|
-
export function send_api_error(a: number, b: number, c: number): number;
|
|
217
|
-
export function get_wallet(): number;
|
|
218
|
-
export function get_blockchain(): number;
|
|
219
|
-
export function get_mempool_txs(): number;
|
|
220
|
-
export function set_wallet_version(a: number, b: number, c: number): number;
|
|
221
|
-
export function is_valid_public_key(a: number): number;
|
|
222
|
-
export function write_issuance_file(a: number): number;
|
|
223
|
-
export function disable_producing_blocks_by_timer(): number;
|
|
224
|
-
export function produce_block_with_gt(): number;
|
|
225
|
-
export function produce_block_without_gt(): number;
|
|
226
|
-
export function __wbg_wasmpeerservicelist_free(a: number): void;
|
|
227
|
-
export function __wbg_wasmpeerservice_free(a: number): void;
|
|
228
|
-
export function wasmpeerservice_new(): number;
|
|
229
|
-
export function wasmpeerservice_set_service(a: number, b: number): void;
|
|
230
|
-
export function wasmpeerservice_get_service(a: number): number;
|
|
231
|
-
export function wasmpeerservice_set_name(a: number, b: number): void;
|
|
232
|
-
export function wasmpeerservice_get_name(a: number): number;
|
|
233
|
-
export function wasmpeerservice_set_domain(a: number, b: number): void;
|
|
234
|
-
export function wasmpeerservice_get_domain(a: number): number;
|
|
235
|
-
export function wasmpeerservicelist_push(a: number, b: number): void;
|
|
236
|
-
export function wasmpeerservicelist_new(): number;
|
|
237
237
|
export function rustsecp256k1_v0_10_0_context_create(a: number): number;
|
|
238
238
|
export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
|
|
239
239
|
export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: 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.50",
|
|
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
|
}
|