saito-wasm 0.2.89 → 0.2.90
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 +9 -7
- package/pkg/node/index.js +138 -89
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +110 -105
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +119 -112
- package/pkg/web/index.js +132 -83
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +110 -105
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-09a1c4534e5b725f → saito-wasm-3ab50a3facd7ff19}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-09a1c4534e5b725f → saito-wasm-3ab50a3facd7ff19}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -42,12 +42,14 @@ export function create_transaction_with_multiple_payments(public_keys: Array<any
|
|
|
42
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
43
|
/**
|
|
44
44
|
* @param {bigint} amt
|
|
45
|
-
* @param {string}
|
|
45
|
+
* @param {string} slip1_utxo_key
|
|
46
|
+
* @param {string} slip2_utxo_key
|
|
47
|
+
* @param {string} slip3_utxo_key
|
|
46
48
|
* @param {string} data
|
|
47
49
|
* @param {string} recipient_public_key
|
|
48
50
|
* @returns {Promise<WasmTransaction>}
|
|
49
51
|
*/
|
|
50
|
-
export function create_send_bound_transaction(amt: bigint,
|
|
52
|
+
export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, data: string, recipient_public_key: string): Promise<WasmTransaction>;
|
|
51
53
|
/**
|
|
52
54
|
* @returns {Promise<Array<any>>}
|
|
53
55
|
*/
|
|
@@ -591,19 +593,19 @@ export class WasmNFT {
|
|
|
591
593
|
constructor();
|
|
592
594
|
/**
|
|
593
595
|
*/
|
|
594
|
-
|
|
596
|
+
id: Uint8Array;
|
|
595
597
|
/**
|
|
596
598
|
*/
|
|
597
|
-
|
|
599
|
+
slip1: WasmSlip;
|
|
598
600
|
/**
|
|
599
601
|
*/
|
|
600
|
-
|
|
602
|
+
slip2: WasmSlip;
|
|
601
603
|
/**
|
|
602
604
|
*/
|
|
603
|
-
|
|
605
|
+
slip3: WasmSlip;
|
|
604
606
|
/**
|
|
605
607
|
*/
|
|
606
|
-
|
|
608
|
+
tx_sig: Uint8Array;
|
|
607
609
|
}
|
|
608
610
|
/**
|
|
609
611
|
*/
|
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-3ab50a3facd7ff19/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -242,6 +242,14 @@ function _assertClass(instance, klass) {
|
|
|
242
242
|
}
|
|
243
243
|
return instance.ptr;
|
|
244
244
|
}
|
|
245
|
+
|
|
246
|
+
let stack_pointer = 128;
|
|
247
|
+
|
|
248
|
+
function addBorrowedObject(obj) {
|
|
249
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
250
|
+
heap[--stack_pointer] = obj;
|
|
251
|
+
return stack_pointer;
|
|
252
|
+
}
|
|
245
253
|
/**
|
|
246
254
|
* @param {string} json
|
|
247
255
|
* @param {string} private_key
|
|
@@ -302,17 +310,17 @@ module.exports.create_bound_transaction = function(amt, bid, tid, sid, num, depo
|
|
|
302
310
|
|
|
303
311
|
/**
|
|
304
312
|
* @param {bigint} amt
|
|
305
|
-
* @param {string}
|
|
313
|
+
* @param {string} slip1_utxo_key
|
|
314
|
+
* @param {string} slip2_utxo_key
|
|
315
|
+
* @param {string} slip3_utxo_key
|
|
306
316
|
* @param {string} data
|
|
307
317
|
* @param {string} recipient_public_key
|
|
308
318
|
* @returns {Promise<WasmTransaction>}
|
|
309
319
|
*/
|
|
310
|
-
module.exports.create_send_bound_transaction = function(amt,
|
|
311
|
-
const ptr0 = passStringToWasm0(
|
|
320
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, data, recipient_public_key) {
|
|
321
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
312
322
|
const len0 = WASM_VECTOR_LEN;
|
|
313
|
-
const
|
|
314
|
-
const len1 = WASM_VECTOR_LEN;
|
|
315
|
-
const ret = wasm.create_send_bound_transaction(amt, ptr0, len0, ptr1, len1, addHeapObject(recipient_public_key));
|
|
323
|
+
const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), ptr0, len0, addHeapObject(recipient_public_key));
|
|
316
324
|
return takeObject(ret);
|
|
317
325
|
};
|
|
318
326
|
|
|
@@ -673,7 +681,7 @@ module.exports.produce_block_without_gt = function() {
|
|
|
673
681
|
return takeObject(ret);
|
|
674
682
|
};
|
|
675
683
|
|
|
676
|
-
function
|
|
684
|
+
function __wbg_adapter_420(arg0, arg1, arg2, arg3) {
|
|
677
685
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
678
686
|
}
|
|
679
687
|
|
|
@@ -1633,37 +1641,78 @@ class WasmNFT {
|
|
|
1633
1641
|
/**
|
|
1634
1642
|
* @returns {Uint8Array}
|
|
1635
1643
|
*/
|
|
1636
|
-
get
|
|
1637
|
-
const ret = wasm.
|
|
1644
|
+
get id() {
|
|
1645
|
+
const ret = wasm.wasmnft_id(this.__wbg_ptr);
|
|
1638
1646
|
return takeObject(ret);
|
|
1639
1647
|
}
|
|
1640
1648
|
/**
|
|
1641
|
-
* @
|
|
1649
|
+
* @param {Uint8Array} arr
|
|
1642
1650
|
*/
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1651
|
+
set id(arr) {
|
|
1652
|
+
try {
|
|
1653
|
+
wasm.wasmnft_set_id(this.__wbg_ptr, addBorrowedObject(arr));
|
|
1654
|
+
} finally {
|
|
1655
|
+
heap[stack_pointer++] = undefined;
|
|
1656
|
+
}
|
|
1646
1657
|
}
|
|
1647
1658
|
/**
|
|
1648
1659
|
* @returns {Uint8Array}
|
|
1649
1660
|
*/
|
|
1650
|
-
get
|
|
1651
|
-
const ret = wasm.
|
|
1661
|
+
get tx_sig() {
|
|
1662
|
+
const ret = wasm.wasmnft_tx_sig(this.__wbg_ptr);
|
|
1652
1663
|
return takeObject(ret);
|
|
1653
1664
|
}
|
|
1654
1665
|
/**
|
|
1655
|
-
* @
|
|
1666
|
+
* @param {Uint8Array} arr
|
|
1656
1667
|
*/
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1668
|
+
set tx_sig(arr) {
|
|
1669
|
+
try {
|
|
1670
|
+
wasm.wasmnft_set_tx_sig(this.__wbg_ptr, addBorrowedObject(arr));
|
|
1671
|
+
} finally {
|
|
1672
|
+
heap[stack_pointer++] = undefined;
|
|
1673
|
+
}
|
|
1660
1674
|
}
|
|
1661
1675
|
/**
|
|
1662
|
-
* @returns {
|
|
1676
|
+
* @returns {WasmSlip}
|
|
1663
1677
|
*/
|
|
1664
|
-
get
|
|
1665
|
-
const ret = wasm.
|
|
1666
|
-
return
|
|
1678
|
+
get slip1() {
|
|
1679
|
+
const ret = wasm.wasmnft_slip1(this.__wbg_ptr);
|
|
1680
|
+
return WasmSlip.__wrap(ret);
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* @param {WasmSlip} ws
|
|
1684
|
+
*/
|
|
1685
|
+
set slip1(ws) {
|
|
1686
|
+
_assertClass(ws, WasmSlip);
|
|
1687
|
+
wasm.wasmnft_set_slip1(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* @returns {WasmSlip}
|
|
1691
|
+
*/
|
|
1692
|
+
get slip2() {
|
|
1693
|
+
const ret = wasm.wasmnft_slip2(this.__wbg_ptr);
|
|
1694
|
+
return WasmSlip.__wrap(ret);
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* @param {WasmSlip} ws
|
|
1698
|
+
*/
|
|
1699
|
+
set slip2(ws) {
|
|
1700
|
+
_assertClass(ws, WasmSlip);
|
|
1701
|
+
wasm.wasmnft_set_slip2(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* @returns {WasmSlip}
|
|
1705
|
+
*/
|
|
1706
|
+
get slip3() {
|
|
1707
|
+
const ret = wasm.wasmnft_slip3(this.__wbg_ptr);
|
|
1708
|
+
return WasmSlip.__wrap(ret);
|
|
1709
|
+
}
|
|
1710
|
+
/**
|
|
1711
|
+
* @param {WasmSlip} ws
|
|
1712
|
+
*/
|
|
1713
|
+
set slip3(ws) {
|
|
1714
|
+
_assertClass(ws, WasmSlip);
|
|
1715
|
+
wasm.wasmnft_set_slip3(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1667
1716
|
}
|
|
1668
1717
|
}
|
|
1669
1718
|
module.exports.WasmNFT = WasmNFT;
|
|
@@ -2473,8 +2522,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
2473
2522
|
takeObject(arg0);
|
|
2474
2523
|
};
|
|
2475
2524
|
|
|
2476
|
-
module.exports.
|
|
2477
|
-
const ret =
|
|
2525
|
+
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2526
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2527
|
+
return addHeapObject(ret);
|
|
2528
|
+
};
|
|
2529
|
+
|
|
2530
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2531
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2478
2532
|
return addHeapObject(ret);
|
|
2479
2533
|
};
|
|
2480
2534
|
|
|
@@ -2483,6 +2537,16 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
2483
2537
|
return addHeapObject(ret);
|
|
2484
2538
|
};
|
|
2485
2539
|
|
|
2540
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2541
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2542
|
+
return addHeapObject(ret);
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2546
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2547
|
+
return addHeapObject(ret);
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2486
2550
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2487
2551
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2488
2552
|
return addHeapObject(ret);
|
|
@@ -2493,11 +2557,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
2493
2557
|
return addHeapObject(ret);
|
|
2494
2558
|
};
|
|
2495
2559
|
|
|
2496
|
-
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2497
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2498
|
-
return addHeapObject(ret);
|
|
2499
|
-
};
|
|
2500
|
-
|
|
2501
2560
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
2502
2561
|
const obj = getObject(arg1);
|
|
2503
2562
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2512,18 +2571,8 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
|
2512
2571
|
return addHeapObject(ret);
|
|
2513
2572
|
};
|
|
2514
2573
|
|
|
2515
|
-
module.exports.
|
|
2516
|
-
const ret =
|
|
2517
|
-
return addHeapObject(ret);
|
|
2518
|
-
};
|
|
2519
|
-
|
|
2520
|
-
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2521
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2522
|
-
return addHeapObject(ret);
|
|
2523
|
-
};
|
|
2524
|
-
|
|
2525
|
-
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2526
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2574
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2575
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2527
2576
|
return addHeapObject(ret);
|
|
2528
2577
|
};
|
|
2529
2578
|
|
|
@@ -2537,20 +2586,31 @@ module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
|
2537
2586
|
return addHeapObject(ret);
|
|
2538
2587
|
};
|
|
2539
2588
|
|
|
2540
|
-
module.exports.
|
|
2541
|
-
const
|
|
2542
|
-
|
|
2589
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
2590
|
+
const val = getObject(arg0);
|
|
2591
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2592
|
+
return ret;
|
|
2543
2593
|
};
|
|
2544
2594
|
|
|
2545
|
-
module.exports.
|
|
2595
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
2596
|
+
const ret = getObject(arg0) === undefined;
|
|
2597
|
+
return ret;
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2600
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
2601
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2602
|
+
return ret;
|
|
2603
|
+
};
|
|
2604
|
+
|
|
2605
|
+
module.exports.__wbg_sendmessage_a946c0e1f31be3c7 = function(arg0, arg1) {
|
|
2546
2606
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2547
2607
|
};
|
|
2548
2608
|
|
|
2549
|
-
module.exports.
|
|
2609
|
+
module.exports.__wbg_sendmessagetoall_3ea52d9ea7ed9df6 = function(arg0, arg1) {
|
|
2550
2610
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2551
2611
|
};
|
|
2552
2612
|
|
|
2553
|
-
module.exports.
|
|
2613
|
+
module.exports.__wbg_connecttopeer_b469614fed3571aa = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2554
2614
|
let deferred0_0;
|
|
2555
2615
|
let deferred0_1;
|
|
2556
2616
|
try {
|
|
@@ -2563,12 +2623,12 @@ module.exports.__wbg_connecttopeer_d6b0f49cbadf6c29 = function() { return handle
|
|
|
2563
2623
|
}
|
|
2564
2624
|
}, arguments) };
|
|
2565
2625
|
|
|
2566
|
-
module.exports.
|
|
2626
|
+
module.exports.__wbg_disconnectfrompeer_eebf23b1bb5b8aa6 = function() { return handleError(function (arg0) {
|
|
2567
2627
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2568
2628
|
return addHeapObject(ret);
|
|
2569
2629
|
}, arguments) };
|
|
2570
2630
|
|
|
2571
|
-
module.exports.
|
|
2631
|
+
module.exports.__wbg_fetchblockfrompeer_719d60abf896ae96 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2572
2632
|
let deferred0_0;
|
|
2573
2633
|
let deferred0_1;
|
|
2574
2634
|
try {
|
|
@@ -2581,7 +2641,7 @@ module.exports.__wbg_fetchblockfrompeer_075634740b901726 = function() { return h
|
|
|
2581
2641
|
}
|
|
2582
2642
|
}, arguments) };
|
|
2583
2643
|
|
|
2584
|
-
module.exports.
|
|
2644
|
+
module.exports.__wbg_writevalue_bff411c3c2f52643 = function(arg0, arg1, arg2) {
|
|
2585
2645
|
let deferred0_0;
|
|
2586
2646
|
let deferred0_1;
|
|
2587
2647
|
try {
|
|
@@ -2593,7 +2653,7 @@ module.exports.__wbg_writevalue_08389e57e562e5bf = function(arg0, arg1, arg2) {
|
|
|
2593
2653
|
}
|
|
2594
2654
|
};
|
|
2595
2655
|
|
|
2596
|
-
module.exports.
|
|
2656
|
+
module.exports.__wbg_appendvalue_6bd4c8a70b74f7e6 = function(arg0, arg1, arg2) {
|
|
2597
2657
|
let deferred0_0;
|
|
2598
2658
|
let deferred0_1;
|
|
2599
2659
|
try {
|
|
@@ -2605,7 +2665,7 @@ module.exports.__wbg_appendvalue_5de2f164902dc255 = function(arg0, arg1, arg2) {
|
|
|
2605
2665
|
}
|
|
2606
2666
|
};
|
|
2607
2667
|
|
|
2608
|
-
module.exports.
|
|
2668
|
+
module.exports.__wbg_flushdata_86721e9b4d74385b = function(arg0, arg1) {
|
|
2609
2669
|
let deferred0_0;
|
|
2610
2670
|
let deferred0_1;
|
|
2611
2671
|
try {
|
|
@@ -2617,7 +2677,7 @@ module.exports.__wbg_flushdata_0f2a3c73b5681bab = function(arg0, arg1) {
|
|
|
2617
2677
|
}
|
|
2618
2678
|
};
|
|
2619
2679
|
|
|
2620
|
-
module.exports.
|
|
2680
|
+
module.exports.__wbg_readvalue_b6d77e44747f094d = function() { return handleError(function (arg0, arg1) {
|
|
2621
2681
|
let deferred0_0;
|
|
2622
2682
|
let deferred0_1;
|
|
2623
2683
|
try {
|
|
@@ -2630,12 +2690,12 @@ module.exports.__wbg_readvalue_83bec17c013b8d3b = function() { return handleErro
|
|
|
2630
2690
|
}
|
|
2631
2691
|
}, arguments) };
|
|
2632
2692
|
|
|
2633
|
-
module.exports.
|
|
2693
|
+
module.exports.__wbg_loadblockfilelist_ee4b24b38ad73a9b = function() { return handleError(function () {
|
|
2634
2694
|
const ret = MsgHandler.load_block_file_list();
|
|
2635
2695
|
return addHeapObject(ret);
|
|
2636
2696
|
}, arguments) };
|
|
2637
2697
|
|
|
2638
|
-
module.exports.
|
|
2698
|
+
module.exports.__wbg_isexistingfile_433825053c0c3e4e = function() { return handleError(function (arg0, arg1) {
|
|
2639
2699
|
let deferred0_0;
|
|
2640
2700
|
let deferred0_1;
|
|
2641
2701
|
try {
|
|
@@ -2648,7 +2708,7 @@ module.exports.__wbg_isexistingfile_493e2a187a710193 = function() { return handl
|
|
|
2648
2708
|
}
|
|
2649
2709
|
}, arguments) };
|
|
2650
2710
|
|
|
2651
|
-
module.exports.
|
|
2711
|
+
module.exports.__wbg_removevalue_0aff2c93b354899e = function() { return handleError(function (arg0, arg1) {
|
|
2652
2712
|
let deferred0_0;
|
|
2653
2713
|
let deferred0_1;
|
|
2654
2714
|
try {
|
|
@@ -2661,7 +2721,7 @@ module.exports.__wbg_removevalue_126ea58e99e136dc = function() { return handleEr
|
|
|
2661
2721
|
}
|
|
2662
2722
|
}, arguments) };
|
|
2663
2723
|
|
|
2664
|
-
module.exports.
|
|
2724
|
+
module.exports.__wbg_ensureblockdirectoryexists_65cba3c518399613 = function() { return handleError(function (arg0, arg1) {
|
|
2665
2725
|
let deferred0_0;
|
|
2666
2726
|
let deferred0_1;
|
|
2667
2727
|
try {
|
|
@@ -2673,19 +2733,19 @@ module.exports.__wbg_ensureblockdirectoryexists_4e2873a8e2f2c11c = function() {
|
|
|
2673
2733
|
}
|
|
2674
2734
|
}, arguments) };
|
|
2675
2735
|
|
|
2676
|
-
module.exports.
|
|
2736
|
+
module.exports.__wbg_processapicall_895643ad20f41e9a = function(arg0, arg1, arg2) {
|
|
2677
2737
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2678
2738
|
};
|
|
2679
2739
|
|
|
2680
|
-
module.exports.
|
|
2740
|
+
module.exports.__wbg_processapisuccess_f831762c0c753409 = function(arg0, arg1, arg2) {
|
|
2681
2741
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2682
2742
|
};
|
|
2683
2743
|
|
|
2684
|
-
module.exports.
|
|
2744
|
+
module.exports.__wbg_processapierror_a8c396cc2d88131a = function(arg0, arg1, arg2) {
|
|
2685
2745
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2686
2746
|
};
|
|
2687
2747
|
|
|
2688
|
-
module.exports.
|
|
2748
|
+
module.exports.__wbg_sendinterfaceevent_34f3db156a64459c = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2689
2749
|
let deferred0_0;
|
|
2690
2750
|
let deferred0_1;
|
|
2691
2751
|
let deferred1_0;
|
|
@@ -2702,7 +2762,7 @@ module.exports.__wbg_sendinterfaceevent_d36eb1c3994214d3 = function(arg0, arg1,
|
|
|
2702
2762
|
}
|
|
2703
2763
|
};
|
|
2704
2764
|
|
|
2705
|
-
module.exports.
|
|
2765
|
+
module.exports.__wbg_sendblocksuccess_9b19c987074800fa = function(arg0, arg1, arg2) {
|
|
2706
2766
|
let deferred0_0;
|
|
2707
2767
|
let deferred0_1;
|
|
2708
2768
|
try {
|
|
@@ -2714,11 +2774,11 @@ module.exports.__wbg_sendblocksuccess_159bdd62392e5635 = function(arg0, arg1, ar
|
|
|
2714
2774
|
}
|
|
2715
2775
|
};
|
|
2716
2776
|
|
|
2717
|
-
module.exports.
|
|
2777
|
+
module.exports.__wbg_sendwalletupdate_fb91053f2dfd92d7 = function() {
|
|
2718
2778
|
MsgHandler.send_wallet_update();
|
|
2719
2779
|
};
|
|
2720
2780
|
|
|
2721
|
-
module.exports.
|
|
2781
|
+
module.exports.__wbg_sendnewversionalert_fb8556f510067fa0 = function(arg0, arg1, arg2) {
|
|
2722
2782
|
let deferred0_0;
|
|
2723
2783
|
let deferred0_1;
|
|
2724
2784
|
try {
|
|
@@ -2730,19 +2790,19 @@ module.exports.__wbg_sendnewversionalert_00c9d6ca0ef4595d = function(arg0, arg1,
|
|
|
2730
2790
|
}
|
|
2731
2791
|
};
|
|
2732
2792
|
|
|
2733
|
-
module.exports.
|
|
2793
|
+
module.exports.__wbg_sendblockfetchstatusevent_33a10478a811b057 = function(arg0) {
|
|
2734
2794
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2735
2795
|
};
|
|
2736
2796
|
|
|
2737
|
-
module.exports.
|
|
2797
|
+
module.exports.__wbg_savewallet_b413f5663e5b068c = function() {
|
|
2738
2798
|
MsgHandler.save_wallet();
|
|
2739
2799
|
};
|
|
2740
2800
|
|
|
2741
|
-
module.exports.
|
|
2801
|
+
module.exports.__wbg_loadwallet_0d0931a9d5668c85 = function() {
|
|
2742
2802
|
MsgHandler.load_wallet();
|
|
2743
2803
|
};
|
|
2744
2804
|
|
|
2745
|
-
module.exports.
|
|
2805
|
+
module.exports.__wbg_getmyservices_9e2781f9e7a4910d = function() {
|
|
2746
2806
|
const ret = MsgHandler.get_my_services();
|
|
2747
2807
|
_assertClass(ret, WasmPeerServiceList);
|
|
2748
2808
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2754,25 +2814,14 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
|
2754
2814
|
return addHeapObject(ret);
|
|
2755
2815
|
};
|
|
2756
2816
|
|
|
2757
|
-
module.exports.
|
|
2758
|
-
const ret =
|
|
2817
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2818
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2759
2819
|
return addHeapObject(ret);
|
|
2760
2820
|
};
|
|
2761
2821
|
|
|
2762
|
-
module.exports.
|
|
2763
|
-
const
|
|
2764
|
-
|
|
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;
|
|
2822
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2823
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2824
|
+
return addHeapObject(ret);
|
|
2776
2825
|
};
|
|
2777
2826
|
|
|
2778
2827
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
@@ -3047,7 +3096,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3047
3096
|
const a = state0.a;
|
|
3048
3097
|
state0.a = 0;
|
|
3049
3098
|
try {
|
|
3050
|
-
return
|
|
3099
|
+
return __wbg_adapter_420(a, state0.b, arg0, arg1);
|
|
3051
3100
|
} finally {
|
|
3052
3101
|
state0.a = a;
|
|
3053
3102
|
}
|
|
@@ -3145,8 +3194,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3145
3194
|
return addHeapObject(ret);
|
|
3146
3195
|
};
|
|
3147
3196
|
|
|
3148
|
-
module.exports.
|
|
3149
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3197
|
+
module.exports.__wbindgen_closure_wrapper1345 = function(arg0, arg1, arg2) {
|
|
3198
|
+
const ret = makeMutClosure(arg0, arg1, 483, __wbg_adapter_38);
|
|
3150
3199
|
return addHeapObject(ret);
|
|
3151
3200
|
};
|
|
3152
3201
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|