saito-wasm 0.2.82 → 0.2.83
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 +50 -0
- package/pkg/node/index.js +204 -83
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +77 -67
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +127 -67
- package/pkg/web/index.js +199 -80
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +77 -67
- package/pkg/web/package.json +1 -1
- /package/pkg/node/snippets/{saito-wasm-3423e9a2962a4bf4 → saito-wasm-4967682c700c581e}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-3423e9a2962a4bf4 → saito-wasm-4967682c700c581e}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -26,6 +26,33 @@ export function create_transaction(public_key: string, amount: bigint, fee: bigi
|
|
|
26
26
|
*/
|
|
27
27
|
export function create_transaction_with_multiple_payments(public_keys: Array<any>, amounts: BigUint64Array, fee: bigint, _force_merge: boolean): Promise<WasmTransaction>;
|
|
28
28
|
/**
|
|
29
|
+
* @param {bigint} amt
|
|
30
|
+
* @param {bigint} bid
|
|
31
|
+
* @param {bigint} tid
|
|
32
|
+
* @param {bigint} sid
|
|
33
|
+
* @param {number} num
|
|
34
|
+
* @param {bigint} deposit
|
|
35
|
+
* @param {bigint} change
|
|
36
|
+
* @param {string} data
|
|
37
|
+
* @param {bigint} fee
|
|
38
|
+
* @param {string} recipient_public_key
|
|
39
|
+
* @param {string} nft_type
|
|
40
|
+
* @returns {Promise<WasmTransaction>}
|
|
41
|
+
*/
|
|
42
|
+
export function create_bound_transaction(amt: bigint, bid: bigint, tid: bigint, sid: bigint, num: number, deposit: bigint, change: bigint, data: string, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {bigint} amt
|
|
45
|
+
* @param {string} nft_id
|
|
46
|
+
* @param {string} data
|
|
47
|
+
* @param {string} recipient_public_key
|
|
48
|
+
* @returns {Promise<WasmTransaction>}
|
|
49
|
+
*/
|
|
50
|
+
export function create_send_bound_transaction(amt: bigint, nft_id: string, data: string, recipient_public_key: string): Promise<WasmTransaction>;
|
|
51
|
+
/**
|
|
52
|
+
* @returns {Promise<Array<any>>}
|
|
53
|
+
*/
|
|
54
|
+
export function get_nft_list(): Promise<Array<any>>;
|
|
55
|
+
/**
|
|
29
56
|
* @returns {Promise<string>}
|
|
30
57
|
*/
|
|
31
58
|
export function get_latest_block_hash(): Promise<string>;
|
|
@@ -557,6 +584,29 @@ export class WasmHop {
|
|
|
557
584
|
}
|
|
558
585
|
/**
|
|
559
586
|
*/
|
|
587
|
+
export class WasmNFT {
|
|
588
|
+
free(): void;
|
|
589
|
+
/**
|
|
590
|
+
*/
|
|
591
|
+
constructor();
|
|
592
|
+
/**
|
|
593
|
+
*/
|
|
594
|
+
readonly id: Uint8Array;
|
|
595
|
+
/**
|
|
596
|
+
*/
|
|
597
|
+
readonly slip1: Uint8Array;
|
|
598
|
+
/**
|
|
599
|
+
*/
|
|
600
|
+
readonly slip2: Uint8Array;
|
|
601
|
+
/**
|
|
602
|
+
*/
|
|
603
|
+
readonly slip3: Uint8Array;
|
|
604
|
+
/**
|
|
605
|
+
*/
|
|
606
|
+
readonly tx_sig: Uint8Array;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
*/
|
|
560
610
|
export class WasmPeer {
|
|
561
611
|
free(): void;
|
|
562
612
|
/**
|
package/pkg/node/index.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
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-4967682c700c581e/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = 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
|
-
let heap_next = heap.length;
|
|
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
11
|
function getObject(idx) { return heap[idx]; }
|
|
23
12
|
|
|
13
|
+
let heap_next = heap.length;
|
|
14
|
+
|
|
24
15
|
function dropObject(idx) {
|
|
25
16
|
if (idx < 132) return;
|
|
26
17
|
heap[idx] = heap_next;
|
|
@@ -33,6 +24,15 @@ function takeObject(idx) {
|
|
|
33
24
|
return ret;
|
|
34
25
|
}
|
|
35
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
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
37
37
|
|
|
38
38
|
cachedTextDecoder.decode();
|
|
@@ -228,13 +228,6 @@ 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__hc45362b09104e54e(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
function _assertClass(instance, klass) {
|
|
232
|
-
if (!(instance instanceof klass)) {
|
|
233
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
234
|
-
}
|
|
235
|
-
return instance.ptr;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
231
|
function handleError(f, args) {
|
|
239
232
|
try {
|
|
240
233
|
return f.apply(this, args);
|
|
@@ -242,6 +235,13 @@ function handleError(f, args) {
|
|
|
242
235
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
243
236
|
}
|
|
244
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
|
+
}
|
|
245
245
|
/**
|
|
246
246
|
* @param {string} json
|
|
247
247
|
* @param {string} private_key
|
|
@@ -279,6 +279,51 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
|
|
|
279
279
|
return takeObject(ret);
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
+
/**
|
|
283
|
+
* @param {bigint} amt
|
|
284
|
+
* @param {bigint} bid
|
|
285
|
+
* @param {bigint} tid
|
|
286
|
+
* @param {bigint} sid
|
|
287
|
+
* @param {number} num
|
|
288
|
+
* @param {bigint} deposit
|
|
289
|
+
* @param {bigint} change
|
|
290
|
+
* @param {string} data
|
|
291
|
+
* @param {bigint} fee
|
|
292
|
+
* @param {string} recipient_public_key
|
|
293
|
+
* @param {string} nft_type
|
|
294
|
+
* @returns {Promise<WasmTransaction>}
|
|
295
|
+
*/
|
|
296
|
+
module.exports.create_bound_transaction = function(amt, bid, tid, sid, num, deposit, change, data, fee, recipient_public_key, nft_type) {
|
|
297
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
298
|
+
const len0 = WASM_VECTOR_LEN;
|
|
299
|
+
const ret = wasm.create_bound_transaction(amt, bid, tid, sid, num, deposit, change, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
300
|
+
return takeObject(ret);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @param {bigint} amt
|
|
305
|
+
* @param {string} nft_id
|
|
306
|
+
* @param {string} data
|
|
307
|
+
* @param {string} recipient_public_key
|
|
308
|
+
* @returns {Promise<WasmTransaction>}
|
|
309
|
+
*/
|
|
310
|
+
module.exports.create_send_bound_transaction = function(amt, nft_id, data, recipient_public_key) {
|
|
311
|
+
const ptr0 = passStringToWasm0(nft_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
312
|
+
const len0 = WASM_VECTOR_LEN;
|
|
313
|
+
const ptr1 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
const len1 = WASM_VECTOR_LEN;
|
|
315
|
+
const ret = wasm.create_send_bound_transaction(amt, ptr0, len0, ptr1, len1, addHeapObject(recipient_public_key));
|
|
316
|
+
return takeObject(ret);
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @returns {Promise<Array<any>>}
|
|
321
|
+
*/
|
|
322
|
+
module.exports.get_nft_list = function() {
|
|
323
|
+
const ret = wasm.get_nft_list();
|
|
324
|
+
return takeObject(ret);
|
|
325
|
+
};
|
|
326
|
+
|
|
282
327
|
/**
|
|
283
328
|
* @returns {Promise<string>}
|
|
284
329
|
*/
|
|
@@ -628,7 +673,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
628
673
|
return takeObject(ret);
|
|
629
674
|
};
|
|
630
675
|
|
|
631
|
-
function
|
|
676
|
+
function __wbg_adapter_415(arg0, arg1, arg2, arg3) {
|
|
632
677
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h14b3cb4031e0240e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
633
678
|
}
|
|
634
679
|
|
|
@@ -1552,6 +1597,77 @@ class WasmHop {
|
|
|
1552
1597
|
}
|
|
1553
1598
|
module.exports.WasmHop = WasmHop;
|
|
1554
1599
|
|
|
1600
|
+
const WasmNFTFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1601
|
+
? { register: () => {}, unregister: () => {} }
|
|
1602
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnft_free(ptr >>> 0));
|
|
1603
|
+
/**
|
|
1604
|
+
*/
|
|
1605
|
+
class WasmNFT {
|
|
1606
|
+
|
|
1607
|
+
static __wrap(ptr) {
|
|
1608
|
+
ptr = ptr >>> 0;
|
|
1609
|
+
const obj = Object.create(WasmNFT.prototype);
|
|
1610
|
+
obj.__wbg_ptr = ptr;
|
|
1611
|
+
WasmNFTFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1612
|
+
return obj;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
__destroy_into_raw() {
|
|
1616
|
+
const ptr = this.__wbg_ptr;
|
|
1617
|
+
this.__wbg_ptr = 0;
|
|
1618
|
+
WasmNFTFinalization.unregister(this);
|
|
1619
|
+
return ptr;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
free() {
|
|
1623
|
+
const ptr = this.__destroy_into_raw();
|
|
1624
|
+
wasm.__wbg_wasmnft_free(ptr);
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
*/
|
|
1628
|
+
constructor() {
|
|
1629
|
+
const ret = wasm.wasmnft_new();
|
|
1630
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1631
|
+
return this;
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* @returns {Uint8Array}
|
|
1635
|
+
*/
|
|
1636
|
+
get slip1() {
|
|
1637
|
+
const ret = wasm.wasmnft_get_slip1(this.__wbg_ptr);
|
|
1638
|
+
return takeObject(ret);
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* @returns {Uint8Array}
|
|
1642
|
+
*/
|
|
1643
|
+
get slip2() {
|
|
1644
|
+
const ret = wasm.wasmnft_get_slip2(this.__wbg_ptr);
|
|
1645
|
+
return takeObject(ret);
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* @returns {Uint8Array}
|
|
1649
|
+
*/
|
|
1650
|
+
get slip3() {
|
|
1651
|
+
const ret = wasm.wasmnft_get_slip3(this.__wbg_ptr);
|
|
1652
|
+
return takeObject(ret);
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* @returns {Uint8Array}
|
|
1656
|
+
*/
|
|
1657
|
+
get id() {
|
|
1658
|
+
const ret = wasm.wasmnft_get_id(this.__wbg_ptr);
|
|
1659
|
+
return takeObject(ret);
|
|
1660
|
+
}
|
|
1661
|
+
/**
|
|
1662
|
+
* @returns {Uint8Array}
|
|
1663
|
+
*/
|
|
1664
|
+
get tx_sig() {
|
|
1665
|
+
const ret = wasm.wasmnft_get_tx_sig(this.__wbg_ptr);
|
|
1666
|
+
return takeObject(ret);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
module.exports.WasmNFT = WasmNFT;
|
|
1670
|
+
|
|
1555
1671
|
const WasmPeerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1556
1672
|
? { register: () => {}, unregister: () => {} }
|
|
1557
1673
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpeer_free(ptr >>> 0));
|
|
@@ -2353,37 +2469,32 @@ class WasmWalletSlip {
|
|
|
2353
2469
|
}
|
|
2354
2470
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2355
2471
|
|
|
2356
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2357
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
2358
|
-
return addHeapObject(ret);
|
|
2359
|
-
};
|
|
2360
|
-
|
|
2361
2472
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2362
2473
|
takeObject(arg0);
|
|
2363
2474
|
};
|
|
2364
2475
|
|
|
2365
|
-
module.exports.
|
|
2366
|
-
const ret =
|
|
2476
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2477
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2367
2478
|
return addHeapObject(ret);
|
|
2368
2479
|
};
|
|
2369
2480
|
|
|
2370
|
-
module.exports.
|
|
2371
|
-
const ret =
|
|
2481
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2482
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
2372
2483
|
return addHeapObject(ret);
|
|
2373
2484
|
};
|
|
2374
2485
|
|
|
2375
|
-
module.exports.
|
|
2376
|
-
const ret =
|
|
2486
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2487
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2377
2488
|
return addHeapObject(ret);
|
|
2378
2489
|
};
|
|
2379
2490
|
|
|
2380
|
-
module.exports.
|
|
2381
|
-
const ret =
|
|
2491
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2492
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2382
2493
|
return addHeapObject(ret);
|
|
2383
2494
|
};
|
|
2384
2495
|
|
|
2385
|
-
module.exports.
|
|
2386
|
-
const ret =
|
|
2496
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2497
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2387
2498
|
return addHeapObject(ret);
|
|
2388
2499
|
};
|
|
2389
2500
|
|
|
@@ -2396,13 +2507,18 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2396
2507
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2397
2508
|
};
|
|
2398
2509
|
|
|
2399
|
-
module.exports.
|
|
2400
|
-
const ret =
|
|
2510
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2511
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2401
2512
|
return addHeapObject(ret);
|
|
2402
2513
|
};
|
|
2403
2514
|
|
|
2404
|
-
module.exports.
|
|
2405
|
-
const ret =
|
|
2515
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2516
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2517
|
+
return addHeapObject(ret);
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2520
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2521
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2406
2522
|
return addHeapObject(ret);
|
|
2407
2523
|
};
|
|
2408
2524
|
|
|
@@ -2411,6 +2527,11 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
|
2411
2527
|
return addHeapObject(ret);
|
|
2412
2528
|
};
|
|
2413
2529
|
|
|
2530
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2531
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2532
|
+
return addHeapObject(ret);
|
|
2533
|
+
};
|
|
2534
|
+
|
|
2414
2535
|
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2415
2536
|
const ret = WasmBlock.__wrap(arg0);
|
|
2416
2537
|
return addHeapObject(ret);
|
|
@@ -2421,31 +2542,20 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
2421
2542
|
return addHeapObject(ret);
|
|
2422
2543
|
};
|
|
2423
2544
|
|
|
2424
|
-
module.exports.
|
|
2425
|
-
const
|
|
2426
|
-
|
|
2427
|
-
return ret;
|
|
2428
|
-
};
|
|
2429
|
-
|
|
2430
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2431
|
-
const ret = getObject(arg0) === undefined;
|
|
2432
|
-
return ret;
|
|
2433
|
-
};
|
|
2434
|
-
|
|
2435
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2436
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2437
|
-
return ret;
|
|
2545
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2546
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2547
|
+
return addHeapObject(ret);
|
|
2438
2548
|
};
|
|
2439
2549
|
|
|
2440
|
-
module.exports.
|
|
2550
|
+
module.exports.__wbg_sendmessage_3d23b41c04d78a07 = function(arg0, arg1) {
|
|
2441
2551
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2442
2552
|
};
|
|
2443
2553
|
|
|
2444
|
-
module.exports.
|
|
2554
|
+
module.exports.__wbg_sendmessagetoall_fe2bd7f0858abd6d = function(arg0, arg1) {
|
|
2445
2555
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2446
2556
|
};
|
|
2447
2557
|
|
|
2448
|
-
module.exports.
|
|
2558
|
+
module.exports.__wbg_connecttopeer_b6a1e227495b1cb1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2449
2559
|
let deferred0_0;
|
|
2450
2560
|
let deferred0_1;
|
|
2451
2561
|
try {
|
|
@@ -2458,12 +2568,12 @@ module.exports.__wbg_connecttopeer_0cac3c2f8ea9d0e6 = function() { return handle
|
|
|
2458
2568
|
}
|
|
2459
2569
|
}, arguments) };
|
|
2460
2570
|
|
|
2461
|
-
module.exports.
|
|
2571
|
+
module.exports.__wbg_disconnectfrompeer_0d34aac963138f72 = function() { return handleError(function (arg0) {
|
|
2462
2572
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2463
2573
|
return addHeapObject(ret);
|
|
2464
2574
|
}, arguments) };
|
|
2465
2575
|
|
|
2466
|
-
module.exports.
|
|
2576
|
+
module.exports.__wbg_fetchblockfrompeer_b9ae42dda9e9a33c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2467
2577
|
let deferred0_0;
|
|
2468
2578
|
let deferred0_1;
|
|
2469
2579
|
try {
|
|
@@ -2476,7 +2586,7 @@ module.exports.__wbg_fetchblockfrompeer_0d29cd0dbc59e4e9 = function() { return h
|
|
|
2476
2586
|
}
|
|
2477
2587
|
}, arguments) };
|
|
2478
2588
|
|
|
2479
|
-
module.exports.
|
|
2589
|
+
module.exports.__wbg_writevalue_7e94b66b64380b4b = function(arg0, arg1, arg2) {
|
|
2480
2590
|
let deferred0_0;
|
|
2481
2591
|
let deferred0_1;
|
|
2482
2592
|
try {
|
|
@@ -2488,7 +2598,7 @@ module.exports.__wbg_writevalue_bba6530c66905706 = function(arg0, arg1, arg2) {
|
|
|
2488
2598
|
}
|
|
2489
2599
|
};
|
|
2490
2600
|
|
|
2491
|
-
module.exports.
|
|
2601
|
+
module.exports.__wbg_appendvalue_b4c7e2a7d7763674 = function(arg0, arg1, arg2) {
|
|
2492
2602
|
let deferred0_0;
|
|
2493
2603
|
let deferred0_1;
|
|
2494
2604
|
try {
|
|
@@ -2500,7 +2610,7 @@ module.exports.__wbg_appendvalue_c5fbb47f3c0513fe = function(arg0, arg1, arg2) {
|
|
|
2500
2610
|
}
|
|
2501
2611
|
};
|
|
2502
2612
|
|
|
2503
|
-
module.exports.
|
|
2613
|
+
module.exports.__wbg_flushdata_4b9fbaa4569e214e = function(arg0, arg1) {
|
|
2504
2614
|
let deferred0_0;
|
|
2505
2615
|
let deferred0_1;
|
|
2506
2616
|
try {
|
|
@@ -2512,7 +2622,7 @@ module.exports.__wbg_flushdata_0d484dcefe02f7a5 = function(arg0, arg1) {
|
|
|
2512
2622
|
}
|
|
2513
2623
|
};
|
|
2514
2624
|
|
|
2515
|
-
module.exports.
|
|
2625
|
+
module.exports.__wbg_readvalue_37267595302dac7b = function() { return handleError(function (arg0, arg1) {
|
|
2516
2626
|
let deferred0_0;
|
|
2517
2627
|
let deferred0_1;
|
|
2518
2628
|
try {
|
|
@@ -2525,12 +2635,12 @@ module.exports.__wbg_readvalue_f40cb048b9bfd677 = function() { return handleErro
|
|
|
2525
2635
|
}
|
|
2526
2636
|
}, arguments) };
|
|
2527
2637
|
|
|
2528
|
-
module.exports.
|
|
2638
|
+
module.exports.__wbg_loadblockfilelist_ac53379861b10690 = function() { return handleError(function () {
|
|
2529
2639
|
const ret = MsgHandler.load_block_file_list();
|
|
2530
2640
|
return addHeapObject(ret);
|
|
2531
2641
|
}, arguments) };
|
|
2532
2642
|
|
|
2533
|
-
module.exports.
|
|
2643
|
+
module.exports.__wbg_isexistingfile_6e4609e4e910bc4e = function() { return handleError(function (arg0, arg1) {
|
|
2534
2644
|
let deferred0_0;
|
|
2535
2645
|
let deferred0_1;
|
|
2536
2646
|
try {
|
|
@@ -2543,7 +2653,7 @@ module.exports.__wbg_isexistingfile_2422b5ae5b099ef7 = function() { return handl
|
|
|
2543
2653
|
}
|
|
2544
2654
|
}, arguments) };
|
|
2545
2655
|
|
|
2546
|
-
module.exports.
|
|
2656
|
+
module.exports.__wbg_removevalue_7e0c65889c574886 = function() { return handleError(function (arg0, arg1) {
|
|
2547
2657
|
let deferred0_0;
|
|
2548
2658
|
let deferred0_1;
|
|
2549
2659
|
try {
|
|
@@ -2556,7 +2666,7 @@ module.exports.__wbg_removevalue_149dc721775efaaa = function() { return handleEr
|
|
|
2556
2666
|
}
|
|
2557
2667
|
}, arguments) };
|
|
2558
2668
|
|
|
2559
|
-
module.exports.
|
|
2669
|
+
module.exports.__wbg_ensureblockdirectoryexists_fe0c297650505aac = function() { return handleError(function (arg0, arg1) {
|
|
2560
2670
|
let deferred0_0;
|
|
2561
2671
|
let deferred0_1;
|
|
2562
2672
|
try {
|
|
@@ -2568,19 +2678,19 @@ module.exports.__wbg_ensureblockdirectoryexists_e806cc87a9822aba = function() {
|
|
|
2568
2678
|
}
|
|
2569
2679
|
}, arguments) };
|
|
2570
2680
|
|
|
2571
|
-
module.exports.
|
|
2681
|
+
module.exports.__wbg_processapicall_427a8591628d3d94 = function(arg0, arg1, arg2) {
|
|
2572
2682
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2573
2683
|
};
|
|
2574
2684
|
|
|
2575
|
-
module.exports.
|
|
2685
|
+
module.exports.__wbg_processapisuccess_51a61714a246ac5d = function(arg0, arg1, arg2) {
|
|
2576
2686
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2577
2687
|
};
|
|
2578
2688
|
|
|
2579
|
-
module.exports.
|
|
2689
|
+
module.exports.__wbg_processapierror_16203251a004e766 = function(arg0, arg1, arg2) {
|
|
2580
2690
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2581
2691
|
};
|
|
2582
2692
|
|
|
2583
|
-
module.exports.
|
|
2693
|
+
module.exports.__wbg_sendinterfaceevent_8e0144ebca5ae3b8 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2584
2694
|
let deferred0_0;
|
|
2585
2695
|
let deferred0_1;
|
|
2586
2696
|
let deferred1_0;
|
|
@@ -2597,7 +2707,7 @@ module.exports.__wbg_sendinterfaceevent_2ccec5c51772bb8e = function(arg0, arg1,
|
|
|
2597
2707
|
}
|
|
2598
2708
|
};
|
|
2599
2709
|
|
|
2600
|
-
module.exports.
|
|
2710
|
+
module.exports.__wbg_sendblocksuccess_b0923779901a2cdf = function(arg0, arg1, arg2) {
|
|
2601
2711
|
let deferred0_0;
|
|
2602
2712
|
let deferred0_1;
|
|
2603
2713
|
try {
|
|
@@ -2609,11 +2719,11 @@ module.exports.__wbg_sendblocksuccess_715875346c5d4e4b = function(arg0, arg1, ar
|
|
|
2609
2719
|
}
|
|
2610
2720
|
};
|
|
2611
2721
|
|
|
2612
|
-
module.exports.
|
|
2722
|
+
module.exports.__wbg_sendwalletupdate_ddf432a548c032b8 = function() {
|
|
2613
2723
|
MsgHandler.send_wallet_update();
|
|
2614
2724
|
};
|
|
2615
2725
|
|
|
2616
|
-
module.exports.
|
|
2726
|
+
module.exports.__wbg_sendnewversionalert_7b50f28d3be53507 = function(arg0, arg1, arg2) {
|
|
2617
2727
|
let deferred0_0;
|
|
2618
2728
|
let deferred0_1;
|
|
2619
2729
|
try {
|
|
@@ -2625,19 +2735,19 @@ module.exports.__wbg_sendnewversionalert_1feb30ee8db1065d = function(arg0, arg1,
|
|
|
2625
2735
|
}
|
|
2626
2736
|
};
|
|
2627
2737
|
|
|
2628
|
-
module.exports.
|
|
2738
|
+
module.exports.__wbg_sendblockfetchstatusevent_8b744a7350e5617a = function(arg0) {
|
|
2629
2739
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2630
2740
|
};
|
|
2631
2741
|
|
|
2632
|
-
module.exports.
|
|
2742
|
+
module.exports.__wbg_savewallet_f2cec144f42ed9cf = function() {
|
|
2633
2743
|
MsgHandler.save_wallet();
|
|
2634
2744
|
};
|
|
2635
2745
|
|
|
2636
|
-
module.exports.
|
|
2746
|
+
module.exports.__wbg_loadwallet_bbb1d09f1c6ceb87 = function() {
|
|
2637
2747
|
MsgHandler.load_wallet();
|
|
2638
2748
|
};
|
|
2639
2749
|
|
|
2640
|
-
module.exports.
|
|
2750
|
+
module.exports.__wbg_getmyservices_1f4030bad2ab1f01 = function() {
|
|
2641
2751
|
const ret = MsgHandler.get_my_services();
|
|
2642
2752
|
_assertClass(ret, WasmPeerServiceList);
|
|
2643
2753
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2649,9 +2759,20 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2649
2759
|
return addHeapObject(ret);
|
|
2650
2760
|
};
|
|
2651
2761
|
|
|
2652
|
-
module.exports.
|
|
2653
|
-
const
|
|
2654
|
-
|
|
2762
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2763
|
+
const val = getObject(arg0);
|
|
2764
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2765
|
+
return ret;
|
|
2766
|
+
};
|
|
2767
|
+
|
|
2768
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2769
|
+
const ret = getObject(arg0) === undefined;
|
|
2770
|
+
return ret;
|
|
2771
|
+
};
|
|
2772
|
+
|
|
2773
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2774
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2775
|
+
return ret;
|
|
2655
2776
|
};
|
|
2656
2777
|
|
|
2657
2778
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
@@ -2926,7 +3047,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
2926
3047
|
const a = state0.a;
|
|
2927
3048
|
state0.a = 0;
|
|
2928
3049
|
try {
|
|
2929
|
-
return
|
|
3050
|
+
return __wbg_adapter_415(a, state0.b, arg0, arg1);
|
|
2930
3051
|
} finally {
|
|
2931
3052
|
state0.a = a;
|
|
2932
3053
|
}
|
|
@@ -3024,8 +3145,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3024
3145
|
return addHeapObject(ret);
|
|
3025
3146
|
};
|
|
3026
3147
|
|
|
3027
|
-
module.exports.
|
|
3028
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3148
|
+
module.exports.__wbindgen_closure_wrapper1350 = function(arg0, arg1, arg2) {
|
|
3149
|
+
const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_38);
|
|
3029
3150
|
return addHeapObject(ret);
|
|
3030
3151
|
};
|
|
3031
3152
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|