saito-wasm 0.2.54 → 0.2.56
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 +3 -0
- package/pkg/node/index.js +133 -125
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +119 -118
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +122 -118
- package/pkg/web/index.js +124 -116
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +119 -118
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-e43993b09b19fc81 → saito-wasm-59397c6c3182d349}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-e43993b09b19fc81 → saito-wasm-59397c6c3182d349}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
package/pkg/node/index.js
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-
|
|
5
|
-
const {
|
|
4
|
+
const { MsgHandler } = require(String.raw`./snippets/saito-wasm-59397c6c3182d349/js/msg_handler.js`);
|
|
5
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
8
8
|
|
|
9
9
|
heap.push(undefined, null, true, false);
|
|
10
10
|
|
|
11
|
-
function getObject(idx) { return heap[idx]; }
|
|
12
|
-
|
|
13
11
|
let heap_next = heap.length;
|
|
14
12
|
|
|
13
|
+
function addHeapObject(obj) {
|
|
14
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
15
|
+
const idx = heap_next;
|
|
16
|
+
heap_next = heap[idx];
|
|
17
|
+
|
|
18
|
+
heap[idx] = obj;
|
|
19
|
+
return idx;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getObject(idx) { return heap[idx]; }
|
|
23
|
+
|
|
15
24
|
function dropObject(idx) {
|
|
16
25
|
if (idx < 132) return;
|
|
17
26
|
heap[idx] = heap_next;
|
|
@@ -24,9 +33,7 @@ function takeObject(idx) {
|
|
|
24
33
|
return ret;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
cachedTextDecoder.decode();
|
|
36
|
+
let WASM_VECTOR_LEN = 0;
|
|
30
37
|
|
|
31
38
|
let cachedUint8Memory0 = null;
|
|
32
39
|
|
|
@@ -37,22 +44,6 @@ function getUint8Memory0() {
|
|
|
37
44
|
return cachedUint8Memory0;
|
|
38
45
|
}
|
|
39
46
|
|
|
40
|
-
function getStringFromWasm0(ptr, len) {
|
|
41
|
-
ptr = ptr >>> 0;
|
|
42
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
|
-
}
|
|
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
|
-
let WASM_VECTOR_LEN = 0;
|
|
55
|
-
|
|
56
47
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
57
48
|
|
|
58
49
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -120,6 +111,15 @@ function getInt32Memory0() {
|
|
|
120
111
|
return cachedInt32Memory0;
|
|
121
112
|
}
|
|
122
113
|
|
|
114
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
115
|
+
|
|
116
|
+
cachedTextDecoder.decode();
|
|
117
|
+
|
|
118
|
+
function getStringFromWasm0(ptr, len) {
|
|
119
|
+
ptr = ptr >>> 0;
|
|
120
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
123
|
let cachedFloat64Memory0 = null;
|
|
124
124
|
|
|
125
125
|
function getFloat64Memory0() {
|
|
@@ -225,7 +225,15 @@ 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__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
|
|
229
|
+
}
|
|
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
|
+
}
|
|
229
237
|
}
|
|
230
238
|
|
|
231
239
|
function _assertClass(instance, klass) {
|
|
@@ -619,15 +627,8 @@ module.exports.produce_block_without_gt = function() {
|
|
|
619
627
|
return takeObject(ret);
|
|
620
628
|
};
|
|
621
629
|
|
|
622
|
-
function
|
|
623
|
-
|
|
624
|
-
return f.apply(this, args);
|
|
625
|
-
} catch (e) {
|
|
626
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
function __wbg_adapter_403(arg0, arg1, arg2, arg3) {
|
|
630
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
630
|
+
function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
|
|
631
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
631
632
|
}
|
|
632
633
|
|
|
633
634
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -784,6 +785,13 @@ class WasmBlock {
|
|
|
784
785
|
/**
|
|
785
786
|
* @returns {bigint}
|
|
786
787
|
*/
|
|
788
|
+
get total_fees_cumulative() {
|
|
789
|
+
const ret = wasm.wasmblock_total_fees_cumulative(this.__wbg_ptr);
|
|
790
|
+
return BigInt.asUintN(64, ret);
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* @returns {bigint}
|
|
794
|
+
*/
|
|
787
795
|
get difficulty() {
|
|
788
796
|
const ret = wasm.wasmblock_difficulty(this.__wbg_ptr);
|
|
789
797
|
return BigInt.asUintN(64, ret);
|
|
@@ -2247,40 +2255,40 @@ class WasmWalletSlip {
|
|
|
2247
2255
|
* @returns {bigint}
|
|
2248
2256
|
*/
|
|
2249
2257
|
get_amount() {
|
|
2250
|
-
const ret = wasm.
|
|
2258
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
2251
2259
|
return BigInt.asUintN(64, ret);
|
|
2252
2260
|
}
|
|
2253
2261
|
/**
|
|
2254
2262
|
* @param {bigint} amount
|
|
2255
2263
|
*/
|
|
2256
2264
|
set_amount(amount) {
|
|
2257
|
-
wasm.
|
|
2265
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2258
2266
|
}
|
|
2259
2267
|
/**
|
|
2260
2268
|
* @returns {bigint}
|
|
2261
2269
|
*/
|
|
2262
2270
|
get_block_id() {
|
|
2263
|
-
const ret = wasm.
|
|
2271
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2264
2272
|
return BigInt.asUintN(64, ret);
|
|
2265
2273
|
}
|
|
2266
2274
|
/**
|
|
2267
2275
|
* @param {bigint} block_id
|
|
2268
2276
|
*/
|
|
2269
2277
|
set_block_id(block_id) {
|
|
2270
|
-
wasm.
|
|
2278
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2271
2279
|
}
|
|
2272
2280
|
/**
|
|
2273
2281
|
* @returns {bigint}
|
|
2274
2282
|
*/
|
|
2275
2283
|
get_tx_ordinal() {
|
|
2276
|
-
const ret = wasm.
|
|
2284
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2277
2285
|
return BigInt.asUintN(64, ret);
|
|
2278
2286
|
}
|
|
2279
2287
|
/**
|
|
2280
2288
|
* @param {bigint} ordinal
|
|
2281
2289
|
*/
|
|
2282
2290
|
set_tx_ordinal(ordinal) {
|
|
2283
|
-
wasm.
|
|
2291
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2284
2292
|
}
|
|
2285
2293
|
/**
|
|
2286
2294
|
* @returns {number}
|
|
@@ -2344,42 +2352,17 @@ class WasmWalletSlip {
|
|
|
2344
2352
|
}
|
|
2345
2353
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2346
2354
|
|
|
2347
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2348
|
-
takeObject(arg0);
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2352
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2353
|
-
return addHeapObject(ret);
|
|
2354
|
-
};
|
|
2355
|
-
|
|
2356
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2357
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2358
|
-
return addHeapObject(ret);
|
|
2359
|
-
};
|
|
2360
|
-
|
|
2361
2355
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2362
2356
|
const ret = BigInt.asUintN(64, arg0);
|
|
2363
2357
|
return addHeapObject(ret);
|
|
2364
2358
|
};
|
|
2365
2359
|
|
|
2366
|
-
module.exports.
|
|
2367
|
-
|
|
2368
|
-
return addHeapObject(ret);
|
|
2369
|
-
};
|
|
2370
|
-
|
|
2371
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2372
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2373
|
-
return addHeapObject(ret);
|
|
2374
|
-
};
|
|
2375
|
-
|
|
2376
|
-
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2377
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2378
|
-
return addHeapObject(ret);
|
|
2360
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2361
|
+
takeObject(arg0);
|
|
2379
2362
|
};
|
|
2380
2363
|
|
|
2381
|
-
module.exports.
|
|
2382
|
-
const ret =
|
|
2364
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2365
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2383
2366
|
return addHeapObject(ret);
|
|
2384
2367
|
};
|
|
2385
2368
|
|
|
@@ -2388,16 +2371,6 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
|
2388
2371
|
return addHeapObject(ret);
|
|
2389
2372
|
};
|
|
2390
2373
|
|
|
2391
|
-
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2392
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2393
|
-
return addHeapObject(ret);
|
|
2394
|
-
};
|
|
2395
|
-
|
|
2396
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2397
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2398
|
-
return addHeapObject(ret);
|
|
2399
|
-
};
|
|
2400
|
-
|
|
2401
2374
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2402
2375
|
const obj = getObject(arg1);
|
|
2403
2376
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2407,46 +2380,50 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2407
2380
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2408
2381
|
};
|
|
2409
2382
|
|
|
2410
|
-
module.exports.
|
|
2411
|
-
const ret =
|
|
2383
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2384
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2412
2385
|
return addHeapObject(ret);
|
|
2413
2386
|
};
|
|
2414
2387
|
|
|
2415
|
-
module.exports.
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2418
|
-
return ret;
|
|
2388
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2389
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2390
|
+
return addHeapObject(ret);
|
|
2419
2391
|
};
|
|
2420
2392
|
|
|
2421
|
-
module.exports.
|
|
2422
|
-
const ret =
|
|
2423
|
-
return ret;
|
|
2393
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2394
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2395
|
+
return addHeapObject(ret);
|
|
2424
2396
|
};
|
|
2425
2397
|
|
|
2426
|
-
module.exports.
|
|
2427
|
-
const ret =
|
|
2428
|
-
return ret;
|
|
2398
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2399
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2400
|
+
return addHeapObject(ret);
|
|
2429
2401
|
};
|
|
2430
2402
|
|
|
2431
|
-
module.exports.
|
|
2432
|
-
const ret =
|
|
2403
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2404
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2433
2405
|
return addHeapObject(ret);
|
|
2434
2406
|
};
|
|
2435
2407
|
|
|
2436
|
-
module.exports.
|
|
2437
|
-
const ret =
|
|
2408
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2409
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2410
|
+
return addHeapObject(ret);
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2414
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2438
2415
|
return addHeapObject(ret);
|
|
2439
2416
|
};
|
|
2440
2417
|
|
|
2441
|
-
module.exports.
|
|
2418
|
+
module.exports.__wbg_sendmessage_89c5d953db845c44 = function(arg0, arg1) {
|
|
2442
2419
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2443
2420
|
};
|
|
2444
2421
|
|
|
2445
|
-
module.exports.
|
|
2422
|
+
module.exports.__wbg_sendmessagetoall_7e1ec9cbf4207137 = function(arg0, arg1) {
|
|
2446
2423
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2447
2424
|
};
|
|
2448
2425
|
|
|
2449
|
-
module.exports.
|
|
2426
|
+
module.exports.__wbg_connecttopeer_c02c6ec6d841f3dd = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2450
2427
|
let deferred0_0;
|
|
2451
2428
|
let deferred0_1;
|
|
2452
2429
|
try {
|
|
@@ -2459,12 +2436,12 @@ module.exports.__wbg_connecttopeer_03c0f3fae8f8544a = function() { return handle
|
|
|
2459
2436
|
}
|
|
2460
2437
|
}, arguments) };
|
|
2461
2438
|
|
|
2462
|
-
module.exports.
|
|
2439
|
+
module.exports.__wbg_disconnectfrompeer_a9f99c3bee188581 = function() { return handleError(function (arg0) {
|
|
2463
2440
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2464
2441
|
return addHeapObject(ret);
|
|
2465
2442
|
}, arguments) };
|
|
2466
2443
|
|
|
2467
|
-
module.exports.
|
|
2444
|
+
module.exports.__wbg_fetchblockfrompeer_894215362129ea00 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2468
2445
|
let deferred0_0;
|
|
2469
2446
|
let deferred0_1;
|
|
2470
2447
|
try {
|
|
@@ -2477,7 +2454,7 @@ module.exports.__wbg_fetchblockfrompeer_e2201fc411b7867d = function() { return h
|
|
|
2477
2454
|
}
|
|
2478
2455
|
}, arguments) };
|
|
2479
2456
|
|
|
2480
|
-
module.exports.
|
|
2457
|
+
module.exports.__wbg_writevalue_3aa02414a189148b = function(arg0, arg1, arg2) {
|
|
2481
2458
|
let deferred0_0;
|
|
2482
2459
|
let deferred0_1;
|
|
2483
2460
|
try {
|
|
@@ -2489,7 +2466,7 @@ module.exports.__wbg_writevalue_b8bbfdc4d1e4d276 = function(arg0, arg1, arg2) {
|
|
|
2489
2466
|
}
|
|
2490
2467
|
};
|
|
2491
2468
|
|
|
2492
|
-
module.exports.
|
|
2469
|
+
module.exports.__wbg_appendvalue_e2ea2707bb1c3803 = function(arg0, arg1, arg2) {
|
|
2493
2470
|
let deferred0_0;
|
|
2494
2471
|
let deferred0_1;
|
|
2495
2472
|
try {
|
|
@@ -2501,7 +2478,7 @@ module.exports.__wbg_appendvalue_59202351dc3c3750 = function(arg0, arg1, arg2) {
|
|
|
2501
2478
|
}
|
|
2502
2479
|
};
|
|
2503
2480
|
|
|
2504
|
-
module.exports.
|
|
2481
|
+
module.exports.__wbg_flushdata_28096a878b65fbcc = function(arg0, arg1) {
|
|
2505
2482
|
let deferred0_0;
|
|
2506
2483
|
let deferred0_1;
|
|
2507
2484
|
try {
|
|
@@ -2513,7 +2490,7 @@ module.exports.__wbg_flushdata_b4cd4de56d788a5a = function(arg0, arg1) {
|
|
|
2513
2490
|
}
|
|
2514
2491
|
};
|
|
2515
2492
|
|
|
2516
|
-
module.exports.
|
|
2493
|
+
module.exports.__wbg_readvalue_e422842b5fd3084c = function() { return handleError(function (arg0, arg1) {
|
|
2517
2494
|
let deferred0_0;
|
|
2518
2495
|
let deferred0_1;
|
|
2519
2496
|
try {
|
|
@@ -2526,12 +2503,12 @@ module.exports.__wbg_readvalue_7852ac963511cc8c = function() { return handleErro
|
|
|
2526
2503
|
}
|
|
2527
2504
|
}, arguments) };
|
|
2528
2505
|
|
|
2529
|
-
module.exports.
|
|
2506
|
+
module.exports.__wbg_loadblockfilelist_1b3419de2509b26e = function() { return handleError(function () {
|
|
2530
2507
|
const ret = MsgHandler.load_block_file_list();
|
|
2531
2508
|
return addHeapObject(ret);
|
|
2532
2509
|
}, arguments) };
|
|
2533
2510
|
|
|
2534
|
-
module.exports.
|
|
2511
|
+
module.exports.__wbg_isexistingfile_ecafce5179cbd8e0 = function() { return handleError(function (arg0, arg1) {
|
|
2535
2512
|
let deferred0_0;
|
|
2536
2513
|
let deferred0_1;
|
|
2537
2514
|
try {
|
|
@@ -2544,7 +2521,7 @@ module.exports.__wbg_isexistingfile_41c7f491b58e322e = function() { return handl
|
|
|
2544
2521
|
}
|
|
2545
2522
|
}, arguments) };
|
|
2546
2523
|
|
|
2547
|
-
module.exports.
|
|
2524
|
+
module.exports.__wbg_removevalue_df9e74dfe383bc4e = function() { return handleError(function (arg0, arg1) {
|
|
2548
2525
|
let deferred0_0;
|
|
2549
2526
|
let deferred0_1;
|
|
2550
2527
|
try {
|
|
@@ -2557,7 +2534,7 @@ module.exports.__wbg_removevalue_531e7cfbe67deea7 = function() { return handleEr
|
|
|
2557
2534
|
}
|
|
2558
2535
|
}, arguments) };
|
|
2559
2536
|
|
|
2560
|
-
module.exports.
|
|
2537
|
+
module.exports.__wbg_ensureblockdirectoryexists_a83c598e26c77a7b = function() { return handleError(function (arg0, arg1) {
|
|
2561
2538
|
let deferred0_0;
|
|
2562
2539
|
let deferred0_1;
|
|
2563
2540
|
try {
|
|
@@ -2569,19 +2546,19 @@ module.exports.__wbg_ensureblockdirectoryexists_296ba406e9f3e694 = function() {
|
|
|
2569
2546
|
}
|
|
2570
2547
|
}, arguments) };
|
|
2571
2548
|
|
|
2572
|
-
module.exports.
|
|
2549
|
+
module.exports.__wbg_processapicall_68839ea21dae2364 = function(arg0, arg1, arg2) {
|
|
2573
2550
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2574
2551
|
};
|
|
2575
2552
|
|
|
2576
|
-
module.exports.
|
|
2553
|
+
module.exports.__wbg_processapisuccess_250b8696a2534686 = function(arg0, arg1, arg2) {
|
|
2577
2554
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2578
2555
|
};
|
|
2579
2556
|
|
|
2580
|
-
module.exports.
|
|
2557
|
+
module.exports.__wbg_processapierror_1c02730a02cd3310 = function(arg0, arg1, arg2) {
|
|
2581
2558
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2582
2559
|
};
|
|
2583
2560
|
|
|
2584
|
-
module.exports.
|
|
2561
|
+
module.exports.__wbg_sendinterfaceevent_3e3d3e5dd7c01a25 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2585
2562
|
let deferred0_0;
|
|
2586
2563
|
let deferred0_1;
|
|
2587
2564
|
let deferred1_0;
|
|
@@ -2598,7 +2575,7 @@ module.exports.__wbg_sendinterfaceevent_3cf6a87ed61cbc1f = function(arg0, arg1,
|
|
|
2598
2575
|
}
|
|
2599
2576
|
};
|
|
2600
2577
|
|
|
2601
|
-
module.exports.
|
|
2578
|
+
module.exports.__wbg_sendblocksuccess_252ef1b034261e80 = function(arg0, arg1, arg2) {
|
|
2602
2579
|
let deferred0_0;
|
|
2603
2580
|
let deferred0_1;
|
|
2604
2581
|
try {
|
|
@@ -2610,11 +2587,11 @@ module.exports.__wbg_sendblocksuccess_0afc702da42cdf1d = function(arg0, arg1, ar
|
|
|
2610
2587
|
}
|
|
2611
2588
|
};
|
|
2612
2589
|
|
|
2613
|
-
module.exports.
|
|
2590
|
+
module.exports.__wbg_sendwalletupdate_f94d1d7aab3b6ce7 = function() {
|
|
2614
2591
|
MsgHandler.send_wallet_update();
|
|
2615
2592
|
};
|
|
2616
2593
|
|
|
2617
|
-
module.exports.
|
|
2594
|
+
module.exports.__wbg_sendnewversionalert_ba626c3bcf984092 = function(arg0, arg1, arg2) {
|
|
2618
2595
|
let deferred0_0;
|
|
2619
2596
|
let deferred0_1;
|
|
2620
2597
|
try {
|
|
@@ -2626,25 +2603,56 @@ module.exports.__wbg_sendnewversionalert_f64ad7412651900e = function(arg0, arg1,
|
|
|
2626
2603
|
}
|
|
2627
2604
|
};
|
|
2628
2605
|
|
|
2629
|
-
module.exports.
|
|
2606
|
+
module.exports.__wbg_sendblockfetchstatusevent_850b3ff30635642a = function(arg0) {
|
|
2630
2607
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2631
2608
|
};
|
|
2632
2609
|
|
|
2633
|
-
module.exports.
|
|
2610
|
+
module.exports.__wbg_savewallet_3a6dfcb74d2a467a = function() {
|
|
2634
2611
|
MsgHandler.save_wallet();
|
|
2635
2612
|
};
|
|
2636
2613
|
|
|
2637
|
-
module.exports.
|
|
2614
|
+
module.exports.__wbg_loadwallet_756bd63dbad4b559 = function() {
|
|
2638
2615
|
MsgHandler.load_wallet();
|
|
2639
2616
|
};
|
|
2640
2617
|
|
|
2641
|
-
module.exports.
|
|
2618
|
+
module.exports.__wbg_getmyservices_90dfe938e90900f4 = function() {
|
|
2642
2619
|
const ret = MsgHandler.get_my_services();
|
|
2643
2620
|
_assertClass(ret, WasmPeerServiceList);
|
|
2644
2621
|
var ptr1 = ret.__destroy_into_raw();
|
|
2645
2622
|
return ptr1;
|
|
2646
2623
|
};
|
|
2647
2624
|
|
|
2625
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2626
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2627
|
+
return addHeapObject(ret);
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2631
|
+
const val = getObject(arg0);
|
|
2632
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2633
|
+
return ret;
|
|
2634
|
+
};
|
|
2635
|
+
|
|
2636
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2637
|
+
const ret = getObject(arg0) === undefined;
|
|
2638
|
+
return ret;
|
|
2639
|
+
};
|
|
2640
|
+
|
|
2641
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2642
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2643
|
+
return ret;
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2647
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2648
|
+
return addHeapObject(ret);
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2652
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2653
|
+
return addHeapObject(ret);
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2648
2656
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2649
2657
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2650
2658
|
return ret;
|
|
@@ -2683,6 +2691,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2683
2691
|
return ret;
|
|
2684
2692
|
};
|
|
2685
2693
|
|
|
2694
|
+
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2695
|
+
queueMicrotask(getObject(arg0));
|
|
2696
|
+
};
|
|
2697
|
+
|
|
2686
2698
|
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2687
2699
|
const ret = getObject(arg0).queueMicrotask;
|
|
2688
2700
|
return addHeapObject(ret);
|
|
@@ -2693,10 +2705,6 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
2693
2705
|
return ret;
|
|
2694
2706
|
};
|
|
2695
2707
|
|
|
2696
|
-
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2697
|
-
queueMicrotask(getObject(arg0));
|
|
2698
|
-
};
|
|
2699
|
-
|
|
2700
2708
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
2701
2709
|
const ret = new Error();
|
|
2702
2710
|
return addHeapObject(ret);
|
|
@@ -2917,7 +2925,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2917
2925
|
const a = state0.a;
|
|
2918
2926
|
state0.a = 0;
|
|
2919
2927
|
try {
|
|
2920
|
-
return
|
|
2928
|
+
return __wbg_adapter_404(a, state0.b, arg0, arg1);
|
|
2921
2929
|
} finally {
|
|
2922
2930
|
state0.a = a;
|
|
2923
2931
|
}
|
|
@@ -3015,8 +3023,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3015
3023
|
return addHeapObject(ret);
|
|
3016
3024
|
};
|
|
3017
3025
|
|
|
3018
|
-
module.exports.
|
|
3019
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3026
|
+
module.exports.__wbindgen_closure_wrapper1308 = function(arg0, arg1, arg2) {
|
|
3027
|
+
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
3020
3028
|
return addHeapObject(ret);
|
|
3021
3029
|
};
|
|
3022
3030
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|