saito-wasm 0.1.5 → 0.1.7
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 +2 -2
- package/package.json +1 -1
- package/pkg/node/index.d.ts +75 -1
- package/pkg/node/index.js +202 -57
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +67 -49
- package/pkg/node/package.json +3 -3
- package/pkg/web/index.d.ts +142 -50
- package/pkg/web/index.js +201 -56
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +67 -49
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-b18d75ee12ebc984 → saito-wasm-0aade21cba08302a}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-b18d75ee12ebc984 → saito-wasm-0aade21cba08302a}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "saito-wasm"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.7"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
|
|
6
6
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
@@ -24,7 +24,7 @@ log = "0.4.17"
|
|
|
24
24
|
getrandom = { version = "0.2.8", features = ["js", "std"] }
|
|
25
25
|
rand = { version = "0.8.5", features = ["getrandom"] }
|
|
26
26
|
secp256k1 = { version = "0.27.0", features = ["bitcoin_hashes", "global-context", "serde"] }
|
|
27
|
-
|
|
27
|
+
bs58 = "0.5.0"
|
|
28
28
|
figment = { version = "0.10.8", features = ["json"] }
|
|
29
29
|
serde_json = { version = "1.0.96" }
|
|
30
30
|
num-derive = { version = "0.3.3" }
|
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -86,9 +86,10 @@ export function get_peer(peer_index: bigint): Promise<WasmPeer | undefined>;
|
|
|
86
86
|
*/
|
|
87
87
|
export function get_account_slips(public_key: string): Promise<Array<any>>;
|
|
88
88
|
/**
|
|
89
|
+
* @param {Array<any>} keys
|
|
89
90
|
* @returns {Promise<WasmBalanceSnapshot>}
|
|
90
91
|
*/
|
|
91
|
-
export function get_balance_snapshot(): Promise<WasmBalanceSnapshot>;
|
|
92
|
+
export function get_balance_snapshot(keys: Array<any>): Promise<WasmBalanceSnapshot>;
|
|
92
93
|
/**
|
|
93
94
|
* @param {WasmBalanceSnapshot} snapshot
|
|
94
95
|
* @returns {Promise<void>}
|
|
@@ -493,4 +494,77 @@ export class WasmWallet {
|
|
|
493
494
|
* @returns {Promise<Array<any>>}
|
|
494
495
|
*/
|
|
495
496
|
get_pending_txs(): Promise<Array<any>>;
|
|
497
|
+
/**
|
|
498
|
+
* @returns {Promise<Array<any>>}
|
|
499
|
+
*/
|
|
500
|
+
get_slips(): Promise<Array<any>>;
|
|
501
|
+
/**
|
|
502
|
+
* @param {WasmWalletSlip} slip
|
|
503
|
+
* @returns {Promise<void>}
|
|
504
|
+
*/
|
|
505
|
+
add_slip(slip: WasmWalletSlip): Promise<void>;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
*/
|
|
509
|
+
export class WasmWalletSlip {
|
|
510
|
+
free(): void;
|
|
511
|
+
/**
|
|
512
|
+
* @returns {string}
|
|
513
|
+
*/
|
|
514
|
+
get_utxokey(): string;
|
|
515
|
+
/**
|
|
516
|
+
* @param {string} key
|
|
517
|
+
*/
|
|
518
|
+
set_utxokey(key: string): void;
|
|
519
|
+
/**
|
|
520
|
+
* @returns {bigint}
|
|
521
|
+
*/
|
|
522
|
+
get_amount(): bigint;
|
|
523
|
+
/**
|
|
524
|
+
* @param {bigint} amount
|
|
525
|
+
*/
|
|
526
|
+
set_amount(amount: bigint): void;
|
|
527
|
+
/**
|
|
528
|
+
* @returns {bigint}
|
|
529
|
+
*/
|
|
530
|
+
get_block_id(): bigint;
|
|
531
|
+
/**
|
|
532
|
+
* @param {bigint} block_id
|
|
533
|
+
*/
|
|
534
|
+
set_block_id(block_id: bigint): void;
|
|
535
|
+
/**
|
|
536
|
+
* @returns {bigint}
|
|
537
|
+
*/
|
|
538
|
+
get_tx_ordinal(): bigint;
|
|
539
|
+
/**
|
|
540
|
+
* @param {bigint} ordinal
|
|
541
|
+
*/
|
|
542
|
+
set_tx_ordinal(ordinal: bigint): void;
|
|
543
|
+
/**
|
|
544
|
+
* @returns {number}
|
|
545
|
+
*/
|
|
546
|
+
get_slip_index(): number;
|
|
547
|
+
/**
|
|
548
|
+
* @param {number} index
|
|
549
|
+
*/
|
|
550
|
+
set_slip_index(index: number): void;
|
|
551
|
+
/**
|
|
552
|
+
* @returns {boolean}
|
|
553
|
+
*/
|
|
554
|
+
is_spent(): boolean;
|
|
555
|
+
/**
|
|
556
|
+
* @param {boolean} spent
|
|
557
|
+
*/
|
|
558
|
+
set_spent(spent: boolean): void;
|
|
559
|
+
/**
|
|
560
|
+
* @returns {boolean}
|
|
561
|
+
*/
|
|
562
|
+
is_lc(): boolean;
|
|
563
|
+
/**
|
|
564
|
+
* @param {boolean} lc
|
|
565
|
+
*/
|
|
566
|
+
set_lc(lc: boolean): void;
|
|
567
|
+
/**
|
|
568
|
+
*/
|
|
569
|
+
constructor();
|
|
496
570
|
}
|
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-0aade21cba08302a/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -24,6 +24,15 @@ function takeObject(idx) {
|
|
|
24
24
|
return ret;
|
|
25
25
|
}
|
|
26
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
|
+
|
|
27
36
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
28
37
|
|
|
29
38
|
cachedTextDecoder.decode();
|
|
@@ -42,15 +51,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
42
51
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
43
52
|
}
|
|
44
53
|
|
|
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
54
|
let WASM_VECTOR_LEN = 0;
|
|
55
55
|
|
|
56
56
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -381,10 +381,11 @@ module.exports.get_account_slips = function(public_key) {
|
|
|
381
381
|
};
|
|
382
382
|
|
|
383
383
|
/**
|
|
384
|
+
* @param {Array<any>} keys
|
|
384
385
|
* @returns {Promise<WasmBalanceSnapshot>}
|
|
385
386
|
*/
|
|
386
|
-
module.exports.get_balance_snapshot = function() {
|
|
387
|
-
const ret = wasm.get_balance_snapshot();
|
|
387
|
+
module.exports.get_balance_snapshot = function(keys) {
|
|
388
|
+
const ret = wasm.get_balance_snapshot(addHeapObject(keys));
|
|
388
389
|
return takeObject(ret);
|
|
389
390
|
};
|
|
390
391
|
|
|
@@ -487,7 +488,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
487
488
|
ptr = ptr >>> 0;
|
|
488
489
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
+
function __wbg_adapter_302(arg0, arg1, arg2, arg3) {
|
|
491
492
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h4a288e6ecccb986f(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
492
493
|
}
|
|
493
494
|
|
|
@@ -1492,45 +1493,184 @@ class WasmWallet {
|
|
|
1492
1493
|
const ret = wasm.wasmwallet_get_pending_txs(this.__wbg_ptr);
|
|
1493
1494
|
return takeObject(ret);
|
|
1494
1495
|
}
|
|
1496
|
+
/**
|
|
1497
|
+
* @returns {Promise<Array<any>>}
|
|
1498
|
+
*/
|
|
1499
|
+
get_slips() {
|
|
1500
|
+
const ret = wasm.wasmwallet_get_slips(this.__wbg_ptr);
|
|
1501
|
+
return takeObject(ret);
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* @param {WasmWalletSlip} slip
|
|
1505
|
+
* @returns {Promise<void>}
|
|
1506
|
+
*/
|
|
1507
|
+
add_slip(slip) {
|
|
1508
|
+
_assertClass(slip, WasmWalletSlip);
|
|
1509
|
+
var ptr0 = slip.__destroy_into_raw();
|
|
1510
|
+
const ret = wasm.wasmwallet_add_slip(this.__wbg_ptr, ptr0);
|
|
1511
|
+
return takeObject(ret);
|
|
1512
|
+
}
|
|
1495
1513
|
}
|
|
1496
1514
|
module.exports.WasmWallet = WasmWallet;
|
|
1515
|
+
/**
|
|
1516
|
+
*/
|
|
1517
|
+
class WasmWalletSlip {
|
|
1518
|
+
|
|
1519
|
+
static __wrap(ptr) {
|
|
1520
|
+
ptr = ptr >>> 0;
|
|
1521
|
+
const obj = Object.create(WasmWalletSlip.prototype);
|
|
1522
|
+
obj.__wbg_ptr = ptr;
|
|
1523
|
+
|
|
1524
|
+
return obj;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
__destroy_into_raw() {
|
|
1528
|
+
const ptr = this.__wbg_ptr;
|
|
1529
|
+
this.__wbg_ptr = 0;
|
|
1530
|
+
|
|
1531
|
+
return ptr;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
free() {
|
|
1535
|
+
const ptr = this.__destroy_into_raw();
|
|
1536
|
+
wasm.__wbg_wasmwalletslip_free(ptr);
|
|
1537
|
+
}
|
|
1538
|
+
/**
|
|
1539
|
+
* @returns {string}
|
|
1540
|
+
*/
|
|
1541
|
+
get_utxokey() {
|
|
1542
|
+
const ret = wasm.wasmwalletslip_get_utxokey(this.__wbg_ptr);
|
|
1543
|
+
return takeObject(ret);
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @param {string} key
|
|
1547
|
+
*/
|
|
1548
|
+
set_utxokey(key) {
|
|
1549
|
+
wasm.wasmwalletslip_set_utxokey(this.__wbg_ptr, addHeapObject(key));
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* @returns {bigint}
|
|
1553
|
+
*/
|
|
1554
|
+
get_amount() {
|
|
1555
|
+
const ret = wasm.wasmwalletslip_get_amount(this.__wbg_ptr);
|
|
1556
|
+
return BigInt.asUintN(64, ret);
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* @param {bigint} amount
|
|
1560
|
+
*/
|
|
1561
|
+
set_amount(amount) {
|
|
1562
|
+
wasm.wasmwalletslip_set_amount(this.__wbg_ptr, amount);
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @returns {bigint}
|
|
1566
|
+
*/
|
|
1567
|
+
get_block_id() {
|
|
1568
|
+
const ret = wasm.wasmwalletslip_get_block_id(this.__wbg_ptr);
|
|
1569
|
+
return BigInt.asUintN(64, ret);
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* @param {bigint} block_id
|
|
1573
|
+
*/
|
|
1574
|
+
set_block_id(block_id) {
|
|
1575
|
+
wasm.wasmwalletslip_set_block_id(this.__wbg_ptr, block_id);
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* @returns {bigint}
|
|
1579
|
+
*/
|
|
1580
|
+
get_tx_ordinal() {
|
|
1581
|
+
const ret = wasm.wasmwalletslip_get_tx_ordinal(this.__wbg_ptr);
|
|
1582
|
+
return BigInt.asUintN(64, ret);
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* @param {bigint} ordinal
|
|
1586
|
+
*/
|
|
1587
|
+
set_tx_ordinal(ordinal) {
|
|
1588
|
+
wasm.wasmwalletslip_set_tx_ordinal(this.__wbg_ptr, ordinal);
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* @returns {number}
|
|
1592
|
+
*/
|
|
1593
|
+
get_slip_index() {
|
|
1594
|
+
const ret = wasm.wasmwalletslip_get_slip_index(this.__wbg_ptr);
|
|
1595
|
+
return ret;
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* @param {number} index
|
|
1599
|
+
*/
|
|
1600
|
+
set_slip_index(index) {
|
|
1601
|
+
wasm.wasmwalletslip_set_slip_index(this.__wbg_ptr, index);
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* @returns {boolean}
|
|
1605
|
+
*/
|
|
1606
|
+
is_spent() {
|
|
1607
|
+
const ret = wasm.wasmwalletslip_is_spent(this.__wbg_ptr);
|
|
1608
|
+
return ret !== 0;
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* @param {boolean} spent
|
|
1612
|
+
*/
|
|
1613
|
+
set_spent(spent) {
|
|
1614
|
+
wasm.wasmwalletslip_set_spent(this.__wbg_ptr, spent);
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* @returns {boolean}
|
|
1618
|
+
*/
|
|
1619
|
+
is_lc() {
|
|
1620
|
+
const ret = wasm.wasmwalletslip_is_lc(this.__wbg_ptr);
|
|
1621
|
+
return ret !== 0;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @param {boolean} lc
|
|
1625
|
+
*/
|
|
1626
|
+
set_lc(lc) {
|
|
1627
|
+
wasm.wasmwalletslip_set_lc(this.__wbg_ptr, lc);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
*/
|
|
1631
|
+
constructor() {
|
|
1632
|
+
const ret = wasm.wasmwalletslip_new_();
|
|
1633
|
+
return WasmWalletSlip.__wrap(ret);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
1497
1637
|
|
|
1498
1638
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
1499
1639
|
takeObject(arg0);
|
|
1500
1640
|
};
|
|
1501
1641
|
|
|
1502
|
-
module.exports.
|
|
1503
|
-
const ret =
|
|
1642
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1643
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1504
1644
|
return addHeapObject(ret);
|
|
1505
1645
|
};
|
|
1506
1646
|
|
|
1507
|
-
module.exports.
|
|
1508
|
-
const ret =
|
|
1647
|
+
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
1648
|
+
const ret = WasmPeer.__wrap(arg0);
|
|
1509
1649
|
return addHeapObject(ret);
|
|
1510
1650
|
};
|
|
1511
1651
|
|
|
1512
|
-
module.exports.
|
|
1513
|
-
const ret =
|
|
1652
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1653
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1514
1654
|
return addHeapObject(ret);
|
|
1515
1655
|
};
|
|
1516
1656
|
|
|
1517
|
-
module.exports.
|
|
1518
|
-
const ret =
|
|
1657
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
1658
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
1519
1659
|
return addHeapObject(ret);
|
|
1520
1660
|
};
|
|
1521
1661
|
|
|
1522
|
-
module.exports.
|
|
1523
|
-
const ret =
|
|
1662
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
1663
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
1524
1664
|
return addHeapObject(ret);
|
|
1525
1665
|
};
|
|
1526
1666
|
|
|
1527
|
-
module.exports.
|
|
1528
|
-
const ret =
|
|
1667
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
1668
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
1529
1669
|
return addHeapObject(ret);
|
|
1530
1670
|
};
|
|
1531
1671
|
|
|
1532
|
-
module.exports.
|
|
1533
|
-
const ret =
|
|
1672
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
1673
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
1534
1674
|
return addHeapObject(ret);
|
|
1535
1675
|
};
|
|
1536
1676
|
|
|
@@ -1548,13 +1688,23 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
1548
1688
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1549
1689
|
};
|
|
1550
1690
|
|
|
1551
|
-
module.exports.
|
|
1552
|
-
const ret =
|
|
1691
|
+
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
1692
|
+
const ret = WasmTransaction.__wrap(arg0);
|
|
1553
1693
|
return addHeapObject(ret);
|
|
1554
1694
|
};
|
|
1555
1695
|
|
|
1556
|
-
module.exports.
|
|
1557
|
-
const ret =
|
|
1696
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
1697
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
1698
|
+
return addHeapObject(ret);
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
1702
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
1703
|
+
return addHeapObject(ret);
|
|
1704
|
+
};
|
|
1705
|
+
|
|
1706
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
1707
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
1558
1708
|
return addHeapObject(ret);
|
|
1559
1709
|
};
|
|
1560
1710
|
|
|
@@ -1579,25 +1729,25 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
1579
1729
|
return addHeapObject(ret);
|
|
1580
1730
|
};
|
|
1581
1731
|
|
|
1582
|
-
module.exports.
|
|
1732
|
+
module.exports.__wbg_sendmessage_70cf01a74238ef63 = function(arg0, arg1) {
|
|
1583
1733
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
1584
1734
|
};
|
|
1585
1735
|
|
|
1586
|
-
module.exports.
|
|
1736
|
+
module.exports.__wbg_sendmessagetoall_f21a42890e5f645b = function(arg0, arg1) {
|
|
1587
1737
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
1588
1738
|
};
|
|
1589
1739
|
|
|
1590
|
-
module.exports.
|
|
1740
|
+
module.exports.__wbg_connecttopeer_6ec823d9caba5a7c = function() { return handleError(function (arg0) {
|
|
1591
1741
|
const ret = MsgHandler.connect_to_peer(takeObject(arg0));
|
|
1592
1742
|
return addHeapObject(ret);
|
|
1593
1743
|
}, arguments) };
|
|
1594
1744
|
|
|
1595
|
-
module.exports.
|
|
1745
|
+
module.exports.__wbg_disconnectfrompeer_12c6d73328c39709 = function() { return handleError(function (arg0) {
|
|
1596
1746
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
1597
1747
|
return addHeapObject(ret);
|
|
1598
1748
|
}, arguments) };
|
|
1599
1749
|
|
|
1600
|
-
module.exports.
|
|
1750
|
+
module.exports.__wbg_fetchblockfrompeer_2712bfadcb22b124 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1601
1751
|
let deferred0_0;
|
|
1602
1752
|
let deferred0_1;
|
|
1603
1753
|
try {
|
|
@@ -1610,7 +1760,7 @@ module.exports.__wbg_fetchblockfrompeer_5edf7603fbaefde5 = function() { return h
|
|
|
1610
1760
|
}
|
|
1611
1761
|
}, arguments) };
|
|
1612
1762
|
|
|
1613
|
-
module.exports.
|
|
1763
|
+
module.exports.__wbg_writevalue_484e700008f4eb2a = function(arg0, arg1, arg2) {
|
|
1614
1764
|
let deferred0_0;
|
|
1615
1765
|
let deferred0_1;
|
|
1616
1766
|
try {
|
|
@@ -1622,7 +1772,7 @@ module.exports.__wbg_writevalue_55f5ea243b36bc6f = function(arg0, arg1, arg2) {
|
|
|
1622
1772
|
}
|
|
1623
1773
|
};
|
|
1624
1774
|
|
|
1625
|
-
module.exports.
|
|
1775
|
+
module.exports.__wbg_readvalue_e38523356b74c155 = function() { return handleError(function (arg0, arg1) {
|
|
1626
1776
|
let deferred0_0;
|
|
1627
1777
|
let deferred0_1;
|
|
1628
1778
|
try {
|
|
@@ -1635,12 +1785,12 @@ module.exports.__wbg_readvalue_9c9b39f3ee2b6337 = function() { return handleErro
|
|
|
1635
1785
|
}
|
|
1636
1786
|
}, arguments) };
|
|
1637
1787
|
|
|
1638
|
-
module.exports.
|
|
1788
|
+
module.exports.__wbg_loadblockfilelist_dea749d6c45e8510 = function() { return handleError(function () {
|
|
1639
1789
|
const ret = MsgHandler.load_block_file_list();
|
|
1640
1790
|
return addHeapObject(ret);
|
|
1641
1791
|
}, arguments) };
|
|
1642
1792
|
|
|
1643
|
-
module.exports.
|
|
1793
|
+
module.exports.__wbg_isexistingfile_42cc6a9bc10cdae3 = function() { return handleError(function (arg0, arg1) {
|
|
1644
1794
|
let deferred0_0;
|
|
1645
1795
|
let deferred0_1;
|
|
1646
1796
|
try {
|
|
@@ -1653,7 +1803,7 @@ module.exports.__wbg_isexistingfile_c0454d2505555b12 = function() { return handl
|
|
|
1653
1803
|
}
|
|
1654
1804
|
}, arguments) };
|
|
1655
1805
|
|
|
1656
|
-
module.exports.
|
|
1806
|
+
module.exports.__wbg_removevalue_0d681ab3251fe89a = function() { return handleError(function (arg0, arg1) {
|
|
1657
1807
|
let deferred0_0;
|
|
1658
1808
|
let deferred0_1;
|
|
1659
1809
|
try {
|
|
@@ -1666,19 +1816,19 @@ module.exports.__wbg_removevalue_b2e235a3aee19782 = function() { return handleEr
|
|
|
1666
1816
|
}
|
|
1667
1817
|
}, arguments) };
|
|
1668
1818
|
|
|
1669
|
-
module.exports.
|
|
1819
|
+
module.exports.__wbg_processapicall_c03bc32d60236f2c = function(arg0, arg1, arg2) {
|
|
1670
1820
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
1671
1821
|
};
|
|
1672
1822
|
|
|
1673
|
-
module.exports.
|
|
1823
|
+
module.exports.__wbg_processapisuccess_203a5db3880e22d5 = function(arg0, arg1, arg2) {
|
|
1674
1824
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
1675
1825
|
};
|
|
1676
1826
|
|
|
1677
|
-
module.exports.
|
|
1827
|
+
module.exports.__wbg_processapierror_08f4ac404dab490f = function(arg0, arg1, arg2) {
|
|
1678
1828
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, BigInt.asUintN(64, arg2));
|
|
1679
1829
|
};
|
|
1680
1830
|
|
|
1681
|
-
module.exports.
|
|
1831
|
+
module.exports.__wbg_sendinterfaceevent_dac9e2a932c77c49 = function(arg0, arg1, arg2) {
|
|
1682
1832
|
let deferred0_0;
|
|
1683
1833
|
let deferred0_1;
|
|
1684
1834
|
try {
|
|
@@ -1690,7 +1840,7 @@ module.exports.__wbg_sendinterfaceevent_274db2472ea77b6f = function(arg0, arg1,
|
|
|
1690
1840
|
}
|
|
1691
1841
|
};
|
|
1692
1842
|
|
|
1693
|
-
module.exports.
|
|
1843
|
+
module.exports.__wbg_sendblocksuccess_e8d1820afd6bcd32 = function(arg0, arg1, arg2) {
|
|
1694
1844
|
let deferred0_0;
|
|
1695
1845
|
let deferred0_1;
|
|
1696
1846
|
try {
|
|
@@ -1702,26 +1852,21 @@ module.exports.__wbg_sendblocksuccess_769c89b6dcdfc2fd = function(arg0, arg1, ar
|
|
|
1702
1852
|
}
|
|
1703
1853
|
};
|
|
1704
1854
|
|
|
1705
|
-
module.exports.
|
|
1855
|
+
module.exports.__wbg_savewallet_78b555cbe0a3e5b5 = function() {
|
|
1706
1856
|
MsgHandler.save_wallet();
|
|
1707
1857
|
};
|
|
1708
1858
|
|
|
1709
|
-
module.exports.
|
|
1859
|
+
module.exports.__wbg_loadwallet_68aca3bed4fcdb77 = function() {
|
|
1710
1860
|
MsgHandler.load_wallet();
|
|
1711
1861
|
};
|
|
1712
1862
|
|
|
1713
|
-
module.exports.
|
|
1863
|
+
module.exports.__wbg_getmyservices_8567302e70cf1946 = function() {
|
|
1714
1864
|
const ret = MsgHandler.get_my_services();
|
|
1715
1865
|
_assertClass(ret, WasmPeerServiceList);
|
|
1716
1866
|
var ptr1 = ret.__destroy_into_raw();
|
|
1717
1867
|
return ptr1;
|
|
1718
1868
|
};
|
|
1719
1869
|
|
|
1720
|
-
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
1721
|
-
const ret = WasmPeerService.__wrap(arg0);
|
|
1722
|
-
return addHeapObject(ret);
|
|
1723
|
-
};
|
|
1724
|
-
|
|
1725
1870
|
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
1726
1871
|
const ret = getObject(arg0);
|
|
1727
1872
|
return addHeapObject(ret);
|
|
@@ -1950,7 +2095,7 @@ module.exports.__wbg_new_2b55e405e4af4986 = function(arg0, arg1) {
|
|
|
1950
2095
|
const a = state0.a;
|
|
1951
2096
|
state0.a = 0;
|
|
1952
2097
|
try {
|
|
1953
|
-
return
|
|
2098
|
+
return __wbg_adapter_302(a, state0.b, arg0, arg1);
|
|
1954
2099
|
} finally {
|
|
1955
2100
|
state0.a = a;
|
|
1956
2101
|
}
|
|
@@ -2044,8 +2189,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
2044
2189
|
return addHeapObject(ret);
|
|
2045
2190
|
};
|
|
2046
2191
|
|
|
2047
|
-
module.exports.
|
|
2048
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2192
|
+
module.exports.__wbindgen_closure_wrapper1007 = function(arg0, arg1, arg2) {
|
|
2193
|
+
const ret = makeMutClosure(arg0, arg1, 337, __wbg_adapter_40);
|
|
2049
2194
|
return addHeapObject(ret);
|
|
2050
2195
|
};
|
|
2051
2196
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|