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/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-59397c6c3182d349/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -6,10 +6,19 @@ const heap = new Array(128).fill(undefined);
|
|
|
6
6
|
|
|
7
7
|
heap.push(undefined, null, true, false);
|
|
8
8
|
|
|
9
|
-
function getObject(idx) { return heap[idx]; }
|
|
10
|
-
|
|
11
9
|
let heap_next = heap.length;
|
|
12
10
|
|
|
11
|
+
function addHeapObject(obj) {
|
|
12
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
+
const idx = heap_next;
|
|
14
|
+
heap_next = heap[idx];
|
|
15
|
+
|
|
16
|
+
heap[idx] = obj;
|
|
17
|
+
return idx;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function getObject(idx) { return heap[idx]; }
|
|
21
|
+
|
|
13
22
|
function dropObject(idx) {
|
|
14
23
|
if (idx < 132) return;
|
|
15
24
|
heap[idx] = heap_next;
|
|
@@ -22,9 +31,7 @@ function takeObject(idx) {
|
|
|
22
31
|
return ret;
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
34
|
+
let WASM_VECTOR_LEN = 0;
|
|
28
35
|
|
|
29
36
|
let cachedUint8Memory0 = null;
|
|
30
37
|
|
|
@@ -35,22 +42,6 @@ function getUint8Memory0() {
|
|
|
35
42
|
return cachedUint8Memory0;
|
|
36
43
|
}
|
|
37
44
|
|
|
38
|
-
function getStringFromWasm0(ptr, len) {
|
|
39
|
-
ptr = ptr >>> 0;
|
|
40
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function addHeapObject(obj) {
|
|
44
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
45
|
-
const idx = heap_next;
|
|
46
|
-
heap_next = heap[idx];
|
|
47
|
-
|
|
48
|
-
heap[idx] = obj;
|
|
49
|
-
return idx;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let WASM_VECTOR_LEN = 0;
|
|
53
|
-
|
|
54
45
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
55
46
|
|
|
56
47
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -118,6 +109,15 @@ function getInt32Memory0() {
|
|
|
118
109
|
return cachedInt32Memory0;
|
|
119
110
|
}
|
|
120
111
|
|
|
112
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
113
|
+
|
|
114
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
115
|
+
|
|
116
|
+
function getStringFromWasm0(ptr, len) {
|
|
117
|
+
ptr = ptr >>> 0;
|
|
118
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
121
|
let cachedFloat64Memory0 = null;
|
|
122
122
|
|
|
123
123
|
function getFloat64Memory0() {
|
|
@@ -223,7 +223,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
223
223
|
return real;
|
|
224
224
|
}
|
|
225
225
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
226
|
-
wasm.
|
|
226
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccc858efee036015(arg0, arg1, addHeapObject(arg2));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function handleError(f, args) {
|
|
230
|
+
try {
|
|
231
|
+
return f.apply(this, args);
|
|
232
|
+
} catch (e) {
|
|
233
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
234
|
+
}
|
|
227
235
|
}
|
|
228
236
|
|
|
229
237
|
function _assertClass(instance, klass) {
|
|
@@ -617,15 +625,8 @@ export function produce_block_without_gt() {
|
|
|
617
625
|
return takeObject(ret);
|
|
618
626
|
}
|
|
619
627
|
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
return f.apply(this, args);
|
|
623
|
-
} catch (e) {
|
|
624
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
function __wbg_adapter_403(arg0, arg1, arg2, arg3) {
|
|
628
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h0c01c5600db7d9cc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
628
|
+
function __wbg_adapter_404(arg0, arg1, arg2, arg3) {
|
|
629
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d49289f1d827dd9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
629
630
|
}
|
|
630
631
|
|
|
631
632
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -780,6 +781,13 @@ export class WasmBlock {
|
|
|
780
781
|
/**
|
|
781
782
|
* @returns {bigint}
|
|
782
783
|
*/
|
|
784
|
+
get total_fees_cumulative() {
|
|
785
|
+
const ret = wasm.wasmblock_total_fees_cumulative(this.__wbg_ptr);
|
|
786
|
+
return BigInt.asUintN(64, ret);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* @returns {bigint}
|
|
790
|
+
*/
|
|
783
791
|
get difficulty() {
|
|
784
792
|
const ret = wasm.wasmblock_difficulty(this.__wbg_ptr);
|
|
785
793
|
return BigInt.asUintN(64, ret);
|
|
@@ -2232,40 +2240,40 @@ export class WasmWalletSlip {
|
|
|
2232
2240
|
* @returns {bigint}
|
|
2233
2241
|
*/
|
|
2234
2242
|
get_amount() {
|
|
2235
|
-
const ret = wasm.
|
|
2243
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
2236
2244
|
return BigInt.asUintN(64, ret);
|
|
2237
2245
|
}
|
|
2238
2246
|
/**
|
|
2239
2247
|
* @param {bigint} amount
|
|
2240
2248
|
*/
|
|
2241
2249
|
set_amount(amount) {
|
|
2242
|
-
wasm.
|
|
2250
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
2243
2251
|
}
|
|
2244
2252
|
/**
|
|
2245
2253
|
* @returns {bigint}
|
|
2246
2254
|
*/
|
|
2247
2255
|
get_block_id() {
|
|
2248
|
-
const ret = wasm.
|
|
2256
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
2249
2257
|
return BigInt.asUintN(64, ret);
|
|
2250
2258
|
}
|
|
2251
2259
|
/**
|
|
2252
2260
|
* @param {bigint} block_id
|
|
2253
2261
|
*/
|
|
2254
2262
|
set_block_id(block_id) {
|
|
2255
|
-
wasm.
|
|
2263
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
2256
2264
|
}
|
|
2257
2265
|
/**
|
|
2258
2266
|
* @returns {bigint}
|
|
2259
2267
|
*/
|
|
2260
2268
|
get_tx_ordinal() {
|
|
2261
|
-
const ret = wasm.
|
|
2269
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
2262
2270
|
return BigInt.asUintN(64, ret);
|
|
2263
2271
|
}
|
|
2264
2272
|
/**
|
|
2265
2273
|
* @param {bigint} ordinal
|
|
2266
2274
|
*/
|
|
2267
2275
|
set_tx_ordinal(ordinal) {
|
|
2268
|
-
wasm.
|
|
2276
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
2269
2277
|
}
|
|
2270
2278
|
/**
|
|
2271
2279
|
* @returns {number}
|
|
@@ -2362,49 +2370,21 @@ async function __wbg_load(module, imports) {
|
|
|
2362
2370
|
function __wbg_get_imports() {
|
|
2363
2371
|
const imports = {};
|
|
2364
2372
|
imports.wbg = {};
|
|
2365
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2366
|
-
takeObject(arg0);
|
|
2367
|
-
};
|
|
2368
|
-
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2369
|
-
const ret = WasmTransaction.__wrap(arg0);
|
|
2370
|
-
return addHeapObject(ret);
|
|
2371
|
-
};
|
|
2372
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2373
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2374
|
-
return addHeapObject(ret);
|
|
2375
|
-
};
|
|
2376
2373
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2377
2374
|
const ret = BigInt.asUintN(64, arg0);
|
|
2378
2375
|
return addHeapObject(ret);
|
|
2379
2376
|
};
|
|
2380
|
-
imports.wbg.
|
|
2381
|
-
|
|
2382
|
-
return addHeapObject(ret);
|
|
2383
|
-
};
|
|
2384
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2385
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2386
|
-
return addHeapObject(ret);
|
|
2387
|
-
};
|
|
2388
|
-
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2389
|
-
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2390
|
-
return addHeapObject(ret);
|
|
2377
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2378
|
+
takeObject(arg0);
|
|
2391
2379
|
};
|
|
2392
|
-
imports.wbg.
|
|
2393
|
-
const ret =
|
|
2380
|
+
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2381
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2394
2382
|
return addHeapObject(ret);
|
|
2395
2383
|
};
|
|
2396
2384
|
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2397
2385
|
const ret = WasmWallet.__wrap(arg0);
|
|
2398
2386
|
return addHeapObject(ret);
|
|
2399
2387
|
};
|
|
2400
|
-
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2401
|
-
const ret = WasmPeer.__wrap(arg0);
|
|
2402
|
-
return addHeapObject(ret);
|
|
2403
|
-
};
|
|
2404
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2405
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2406
|
-
return addHeapObject(ret);
|
|
2407
|
-
};
|
|
2408
2388
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2409
2389
|
const obj = getObject(arg1);
|
|
2410
2390
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2413,38 +2393,41 @@ function __wbg_get_imports() {
|
|
|
2413
2393
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
2414
2394
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2415
2395
|
};
|
|
2416
|
-
imports.wbg.
|
|
2417
|
-
const ret =
|
|
2396
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2397
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2418
2398
|
return addHeapObject(ret);
|
|
2419
2399
|
};
|
|
2420
|
-
imports.wbg.
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2423
|
-
return ret;
|
|
2400
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2401
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2402
|
+
return addHeapObject(ret);
|
|
2424
2403
|
};
|
|
2425
|
-
imports.wbg.
|
|
2426
|
-
const ret =
|
|
2427
|
-
return ret;
|
|
2404
|
+
imports.wbg.__wbg_wasmslip_new = function(arg0) {
|
|
2405
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2406
|
+
return addHeapObject(ret);
|
|
2428
2407
|
};
|
|
2429
|
-
imports.wbg.
|
|
2430
|
-
const ret =
|
|
2431
|
-
return ret;
|
|
2408
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2409
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2410
|
+
return addHeapObject(ret);
|
|
2432
2411
|
};
|
|
2433
|
-
imports.wbg.
|
|
2434
|
-
const ret =
|
|
2412
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2413
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2435
2414
|
return addHeapObject(ret);
|
|
2436
2415
|
};
|
|
2437
|
-
imports.wbg.
|
|
2438
|
-
const ret =
|
|
2416
|
+
imports.wbg.__wbg_wasmblock_new = function(arg0) {
|
|
2417
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2418
|
+
return addHeapObject(ret);
|
|
2419
|
+
};
|
|
2420
|
+
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2421
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2439
2422
|
return addHeapObject(ret);
|
|
2440
2423
|
};
|
|
2441
|
-
imports.wbg.
|
|
2424
|
+
imports.wbg.__wbg_sendmessage_89c5d953db845c44 = function(arg0, arg1) {
|
|
2442
2425
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2443
2426
|
};
|
|
2444
|
-
imports.wbg.
|
|
2427
|
+
imports.wbg.__wbg_sendmessagetoall_7e1ec9cbf4207137 = function(arg0, arg1) {
|
|
2445
2428
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2446
2429
|
};
|
|
2447
|
-
imports.wbg.
|
|
2430
|
+
imports.wbg.__wbg_connecttopeer_c02c6ec6d841f3dd = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2448
2431
|
let deferred0_0;
|
|
2449
2432
|
let deferred0_1;
|
|
2450
2433
|
try {
|
|
@@ -2456,11 +2439,11 @@ function __wbg_get_imports() {
|
|
|
2456
2439
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2457
2440
|
}
|
|
2458
2441
|
}, arguments) };
|
|
2459
|
-
imports.wbg.
|
|
2442
|
+
imports.wbg.__wbg_disconnectfrompeer_a9f99c3bee188581 = function() { return handleError(function (arg0) {
|
|
2460
2443
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2461
2444
|
return addHeapObject(ret);
|
|
2462
2445
|
}, arguments) };
|
|
2463
|
-
imports.wbg.
|
|
2446
|
+
imports.wbg.__wbg_fetchblockfrompeer_894215362129ea00 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2464
2447
|
let deferred0_0;
|
|
2465
2448
|
let deferred0_1;
|
|
2466
2449
|
try {
|
|
@@ -2472,7 +2455,7 @@ function __wbg_get_imports() {
|
|
|
2472
2455
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2473
2456
|
}
|
|
2474
2457
|
}, arguments) };
|
|
2475
|
-
imports.wbg.
|
|
2458
|
+
imports.wbg.__wbg_writevalue_3aa02414a189148b = function(arg0, arg1, arg2) {
|
|
2476
2459
|
let deferred0_0;
|
|
2477
2460
|
let deferred0_1;
|
|
2478
2461
|
try {
|
|
@@ -2483,7 +2466,7 @@ function __wbg_get_imports() {
|
|
|
2483
2466
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2484
2467
|
}
|
|
2485
2468
|
};
|
|
2486
|
-
imports.wbg.
|
|
2469
|
+
imports.wbg.__wbg_appendvalue_e2ea2707bb1c3803 = function(arg0, arg1, arg2) {
|
|
2487
2470
|
let deferred0_0;
|
|
2488
2471
|
let deferred0_1;
|
|
2489
2472
|
try {
|
|
@@ -2494,7 +2477,7 @@ function __wbg_get_imports() {
|
|
|
2494
2477
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2495
2478
|
}
|
|
2496
2479
|
};
|
|
2497
|
-
imports.wbg.
|
|
2480
|
+
imports.wbg.__wbg_flushdata_28096a878b65fbcc = function(arg0, arg1) {
|
|
2498
2481
|
let deferred0_0;
|
|
2499
2482
|
let deferred0_1;
|
|
2500
2483
|
try {
|
|
@@ -2505,7 +2488,7 @@ function __wbg_get_imports() {
|
|
|
2505
2488
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2506
2489
|
}
|
|
2507
2490
|
};
|
|
2508
|
-
imports.wbg.
|
|
2491
|
+
imports.wbg.__wbg_readvalue_e422842b5fd3084c = function() { return handleError(function (arg0, arg1) {
|
|
2509
2492
|
let deferred0_0;
|
|
2510
2493
|
let deferred0_1;
|
|
2511
2494
|
try {
|
|
@@ -2517,11 +2500,11 @@ function __wbg_get_imports() {
|
|
|
2517
2500
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2518
2501
|
}
|
|
2519
2502
|
}, arguments) };
|
|
2520
|
-
imports.wbg.
|
|
2503
|
+
imports.wbg.__wbg_loadblockfilelist_1b3419de2509b26e = function() { return handleError(function () {
|
|
2521
2504
|
const ret = MsgHandler.load_block_file_list();
|
|
2522
2505
|
return addHeapObject(ret);
|
|
2523
2506
|
}, arguments) };
|
|
2524
|
-
imports.wbg.
|
|
2507
|
+
imports.wbg.__wbg_isexistingfile_ecafce5179cbd8e0 = function() { return handleError(function (arg0, arg1) {
|
|
2525
2508
|
let deferred0_0;
|
|
2526
2509
|
let deferred0_1;
|
|
2527
2510
|
try {
|
|
@@ -2533,7 +2516,7 @@ function __wbg_get_imports() {
|
|
|
2533
2516
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2534
2517
|
}
|
|
2535
2518
|
}, arguments) };
|
|
2536
|
-
imports.wbg.
|
|
2519
|
+
imports.wbg.__wbg_removevalue_df9e74dfe383bc4e = function() { return handleError(function (arg0, arg1) {
|
|
2537
2520
|
let deferred0_0;
|
|
2538
2521
|
let deferred0_1;
|
|
2539
2522
|
try {
|
|
@@ -2545,7 +2528,7 @@ function __wbg_get_imports() {
|
|
|
2545
2528
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2546
2529
|
}
|
|
2547
2530
|
}, arguments) };
|
|
2548
|
-
imports.wbg.
|
|
2531
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_a83c598e26c77a7b = function() { return handleError(function (arg0, arg1) {
|
|
2549
2532
|
let deferred0_0;
|
|
2550
2533
|
let deferred0_1;
|
|
2551
2534
|
try {
|
|
@@ -2556,16 +2539,16 @@ function __wbg_get_imports() {
|
|
|
2556
2539
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2557
2540
|
}
|
|
2558
2541
|
}, arguments) };
|
|
2559
|
-
imports.wbg.
|
|
2542
|
+
imports.wbg.__wbg_processapicall_68839ea21dae2364 = function(arg0, arg1, arg2) {
|
|
2560
2543
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2561
2544
|
};
|
|
2562
|
-
imports.wbg.
|
|
2545
|
+
imports.wbg.__wbg_processapisuccess_250b8696a2534686 = function(arg0, arg1, arg2) {
|
|
2563
2546
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2564
2547
|
};
|
|
2565
|
-
imports.wbg.
|
|
2548
|
+
imports.wbg.__wbg_processapierror_1c02730a02cd3310 = function(arg0, arg1, arg2) {
|
|
2566
2549
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2567
2550
|
};
|
|
2568
|
-
imports.wbg.
|
|
2551
|
+
imports.wbg.__wbg_sendinterfaceevent_3e3d3e5dd7c01a25 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2569
2552
|
let deferred0_0;
|
|
2570
2553
|
let deferred0_1;
|
|
2571
2554
|
let deferred1_0;
|
|
@@ -2581,7 +2564,7 @@ function __wbg_get_imports() {
|
|
|
2581
2564
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2582
2565
|
}
|
|
2583
2566
|
};
|
|
2584
|
-
imports.wbg.
|
|
2567
|
+
imports.wbg.__wbg_sendblocksuccess_252ef1b034261e80 = function(arg0, arg1, arg2) {
|
|
2585
2568
|
let deferred0_0;
|
|
2586
2569
|
let deferred0_1;
|
|
2587
2570
|
try {
|
|
@@ -2592,10 +2575,10 @@ function __wbg_get_imports() {
|
|
|
2592
2575
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2593
2576
|
}
|
|
2594
2577
|
};
|
|
2595
|
-
imports.wbg.
|
|
2578
|
+
imports.wbg.__wbg_sendwalletupdate_f94d1d7aab3b6ce7 = function() {
|
|
2596
2579
|
MsgHandler.send_wallet_update();
|
|
2597
2580
|
};
|
|
2598
|
-
imports.wbg.
|
|
2581
|
+
imports.wbg.__wbg_sendnewversionalert_ba626c3bcf984092 = function(arg0, arg1, arg2) {
|
|
2599
2582
|
let deferred0_0;
|
|
2600
2583
|
let deferred0_1;
|
|
2601
2584
|
try {
|
|
@@ -2606,21 +2589,46 @@ function __wbg_get_imports() {
|
|
|
2606
2589
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2607
2590
|
}
|
|
2608
2591
|
};
|
|
2609
|
-
imports.wbg.
|
|
2592
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_850b3ff30635642a = function(arg0) {
|
|
2610
2593
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2611
2594
|
};
|
|
2612
|
-
imports.wbg.
|
|
2595
|
+
imports.wbg.__wbg_savewallet_3a6dfcb74d2a467a = function() {
|
|
2613
2596
|
MsgHandler.save_wallet();
|
|
2614
2597
|
};
|
|
2615
|
-
imports.wbg.
|
|
2598
|
+
imports.wbg.__wbg_loadwallet_756bd63dbad4b559 = function() {
|
|
2616
2599
|
MsgHandler.load_wallet();
|
|
2617
2600
|
};
|
|
2618
|
-
imports.wbg.
|
|
2601
|
+
imports.wbg.__wbg_getmyservices_90dfe938e90900f4 = function() {
|
|
2619
2602
|
const ret = MsgHandler.get_my_services();
|
|
2620
2603
|
_assertClass(ret, WasmPeerServiceList);
|
|
2621
2604
|
var ptr1 = ret.__destroy_into_raw();
|
|
2622
2605
|
return ptr1;
|
|
2623
2606
|
};
|
|
2607
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2608
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2609
|
+
return addHeapObject(ret);
|
|
2610
|
+
};
|
|
2611
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2612
|
+
const val = getObject(arg0);
|
|
2613
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2614
|
+
return ret;
|
|
2615
|
+
};
|
|
2616
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2617
|
+
const ret = getObject(arg0) === undefined;
|
|
2618
|
+
return ret;
|
|
2619
|
+
};
|
|
2620
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2621
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2622
|
+
return ret;
|
|
2623
|
+
};
|
|
2624
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2625
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2626
|
+
return addHeapObject(ret);
|
|
2627
|
+
};
|
|
2628
|
+
imports.wbg.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2629
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2630
|
+
return addHeapObject(ret);
|
|
2631
|
+
};
|
|
2624
2632
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2625
2633
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2626
2634
|
return ret;
|
|
@@ -2653,6 +2661,9 @@ function __wbg_get_imports() {
|
|
|
2653
2661
|
const ret = false;
|
|
2654
2662
|
return ret;
|
|
2655
2663
|
};
|
|
2664
|
+
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2665
|
+
queueMicrotask(getObject(arg0));
|
|
2666
|
+
};
|
|
2656
2667
|
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2657
2668
|
const ret = getObject(arg0).queueMicrotask;
|
|
2658
2669
|
return addHeapObject(ret);
|
|
@@ -2661,9 +2672,6 @@ function __wbg_get_imports() {
|
|
|
2661
2672
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
2662
2673
|
return ret;
|
|
2663
2674
|
};
|
|
2664
|
-
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2665
|
-
queueMicrotask(getObject(arg0));
|
|
2666
|
-
};
|
|
2667
2675
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
2668
2676
|
const ret = new Error();
|
|
2669
2677
|
return addHeapObject(ret);
|
|
@@ -2843,7 +2851,7 @@ function __wbg_get_imports() {
|
|
|
2843
2851
|
const a = state0.a;
|
|
2844
2852
|
state0.a = 0;
|
|
2845
2853
|
try {
|
|
2846
|
-
return
|
|
2854
|
+
return __wbg_adapter_404(a, state0.b, arg0, arg1);
|
|
2847
2855
|
} finally {
|
|
2848
2856
|
state0.a = a;
|
|
2849
2857
|
}
|
|
@@ -2924,8 +2932,8 @@ function __wbg_get_imports() {
|
|
|
2924
2932
|
const ret = wasm.memory;
|
|
2925
2933
|
return addHeapObject(ret);
|
|
2926
2934
|
};
|
|
2927
|
-
imports.wbg.
|
|
2928
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2935
|
+
imports.wbg.__wbindgen_closure_wrapper1308 = function(arg0, arg1, arg2) {
|
|
2936
|
+
const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_38);
|
|
2929
2937
|
return addHeapObject(ret);
|
|
2930
2938
|
};
|
|
2931
2939
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|