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/pkg/web/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MsgHandler } from './snippets/saito-wasm-
|
|
1
|
+
import { MsgHandler } from './snippets/saito-wasm-3ab50a3facd7ff19/js/msg_handler.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -240,6 +240,14 @@ function _assertClass(instance, klass) {
|
|
|
240
240
|
}
|
|
241
241
|
return instance.ptr;
|
|
242
242
|
}
|
|
243
|
+
|
|
244
|
+
let stack_pointer = 128;
|
|
245
|
+
|
|
246
|
+
function addBorrowedObject(obj) {
|
|
247
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
248
|
+
heap[--stack_pointer] = obj;
|
|
249
|
+
return stack_pointer;
|
|
250
|
+
}
|
|
243
251
|
/**
|
|
244
252
|
* @param {string} json
|
|
245
253
|
* @param {string} private_key
|
|
@@ -300,17 +308,17 @@ export function create_bound_transaction(amt, bid, tid, sid, num, deposit, chang
|
|
|
300
308
|
|
|
301
309
|
/**
|
|
302
310
|
* @param {bigint} amt
|
|
303
|
-
* @param {string}
|
|
311
|
+
* @param {string} slip1_utxo_key
|
|
312
|
+
* @param {string} slip2_utxo_key
|
|
313
|
+
* @param {string} slip3_utxo_key
|
|
304
314
|
* @param {string} data
|
|
305
315
|
* @param {string} recipient_public_key
|
|
306
316
|
* @returns {Promise<WasmTransaction>}
|
|
307
317
|
*/
|
|
308
|
-
export function create_send_bound_transaction(amt,
|
|
309
|
-
const ptr0 = passStringToWasm0(
|
|
318
|
+
export function create_send_bound_transaction(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, data, recipient_public_key) {
|
|
319
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
320
|
const len0 = WASM_VECTOR_LEN;
|
|
311
|
-
const
|
|
312
|
-
const len1 = WASM_VECTOR_LEN;
|
|
313
|
-
const ret = wasm.create_send_bound_transaction(amt, ptr0, len0, ptr1, len1, addHeapObject(recipient_public_key));
|
|
321
|
+
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));
|
|
314
322
|
return takeObject(ret);
|
|
315
323
|
}
|
|
316
324
|
|
|
@@ -671,7 +679,7 @@ export function produce_block_without_gt() {
|
|
|
671
679
|
return takeObject(ret);
|
|
672
680
|
}
|
|
673
681
|
|
|
674
|
-
function
|
|
682
|
+
function __wbg_adapter_420(arg0, arg1, arg2, arg3) {
|
|
675
683
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
676
684
|
}
|
|
677
685
|
|
|
@@ -1624,37 +1632,78 @@ export class WasmNFT {
|
|
|
1624
1632
|
/**
|
|
1625
1633
|
* @returns {Uint8Array}
|
|
1626
1634
|
*/
|
|
1627
|
-
get
|
|
1628
|
-
const ret = wasm.
|
|
1635
|
+
get id() {
|
|
1636
|
+
const ret = wasm.wasmnft_id(this.__wbg_ptr);
|
|
1629
1637
|
return takeObject(ret);
|
|
1630
1638
|
}
|
|
1631
1639
|
/**
|
|
1632
|
-
* @
|
|
1640
|
+
* @param {Uint8Array} arr
|
|
1633
1641
|
*/
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1642
|
+
set id(arr) {
|
|
1643
|
+
try {
|
|
1644
|
+
wasm.wasmnft_set_id(this.__wbg_ptr, addBorrowedObject(arr));
|
|
1645
|
+
} finally {
|
|
1646
|
+
heap[stack_pointer++] = undefined;
|
|
1647
|
+
}
|
|
1637
1648
|
}
|
|
1638
1649
|
/**
|
|
1639
1650
|
* @returns {Uint8Array}
|
|
1640
1651
|
*/
|
|
1641
|
-
get
|
|
1642
|
-
const ret = wasm.
|
|
1652
|
+
get tx_sig() {
|
|
1653
|
+
const ret = wasm.wasmnft_tx_sig(this.__wbg_ptr);
|
|
1643
1654
|
return takeObject(ret);
|
|
1644
1655
|
}
|
|
1645
1656
|
/**
|
|
1646
|
-
* @
|
|
1657
|
+
* @param {Uint8Array} arr
|
|
1647
1658
|
*/
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1659
|
+
set tx_sig(arr) {
|
|
1660
|
+
try {
|
|
1661
|
+
wasm.wasmnft_set_tx_sig(this.__wbg_ptr, addBorrowedObject(arr));
|
|
1662
|
+
} finally {
|
|
1663
|
+
heap[stack_pointer++] = undefined;
|
|
1664
|
+
}
|
|
1651
1665
|
}
|
|
1652
1666
|
/**
|
|
1653
|
-
* @returns {
|
|
1667
|
+
* @returns {WasmSlip}
|
|
1654
1668
|
*/
|
|
1655
|
-
get
|
|
1656
|
-
const ret = wasm.
|
|
1657
|
-
return
|
|
1669
|
+
get slip1() {
|
|
1670
|
+
const ret = wasm.wasmnft_slip1(this.__wbg_ptr);
|
|
1671
|
+
return WasmSlip.__wrap(ret);
|
|
1672
|
+
}
|
|
1673
|
+
/**
|
|
1674
|
+
* @param {WasmSlip} ws
|
|
1675
|
+
*/
|
|
1676
|
+
set slip1(ws) {
|
|
1677
|
+
_assertClass(ws, WasmSlip);
|
|
1678
|
+
wasm.wasmnft_set_slip1(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* @returns {WasmSlip}
|
|
1682
|
+
*/
|
|
1683
|
+
get slip2() {
|
|
1684
|
+
const ret = wasm.wasmnft_slip2(this.__wbg_ptr);
|
|
1685
|
+
return WasmSlip.__wrap(ret);
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* @param {WasmSlip} ws
|
|
1689
|
+
*/
|
|
1690
|
+
set slip2(ws) {
|
|
1691
|
+
_assertClass(ws, WasmSlip);
|
|
1692
|
+
wasm.wasmnft_set_slip2(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* @returns {WasmSlip}
|
|
1696
|
+
*/
|
|
1697
|
+
get slip3() {
|
|
1698
|
+
const ret = wasm.wasmnft_slip3(this.__wbg_ptr);
|
|
1699
|
+
return WasmSlip.__wrap(ret);
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* @param {WasmSlip} ws
|
|
1703
|
+
*/
|
|
1704
|
+
set slip3(ws) {
|
|
1705
|
+
_assertClass(ws, WasmSlip);
|
|
1706
|
+
wasm.wasmnft_set_slip3(this.__wbg_ptr, ws.__wbg_ptr);
|
|
1658
1707
|
}
|
|
1659
1708
|
}
|
|
1660
1709
|
|
|
@@ -2489,14 +2538,26 @@ function __wbg_get_imports() {
|
|
|
2489
2538
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
2490
2539
|
takeObject(arg0);
|
|
2491
2540
|
};
|
|
2492
|
-
imports.wbg.
|
|
2493
|
-
const ret =
|
|
2541
|
+
imports.wbg.__wbg_wasmnft_new = function(arg0) {
|
|
2542
|
+
const ret = WasmNFT.__wrap(arg0);
|
|
2543
|
+
return addHeapObject(ret);
|
|
2544
|
+
};
|
|
2545
|
+
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2546
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2494
2547
|
return addHeapObject(ret);
|
|
2495
2548
|
};
|
|
2496
2549
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
2497
2550
|
const ret = BigInt.asUintN(64, arg0);
|
|
2498
2551
|
return addHeapObject(ret);
|
|
2499
2552
|
};
|
|
2553
|
+
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2554
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2555
|
+
return addHeapObject(ret);
|
|
2556
|
+
};
|
|
2557
|
+
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2558
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2559
|
+
return addHeapObject(ret);
|
|
2560
|
+
};
|
|
2500
2561
|
imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
|
|
2501
2562
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2502
2563
|
return addHeapObject(ret);
|
|
@@ -2505,10 +2566,6 @@ function __wbg_get_imports() {
|
|
|
2505
2566
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2506
2567
|
return addHeapObject(ret);
|
|
2507
2568
|
};
|
|
2508
|
-
imports.wbg.__wbg_wasmwallet_new = function(arg0) {
|
|
2509
|
-
const ret = WasmWallet.__wrap(arg0);
|
|
2510
|
-
return addHeapObject(ret);
|
|
2511
|
-
};
|
|
2512
2569
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2513
2570
|
const obj = getObject(arg1);
|
|
2514
2571
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -2521,16 +2578,8 @@ function __wbg_get_imports() {
|
|
|
2521
2578
|
const ret = WasmBlock.__wrap(arg0);
|
|
2522
2579
|
return addHeapObject(ret);
|
|
2523
2580
|
};
|
|
2524
|
-
imports.wbg.
|
|
2525
|
-
const ret =
|
|
2526
|
-
return addHeapObject(ret);
|
|
2527
|
-
};
|
|
2528
|
-
imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
|
|
2529
|
-
const ret = WasmBlockchain.__wrap(arg0);
|
|
2530
|
-
return addHeapObject(ret);
|
|
2531
|
-
};
|
|
2532
|
-
imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2533
|
-
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2581
|
+
imports.wbg.__wbg_wasmpeer_new = function(arg0) {
|
|
2582
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
2534
2583
|
return addHeapObject(ret);
|
|
2535
2584
|
};
|
|
2536
2585
|
imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
|
|
@@ -2541,17 +2590,26 @@ function __wbg_get_imports() {
|
|
|
2541
2590
|
const ret = WasmSlip.__wrap(arg0);
|
|
2542
2591
|
return addHeapObject(ret);
|
|
2543
2592
|
};
|
|
2544
|
-
imports.wbg.
|
|
2545
|
-
const
|
|
2546
|
-
|
|
2593
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2594
|
+
const val = getObject(arg0);
|
|
2595
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2596
|
+
return ret;
|
|
2547
2597
|
};
|
|
2548
|
-
imports.wbg.
|
|
2598
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2599
|
+
const ret = getObject(arg0) === undefined;
|
|
2600
|
+
return ret;
|
|
2601
|
+
};
|
|
2602
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2603
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
2604
|
+
return ret;
|
|
2605
|
+
};
|
|
2606
|
+
imports.wbg.__wbg_sendmessage_a946c0e1f31be3c7 = function(arg0, arg1) {
|
|
2549
2607
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2550
2608
|
};
|
|
2551
|
-
imports.wbg.
|
|
2609
|
+
imports.wbg.__wbg_sendmessagetoall_3ea52d9ea7ed9df6 = function(arg0, arg1) {
|
|
2552
2610
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2553
2611
|
};
|
|
2554
|
-
imports.wbg.
|
|
2612
|
+
imports.wbg.__wbg_connecttopeer_b469614fed3571aa = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2555
2613
|
let deferred0_0;
|
|
2556
2614
|
let deferred0_1;
|
|
2557
2615
|
try {
|
|
@@ -2563,11 +2621,11 @@ function __wbg_get_imports() {
|
|
|
2563
2621
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2564
2622
|
}
|
|
2565
2623
|
}, arguments) };
|
|
2566
|
-
imports.wbg.
|
|
2624
|
+
imports.wbg.__wbg_disconnectfrompeer_eebf23b1bb5b8aa6 = function() { return handleError(function (arg0) {
|
|
2567
2625
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2568
2626
|
return addHeapObject(ret);
|
|
2569
2627
|
}, arguments) };
|
|
2570
|
-
imports.wbg.
|
|
2628
|
+
imports.wbg.__wbg_fetchblockfrompeer_719d60abf896ae96 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2571
2629
|
let deferred0_0;
|
|
2572
2630
|
let deferred0_1;
|
|
2573
2631
|
try {
|
|
@@ -2579,7 +2637,7 @@ function __wbg_get_imports() {
|
|
|
2579
2637
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2580
2638
|
}
|
|
2581
2639
|
}, arguments) };
|
|
2582
|
-
imports.wbg.
|
|
2640
|
+
imports.wbg.__wbg_writevalue_bff411c3c2f52643 = function(arg0, arg1, arg2) {
|
|
2583
2641
|
let deferred0_0;
|
|
2584
2642
|
let deferred0_1;
|
|
2585
2643
|
try {
|
|
@@ -2590,7 +2648,7 @@ function __wbg_get_imports() {
|
|
|
2590
2648
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2591
2649
|
}
|
|
2592
2650
|
};
|
|
2593
|
-
imports.wbg.
|
|
2651
|
+
imports.wbg.__wbg_appendvalue_6bd4c8a70b74f7e6 = function(arg0, arg1, arg2) {
|
|
2594
2652
|
let deferred0_0;
|
|
2595
2653
|
let deferred0_1;
|
|
2596
2654
|
try {
|
|
@@ -2601,7 +2659,7 @@ function __wbg_get_imports() {
|
|
|
2601
2659
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2602
2660
|
}
|
|
2603
2661
|
};
|
|
2604
|
-
imports.wbg.
|
|
2662
|
+
imports.wbg.__wbg_flushdata_86721e9b4d74385b = function(arg0, arg1) {
|
|
2605
2663
|
let deferred0_0;
|
|
2606
2664
|
let deferred0_1;
|
|
2607
2665
|
try {
|
|
@@ -2612,7 +2670,7 @@ function __wbg_get_imports() {
|
|
|
2612
2670
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2613
2671
|
}
|
|
2614
2672
|
};
|
|
2615
|
-
imports.wbg.
|
|
2673
|
+
imports.wbg.__wbg_readvalue_b6d77e44747f094d = function() { return handleError(function (arg0, arg1) {
|
|
2616
2674
|
let deferred0_0;
|
|
2617
2675
|
let deferred0_1;
|
|
2618
2676
|
try {
|
|
@@ -2624,11 +2682,11 @@ function __wbg_get_imports() {
|
|
|
2624
2682
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2625
2683
|
}
|
|
2626
2684
|
}, arguments) };
|
|
2627
|
-
imports.wbg.
|
|
2685
|
+
imports.wbg.__wbg_loadblockfilelist_ee4b24b38ad73a9b = function() { return handleError(function () {
|
|
2628
2686
|
const ret = MsgHandler.load_block_file_list();
|
|
2629
2687
|
return addHeapObject(ret);
|
|
2630
2688
|
}, arguments) };
|
|
2631
|
-
imports.wbg.
|
|
2689
|
+
imports.wbg.__wbg_isexistingfile_433825053c0c3e4e = function() { return handleError(function (arg0, arg1) {
|
|
2632
2690
|
let deferred0_0;
|
|
2633
2691
|
let deferred0_1;
|
|
2634
2692
|
try {
|
|
@@ -2640,7 +2698,7 @@ function __wbg_get_imports() {
|
|
|
2640
2698
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2641
2699
|
}
|
|
2642
2700
|
}, arguments) };
|
|
2643
|
-
imports.wbg.
|
|
2701
|
+
imports.wbg.__wbg_removevalue_0aff2c93b354899e = function() { return handleError(function (arg0, arg1) {
|
|
2644
2702
|
let deferred0_0;
|
|
2645
2703
|
let deferred0_1;
|
|
2646
2704
|
try {
|
|
@@ -2652,7 +2710,7 @@ function __wbg_get_imports() {
|
|
|
2652
2710
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2653
2711
|
}
|
|
2654
2712
|
}, arguments) };
|
|
2655
|
-
imports.wbg.
|
|
2713
|
+
imports.wbg.__wbg_ensureblockdirectoryexists_65cba3c518399613 = function() { return handleError(function (arg0, arg1) {
|
|
2656
2714
|
let deferred0_0;
|
|
2657
2715
|
let deferred0_1;
|
|
2658
2716
|
try {
|
|
@@ -2663,16 +2721,16 @@ function __wbg_get_imports() {
|
|
|
2663
2721
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2664
2722
|
}
|
|
2665
2723
|
}, arguments) };
|
|
2666
|
-
imports.wbg.
|
|
2724
|
+
imports.wbg.__wbg_processapicall_895643ad20f41e9a = function(arg0, arg1, arg2) {
|
|
2667
2725
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2668
2726
|
};
|
|
2669
|
-
imports.wbg.
|
|
2727
|
+
imports.wbg.__wbg_processapisuccess_f831762c0c753409 = function(arg0, arg1, arg2) {
|
|
2670
2728
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2671
2729
|
};
|
|
2672
|
-
imports.wbg.
|
|
2730
|
+
imports.wbg.__wbg_processapierror_a8c396cc2d88131a = function(arg0, arg1, arg2) {
|
|
2673
2731
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2674
2732
|
};
|
|
2675
|
-
imports.wbg.
|
|
2733
|
+
imports.wbg.__wbg_sendinterfaceevent_34f3db156a64459c = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2676
2734
|
let deferred0_0;
|
|
2677
2735
|
let deferred0_1;
|
|
2678
2736
|
let deferred1_0;
|
|
@@ -2688,7 +2746,7 @@ function __wbg_get_imports() {
|
|
|
2688
2746
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2689
2747
|
}
|
|
2690
2748
|
};
|
|
2691
|
-
imports.wbg.
|
|
2749
|
+
imports.wbg.__wbg_sendblocksuccess_9b19c987074800fa = function(arg0, arg1, arg2) {
|
|
2692
2750
|
let deferred0_0;
|
|
2693
2751
|
let deferred0_1;
|
|
2694
2752
|
try {
|
|
@@ -2699,10 +2757,10 @@ function __wbg_get_imports() {
|
|
|
2699
2757
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2700
2758
|
}
|
|
2701
2759
|
};
|
|
2702
|
-
imports.wbg.
|
|
2760
|
+
imports.wbg.__wbg_sendwalletupdate_fb91053f2dfd92d7 = function() {
|
|
2703
2761
|
MsgHandler.send_wallet_update();
|
|
2704
2762
|
};
|
|
2705
|
-
imports.wbg.
|
|
2763
|
+
imports.wbg.__wbg_sendnewversionalert_fb8556f510067fa0 = function(arg0, arg1, arg2) {
|
|
2706
2764
|
let deferred0_0;
|
|
2707
2765
|
let deferred0_1;
|
|
2708
2766
|
try {
|
|
@@ -2713,16 +2771,16 @@ function __wbg_get_imports() {
|
|
|
2713
2771
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2714
2772
|
}
|
|
2715
2773
|
};
|
|
2716
|
-
imports.wbg.
|
|
2774
|
+
imports.wbg.__wbg_sendblockfetchstatusevent_33a10478a811b057 = function(arg0) {
|
|
2717
2775
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2718
2776
|
};
|
|
2719
|
-
imports.wbg.
|
|
2777
|
+
imports.wbg.__wbg_savewallet_b413f5663e5b068c = function() {
|
|
2720
2778
|
MsgHandler.save_wallet();
|
|
2721
2779
|
};
|
|
2722
|
-
imports.wbg.
|
|
2780
|
+
imports.wbg.__wbg_loadwallet_0d0931a9d5668c85 = function() {
|
|
2723
2781
|
MsgHandler.load_wallet();
|
|
2724
2782
|
};
|
|
2725
|
-
imports.wbg.
|
|
2783
|
+
imports.wbg.__wbg_getmyservices_9e2781f9e7a4910d = function() {
|
|
2726
2784
|
const ret = MsgHandler.get_my_services();
|
|
2727
2785
|
_assertClass(ret, WasmPeerServiceList);
|
|
2728
2786
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -2732,23 +2790,14 @@ function __wbg_get_imports() {
|
|
|
2732
2790
|
const ret = WasmPeerService.__wrap(arg0);
|
|
2733
2791
|
return addHeapObject(ret);
|
|
2734
2792
|
};
|
|
2793
|
+
imports.wbg.__wbg_wasmhop_new = function(arg0) {
|
|
2794
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2795
|
+
return addHeapObject(ret);
|
|
2796
|
+
};
|
|
2735
2797
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
2736
2798
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2737
2799
|
return addHeapObject(ret);
|
|
2738
2800
|
};
|
|
2739
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2740
|
-
const val = getObject(arg0);
|
|
2741
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2742
|
-
return ret;
|
|
2743
|
-
};
|
|
2744
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2745
|
-
const ret = getObject(arg0) === undefined;
|
|
2746
|
-
return ret;
|
|
2747
|
-
};
|
|
2748
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2749
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
2750
|
-
return ret;
|
|
2751
|
-
};
|
|
2752
2801
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
2753
2802
|
const ret = getObject(arg0) == getObject(arg1);
|
|
2754
2803
|
return ret;
|
|
@@ -2971,7 +3020,7 @@ function __wbg_get_imports() {
|
|
|
2971
3020
|
const a = state0.a;
|
|
2972
3021
|
state0.a = 0;
|
|
2973
3022
|
try {
|
|
2974
|
-
return
|
|
3023
|
+
return __wbg_adapter_420(a, state0.b, arg0, arg1);
|
|
2975
3024
|
} finally {
|
|
2976
3025
|
state0.a = a;
|
|
2977
3026
|
}
|
|
@@ -3052,8 +3101,8 @@ function __wbg_get_imports() {
|
|
|
3052
3101
|
const ret = wasm.memory;
|
|
3053
3102
|
return addHeapObject(ret);
|
|
3054
3103
|
};
|
|
3055
|
-
imports.wbg.
|
|
3056
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3104
|
+
imports.wbg.__wbindgen_closure_wrapper1345 = function(arg0, arg1, arg2) {
|
|
3105
|
+
const ret = makeMutClosure(arg0, arg1, 483, __wbg_adapter_38);
|
|
3057
3106
|
return addHeapObject(ret);
|
|
3058
3107
|
};
|
|
3059
3108
|
|
package/pkg/web/index_bg.wasm
CHANGED
|
Binary file
|