saito-wasm 0.2.127 → 0.2.129
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 +23 -6
- package/pkg/node/index.js +118 -86
- package/pkg/node/index_bg.wasm +0 -0
- package/pkg/node/index_bg.wasm.d.ts +84 -81
- package/pkg/node/package.json +1 -1
- package/pkg/web/index.d.ts +107 -87
- package/pkg/web/index.js +111 -81
- package/pkg/web/index_bg.wasm +0 -0
- package/pkg/web/index_bg.wasm.d.ts +84 -81
- package/pkg/web/package.json +3 -3
- /package/pkg/node/snippets/{saito-wasm-b236679e260be222 → saito-wasm-e6f56d091907b570}/js/msg_handler.js +0 -0
- /package/pkg/web/snippets/{saito-wasm-b236679e260be222 → saito-wasm-e6f56d091907b570}/js/msg_handler.js +0 -0
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/pkg/node/index.d.ts
CHANGED
|
@@ -28,37 +28,39 @@ export function create_transaction_with_multiple_payments(public_keys: Array<any
|
|
|
28
28
|
/**
|
|
29
29
|
* @param {bigint} num
|
|
30
30
|
* @param {bigint} deposit
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {Uint8Array} tx_msg
|
|
32
32
|
* @param {bigint} fee
|
|
33
33
|
* @param {string} recipient_public_key
|
|
34
34
|
* @param {string} nft_type
|
|
35
35
|
* @returns {Promise<WasmTransaction>}
|
|
36
36
|
*/
|
|
37
|
-
export function create_bound_transaction(num: bigint, deposit: bigint,
|
|
37
|
+
export function create_bound_transaction(num: bigint, deposit: bigint, tx_msg: Uint8Array, fee: bigint, recipient_public_key: string, nft_type: string): Promise<WasmTransaction>;
|
|
38
38
|
/**
|
|
39
39
|
* @param {bigint} amt
|
|
40
40
|
* @param {string} slip1_utxo_key
|
|
41
41
|
* @param {string} slip2_utxo_key
|
|
42
42
|
* @param {string} slip3_utxo_key
|
|
43
|
-
* @param {string} data
|
|
44
43
|
* @param {string} recipient_public_key
|
|
44
|
+
* @param {Uint8Array} tx_msg
|
|
45
45
|
* @returns {Promise<WasmTransaction>}
|
|
46
46
|
*/
|
|
47
|
-
export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string,
|
|
47
|
+
export function create_send_bound_transaction(amt: bigint, slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, recipient_public_key: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
48
48
|
/**
|
|
49
49
|
* @param {string} slip1_utxo_key
|
|
50
50
|
* @param {string} slip2_utxo_key
|
|
51
51
|
* @param {string} slip3_utxo_key
|
|
52
52
|
* @param {number} left_count
|
|
53
53
|
* @param {number} right_count
|
|
54
|
+
* @param {Uint8Array} tx_msg
|
|
54
55
|
* @returns {Promise<WasmTransaction>}
|
|
55
56
|
*/
|
|
56
|
-
export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number): Promise<WasmTransaction>;
|
|
57
|
+
export function create_split_bound_transaction(slip1_utxo_key: string, slip2_utxo_key: string, slip3_utxo_key: string, left_count: number, right_count: number, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
57
58
|
/**
|
|
58
59
|
* @param {string} nft_id_hex
|
|
60
|
+
* @param {Uint8Array} tx_msg
|
|
59
61
|
* @returns {Promise<WasmTransaction>}
|
|
60
62
|
*/
|
|
61
|
-
export function create_merge_bound_transaction(nft_id_hex: string): Promise<WasmTransaction>;
|
|
63
|
+
export function create_merge_bound_transaction(nft_id_hex: string, tx_msg: Uint8Array): Promise<WasmTransaction>;
|
|
62
64
|
/**
|
|
63
65
|
* @returns {Promise<Array<any>>}
|
|
64
66
|
*/
|
|
@@ -531,6 +533,21 @@ export class WasmBlockchain {
|
|
|
531
533
|
* @returns {Promise<void>}
|
|
532
534
|
*/
|
|
533
535
|
set_safe_to_prune_transaction(block_id: bigint): Promise<void>;
|
|
536
|
+
/**
|
|
537
|
+
* @returns {Promise<bigint>}
|
|
538
|
+
*/
|
|
539
|
+
get_prune_after_blocks(): Promise<bigint>;
|
|
540
|
+
/**
|
|
541
|
+
* @returns {Promise<bigint>}
|
|
542
|
+
*/
|
|
543
|
+
get_block_confirmation_limit(): Promise<bigint>;
|
|
544
|
+
/**
|
|
545
|
+
* @param {Function} reorg_cb
|
|
546
|
+
* @param {Function} add_block_cb
|
|
547
|
+
* @param {Function} confirm_cb
|
|
548
|
+
* @returns {Promise<void>}
|
|
549
|
+
*/
|
|
550
|
+
register_callback(reorg_cb: Function, add_block_cb: Function, confirm_cb: Function): Promise<void>;
|
|
534
551
|
}
|
|
535
552
|
/**
|
|
536
553
|
*/
|
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-e6f56d091907b570/js/msg_handler.js`);
|
|
5
5
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
6
|
|
|
7
7
|
const heap = new Array(128).fill(undefined);
|
|
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h437aeb043649771e(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
function handleError(f, args) {
|
|
@@ -290,16 +290,14 @@ module.exports.create_transaction_with_multiple_payments = function(public_keys,
|
|
|
290
290
|
/**
|
|
291
291
|
* @param {bigint} num
|
|
292
292
|
* @param {bigint} deposit
|
|
293
|
-
* @param {
|
|
293
|
+
* @param {Uint8Array} tx_msg
|
|
294
294
|
* @param {bigint} fee
|
|
295
295
|
* @param {string} recipient_public_key
|
|
296
296
|
* @param {string} nft_type
|
|
297
297
|
* @returns {Promise<WasmTransaction>}
|
|
298
298
|
*/
|
|
299
|
-
module.exports.create_bound_transaction = function(num, deposit,
|
|
300
|
-
const
|
|
301
|
-
const len0 = WASM_VECTOR_LEN;
|
|
302
|
-
const ret = wasm.create_bound_transaction(num, deposit, ptr0, len0, fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
299
|
+
module.exports.create_bound_transaction = function(num, deposit, tx_msg, fee, recipient_public_key, nft_type) {
|
|
300
|
+
const ret = wasm.create_bound_transaction(num, deposit, addHeapObject(tx_msg), fee, addHeapObject(recipient_public_key), addHeapObject(nft_type));
|
|
303
301
|
return takeObject(ret);
|
|
304
302
|
};
|
|
305
303
|
|
|
@@ -308,14 +306,12 @@ module.exports.create_bound_transaction = function(num, deposit, data, fee, reci
|
|
|
308
306
|
* @param {string} slip1_utxo_key
|
|
309
307
|
* @param {string} slip2_utxo_key
|
|
310
308
|
* @param {string} slip3_utxo_key
|
|
311
|
-
* @param {string} data
|
|
312
309
|
* @param {string} recipient_public_key
|
|
310
|
+
* @param {Uint8Array} tx_msg
|
|
313
311
|
* @returns {Promise<WasmTransaction>}
|
|
314
312
|
*/
|
|
315
|
-
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key,
|
|
316
|
-
const
|
|
317
|
-
const len0 = WASM_VECTOR_LEN;
|
|
318
|
-
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));
|
|
313
|
+
module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, recipient_public_key, tx_msg) {
|
|
314
|
+
const ret = wasm.create_send_bound_transaction(amt, addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), addHeapObject(recipient_public_key), addHeapObject(tx_msg));
|
|
319
315
|
return takeObject(ret);
|
|
320
316
|
};
|
|
321
317
|
|
|
@@ -325,21 +321,23 @@ module.exports.create_send_bound_transaction = function(amt, slip1_utxo_key, sli
|
|
|
325
321
|
* @param {string} slip3_utxo_key
|
|
326
322
|
* @param {number} left_count
|
|
327
323
|
* @param {number} right_count
|
|
324
|
+
* @param {Uint8Array} tx_msg
|
|
328
325
|
* @returns {Promise<WasmTransaction>}
|
|
329
326
|
*/
|
|
330
|
-
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count) {
|
|
331
|
-
const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count);
|
|
327
|
+
module.exports.create_split_bound_transaction = function(slip1_utxo_key, slip2_utxo_key, slip3_utxo_key, left_count, right_count, tx_msg) {
|
|
328
|
+
const ret = wasm.create_split_bound_transaction(addHeapObject(slip1_utxo_key), addHeapObject(slip2_utxo_key), addHeapObject(slip3_utxo_key), left_count, right_count, addHeapObject(tx_msg));
|
|
332
329
|
return takeObject(ret);
|
|
333
330
|
};
|
|
334
331
|
|
|
335
332
|
/**
|
|
336
333
|
* @param {string} nft_id_hex
|
|
334
|
+
* @param {Uint8Array} tx_msg
|
|
337
335
|
* @returns {Promise<WasmTransaction>}
|
|
338
336
|
*/
|
|
339
|
-
module.exports.create_merge_bound_transaction = function(nft_id_hex) {
|
|
337
|
+
module.exports.create_merge_bound_transaction = function(nft_id_hex, tx_msg) {
|
|
340
338
|
const ptr0 = passStringToWasm0(nft_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
341
339
|
const len0 = WASM_VECTOR_LEN;
|
|
342
|
-
const ret = wasm.create_merge_bound_transaction(ptr0, len0);
|
|
340
|
+
const ret = wasm.create_merge_bound_transaction(ptr0, len0, addHeapObject(tx_msg));
|
|
343
341
|
return takeObject(ret);
|
|
344
342
|
};
|
|
345
343
|
|
|
@@ -724,8 +722,8 @@ module.exports.get_congestion_stats = function() {
|
|
|
724
722
|
return takeObject(ret);
|
|
725
723
|
};
|
|
726
724
|
|
|
727
|
-
function
|
|
728
|
-
wasm.
|
|
725
|
+
function __wbg_adapter_433(arg0, arg1, arg2, arg3) {
|
|
726
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e7bb10b7401ce1b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
729
727
|
}
|
|
730
728
|
|
|
731
729
|
const SaitoWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1405,6 +1403,30 @@ class WasmBlockchain {
|
|
|
1405
1403
|
const ret = wasm.wasmblockchain_set_safe_to_prune_transaction(this.__wbg_ptr, block_id);
|
|
1406
1404
|
return takeObject(ret);
|
|
1407
1405
|
}
|
|
1406
|
+
/**
|
|
1407
|
+
* @returns {Promise<bigint>}
|
|
1408
|
+
*/
|
|
1409
|
+
get_prune_after_blocks() {
|
|
1410
|
+
const ret = wasm.wasmblockchain_get_prune_after_blocks(this.__wbg_ptr);
|
|
1411
|
+
return takeObject(ret);
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* @returns {Promise<bigint>}
|
|
1415
|
+
*/
|
|
1416
|
+
get_block_confirmation_limit() {
|
|
1417
|
+
const ret = wasm.wasmblockchain_get_block_confirmation_limit(this.__wbg_ptr);
|
|
1418
|
+
return takeObject(ret);
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* @param {Function} reorg_cb
|
|
1422
|
+
* @param {Function} add_block_cb
|
|
1423
|
+
* @param {Function} confirm_cb
|
|
1424
|
+
* @returns {Promise<void>}
|
|
1425
|
+
*/
|
|
1426
|
+
register_callback(reorg_cb, add_block_cb, confirm_cb) {
|
|
1427
|
+
const ret = wasm.wasmblockchain_register_callback(this.__wbg_ptr, addHeapObject(reorg_cb), addHeapObject(add_block_cb), addHeapObject(confirm_cb));
|
|
1428
|
+
return takeObject(ret);
|
|
1429
|
+
}
|
|
1408
1430
|
}
|
|
1409
1431
|
module.exports.WasmBlockchain = WasmBlockchain;
|
|
1410
1432
|
|
|
@@ -2604,32 +2626,17 @@ class WasmWalletSlip {
|
|
|
2604
2626
|
}
|
|
2605
2627
|
module.exports.WasmWalletSlip = WasmWalletSlip;
|
|
2606
2628
|
|
|
2607
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2608
|
-
takeObject(arg0);
|
|
2609
|
-
};
|
|
2610
|
-
|
|
2611
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2612
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2613
|
-
return addHeapObject(ret);
|
|
2614
|
-
};
|
|
2615
|
-
|
|
2616
2629
|
module.exports.__wbg_wasmtransaction_new = function(arg0) {
|
|
2617
2630
|
const ret = WasmTransaction.__wrap(arg0);
|
|
2618
2631
|
return addHeapObject(ret);
|
|
2619
2632
|
};
|
|
2620
2633
|
|
|
2621
|
-
module.exports.
|
|
2622
|
-
|
|
2623
|
-
return addHeapObject(ret);
|
|
2624
|
-
};
|
|
2625
|
-
|
|
2626
|
-
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2627
|
-
const ret = WasmBlock.__wrap(arg0);
|
|
2628
|
-
return addHeapObject(ret);
|
|
2634
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
2635
|
+
takeObject(arg0);
|
|
2629
2636
|
};
|
|
2630
2637
|
|
|
2631
|
-
module.exports.
|
|
2632
|
-
const ret =
|
|
2638
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
2639
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2633
2640
|
return addHeapObject(ret);
|
|
2634
2641
|
};
|
|
2635
2642
|
|
|
@@ -2647,40 +2654,60 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
2647
2654
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
2648
2655
|
};
|
|
2649
2656
|
|
|
2657
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2658
|
+
const ret = getObject(arg0);
|
|
2659
|
+
return addHeapObject(ret);
|
|
2660
|
+
};
|
|
2661
|
+
|
|
2662
|
+
module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
|
|
2663
|
+
const ret = WasmBalanceSnapshot.__wrap(arg0);
|
|
2664
|
+
return addHeapObject(ret);
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2650
2667
|
module.exports.__wbg_wasmpeer_new = function(arg0) {
|
|
2651
2668
|
const ret = WasmPeer.__wrap(arg0);
|
|
2652
2669
|
return addHeapObject(ret);
|
|
2653
2670
|
};
|
|
2654
2671
|
|
|
2672
|
+
module.exports.__wbg_wasmwallet_new = function(arg0) {
|
|
2673
|
+
const ret = WasmWallet.__wrap(arg0);
|
|
2674
|
+
return addHeapObject(ret);
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2655
2677
|
module.exports.__wbg_wasmnft_new = function(arg0) {
|
|
2656
2678
|
const ret = WasmNFT.__wrap(arg0);
|
|
2657
2679
|
return addHeapObject(ret);
|
|
2658
2680
|
};
|
|
2659
2681
|
|
|
2660
|
-
module.exports.
|
|
2661
|
-
const ret =
|
|
2682
|
+
module.exports.__wbg_wasmblock_new = function(arg0) {
|
|
2683
|
+
const ret = WasmBlock.__wrap(arg0);
|
|
2662
2684
|
return addHeapObject(ret);
|
|
2663
2685
|
};
|
|
2664
2686
|
|
|
2665
|
-
module.exports.
|
|
2666
|
-
const ret =
|
|
2687
|
+
module.exports.__wbg_wasmwalletslip_new = function(arg0) {
|
|
2688
|
+
const ret = WasmWalletSlip.__wrap(arg0);
|
|
2667
2689
|
return addHeapObject(ret);
|
|
2668
2690
|
};
|
|
2669
2691
|
|
|
2670
|
-
module.exports.
|
|
2671
|
-
const ret =
|
|
2692
|
+
module.exports.__wbg_wasmblockchain_new = function(arg0) {
|
|
2693
|
+
const ret = WasmBlockchain.__wrap(arg0);
|
|
2694
|
+
return addHeapObject(ret);
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
module.exports.__wbg_wasmslip_new = function(arg0) {
|
|
2698
|
+
const ret = WasmSlip.__wrap(arg0);
|
|
2672
2699
|
return addHeapObject(ret);
|
|
2673
2700
|
};
|
|
2674
2701
|
|
|
2675
|
-
module.exports.
|
|
2702
|
+
module.exports.__wbg_sendmessage_87838f249f0c3d14 = function(arg0, arg1) {
|
|
2676
2703
|
MsgHandler.send_message(takeObject(arg0), getObject(arg1));
|
|
2677
2704
|
};
|
|
2678
2705
|
|
|
2679
|
-
module.exports.
|
|
2706
|
+
module.exports.__wbg_sendmessagetoall_bf514bc6ff26f36c = function(arg0, arg1) {
|
|
2680
2707
|
MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
|
|
2681
2708
|
};
|
|
2682
2709
|
|
|
2683
|
-
module.exports.
|
|
2710
|
+
module.exports.__wbg_connecttopeer_a9963c3dc97bce09 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
2684
2711
|
let deferred0_0;
|
|
2685
2712
|
let deferred0_1;
|
|
2686
2713
|
try {
|
|
@@ -2693,12 +2720,12 @@ module.exports.__wbg_connecttopeer_a5d44efd1e2d8f22 = function() { return handle
|
|
|
2693
2720
|
}
|
|
2694
2721
|
}, arguments) };
|
|
2695
2722
|
|
|
2696
|
-
module.exports.
|
|
2723
|
+
module.exports.__wbg_disconnectfrompeer_c61e738a7a82bfd0 = function() { return handleError(function (arg0) {
|
|
2697
2724
|
const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
|
|
2698
2725
|
return addHeapObject(ret);
|
|
2699
2726
|
}, arguments) };
|
|
2700
2727
|
|
|
2701
|
-
module.exports.
|
|
2728
|
+
module.exports.__wbg_fetchblockfrompeer_4e543ef5ce56fa3f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2702
2729
|
let deferred0_0;
|
|
2703
2730
|
let deferred0_1;
|
|
2704
2731
|
try {
|
|
@@ -2711,7 +2738,7 @@ module.exports.__wbg_fetchblockfrompeer_ab7f69475538b630 = function() { return h
|
|
|
2711
2738
|
}
|
|
2712
2739
|
}, arguments) };
|
|
2713
2740
|
|
|
2714
|
-
module.exports.
|
|
2741
|
+
module.exports.__wbg_writevalue_702910e991275585 = function(arg0, arg1, arg2) {
|
|
2715
2742
|
let deferred0_0;
|
|
2716
2743
|
let deferred0_1;
|
|
2717
2744
|
try {
|
|
@@ -2723,7 +2750,7 @@ module.exports.__wbg_writevalue_289d0261e60992a8 = function(arg0, arg1, arg2) {
|
|
|
2723
2750
|
}
|
|
2724
2751
|
};
|
|
2725
2752
|
|
|
2726
|
-
module.exports.
|
|
2753
|
+
module.exports.__wbg_appendvalue_e7576d8543db584d = function(arg0, arg1, arg2) {
|
|
2727
2754
|
let deferred0_0;
|
|
2728
2755
|
let deferred0_1;
|
|
2729
2756
|
try {
|
|
@@ -2735,7 +2762,7 @@ module.exports.__wbg_appendvalue_66c6e8fcda2a1e45 = function(arg0, arg1, arg2) {
|
|
|
2735
2762
|
}
|
|
2736
2763
|
};
|
|
2737
2764
|
|
|
2738
|
-
module.exports.
|
|
2765
|
+
module.exports.__wbg_flushdata_894272baa7f1ae20 = function(arg0, arg1) {
|
|
2739
2766
|
let deferred0_0;
|
|
2740
2767
|
let deferred0_1;
|
|
2741
2768
|
try {
|
|
@@ -2747,7 +2774,7 @@ module.exports.__wbg_flushdata_df9315b38926f06c = function(arg0, arg1) {
|
|
|
2747
2774
|
}
|
|
2748
2775
|
};
|
|
2749
2776
|
|
|
2750
|
-
module.exports.
|
|
2777
|
+
module.exports.__wbg_readvalue_f3f1db859fd88fe4 = function() { return handleError(function (arg0, arg1) {
|
|
2751
2778
|
let deferred0_0;
|
|
2752
2779
|
let deferred0_1;
|
|
2753
2780
|
try {
|
|
@@ -2760,12 +2787,12 @@ module.exports.__wbg_readvalue_2d38f98bdad1dafd = function() { return handleErro
|
|
|
2760
2787
|
}
|
|
2761
2788
|
}, arguments) };
|
|
2762
2789
|
|
|
2763
|
-
module.exports.
|
|
2790
|
+
module.exports.__wbg_loadblockfilelist_2ad96a8f1352c314 = function() { return handleError(function () {
|
|
2764
2791
|
const ret = MsgHandler.load_block_file_list();
|
|
2765
2792
|
return addHeapObject(ret);
|
|
2766
2793
|
}, arguments) };
|
|
2767
2794
|
|
|
2768
|
-
module.exports.
|
|
2795
|
+
module.exports.__wbg_isexistingfile_7c790d77eb3e5a52 = function() { return handleError(function (arg0, arg1) {
|
|
2769
2796
|
let deferred0_0;
|
|
2770
2797
|
let deferred0_1;
|
|
2771
2798
|
try {
|
|
@@ -2778,7 +2805,7 @@ module.exports.__wbg_isexistingfile_3b7043169f752b55 = function() { return handl
|
|
|
2778
2805
|
}
|
|
2779
2806
|
}, arguments) };
|
|
2780
2807
|
|
|
2781
|
-
module.exports.
|
|
2808
|
+
module.exports.__wbg_removevalue_0c9dc712af8231e7 = function() { return handleError(function (arg0, arg1) {
|
|
2782
2809
|
let deferred0_0;
|
|
2783
2810
|
let deferred0_1;
|
|
2784
2811
|
try {
|
|
@@ -2791,7 +2818,7 @@ module.exports.__wbg_removevalue_b7f3a46f9e7ed087 = function() { return handleEr
|
|
|
2791
2818
|
}
|
|
2792
2819
|
}, arguments) };
|
|
2793
2820
|
|
|
2794
|
-
module.exports.
|
|
2821
|
+
module.exports.__wbg_ensureblockdirectoryexists_261503a47e8d756d = function() { return handleError(function (arg0, arg1) {
|
|
2795
2822
|
let deferred0_0;
|
|
2796
2823
|
let deferred0_1;
|
|
2797
2824
|
try {
|
|
@@ -2803,19 +2830,19 @@ module.exports.__wbg_ensureblockdirectoryexists_7977d52f158b50e1 = function() {
|
|
|
2803
2830
|
}
|
|
2804
2831
|
}, arguments) };
|
|
2805
2832
|
|
|
2806
|
-
module.exports.
|
|
2833
|
+
module.exports.__wbg_processapicall_e4f40b883901814a = function(arg0, arg1, arg2) {
|
|
2807
2834
|
MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2808
2835
|
};
|
|
2809
2836
|
|
|
2810
|
-
module.exports.
|
|
2837
|
+
module.exports.__wbg_processapisuccess_32323c446312c1d5 = function(arg0, arg1, arg2) {
|
|
2811
2838
|
MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2812
2839
|
};
|
|
2813
2840
|
|
|
2814
|
-
module.exports.
|
|
2841
|
+
module.exports.__wbg_processapierror_1670a3aa7f0d2140 = function(arg0, arg1, arg2) {
|
|
2815
2842
|
MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
|
|
2816
2843
|
};
|
|
2817
2844
|
|
|
2818
|
-
module.exports.
|
|
2845
|
+
module.exports.__wbg_sendinterfaceevent_605a3ff9efcc875c = function(arg0, arg1, arg2, arg3, arg4) {
|
|
2819
2846
|
let deferred0_0;
|
|
2820
2847
|
let deferred0_1;
|
|
2821
2848
|
let deferred1_0;
|
|
@@ -2832,7 +2859,7 @@ module.exports.__wbg_sendinterfaceevent_36a7a49abeeb6fa5 = function(arg0, arg1,
|
|
|
2832
2859
|
}
|
|
2833
2860
|
};
|
|
2834
2861
|
|
|
2835
|
-
module.exports.
|
|
2862
|
+
module.exports.__wbg_sendblocksuccess_f28bb5c6cb0635af = function(arg0, arg1, arg2) {
|
|
2836
2863
|
let deferred0_0;
|
|
2837
2864
|
let deferred0_1;
|
|
2838
2865
|
try {
|
|
@@ -2844,11 +2871,11 @@ module.exports.__wbg_sendblocksuccess_767bc0e697e38c39 = function(arg0, arg1, ar
|
|
|
2844
2871
|
}
|
|
2845
2872
|
};
|
|
2846
2873
|
|
|
2847
|
-
module.exports.
|
|
2874
|
+
module.exports.__wbg_sendwalletupdate_dee01a332cecc875 = function() {
|
|
2848
2875
|
MsgHandler.send_wallet_update();
|
|
2849
2876
|
};
|
|
2850
2877
|
|
|
2851
|
-
module.exports.
|
|
2878
|
+
module.exports.__wbg_sendnewversionalert_704e59d267783089 = function(arg0, arg1, arg2) {
|
|
2852
2879
|
let deferred0_0;
|
|
2853
2880
|
let deferred0_1;
|
|
2854
2881
|
try {
|
|
@@ -2860,31 +2887,31 @@ module.exports.__wbg_sendnewversionalert_3f20e912ad80b653 = function(arg0, arg1,
|
|
|
2860
2887
|
}
|
|
2861
2888
|
};
|
|
2862
2889
|
|
|
2863
|
-
module.exports.
|
|
2890
|
+
module.exports.__wbg_sendblockfetchstatusevent_b294238aee45b10c = function(arg0) {
|
|
2864
2891
|
MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
|
|
2865
2892
|
};
|
|
2866
2893
|
|
|
2867
|
-
module.exports.
|
|
2894
|
+
module.exports.__wbg_sendnewchaindetectedevent_844acb3a60f7a13f = function() {
|
|
2868
2895
|
MsgHandler.send_new_chain_detected_event();
|
|
2869
2896
|
};
|
|
2870
2897
|
|
|
2871
|
-
module.exports.
|
|
2898
|
+
module.exports.__wbg_savewallet_dec2f3042fa28a7c = function() {
|
|
2872
2899
|
MsgHandler.save_wallet();
|
|
2873
2900
|
};
|
|
2874
2901
|
|
|
2875
|
-
module.exports.
|
|
2902
|
+
module.exports.__wbg_loadwallet_e61655b6fee4c4ec = function() {
|
|
2876
2903
|
MsgHandler.load_wallet();
|
|
2877
2904
|
};
|
|
2878
2905
|
|
|
2879
|
-
module.exports.
|
|
2906
|
+
module.exports.__wbg_getmyservices_42dc20ce6a0c89c2 = function() {
|
|
2880
2907
|
const ret = MsgHandler.get_my_services();
|
|
2881
2908
|
_assertClass(ret, WasmPeerServiceList);
|
|
2882
2909
|
var ptr1 = ret.__destroy_into_raw();
|
|
2883
2910
|
return ptr1;
|
|
2884
2911
|
};
|
|
2885
2912
|
|
|
2886
|
-
module.exports.
|
|
2887
|
-
const ret =
|
|
2913
|
+
module.exports.__wbg_wasmpeerservice_new = function(arg0) {
|
|
2914
|
+
const ret = WasmPeerService.__wrap(arg0);
|
|
2888
2915
|
return addHeapObject(ret);
|
|
2889
2916
|
};
|
|
2890
2917
|
|
|
@@ -2904,13 +2931,13 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
2904
2931
|
return ret;
|
|
2905
2932
|
};
|
|
2906
2933
|
|
|
2907
|
-
module.exports.
|
|
2908
|
-
const ret =
|
|
2934
|
+
module.exports.__wbg_wasmhop_new = function(arg0) {
|
|
2935
|
+
const ret = WasmHop.__wrap(arg0);
|
|
2909
2936
|
return addHeapObject(ret);
|
|
2910
2937
|
};
|
|
2911
2938
|
|
|
2912
|
-
module.exports.
|
|
2913
|
-
const ret =
|
|
2939
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
2940
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2914
2941
|
return addHeapObject(ret);
|
|
2915
2942
|
};
|
|
2916
2943
|
|
|
@@ -2932,11 +2959,6 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
2932
2959
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
2933
2960
|
};
|
|
2934
2961
|
|
|
2935
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
2936
|
-
const ret = getObject(arg0);
|
|
2937
|
-
return addHeapObject(ret);
|
|
2938
|
-
};
|
|
2939
|
-
|
|
2940
2962
|
module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
2941
2963
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
2942
2964
|
return addHeapObject(ret);
|
|
@@ -2952,10 +2974,6 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
2952
2974
|
return ret;
|
|
2953
2975
|
};
|
|
2954
2976
|
|
|
2955
|
-
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2956
|
-
queueMicrotask(getObject(arg0));
|
|
2957
|
-
};
|
|
2958
|
-
|
|
2959
2977
|
module.exports.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
|
|
2960
2978
|
const ret = getObject(arg0).queueMicrotask;
|
|
2961
2979
|
return addHeapObject(ret);
|
|
@@ -2966,6 +2984,10 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
2966
2984
|
return ret;
|
|
2967
2985
|
};
|
|
2968
2986
|
|
|
2987
|
+
module.exports.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
|
|
2988
|
+
queueMicrotask(getObject(arg0));
|
|
2989
|
+
};
|
|
2990
|
+
|
|
2969
2991
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
2970
2992
|
const ret = new Error();
|
|
2971
2993
|
return addHeapObject(ret);
|
|
@@ -3165,6 +3187,16 @@ module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(fun
|
|
|
3165
3187
|
return addHeapObject(ret);
|
|
3166
3188
|
}, arguments) };
|
|
3167
3189
|
|
|
3190
|
+
module.exports.__wbg_call_8e7cb608789c2528 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3191
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
3192
|
+
return addHeapObject(ret);
|
|
3193
|
+
}, arguments) };
|
|
3194
|
+
|
|
3195
|
+
module.exports.__wbg_call_938992c832f74314 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3196
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
3197
|
+
return addHeapObject(ret);
|
|
3198
|
+
}, arguments) };
|
|
3199
|
+
|
|
3168
3200
|
module.exports.__wbg_now_3014639a94423537 = function() {
|
|
3169
3201
|
const ret = Date.now();
|
|
3170
3202
|
return ret;
|
|
@@ -3182,7 +3214,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
3182
3214
|
const a = state0.a;
|
|
3183
3215
|
state0.a = 0;
|
|
3184
3216
|
try {
|
|
3185
|
-
return
|
|
3217
|
+
return __wbg_adapter_433(a, state0.b, arg0, arg1);
|
|
3186
3218
|
} finally {
|
|
3187
3219
|
state0.a = a;
|
|
3188
3220
|
}
|
|
@@ -3280,8 +3312,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
3280
3312
|
return addHeapObject(ret);
|
|
3281
3313
|
};
|
|
3282
3314
|
|
|
3283
|
-
module.exports.
|
|
3284
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3315
|
+
module.exports.__wbindgen_closure_wrapper1534 = function(arg0, arg1, arg2) {
|
|
3316
|
+
const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_38);
|
|
3285
3317
|
return addHeapObject(ret);
|
|
3286
3318
|
};
|
|
3287
3319
|
|
package/pkg/node/index_bg.wasm
CHANGED
|
Binary file
|