saito-wasm 0.2.30 → 0.2.32
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.d.ts +7 -1
- package/pkg/node/index.js +136 -121
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +66 -64
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +73 -65
- package/pkg/web/index.js +130 -115
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +66 -64
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-787a35f91b2c15c9 → saito-wasm-bafd680e29f33ffd}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-787a35f91b2c15c9 → saito-wasm-bafd680e29f33ffd}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ export function write_issuance_file(threshold: bigint): Promise<void>;
|
|
|
198
198
|
/**
|
|
199
199
|
* @returns {Promise<void>}
|
|
200
200
|
*/
|
|
201
|
-
export function
|
|
201
|
+
export function disable_producing_blocks_by_timer(): Promise<void>;
|
|
202
202
|
/**
|
|
203
203
|
* @returns {Promise<void>}
|
|
204
204
|
*/
|
|
@@ -276,6 +276,9 @@ export class WasmBlock {
|
|
|
276
276
|
*/
|
|
277
277
|
readonly avg_payout_graveyard: bigint;
|
|
278
278
|
/**
|
|
279
|
+
*/
|
|
280
|
+
readonly avg_payout_mining: bigint;
|
|
281
|
+
/**
|
|
279
282
|
*/
|
|
280
283
|
readonly avg_payout_routing: bigint;
|
|
281
284
|
/**
|
|
@@ -390,6 +393,9 @@ export class WasmBlock {
|
|
|
390
393
|
*/
|
|
391
394
|
readonly total_fees_new: bigint;
|
|
392
395
|
/**
|
|
396
|
+
*/
|
|
397
|
+
readonly total_payout_atr: bigint;
|
|
398
|
+
/**
|
|
393
399
|
*/
|
|
394
400
|
readonly total_payout_graveyard: bigint;
|
|
395
401
|
/**
|
package/pkg/node/index.js
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
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-bafd680e29f33ffd/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
heap.push(undefined, null, true, false);
|
|
7
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
cachedTextDecoder.decode();
|
|
12
10
|
|
|
13
|
-
let
|
|
11
|
+
let cachedUint8Memory0 = null;
|
|
14
12
|
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
function getUint8Memory0() {
|
|
14
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
15
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
16
|
+
}
|
|
17
|
+
return cachedUint8Memory0;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return ret;
|
|
20
|
+
function getStringFromWasm0(ptr, len) {
|
|
21
|
+
ptr = ptr >>> 0;
|
|
22
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
25
23
|
}
|
|
26
24
|
|
|
25
|
+
const heap = new Array(128).fill(undefined);
|
|
26
|
+
|
|
27
|
+
heap.push(undefined, null, true, false);
|
|
28
|
+
|
|
29
|
+
let heap_next = heap.length;
|
|
30
|
+
|
|
27
31
|
function addHeapObject(obj) {
|
|
28
32
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
33
|
const idx = heap_next;
|
|
@@ -33,22 +37,18 @@ function addHeapObject(obj) {
|
|
|
33
37
|
return idx;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
cachedTextDecoder.decode();
|
|
39
|
-
|
|
40
|
-
let cachedUint8Memory0 = null;
|
|
40
|
+
function getObject(idx) { return heap[idx]; }
|
|
41
41
|
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return cachedUint8Memory0;
|
|
42
|
+
function dropObject(idx) {
|
|
43
|
+
if (idx < 132) return;
|
|
44
|
+
heap[idx] = heap_next;
|
|
45
|
+
heap_next = idx;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
function takeObject(idx) {
|
|
49
|
+
const ret = getObject(idx);
|
|
50
|
+
dropObject(idx);
|
|
51
|
+
return ret;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -228,6 +228,20 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
|
228
228
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha18c4469c8531320(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
function handleError(f, args) {
|
|
232
|
+
try {
|
|
233
|
+
return f.apply(this, args);
|
|
234
|
+
} catch (e) {
|
|
235
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
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
|
+
}
|
|
231
245
|
/**
|
|
232
246
|
* @param {string} json
|
|
233
247
|
* @param {string} private_key
|
|
@@ -453,12 +467,6 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
453
467
|
return takeObject(ret);
|
|
454
468
|
};
|
|
455
469
|
|
|
456
|
-
function _assertClass(instance, klass) {
|
|
457
|
-
if (!(instance instanceof klass)) {
|
|
458
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
459
|
-
}
|
|
460
|
-
return instance.ptr;
|
|
461
|
-
}
|
|
462
470
|
/**
|
|
463
471
|
* @param {WasmBalanceSnapshot} snapshot
|
|
464
472
|
* @returns {Promise<void>}
|
|
@@ -597,8 +605,8 @@ module.exports.write_issuance_file = function(threshold) {
|
|
|
597
605
|
/**
|
|
598
606
|
* @returns {Promise<void>}
|
|
599
607
|
*/
|
|
600
|
-
module.exports.
|
|
601
|
-
const ret = wasm.
|
|
608
|
+
module.exports.disable_producing_blocks_by_timer = function() {
|
|
609
|
+
const ret = wasm.disable_producing_blocks_by_timer();
|
|
602
610
|
return takeObject(ret);
|
|
603
611
|
};
|
|
604
612
|
|
|
@@ -618,14 +626,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
618
626
|
return takeObject(ret);
|
|
619
627
|
};
|
|
620
628
|
|
|
621
|
-
function
|
|
622
|
-
try {
|
|
623
|
-
return f.apply(this, args);
|
|
624
|
-
} catch (e) {
|
|
625
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
function __wbg_adapter_403(arg0, arg1, arg2, arg3) {
|
|
629
|
+
function __wbg_adapter_405(arg0, arg1, arg2, arg3) {
|
|
629
630
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2c2d2984a3f304e5(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
630
631
|
}
|
|
631
632
|
|
|
@@ -1209,6 +1210,20 @@ class WasmBlock {
|
|
|
1209
1210
|
const ret = wasm.wasmblock_fee_transaction_index(this.__wbg_ptr);
|
|
1210
1211
|
return BigInt.asUintN(64, ret);
|
|
1211
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* @returns {bigint}
|
|
1215
|
+
*/
|
|
1216
|
+
get total_payout_atr() {
|
|
1217
|
+
const ret = wasm.wasmblock_total_payout_atr(this.__wbg_ptr);
|
|
1218
|
+
return BigInt.asUintN(64, ret);
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* @returns {bigint}
|
|
1222
|
+
*/
|
|
1223
|
+
get avg_payout_mining() {
|
|
1224
|
+
const ret = wasm.wasmblock_avg_payout_mining(this.__wbg_ptr);
|
|
1225
|
+
return BigInt.asUintN(64, ret);
|
|
1226
|
+
}
|
|
1212
1227
|
}
|
|
1213
1228
|
module.exports.WasmBlock = WasmBlock;
|
|
1214
1229
|
|
|
@@ -2293,40 +2308,40 @@ class WasmWalletSlip {
|
|
|
2293
2308
|
* @returns {bigint}
|
|
2294
2309
|
*/
|
|
2295
2310
|
get_amount() {
|
|
2296
|
-
const ret = wasm.
|
|
2311
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
2297
2312
|
return BigInt.asUintN(64, ret);
|
|
2298
2313
|
}
|
|
2299
2314
|
/**
|
|
2300
2315
|
* @param {bigint} amount
|
|
2301
2316
|
*/
|
|
2302
2317
|
set_amount(amount) {
|
|
2303
|
-
wasm.
|
|
2318
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2304
2319
|
}
|
|
2305
2320
|
/**
|
|
2306
2321
|
* @returns {bigint}
|
|
2307
2322
|
*/
|
|
2308
2323
|
get_block_id() {
|
|
2309
|
-
const ret = wasm.
|
|
2324
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2310
2325
|
return BigInt.asUintN(64, ret);
|
|
2311
2326
|
}
|
|
2312
2327
|
/**
|
|
2313
2328
|
* @param {bigint} block_id
|
|
2314
2329
|
*/
|
|
2315
2330
|
set_block_id(block_id) {
|
|
2316
|
-
wasm.
|
|
2331
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2317
2332
|
}
|
|
2318
2333
|
/**
|
|
2319
2334
|
* @returns {bigint}
|
|
2320
2335
|
*/
|
|
2321
2336
|
get_tx_ordinal() {
|
|
2322
|
-
const ret = wasm.
|
|
2337
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2323
2338
|
return BigInt.asUintN(64, ret);
|
|
2324
2339
|
}
|
|
2325
2340
|
/**
|
|
2326
2341
|
* @param {bigint} ordinal
|
|
2327
2342
|
*/
|
|
2328
2343
|
set_tx_ordinal(ordinal) {
|
|
2329
|
-
wasm.
|
|
2344
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2330
2345
|
}
|
|
2331
2346
|
/**
|
|
2332
2347
|
* @returns {number}
|
|
@@ -2377,8 +2392,8 @@ class WasmWalletSlip {
|
|
|
2377
2392
|
}
|
|
2378
2393
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2379
2394
|
|
|
2380
|
-
module.exports.
|
|
2381
|
-
const ret =
|
|
2395
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2396
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2382
2397
|
return addHeapObject(ret);
|
|
2383
2398
|
};
|
|
2384
2399
|
|
|
@@ -2386,23 +2401,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2386
2401
|
takeObject(arg0);
|
|
2387
2402
|
};
|
|
2388
2403
|
|
|
2389
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2390
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2391
|
-
return addHeapObject(ret);
|
|
2392
|
-
};
|
|
2393
|
-
|
|
2394
2404
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2395
2405
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2396
2406
|
return addHeapObject(ret);
|
|
2397
2407
|
};
|
|
2398
2408
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2401
|
-
return addHeapObject(ret);
|
|
2402
|
-
};
|
|
2403
|
-
|
|
2404
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2405
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2409
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2410
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2406
2411
|
return addHeapObject(ret);
|
|
2407
2412
|
};
|
|
2408
2413
|
|
|
@@ -2411,18 +2416,13 @@ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
|
2411
2416
|
return addHeapObject(ret);
|
|
2412
2417
|
};
|
|
2413
2418
|
|
|
2414
|
-
module.exports.
|
|
2415
|
-
const ret =
|
|
2416
|
-
return addHeapObject(ret);
|
|
2417
|
-
};
|
|
2418
|
-
|
|
2419
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2420
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2419
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2420
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2421
2421
|
return addHeapObject(ret);
|
|
2422
2422
|
};
|
|
2423
2423
|
|
|
2424
|
-
module.exports.
|
|
2425
|
-
const ret =
|
|
2424
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2425
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2426
2426
|
return addHeapObject(ret);
|
|
2427
2427
|
};
|
|
2428
2428
|
|
|
@@ -2431,18 +2431,18 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2431
2431
|
return addHeapObject(ret);
|
|
2432
2432
|
};
|
|
2433
2433
|
|
|
2434
|
-
module.exports.
|
|
2435
|
-
const ret =
|
|
2434
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2435
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2436
2436
|
return addHeapObject(ret);
|
|
2437
2437
|
};
|
|
2438
2438
|
|
|
2439
|
-
module.exports.
|
|
2440
|
-
const ret =
|
|
2439
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2440
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2441
2441
|
return addHeapObject(ret);
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
module.exports.
|
|
2445
|
-
const ret =
|
|
2444
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2445
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2446
2446
|
return addHeapObject(ret);
|
|
2447
2447
|
};
|
|
2448
2448
|
|
|
@@ -2460,31 +2460,15 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2460
2460
|
return addHeapObject(ret);
|
|
2461
2461
|
};
|
|
2462
2462
|
|
|
2463
|
-
module.exports.
|
|
2464
|
-
const val = getObject(arg0);
|
|
2465
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2466
|
-
return ret;
|
|
2467
|
-
};
|
|
2468
|
-
|
|
2469
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2470
|
-
const ret = getObject(arg0) === undefined;
|
|
2471
|
-
return ret;
|
|
2472
|
-
};
|
|
2473
|
-
|
|
2474
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2475
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2476
|
-
return ret;
|
|
2477
|
-
};
|
|
2478
|
-
|
|
2479
|
-
module.exports.__wbg_sendmessage_c74e4142c692a6c2 = function(arg0, arg1) {
|
|
2463
|
+
module.exports.__wbg_sendmessage_3f9c9a3c04faa831 = function(arg0, arg1) {
|
|
2480
2464
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2481
2465
|
};
|
|
2482
2466
|
|
|
2483
|
-
module.exports.
|
|
2467
|
+
module.exports.__wbg_sendmessagetoall_01504c5649f439a9 = function(arg0, arg1) {
|
|
2484
2468
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2485
2469
|
};
|
|
2486
2470
|
|
|
2487
|
-
module.exports.
|
|
2471
|
+
module.exports.__wbg_connecttopeer_5a80d22a81191394 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2488
2472
|
let deferred0_0;
|
|
2489
2473
|
let deferred0_1;
|
|
2490
2474
|
try {
|
|
@@ -2497,12 +2481,12 @@ module.exports.__wbg_connecttopeer_a5bfb20cce66ba14 = function() { return handle
|
|
|
2497
2481
|
}
|
|
2498
2482
|
}, arguments) };
|
|
2499
2483
|
|
|
2500
|
-
module.exports.
|
|
2484
|
+
module.exports.__wbg_disconnectfrompeer_228f6074acb86b7a = function() { return handleError(function (arg0) {
|
|
2501
2485
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2502
2486
|
return addHeapObject(ret);
|
|
2503
2487
|
}, arguments) };
|
|
2504
2488
|
|
|
2505
|
-
module.exports.
|
|
2489
|
+
module.exports.__wbg_fetchblockfrompeer_5406105f2b6c82be = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2506
2490
|
let deferred0_0;
|
|
2507
2491
|
let deferred0_1;
|
|
2508
2492
|
try {
|
|
@@ -2515,7 +2499,7 @@ module.exports.__wbg_fetchblockfrompeer_99d8de9de372bb2c = function() { return h
|
|
|
2515
2499
|
}
|
|
2516
2500
|
}, arguments) };
|
|
2517
2501
|
|
|
2518
|
-
module.exports.
|
|
2502
|
+
module.exports.__wbg_writevalue_e62d3a29aa685c64 = function(arg0, arg1, arg2) {
|
|
2519
2503
|
let deferred0_0;
|
|
2520
2504
|
let deferred0_1;
|
|
2521
2505
|
try {
|
|
@@ -2527,7 +2511,7 @@ module.exports.__wbg_writevalue_13eee0326adb6ae6 = function(arg0, arg1, arg2) {
|
|
|
2527
2511
|
}
|
|
2528
2512
|
};
|
|
2529
2513
|
|
|
2530
|
-
module.exports.
|
|
2514
|
+
module.exports.__wbg_appendvalue_c4151d8e76893929 = function(arg0, arg1, arg2) {
|
|
2531
2515
|
let deferred0_0;
|
|
2532
2516
|
let deferred0_1;
|
|
2533
2517
|
try {
|
|
@@ -2539,7 +2523,7 @@ module.exports.__wbg_appendvalue_a424531f8bf45f8f = function(arg0, arg1, arg2) {
|
|
|
2539
2523
|
}
|
|
2540
2524
|
};
|
|
2541
2525
|
|
|
2542
|
-
module.exports.
|
|
2526
|
+
module.exports.__wbg_flushdata_dedd3d04181afd7f = function(arg0, arg1) {
|
|
2543
2527
|
let deferred0_0;
|
|
2544
2528
|
let deferred0_1;
|
|
2545
2529
|
try {
|
|
@@ -2551,7 +2535,7 @@ module.exports.__wbg_flushdata_c7b0f5a7dfbdf290 = function(arg0, arg1) {
|
|
|
2551
2535
|
}
|
|
2552
2536
|
};
|
|
2553
2537
|
|
|
2554
|
-
module.exports.
|
|
2538
|
+
module.exports.__wbg_readvalue_07766ecfab60ac45 = function() { return handleError(function (arg0, arg1) {
|
|
2555
2539
|
let deferred0_0;
|
|
2556
2540
|
let deferred0_1;
|
|
2557
2541
|
try {
|
|
@@ -2564,12 +2548,12 @@ module.exports.__wbg_readvalue_2eec0b78aa6ab822 = function() { return handleErro
|
|
|
2564
2548
|
}
|
|
2565
2549
|
}, arguments) };
|
|
2566
2550
|
|
|
2567
|
-
module.exports.
|
|
2551
|
+
module.exports.__wbg_loadblockfilelist_b18d11a0b07b3d29 = function() { return handleError(function () {
|
|
2568
2552
|
const ret = MsgHandler.load_block_file_list();
|
|
2569
2553
|
return addHeapObject(ret);
|
|
2570
2554
|
}, arguments) };
|
|
2571
2555
|
|
|
2572
|
-
module.exports.
|
|
2556
|
+
module.exports.__wbg_isexistingfile_f2253e2a10e75155 = function() { return handleError(function (arg0, arg1) {
|
|
2573
2557
|
let deferred0_0;
|
|
2574
2558
|
let deferred0_1;
|
|
2575
2559
|
try {
|
|
@@ -2582,7 +2566,7 @@ module.exports.__wbg_isexistingfile_6da0fec89cac6212 = function() { return handl
|
|
|
2582
2566
|
}
|
|
2583
2567
|
}, arguments) };
|
|
2584
2568
|
|
|
2585
|
-
module.exports.
|
|
2569
|
+
module.exports.__wbg_removevalue_1128ef0ed2e2edae = function() { return handleError(function (arg0, arg1) {
|
|
2586
2570
|
let deferred0_0;
|
|
2587
2571
|
let deferred0_1;
|
|
2588
2572
|
try {
|
|
@@ -2595,7 +2579,7 @@ module.exports.__wbg_removevalue_db3e3b6b828ed9ef = function() { return handleEr
|
|
|
2595
2579
|
}
|
|
2596
2580
|
}, arguments) };
|
|
2597
2581
|
|
|
2598
|
-
module.exports.
|
|
2582
|
+
module.exports.__wbg_ensureblockdirectoryexists_722609e004de47d3 = function() { return handleError(function (arg0, arg1) {
|
|
2599
2583
|
let deferred0_0;
|
|
2600
2584
|
let deferred0_1;
|
|
2601
2585
|
try {
|
|
@@ -2607,19 +2591,19 @@ module.exports.__wbg_ensureblockdirectoryexists_9130fe33e5a7dd2b = function() {
|
|
|
2607
2591
|
}
|
|
2608
2592
|
}, arguments) };
|
|
2609
2593
|
|
|
2610
|
-
module.exports.
|
|
2594
|
+
module.exports.__wbg_processapicall_953c894600fd4457 = function(arg0, arg1, arg2) {
|
|
2611
2595
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2612
2596
|
};
|
|
2613
2597
|
|
|
2614
|
-
module.exports.
|
|
2598
|
+
module.exports.__wbg_processapisuccess_bed5edf5da835105 = function(arg0, arg1, arg2) {
|
|
2615
2599
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2616
2600
|
};
|
|
2617
2601
|
|
|
2618
|
-
module.exports.
|
|
2602
|
+
module.exports.__wbg_processapierror_ea1f5c97786886dd = function(arg0, arg1, arg2) {
|
|
2619
2603
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2620
2604
|
};
|
|
2621
2605
|
|
|
2622
|
-
module.exports.
|
|
2606
|
+
module.exports.__wbg_sendinterfaceevent_3a145868863bc2b2 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2623
2607
|
let deferred0_0;
|
|
2624
2608
|
let deferred0_1;
|
|
2625
2609
|
let deferred1_0;
|
|
@@ -2636,7 +2620,7 @@ module.exports.__wbg_sendinterfaceevent_a9288fb844267b30 = function(arg0, arg1,
|
|
|
2636
2620
|
}
|
|
2637
2621
|
};
|
|
2638
2622
|
|
|
2639
|
-
module.exports.
|
|
2623
|
+
module.exports.__wbg_sendblocksuccess_26fa775654ec93b1 = function(arg0, arg1, arg2) {
|
|
2640
2624
|
let deferred0_0;
|
|
2641
2625
|
let deferred0_1;
|
|
2642
2626
|
try {
|
|
@@ -2648,11 +2632,11 @@ module.exports.__wbg_sendblocksuccess_667068cdb81f8f9d = function(arg0, arg1, ar
|
|
|
2648
2632
|
}
|
|
2649
2633
|
};
|
|
2650
2634
|
|
|
2651
|
-
module.exports.
|
|
2635
|
+
module.exports.__wbg_sendwalletupdate_b4cd56af1167acfe = function() {
|
|
2652
2636
|
MsgHandler.send_wallet_update();
|
|
2653
2637
|
};
|
|
2654
2638
|
|
|
2655
|
-
module.exports.
|
|
2639
|
+
module.exports.__wbg_sendnewversionalert_e504bbed10683b3f = function(arg0, arg1, arg2) {
|
|
2656
2640
|
let deferred0_0;
|
|
2657
2641
|
let deferred0_1;
|
|
2658
2642
|
try {
|
|
@@ -2664,25 +2648,56 @@ module.exports.__wbg_sendnewversionalert_d2ddfe12cb2a2e2f = function(arg0, arg1,
|
|
|
2664
2648
|
}
|
|
2665
2649
|
};
|
|
2666
2650
|
|
|
2667
|
-
module.exports.
|
|
2651
|
+
module.exports.__wbg_sendblockfetchstatusevent_6d22df0699ecb3ba = function(arg0) {
|
|
2668
2652
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2669
2653
|
};
|
|
2670
2654
|
|
|
2671
|
-
module.exports.
|
|
2655
|
+
module.exports.__wbg_savewallet_9e0c55fc13bd98b0 = function() {
|
|
2672
2656
|
MsgHandler.save_wallet();
|
|
2673
2657
|
};
|
|
2674
2658
|
|
|
2675
|
-
module.exports.
|
|
2659
|
+
module.exports.__wbg_loadwallet_89e1f5c5bced311e = function() {
|
|
2676
2660
|
MsgHandler.load_wallet();
|
|
2677
2661
|
};
|
|
2678
2662
|
|
|
2679
|
-
module.exports.
|
|
2663
|
+
module.exports.__wbg_getmyservices_6f6f9ec0653684de = function() {
|
|
2680
2664
|
const ret = MsgHandler.get_my_services();
|
|
2681
2665
|
_assertClass(ret, WasmPeerServiceList);
|
|
2682
2666
|
var ptr1 = ret.__destroy_into_raw();
|
|
2683
2667
|
return ptr1;
|
|
2684
2668
|
};
|
|
2685
2669
|
|
|
2670
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2671
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2672
|
+
return addHeapObject(ret);
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
module.exports.__wbg_wasmconsensusvalues_new = function(arg0) {
|
|
2676
|
+
const ret = WasmConsensusValues.__wrap(arg0);
|
|
2677
|
+
return addHeapObject(ret);
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2680
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2681
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2682
|
+
return addHeapObject(ret);
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2685
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2686
|
+
const val = getObject(arg0);
|
|
2687
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2688
|
+
return ret;
|
|
2689
|
+
};
|
|
2690
|
+
|
|
2691
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2692
|
+
const ret = getObject(arg0) === undefined;
|
|
2693
|
+
return ret;
|
|
2694
|
+
};
|
|
2695
|
+
|
|
2696
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2697
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2698
|
+
return ret;
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2686
2701
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2687
2702
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2688
2703
|
return ret;
|
|
@@ -2930,7 +2945,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2930
2945
|
const a = state0.a;
|
|
2931
2946
|
state0.a = 0;
|
|
2932
2947
|
try {
|
|
2933
|
-
return
|
|
2948
|
+
return __wbg_adapter_405(a, state0.b, arg0, arg1);
|
|
2934
2949
|
} finally {
|
|
2935
2950
|
state0.a = a;
|
|
2936
2951
|
}
|
|
@@ -3028,8 +3043,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3028
3043
|
return addHeapObject(ret);
|
|
3029
3044
|
};
|
|
3030
3045
|
|
|
3031
|
-
module.exports.
|
|
3032
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3046
|
+
module.exports.__wbindgen_closure_wrapper1333 = function(arg0, arg1, arg2) {
|
|
3047
|
+
const ret = makeMutClosure(arg0, arg1, 459, __wbg_adapter_38);
|
|
3033
3048
|
return addHeapObject(ret);
|
|
3034
3049
|
};
|
|
3035
3050
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|