saito-wasm 0.2.41 → 0.2.42
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 +10 -1
- package/pkg/node/index.js +107 -92
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +137 -135
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +147 -136
- package/pkg/web/index.js +101 -86
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +137 -135
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-5604e7e7ec5dad2d → saito-wasm-8c34863971fc4dee}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-5604e7e7ec5dad2d → saito-wasm-8c34863971fc4dee}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -713,9 +713,10 @@ export class WasmWallet {
|
|
|
713
713
|
*/
|
|
714
714
|
save(): Promise<void>;
|
|
715
715
|
/**
|
|
716
|
+
* @param {boolean} keep_keys
|
|
716
717
|
* @returns {Promise<void>}
|
|
717
718
|
*/
|
|
718
|
-
reset(): Promise<void>;
|
|
719
|
+
reset(keep_keys: boolean): Promise<void>;
|
|
719
720
|
/**
|
|
720
721
|
* @returns {Promise<void>}
|
|
721
722
|
*/
|
|
@@ -831,6 +832,14 @@ export class WasmWalletSlip {
|
|
|
831
832
|
*/
|
|
832
833
|
set_lc(lc: boolean): void;
|
|
833
834
|
/**
|
|
835
|
+
* @returns {number}
|
|
836
|
+
*/
|
|
837
|
+
get_slip_type(): number;
|
|
838
|
+
/**
|
|
839
|
+
* @param {number} slip_type
|
|
840
|
+
*/
|
|
841
|
+
set_slip_type(slip_type: number): void;
|
|
842
|
+
/**
|
|
834
843
|
*/
|
|
835
844
|
constructor();
|
|
836
845
|
}
|
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-8c34863971fc4dee/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -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__hff8f949cfc01b93d(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
|
|
@@ -454,12 +468,6 @@ module.exports.get_balance_snapshot = function(keys) {
|
|
|
454
468
|
return takeObject(ret);
|
|
455
469
|
};
|
|
456
470
|
|
|
457
|
-
function _assertClass(instance, klass) {
|
|
458
|
-
if (!(instance instanceof klass)) {
|
|
459
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
460
|
-
}
|
|
461
|
-
return instance.ptr;
|
|
462
|
-
}
|
|
463
471
|
/**
|
|
464
472
|
* @param {WasmBalanceSnapshot} snapshot
|
|
465
473
|
* @returns {Promise<void>}
|
|
@@ -619,14 +627,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
619
627
|
return takeObject(ret);
|
|
620
628
|
};
|
|
621
629
|
|
|
622
|
-
function
|
|
623
|
-
try {
|
|
624
|
-
return f.apply(this, args);
|
|
625
|
-
} catch (e) {
|
|
626
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
function __wbg_adapter_400(arg0, arg1, arg2, arg3) {
|
|
630
|
+
function __wbg_adapter_402(arg0, arg1, arg2, arg3) {
|
|
630
631
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb9084490229a77bd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
631
632
|
}
|
|
632
633
|
|
|
@@ -2095,10 +2096,11 @@ class WasmWallet {
|
|
|
2095
2096
|
return takeObject(ret);
|
|
2096
2097
|
}
|
|
2097
2098
|
/**
|
|
2099
|
+
* @param {boolean} keep_keys
|
|
2098
2100
|
* @returns {Promise<void>}
|
|
2099
2101
|
*/
|
|
2100
|
-
reset() {
|
|
2101
|
-
const ret = wasm.wasmwallet_reset(this.__wbg_ptr);
|
|
2102
|
+
reset(keep_keys) {
|
|
2103
|
+
const ret = wasm.wasmwallet_reset(this.__wbg_ptr, keep_keys);
|
|
2102
2104
|
return takeObject(ret);
|
|
2103
2105
|
}
|
|
2104
2106
|
/**
|
|
@@ -2314,6 +2316,19 @@ class WasmWalletSlip {
|
|
|
2314
2316
|
wasm.wasmwalletslip_set_lc(this.__wbg_ptr, lc);
|
|
2315
2317
|
}
|
|
2316
2318
|
/**
|
|
2319
|
+
* @returns {number}
|
|
2320
|
+
*/
|
|
2321
|
+
get_slip_type() {
|
|
2322
|
+
const ret = wasm.wasmwalletslip_get_slip_type(this.__wbg_ptr);
|
|
2323
|
+
return ret;
|
|
2324
|
+
}
|
|
2325
|
+
/**
|
|
2326
|
+
* @param {number} slip_type
|
|
2327
|
+
*/
|
|
2328
|
+
set_slip_type(slip_type) {
|
|
2329
|
+
wasm.wasmwalletslip_set_slip_type(this.__wbg_ptr, slip_type);
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2317
2332
|
*/
|
|
2318
2333
|
constructor() {
|
|
2319
2334
|
const ret = wasm.wasmwalletslip_new_();
|
|
@@ -2323,13 +2338,13 @@ class WasmWalletSlip {
|
|
|
2323
2338
|
}
|
|
2324
2339
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2325
2340
|
|
|
2326
|
-
module.exports.
|
|
2327
|
-
|
|
2341
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2342
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2343
|
+
return addHeapObject(ret);
|
|
2328
2344
|
};
|
|
2329
2345
|
|
|
2330
|
-
module.exports.
|
|
2331
|
-
|
|
2332
|
-
return addHeapObject(ret);
|
|
2346
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2347
|
+
takeObject(arg0);
|
|
2333
2348
|
};
|
|
2334
2349
|
|
|
2335
2350
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
@@ -2337,20 +2352,11 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2337
2352
|
return addHeapObject(ret);
|
|
2338
2353
|
};
|
|
2339
2354
|
|
|
2340
|
-
module.exports.
|
|
2341
|
-
const ret =
|
|
2355
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2356
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2342
2357
|
return addHeapObject(ret);
|
|
2343
2358
|
};
|
|
2344
2359
|
|
|
2345
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2346
|
-
const obj = getObject(arg1);
|
|
2347
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2348
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2349
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2350
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2351
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
2360
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2355
2361
|
const ret = BigInt.asUintN(64, arg0);
|
|
2356
2362
|
return addHeapObject(ret);
|
|
@@ -2361,8 +2367,8 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2361
2367
|
return addHeapObject(ret);
|
|
2362
2368
|
};
|
|
2363
2369
|
|
|
2364
|
-
module.exports.
|
|
2365
|
-
const ret =
|
|
2370
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2371
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2366
2372
|
return addHeapObject(ret);
|
|
2367
2373
|
};
|
|
2368
2374
|
|
|
@@ -2371,61 +2377,44 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
|
2371
2377
|
return addHeapObject(ret);
|
|
2372
2378
|
};
|
|
2373
2379
|
|
|
2374
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2375
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2376
|
-
return addHeapObject(ret);
|
|
2377
|
-
};
|
|
2378
|
-
|
|
2379
2380
|
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2380
2381
|
const ret = WasmBlockchain.__wrap(arg0);
|
|
2381
2382
|
return addHeapObject(ret);
|
|
2382
2383
|
};
|
|
2383
2384
|
|
|
2384
|
-
module.exports.
|
|
2385
|
-
const ret =
|
|
2385
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2386
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2386
2387
|
return addHeapObject(ret);
|
|
2387
2388
|
};
|
|
2388
2389
|
|
|
2389
|
-
module.exports.
|
|
2390
|
-
const ret =
|
|
2390
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2391
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2391
2392
|
return addHeapObject(ret);
|
|
2392
2393
|
};
|
|
2393
2394
|
|
|
2394
|
-
module.exports.
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2395
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2396
|
+
const obj = getObject(arg1);
|
|
2397
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
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;
|
|
2397
2402
|
};
|
|
2398
2403
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2404
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2405
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2401
2406
|
return addHeapObject(ret);
|
|
2402
2407
|
};
|
|
2403
2408
|
|
|
2404
|
-
module.exports.
|
|
2405
|
-
const val = getObject(arg0);
|
|
2406
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2407
|
-
return ret;
|
|
2408
|
-
};
|
|
2409
|
-
|
|
2410
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2411
|
-
const ret = getObject(arg0) === undefined;
|
|
2412
|
-
return ret;
|
|
2413
|
-
};
|
|
2414
|
-
|
|
2415
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2416
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2417
|
-
return ret;
|
|
2418
|
-
};
|
|
2419
|
-
|
|
2420
|
-
module.exports.__wbg_sendmessage_67018e322a774c98 = function(arg0, arg1) {
|
|
2409
|
+
module.exports.__wbg_sendmessage_cf68b535edf8362e = function(arg0, arg1) {
|
|
2421
2410
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2422
2411
|
};
|
|
2423
2412
|
|
|
2424
|
-
module.exports.
|
|
2413
|
+
module.exports.__wbg_sendmessagetoall_735eac59c58af4e7 = function(arg0, arg1) {
|
|
2425
2414
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2426
2415
|
};
|
|
2427
2416
|
|
|
2428
|
-
module.exports.
|
|
2417
|
+
module.exports.__wbg_connecttopeer_b41f72b7a76e7256 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2429
2418
|
let deferred0_0;
|
|
2430
2419
|
let deferred0_1;
|
|
2431
2420
|
try {
|
|
@@ -2438,12 +2427,12 @@ module.exports.__wbg_connecttopeer_491cbaf33b158bd9 = function() { return handle
|
|
|
2438
2427
|
}
|
|
2439
2428
|
}, arguments) };
|
|
2440
2429
|
|
|
2441
|
-
module.exports.
|
|
2430
|
+
module.exports.__wbg_disconnectfrompeer_08e0cc48dd7353de = function() { return handleError(function (arg0) {
|
|
2442
2431
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2443
2432
|
return addHeapObject(ret);
|
|
2444
2433
|
}, arguments) };
|
|
2445
2434
|
|
|
2446
|
-
module.exports.
|
|
2435
|
+
module.exports.__wbg_fetchblockfrompeer_4bcb368d01a23747 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2447
2436
|
let deferred0_0;
|
|
2448
2437
|
let deferred0_1;
|
|
2449
2438
|
try {
|
|
@@ -2456,7 +2445,7 @@ module.exports.__wbg_fetchblockfrompeer_22814d17dd843862 = function() { return h
|
|
|
2456
2445
|
}
|
|
2457
2446
|
}, arguments) };
|
|
2458
2447
|
|
|
2459
|
-
module.exports.
|
|
2448
|
+
module.exports.__wbg_writevalue_bc8c704a67ecc0d4 = function(arg0, arg1, arg2) {
|
|
2460
2449
|
let deferred0_0;
|
|
2461
2450
|
let deferred0_1;
|
|
2462
2451
|
try {
|
|
@@ -2468,7 +2457,7 @@ module.exports.__wbg_writevalue_770c52cffc11de26 = function(arg0, arg1, arg2) {
|
|
|
2468
2457
|
}
|
|
2469
2458
|
};
|
|
2470
2459
|
|
|
2471
|
-
module.exports.
|
|
2460
|
+
module.exports.__wbg_appendvalue_d7320a00d84fc52d = function(arg0, arg1, arg2) {
|
|
2472
2461
|
let deferred0_0;
|
|
2473
2462
|
let deferred0_1;
|
|
2474
2463
|
try {
|
|
@@ -2480,7 +2469,7 @@ module.exports.__wbg_appendvalue_c3994d06444bba90 = function(arg0, arg1, arg2) {
|
|
|
2480
2469
|
}
|
|
2481
2470
|
};
|
|
2482
2471
|
|
|
2483
|
-
module.exports.
|
|
2472
|
+
module.exports.__wbg_flushdata_e87e679eecada4b8 = function(arg0, arg1) {
|
|
2484
2473
|
let deferred0_0;
|
|
2485
2474
|
let deferred0_1;
|
|
2486
2475
|
try {
|
|
@@ -2492,7 +2481,7 @@ module.exports.__wbg_flushdata_31ebff0870d8d608 = function(arg0, arg1) {
|
|
|
2492
2481
|
}
|
|
2493
2482
|
};
|
|
2494
2483
|
|
|
2495
|
-
module.exports.
|
|
2484
|
+
module.exports.__wbg_readvalue_c1dcf73c9b268b01 = function() { return handleError(function (arg0, arg1) {
|
|
2496
2485
|
let deferred0_0;
|
|
2497
2486
|
let deferred0_1;
|
|
2498
2487
|
try {
|
|
@@ -2505,12 +2494,12 @@ module.exports.__wbg_readvalue_df1fcb054e85dfa8 = function() { return handleErro
|
|
|
2505
2494
|
}
|
|
2506
2495
|
}, arguments) };
|
|
2507
2496
|
|
|
2508
|
-
module.exports.
|
|
2497
|
+
module.exports.__wbg_loadblockfilelist_358d1f21310f68bd = function() { return handleError(function () {
|
|
2509
2498
|
const ret = MsgHandler.load_block_file_list();
|
|
2510
2499
|
return addHeapObject(ret);
|
|
2511
2500
|
}, arguments) };
|
|
2512
2501
|
|
|
2513
|
-
module.exports.
|
|
2502
|
+
module.exports.__wbg_isexistingfile_b7e144a2f680959f = function() { return handleError(function (arg0, arg1) {
|
|
2514
2503
|
let deferred0_0;
|
|
2515
2504
|
let deferred0_1;
|
|
2516
2505
|
try {
|
|
@@ -2523,7 +2512,7 @@ module.exports.__wbg_isexistingfile_5a9c0ec680d21ed0 = function() { return handl
|
|
|
2523
2512
|
}
|
|
2524
2513
|
}, arguments) };
|
|
2525
2514
|
|
|
2526
|
-
module.exports.
|
|
2515
|
+
module.exports.__wbg_removevalue_1e64a6b4bd16f5df = function() { return handleError(function (arg0, arg1) {
|
|
2527
2516
|
let deferred0_0;
|
|
2528
2517
|
let deferred0_1;
|
|
2529
2518
|
try {
|
|
@@ -2536,7 +2525,7 @@ module.exports.__wbg_removevalue_7c301f81d676d78f = function() { return handleEr
|
|
|
2536
2525
|
}
|
|
2537
2526
|
}, arguments) };
|
|
2538
2527
|
|
|
2539
|
-
module.exports.
|
|
2528
|
+
module.exports.__wbg_ensureblockdirectoryexists_a787aa1e71d09f5d = function() { return handleError(function (arg0, arg1) {
|
|
2540
2529
|
let deferred0_0;
|
|
2541
2530
|
let deferred0_1;
|
|
2542
2531
|
try {
|
|
@@ -2548,19 +2537,19 @@ module.exports.__wbg_ensureblockdirectoryexists_92453b07f3aa5f75 = function() {
|
|
|
2548
2537
|
}
|
|
2549
2538
|
}, arguments) };
|
|
2550
2539
|
|
|
2551
|
-
module.exports.
|
|
2540
|
+
module.exports.__wbg_processapicall_9f976e85529882d6 = function(arg0, arg1, arg2) {
|
|
2552
2541
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2553
2542
|
};
|
|
2554
2543
|
|
|
2555
|
-
module.exports.
|
|
2544
|
+
module.exports.__wbg_processapisuccess_0e6e4b854819b604 = function(arg0, arg1, arg2) {
|
|
2556
2545
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2557
2546
|
};
|
|
2558
2547
|
|
|
2559
|
-
module.exports.
|
|
2548
|
+
module.exports.__wbg_processapierror_63cf9811525b30c3 = function(arg0, arg1, arg2) {
|
|
2560
2549
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2561
2550
|
};
|
|
2562
2551
|
|
|
2563
|
-
module.exports.
|
|
2552
|
+
module.exports.__wbg_sendinterfaceevent_052f26b47ec1da51 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2564
2553
|
let deferred0_0;
|
|
2565
2554
|
let deferred0_1;
|
|
2566
2555
|
let deferred1_0;
|
|
@@ -2577,7 +2566,7 @@ module.exports.__wbg_sendinterfaceevent_90bf339b30d9610b = function(arg0, arg1,
|
|
|
2577
2566
|
}
|
|
2578
2567
|
};
|
|
2579
2568
|
|
|
2580
|
-
module.exports.
|
|
2569
|
+
module.exports.__wbg_sendblocksuccess_2b33d685a5bb3281 = function(arg0, arg1, arg2) {
|
|
2581
2570
|
let deferred0_0;
|
|
2582
2571
|
let deferred0_1;
|
|
2583
2572
|
try {
|
|
@@ -2589,11 +2578,11 @@ module.exports.__wbg_sendblocksuccess_f7a3bbde1d0f4d25 = function(arg0, arg1, ar
|
|
|
2589
2578
|
}
|
|
2590
2579
|
};
|
|
2591
2580
|
|
|
2592
|
-
module.exports.
|
|
2581
|
+
module.exports.__wbg_sendwalletupdate_fd5b4fc416cc9803 = function() {
|
|
2593
2582
|
MsgHandler.send_wallet_update();
|
|
2594
2583
|
};
|
|
2595
2584
|
|
|
2596
|
-
module.exports.
|
|
2585
|
+
module.exports.__wbg_sendnewversionalert_b76b2127abfa69ef = function(arg0, arg1, arg2) {
|
|
2597
2586
|
let deferred0_0;
|
|
2598
2587
|
let deferred0_1;
|
|
2599
2588
|
try {
|
|
@@ -2605,25 +2594,51 @@ module.exports.__wbg_sendnewversionalert_455fa26e12ed72ea = function(arg0, arg1,
|
|
|
2605
2594
|
}
|
|
2606
2595
|
};
|
|
2607
2596
|
|
|
2608
|
-
module.exports.
|
|
2597
|
+
module.exports.__wbg_sendblockfetchstatusevent_83076d232bcc596f = function(arg0) {
|
|
2609
2598
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2610
2599
|
};
|
|
2611
2600
|
|
|
2612
|
-
module.exports.
|
|
2601
|
+
module.exports.__wbg_savewallet_caa64e47718f86b5 = function() {
|
|
2613
2602
|
MsgHandler.save_wallet();
|
|
2614
2603
|
};
|
|
2615
2604
|
|
|
2616
|
-
module.exports.
|
|
2605
|
+
module.exports.__wbg_loadwallet_a3bbfed661899d39 = function() {
|
|
2617
2606
|
MsgHandler.load_wallet();
|
|
2618
2607
|
};
|
|
2619
2608
|
|
|
2620
|
-
module.exports.
|
|
2609
|
+
module.exports.__wbg_getmyservices_f961555c91ad0ee2 = function() {
|
|
2621
2610
|
const ret = MsgHandler.get_my_services();
|
|
2622
2611
|
_assertClass(ret, WasmPeerServiceList);
|
|
2623
2612
|
var ptr1 = ret.__destroy_into_raw();
|
|
2624
2613
|
return ptr1;
|
|
2625
2614
|
};
|
|
2626
2615
|
|
|
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
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2638
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2639
|
+
return addHeapObject(ret);
|
|
2640
|
+
};
|
|
2641
|
+
|
|
2627
2642
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2628
2643
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2629
2644
|
return ret;
|
|
@@ -2896,7 +2911,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2896
2911
|
const a = state0.a;
|
|
2897
2912
|
state0.a = 0;
|
|
2898
2913
|
try {
|
|
2899
|
-
return
|
|
2914
|
+
return __wbg_adapter_402(a, state0.b, arg0, arg1);
|
|
2900
2915
|
} finally {
|
|
2901
2916
|
state0.a = a;
|
|
2902
2917
|
}
|
|
@@ -2994,8 +3009,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2994
3009
|
return addHeapObject(ret);
|
|
2995
3010
|
};
|
|
2996
3011
|
|
|
2997
|
-
module.exports.
|
|
2998
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3012
|
+
module.exports.__wbindgen_closure_wrapper1334 = function(arg0, arg1, arg2) {
|
|
3013
|
+
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
2999
3014
|
return addHeapObject(ret);
|
|
3000
3015
|
};
|
|
3001
3016
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|