saito-wasm 0.2.130 → 0.2.132

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "saito-wasm"
3
- version = "0.2.130"
3
+ version = "0.2.132"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.130",
3
+ "version": "0.2.132",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
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-775f319667b67c19/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ec8041aac096a25b/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -24,15 +24,6 @@ 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
-
36
27
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
37
28
 
38
29
  cachedTextDecoder.decode();
@@ -51,6 +42,15 @@ function getStringFromWasm0(ptr, len) {
51
42
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
43
  }
53
44
 
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');
@@ -2630,18 +2630,13 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2630
2630
  takeObject(arg0);
2631
2631
  };
2632
2632
 
2633
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2634
- const ret = BigInt.asUintN(64, arg0);
2635
- return addHeapObject(ret);
2636
- };
2637
-
2638
2633
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
2639
2634
  const ret = getStringFromWasm0(arg0, arg1);
2640
2635
  return addHeapObject(ret);
2641
2636
  };
2642
2637
 
2643
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2644
- const ret = WasmTransaction.__wrap(arg0);
2638
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2639
+ const ret = WasmNFT.__wrap(arg0);
2645
2640
  return addHeapObject(ret);
2646
2641
  };
2647
2642
 
@@ -2650,18 +2645,33 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2650
2645
  return addHeapObject(ret);
2651
2646
  };
2652
2647
 
2648
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2649
+ const ret = WasmTransaction.__wrap(arg0);
2650
+ return addHeapObject(ret);
2651
+ };
2652
+
2653
2653
  module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2654
2654
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2655
2655
  return addHeapObject(ret);
2656
2656
  };
2657
2657
 
2658
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2659
- const ret = WasmWalletSlip.__wrap(arg0);
2658
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2659
+ const ret = WasmBlockchain.__wrap(arg0);
2660
2660
  return addHeapObject(ret);
2661
2661
  };
2662
2662
 
2663
- module.exports.__wbg_wasmblock_new = function(arg0) {
2664
- const ret = WasmBlock.__wrap(arg0);
2663
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2664
+ const ret = getObject(arg0);
2665
+ return addHeapObject(ret);
2666
+ };
2667
+
2668
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2669
+ const ret = BigInt.asUintN(64, arg0);
2670
+ return addHeapObject(ret);
2671
+ };
2672
+
2673
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2674
+ const ret = WasmWalletSlip.__wrap(arg0);
2665
2675
  return addHeapObject(ret);
2666
2676
  };
2667
2677
 
@@ -2674,18 +2684,8 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2674
2684
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2675
2685
  };
2676
2686
 
2677
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2678
- const ret = getObject(arg0);
2679
- return addHeapObject(ret);
2680
- };
2681
-
2682
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2683
- const ret = WasmBlockchain.__wrap(arg0);
2684
- return addHeapObject(ret);
2685
- };
2686
-
2687
- module.exports.__wbg_wasmnft_new = function(arg0) {
2688
- const ret = WasmNFT.__wrap(arg0);
2687
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2688
+ const ret = WasmSlip.__wrap(arg0);
2689
2689
  return addHeapObject(ret);
2690
2690
  };
2691
2691
 
@@ -2694,20 +2694,20 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2694
2694
  return addHeapObject(ret);
2695
2695
  };
2696
2696
 
2697
- module.exports.__wbg_wasmslip_new = function(arg0) {
2698
- const ret = WasmSlip.__wrap(arg0);
2697
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2698
+ const ret = WasmBlock.__wrap(arg0);
2699
2699
  return addHeapObject(ret);
2700
2700
  };
2701
2701
 
2702
- module.exports.__wbg_sendmessage_559d1b7a3a70434c = function(arg0, arg1) {
2702
+ module.exports.__wbg_sendmessage_d6cffd6929d01b09 = function(arg0, arg1) {
2703
2703
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2704
2704
  };
2705
2705
 
2706
- module.exports.__wbg_sendmessagetoall_275686e449fc5d9a = function(arg0, arg1) {
2706
+ module.exports.__wbg_sendmessagetoall_bd396b9961d8d071 = function(arg0, arg1) {
2707
2707
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2708
2708
  };
2709
2709
 
2710
- module.exports.__wbg_connecttopeer_f4773fd516053c07 = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ module.exports.__wbg_connecttopeer_bfde0a2b3b33202e = function() { return handleError(function (arg0, arg1, arg2) {
2711
2711
  let deferred0_0;
2712
2712
  let deferred0_1;
2713
2713
  try {
@@ -2720,12 +2720,12 @@ module.exports.__wbg_connecttopeer_f4773fd516053c07 = function() { return handle
2720
2720
  }
2721
2721
  }, arguments) };
2722
2722
 
2723
- module.exports.__wbg_disconnectfrompeer_cda711df42beed7a = function() { return handleError(function (arg0) {
2723
+ module.exports.__wbg_disconnectfrompeer_1596accf061f36e3 = function() { return handleError(function (arg0) {
2724
2724
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2725
2725
  return addHeapObject(ret);
2726
2726
  }, arguments) };
2727
2727
 
2728
- module.exports.__wbg_fetchblockfrompeer_1ba26b53d9fe72c9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
+ module.exports.__wbg_fetchblockfrompeer_cd09702443e563ca = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2729
2729
  let deferred0_0;
2730
2730
  let deferred0_1;
2731
2731
  try {
@@ -2738,7 +2738,7 @@ module.exports.__wbg_fetchblockfrompeer_1ba26b53d9fe72c9 = function() { return h
2738
2738
  }
2739
2739
  }, arguments) };
2740
2740
 
2741
- module.exports.__wbg_writevalue_69c89d13cf9725b7 = function(arg0, arg1, arg2) {
2741
+ module.exports.__wbg_writevalue_d8f4abc7670b6d48 = function(arg0, arg1, arg2) {
2742
2742
  let deferred0_0;
2743
2743
  let deferred0_1;
2744
2744
  try {
@@ -2750,7 +2750,7 @@ module.exports.__wbg_writevalue_69c89d13cf9725b7 = function(arg0, arg1, arg2) {
2750
2750
  }
2751
2751
  };
2752
2752
 
2753
- module.exports.__wbg_appendvalue_de3fbe01a85d1a15 = function(arg0, arg1, arg2) {
2753
+ module.exports.__wbg_appendvalue_104f235628a50d32 = function(arg0, arg1, arg2) {
2754
2754
  let deferred0_0;
2755
2755
  let deferred0_1;
2756
2756
  try {
@@ -2762,7 +2762,7 @@ module.exports.__wbg_appendvalue_de3fbe01a85d1a15 = function(arg0, arg1, arg2) {
2762
2762
  }
2763
2763
  };
2764
2764
 
2765
- module.exports.__wbg_flushdata_ae82952591b97080 = function(arg0, arg1) {
2765
+ module.exports.__wbg_flushdata_e5c5c8ebd2bcd128 = function(arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,7 +2774,7 @@ module.exports.__wbg_flushdata_ae82952591b97080 = function(arg0, arg1) {
2774
2774
  }
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_readvalue_7ef01be02ce8f458 = function() { return handleError(function (arg0, arg1) {
2777
+ module.exports.__wbg_readvalue_7c03d6cef90df406 = function() { return handleError(function (arg0, arg1) {
2778
2778
  let deferred0_0;
2779
2779
  let deferred0_1;
2780
2780
  try {
@@ -2787,12 +2787,12 @@ module.exports.__wbg_readvalue_7ef01be02ce8f458 = function() { return handleErro
2787
2787
  }
2788
2788
  }, arguments) };
2789
2789
 
2790
- module.exports.__wbg_loadblockfilelist_fcbb86a34acd5666 = function() { return handleError(function () {
2790
+ module.exports.__wbg_loadblockfilelist_06d3b573c0ed3807 = function() { return handleError(function () {
2791
2791
  const ret = MsgHandler.load_block_file_list();
2792
2792
  return addHeapObject(ret);
2793
2793
  }, arguments) };
2794
2794
 
2795
- module.exports.__wbg_isexistingfile_80049f37d0da6f4c = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_isexistingfile_28a9417e5c76cb44 = function() { return handleError(function (arg0, arg1) {
2796
2796
  let deferred0_0;
2797
2797
  let deferred0_1;
2798
2798
  try {
@@ -2805,7 +2805,7 @@ module.exports.__wbg_isexistingfile_80049f37d0da6f4c = function() { return handl
2805
2805
  }
2806
2806
  }, arguments) };
2807
2807
 
2808
- module.exports.__wbg_removevalue_a695c2117cc0a9b8 = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_removevalue_27a117b3ceb62c07 = function() { return handleError(function (arg0, arg1) {
2809
2809
  let deferred0_0;
2810
2810
  let deferred0_1;
2811
2811
  try {
@@ -2818,7 +2818,7 @@ module.exports.__wbg_removevalue_a695c2117cc0a9b8 = function() { return handleEr
2818
2818
  }
2819
2819
  }, arguments) };
2820
2820
 
2821
- module.exports.__wbg_ensureblockdirectoryexists_a9b8b0e553c67d42 = function() { return handleError(function (arg0, arg1) {
2821
+ module.exports.__wbg_ensureblockdirectoryexists_1f8a41c339af22a0 = function() { return handleError(function (arg0, arg1) {
2822
2822
  let deferred0_0;
2823
2823
  let deferred0_1;
2824
2824
  try {
@@ -2830,19 +2830,19 @@ module.exports.__wbg_ensureblockdirectoryexists_a9b8b0e553c67d42 = function() {
2830
2830
  }
2831
2831
  }, arguments) };
2832
2832
 
2833
- module.exports.__wbg_processapicall_4d457b1c21fc314f = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_processapicall_1adc598fc395d8aa = function(arg0, arg1, arg2) {
2834
2834
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2835
2835
  };
2836
2836
 
2837
- module.exports.__wbg_processapisuccess_14e437ad11a17130 = function(arg0, arg1, arg2) {
2837
+ module.exports.__wbg_processapisuccess_87a83cf27b5def13 = function(arg0, arg1, arg2) {
2838
2838
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2839
2839
  };
2840
2840
 
2841
- module.exports.__wbg_processapierror_d8c88828ad4fc8e8 = function(arg0, arg1, arg2) {
2841
+ module.exports.__wbg_processapierror_0654ec17b94922fe = function(arg0, arg1, arg2) {
2842
2842
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2843
2843
  };
2844
2844
 
2845
- module.exports.__wbg_sendinterfaceevent_b32ba004edcdeac2 = function(arg0, arg1, arg2, arg3, arg4) {
2845
+ module.exports.__wbg_sendinterfaceevent_4252a05d8e5043db = function(arg0, arg1, arg2, arg3, arg4) {
2846
2846
  let deferred0_0;
2847
2847
  let deferred0_1;
2848
2848
  let deferred1_0;
@@ -2859,7 +2859,7 @@ module.exports.__wbg_sendinterfaceevent_b32ba004edcdeac2 = function(arg0, arg1,
2859
2859
  }
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_sendblocksuccess_6df46a290b6ef254 = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_sendblocksuccess_b65411816a9c8fb9 = function(arg0, arg1, arg2) {
2863
2863
  let deferred0_0;
2864
2864
  let deferred0_1;
2865
2865
  try {
@@ -2871,11 +2871,11 @@ module.exports.__wbg_sendblocksuccess_6df46a290b6ef254 = function(arg0, arg1, ar
2871
2871
  }
2872
2872
  };
2873
2873
 
2874
- module.exports.__wbg_sendwalletupdate_e0215da504329563 = function() {
2874
+ module.exports.__wbg_sendwalletupdate_0584b0dfdceea1e8 = function() {
2875
2875
  MsgHandler.send_wallet_update();
2876
2876
  };
2877
2877
 
2878
- module.exports.__wbg_sendnewversionalert_eb8029050fe2c6dc = function(arg0, arg1, arg2) {
2878
+ module.exports.__wbg_sendnewversionalert_0e96ce5e0b3fc4ff = function(arg0, arg1, arg2) {
2879
2879
  let deferred0_0;
2880
2880
  let deferred0_1;
2881
2881
  try {
@@ -2887,23 +2887,23 @@ module.exports.__wbg_sendnewversionalert_eb8029050fe2c6dc = function(arg0, arg1,
2887
2887
  }
2888
2888
  };
2889
2889
 
2890
- module.exports.__wbg_sendblockfetchstatusevent_3500f33514d731d3 = function(arg0) {
2890
+ module.exports.__wbg_sendblockfetchstatusevent_f55acabbf1494e1f = function(arg0) {
2891
2891
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2892
2892
  };
2893
2893
 
2894
- module.exports.__wbg_sendnewchaindetectedevent_90a56da2e2734093 = function() {
2894
+ module.exports.__wbg_sendnewchaindetectedevent_d56b658a8a01f168 = function() {
2895
2895
  MsgHandler.send_new_chain_detected_event();
2896
2896
  };
2897
2897
 
2898
- module.exports.__wbg_savewallet_5020cd18e496917e = function() {
2898
+ module.exports.__wbg_savewallet_03fb41bc9e9fd899 = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
2901
 
2902
- module.exports.__wbg_loadwallet_baf82ab120176677 = function() {
2902
+ module.exports.__wbg_loadwallet_ce84d85f8dec2f72 = function() {
2903
2903
  MsgHandler.load_wallet();
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbg_getmyservices_b0183440e3f31348 = function() {
2906
+ module.exports.__wbg_getmyservices_e6b4841b7df6ff69 = function() {
2907
2907
  const ret = MsgHandler.get_my_services();
2908
2908
  _assertClass(ret, WasmPeerServiceList);
2909
2909
  var ptr1 = ret.__destroy_into_raw();
@@ -3312,8 +3312,8 @@ module.exports.__wbindgen_memory = function() {
3312
3312
  return addHeapObject(ret);
3313
3313
  };
3314
3314
 
3315
- module.exports.__wbindgen_closure_wrapper1534 = function(arg0, arg1, arg2) {
3316
- const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_38);
3315
+ module.exports.__wbindgen_closure_wrapper1544 = function(arg0, arg1, arg2) {
3316
+ const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
3317
3317
  return addHeapObject(ret);
3318
3318
  };
3319
3319
 
Binary file
@@ -75,11 +75,6 @@ export function wasmwalletslip_get_amount(a: number): number;
75
75
  export function wasmwalletslip_get_block_id(a: number): number;
76
76
  export function wasmwalletslip_get_tx_ordinal(a: number): number;
77
77
  export function __wbg_wasmstats_free(a: number): void;
78
- export function __wbg_wasmbalancesnapshot_free(a: number): void;
79
- export function wasmbalancesnapshot_get_file_name(a: number): number;
80
- export function wasmbalancesnapshot_get_entries(a: number): number;
81
- export function wasmbalancesnapshot_from_string(a: number, b: number): void;
82
- export function wasmbalancesnapshot_to_string(a: number): number;
83
78
  export function __wbg_wasmblockchain_free(a: number): void;
84
79
  export function wasmblockchain_reset(a: number): number;
85
80
  export function wasmblockchain_get_last_block_id(a: number): number;
@@ -203,6 +198,11 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
203
198
  export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
204
199
  export function wasmconsensusvalues_avg_income(a: number): number;
205
200
  export function wasmconsensusvalues_avg_total_fees(a: number): number;
201
+ export function __wbg_wasmbalancesnapshot_free(a: number): void;
202
+ export function wasmbalancesnapshot_get_file_name(a: number): number;
203
+ export function wasmbalancesnapshot_get_entries(a: number): number;
204
+ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
205
+ export function wasmbalancesnapshot_to_string(a: number): number;
206
206
  export function __wbg_wasmblock_free(a: number): void;
207
207
  export function wasmblock_new(): number;
208
208
  export function wasmblock_get_transactions(a: number): number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.130",
3
+ "version": "0.2.132",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -1033,11 +1033,6 @@ export interface InitOutput {
1033
1033
  readonly wasmwalletslip_get_block_id: (a: number) => number;
1034
1034
  readonly wasmwalletslip_get_tx_ordinal: (a: number) => number;
1035
1035
  readonly __wbg_wasmstats_free: (a: number) => void;
1036
- readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
1037
- readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
1038
- readonly wasmbalancesnapshot_get_entries: (a: number) => number;
1039
- readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
1040
- readonly wasmbalancesnapshot_to_string: (a: number) => number;
1041
1036
  readonly __wbg_wasmblockchain_free: (a: number) => void;
1042
1037
  readonly wasmblockchain_reset: (a: number) => number;
1043
1038
  readonly wasmblockchain_get_last_block_id: (a: number) => number;
@@ -1161,6 +1156,11 @@ export interface InitOutput {
1161
1156
  readonly wasmconsensusvalues_rebroadcast_hash: (a: number) => number;
1162
1157
  readonly wasmconsensusvalues_avg_income: (a: number) => number;
1163
1158
  readonly wasmconsensusvalues_avg_total_fees: (a: number) => number;
1159
+ readonly __wbg_wasmbalancesnapshot_free: (a: number) => void;
1160
+ readonly wasmbalancesnapshot_get_file_name: (a: number) => number;
1161
+ readonly wasmbalancesnapshot_get_entries: (a: number) => number;
1162
+ readonly wasmbalancesnapshot_from_string: (a: number, b: number) => void;
1163
+ readonly wasmbalancesnapshot_to_string: (a: number) => number;
1164
1164
  readonly __wbg_wasmblock_free: (a: number) => void;
1165
1165
  readonly wasmblock_new: () => number;
1166
1166
  readonly wasmblock_get_transactions: (a: number) => number;
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-775f319667b67c19/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-ec8041aac096a25b/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -22,15 +22,6 @@ function takeObject(idx) {
22
22
  return ret;
23
23
  }
24
24
 
25
- function addHeapObject(obj) {
26
- if (heap_next === heap.length) heap.push(heap.length + 1);
27
- const idx = heap_next;
28
- heap_next = heap[idx];
29
-
30
- heap[idx] = obj;
31
- return idx;
32
- }
33
-
34
25
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35
26
 
36
27
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -49,6 +40,15 @@ function getStringFromWasm0(ptr, len) {
49
40
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
41
  }
51
42
 
43
+ function addHeapObject(obj) {
44
+ if (heap_next === heap.length) heap.push(heap.length + 1);
45
+ const idx = heap_next;
46
+ heap_next = heap[idx];
47
+
48
+ heap[idx] = obj;
49
+ return idx;
50
+ }
51
+
52
52
  let WASM_VECTOR_LEN = 0;
53
53
 
54
54
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -2645,32 +2645,40 @@ function __wbg_get_imports() {
2645
2645
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2646
2646
  takeObject(arg0);
2647
2647
  };
2648
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2649
- const ret = BigInt.asUintN(64, arg0);
2650
- return addHeapObject(ret);
2651
- };
2652
2648
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2653
2649
  const ret = getStringFromWasm0(arg0, arg1);
2654
2650
  return addHeapObject(ret);
2655
2651
  };
2656
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2657
- const ret = WasmTransaction.__wrap(arg0);
2652
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2653
+ const ret = WasmNFT.__wrap(arg0);
2658
2654
  return addHeapObject(ret);
2659
2655
  };
2660
2656
  imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2661
2657
  const ret = WasmPeer.__wrap(arg0);
2662
2658
  return addHeapObject(ret);
2663
2659
  };
2660
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2661
+ const ret = WasmTransaction.__wrap(arg0);
2662
+ return addHeapObject(ret);
2663
+ };
2664
2664
  imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2665
2665
  const ret = WasmBalanceSnapshot.__wrap(arg0);
2666
2666
  return addHeapObject(ret);
2667
2667
  };
2668
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2669
- const ret = WasmWalletSlip.__wrap(arg0);
2668
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2669
+ const ret = WasmBlockchain.__wrap(arg0);
2670
2670
  return addHeapObject(ret);
2671
2671
  };
2672
- imports.wbg.__wbg_wasmblock_new = function(arg0) {
2673
- const ret = WasmBlock.__wrap(arg0);
2672
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2673
+ const ret = getObject(arg0);
2674
+ return addHeapObject(ret);
2675
+ };
2676
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2677
+ const ret = BigInt.asUintN(64, arg0);
2678
+ return addHeapObject(ret);
2679
+ };
2680
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2681
+ const ret = WasmWalletSlip.__wrap(arg0);
2674
2682
  return addHeapObject(ret);
2675
2683
  };
2676
2684
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -2681,33 +2689,25 @@ function __wbg_get_imports() {
2681
2689
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2682
2690
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2683
2691
  };
2684
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
2685
- const ret = getObject(arg0);
2686
- return addHeapObject(ret);
2687
- };
2688
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2689
- const ret = WasmBlockchain.__wrap(arg0);
2690
- return addHeapObject(ret);
2691
- };
2692
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2693
- const ret = WasmNFT.__wrap(arg0);
2692
+ imports.wbg.__wbg_wasmslip_new = function(arg0) {
2693
+ const ret = WasmSlip.__wrap(arg0);
2694
2694
  return addHeapObject(ret);
2695
2695
  };
2696
2696
  imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2697
2697
  const ret = WasmWallet.__wrap(arg0);
2698
2698
  return addHeapObject(ret);
2699
2699
  };
2700
- imports.wbg.__wbg_wasmslip_new = function(arg0) {
2701
- const ret = WasmSlip.__wrap(arg0);
2700
+ imports.wbg.__wbg_wasmblock_new = function(arg0) {
2701
+ const ret = WasmBlock.__wrap(arg0);
2702
2702
  return addHeapObject(ret);
2703
2703
  };
2704
- imports.wbg.__wbg_sendmessage_559d1b7a3a70434c = function(arg0, arg1) {
2704
+ imports.wbg.__wbg_sendmessage_d6cffd6929d01b09 = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2706
2706
  };
2707
- imports.wbg.__wbg_sendmessagetoall_275686e449fc5d9a = function(arg0, arg1) {
2707
+ imports.wbg.__wbg_sendmessagetoall_bd396b9961d8d071 = function(arg0, arg1) {
2708
2708
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2709
2709
  };
2710
- imports.wbg.__wbg_connecttopeer_f4773fd516053c07 = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ imports.wbg.__wbg_connecttopeer_bfde0a2b3b33202e = function() { return handleError(function (arg0, arg1, arg2) {
2711
2711
  let deferred0_0;
2712
2712
  let deferred0_1;
2713
2713
  try {
@@ -2719,11 +2719,11 @@ function __wbg_get_imports() {
2719
2719
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2720
2720
  }
2721
2721
  }, arguments) };
2722
- imports.wbg.__wbg_disconnectfrompeer_cda711df42beed7a = function() { return handleError(function (arg0) {
2722
+ imports.wbg.__wbg_disconnectfrompeer_1596accf061f36e3 = function() { return handleError(function (arg0) {
2723
2723
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2724
2724
  return addHeapObject(ret);
2725
2725
  }, arguments) };
2726
- imports.wbg.__wbg_fetchblockfrompeer_1ba26b53d9fe72c9 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ imports.wbg.__wbg_fetchblockfrompeer_cd09702443e563ca = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2727
2727
  let deferred0_0;
2728
2728
  let deferred0_1;
2729
2729
  try {
@@ -2735,7 +2735,7 @@ function __wbg_get_imports() {
2735
2735
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2736
2736
  }
2737
2737
  }, arguments) };
2738
- imports.wbg.__wbg_writevalue_69c89d13cf9725b7 = function(arg0, arg1, arg2) {
2738
+ imports.wbg.__wbg_writevalue_d8f4abc7670b6d48 = function(arg0, arg1, arg2) {
2739
2739
  let deferred0_0;
2740
2740
  let deferred0_1;
2741
2741
  try {
@@ -2746,7 +2746,7 @@ function __wbg_get_imports() {
2746
2746
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2747
2747
  }
2748
2748
  };
2749
- imports.wbg.__wbg_appendvalue_de3fbe01a85d1a15 = function(arg0, arg1, arg2) {
2749
+ imports.wbg.__wbg_appendvalue_104f235628a50d32 = function(arg0, arg1, arg2) {
2750
2750
  let deferred0_0;
2751
2751
  let deferred0_1;
2752
2752
  try {
@@ -2757,7 +2757,7 @@ function __wbg_get_imports() {
2757
2757
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2758
2758
  }
2759
2759
  };
2760
- imports.wbg.__wbg_flushdata_ae82952591b97080 = function(arg0, arg1) {
2760
+ imports.wbg.__wbg_flushdata_e5c5c8ebd2bcd128 = function(arg0, arg1) {
2761
2761
  let deferred0_0;
2762
2762
  let deferred0_1;
2763
2763
  try {
@@ -2768,7 +2768,7 @@ function __wbg_get_imports() {
2768
2768
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2769
2769
  }
2770
2770
  };
2771
- imports.wbg.__wbg_readvalue_7ef01be02ce8f458 = function() { return handleError(function (arg0, arg1) {
2771
+ imports.wbg.__wbg_readvalue_7c03d6cef90df406 = function() { return handleError(function (arg0, arg1) {
2772
2772
  let deferred0_0;
2773
2773
  let deferred0_1;
2774
2774
  try {
@@ -2780,11 +2780,11 @@ function __wbg_get_imports() {
2780
2780
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2781
2781
  }
2782
2782
  }, arguments) };
2783
- imports.wbg.__wbg_loadblockfilelist_fcbb86a34acd5666 = function() { return handleError(function () {
2783
+ imports.wbg.__wbg_loadblockfilelist_06d3b573c0ed3807 = function() { return handleError(function () {
2784
2784
  const ret = MsgHandler.load_block_file_list();
2785
2785
  return addHeapObject(ret);
2786
2786
  }, arguments) };
2787
- imports.wbg.__wbg_isexistingfile_80049f37d0da6f4c = function() { return handleError(function (arg0, arg1) {
2787
+ imports.wbg.__wbg_isexistingfile_28a9417e5c76cb44 = function() { return handleError(function (arg0, arg1) {
2788
2788
  let deferred0_0;
2789
2789
  let deferred0_1;
2790
2790
  try {
@@ -2796,7 +2796,7 @@ function __wbg_get_imports() {
2796
2796
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2797
2797
  }
2798
2798
  }, arguments) };
2799
- imports.wbg.__wbg_removevalue_a695c2117cc0a9b8 = function() { return handleError(function (arg0, arg1) {
2799
+ imports.wbg.__wbg_removevalue_27a117b3ceb62c07 = function() { return handleError(function (arg0, arg1) {
2800
2800
  let deferred0_0;
2801
2801
  let deferred0_1;
2802
2802
  try {
@@ -2808,7 +2808,7 @@ function __wbg_get_imports() {
2808
2808
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2809
2809
  }
2810
2810
  }, arguments) };
2811
- imports.wbg.__wbg_ensureblockdirectoryexists_a9b8b0e553c67d42 = function() { return handleError(function (arg0, arg1) {
2811
+ imports.wbg.__wbg_ensureblockdirectoryexists_1f8a41c339af22a0 = function() { return handleError(function (arg0, arg1) {
2812
2812
  let deferred0_0;
2813
2813
  let deferred0_1;
2814
2814
  try {
@@ -2819,16 +2819,16 @@ function __wbg_get_imports() {
2819
2819
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2820
2820
  }
2821
2821
  }, arguments) };
2822
- imports.wbg.__wbg_processapicall_4d457b1c21fc314f = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapicall_1adc598fc395d8aa = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_processapisuccess_14e437ad11a17130 = function(arg0, arg1, arg2) {
2825
+ imports.wbg.__wbg_processapisuccess_87a83cf27b5def13 = function(arg0, arg1, arg2) {
2826
2826
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2827
2827
  };
2828
- imports.wbg.__wbg_processapierror_d8c88828ad4fc8e8 = function(arg0, arg1, arg2) {
2828
+ imports.wbg.__wbg_processapierror_0654ec17b94922fe = function(arg0, arg1, arg2) {
2829
2829
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2830
2830
  };
2831
- imports.wbg.__wbg_sendinterfaceevent_b32ba004edcdeac2 = function(arg0, arg1, arg2, arg3, arg4) {
2831
+ imports.wbg.__wbg_sendinterfaceevent_4252a05d8e5043db = function(arg0, arg1, arg2, arg3, arg4) {
2832
2832
  let deferred0_0;
2833
2833
  let deferred0_1;
2834
2834
  let deferred1_0;
@@ -2844,7 +2844,7 @@ function __wbg_get_imports() {
2844
2844
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2845
2845
  }
2846
2846
  };
2847
- imports.wbg.__wbg_sendblocksuccess_6df46a290b6ef254 = function(arg0, arg1, arg2) {
2847
+ imports.wbg.__wbg_sendblocksuccess_b65411816a9c8fb9 = function(arg0, arg1, arg2) {
2848
2848
  let deferred0_0;
2849
2849
  let deferred0_1;
2850
2850
  try {
@@ -2855,10 +2855,10 @@ function __wbg_get_imports() {
2855
2855
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2856
2856
  }
2857
2857
  };
2858
- imports.wbg.__wbg_sendwalletupdate_e0215da504329563 = function() {
2858
+ imports.wbg.__wbg_sendwalletupdate_0584b0dfdceea1e8 = function() {
2859
2859
  MsgHandler.send_wallet_update();
2860
2860
  };
2861
- imports.wbg.__wbg_sendnewversionalert_eb8029050fe2c6dc = function(arg0, arg1, arg2) {
2861
+ imports.wbg.__wbg_sendnewversionalert_0e96ce5e0b3fc4ff = function(arg0, arg1, arg2) {
2862
2862
  let deferred0_0;
2863
2863
  let deferred0_1;
2864
2864
  try {
@@ -2869,19 +2869,19 @@ function __wbg_get_imports() {
2869
2869
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2870
2870
  }
2871
2871
  };
2872
- imports.wbg.__wbg_sendblockfetchstatusevent_3500f33514d731d3 = function(arg0) {
2872
+ imports.wbg.__wbg_sendblockfetchstatusevent_f55acabbf1494e1f = function(arg0) {
2873
2873
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2874
2874
  };
2875
- imports.wbg.__wbg_sendnewchaindetectedevent_90a56da2e2734093 = function() {
2875
+ imports.wbg.__wbg_sendnewchaindetectedevent_d56b658a8a01f168 = function() {
2876
2876
  MsgHandler.send_new_chain_detected_event();
2877
2877
  };
2878
- imports.wbg.__wbg_savewallet_5020cd18e496917e = function() {
2878
+ imports.wbg.__wbg_savewallet_03fb41bc9e9fd899 = function() {
2879
2879
  MsgHandler.save_wallet();
2880
2880
  };
2881
- imports.wbg.__wbg_loadwallet_baf82ab120176677 = function() {
2881
+ imports.wbg.__wbg_loadwallet_ce84d85f8dec2f72 = function() {
2882
2882
  MsgHandler.load_wallet();
2883
2883
  };
2884
- imports.wbg.__wbg_getmyservices_b0183440e3f31348 = function() {
2884
+ imports.wbg.__wbg_getmyservices_e6b4841b7df6ff69 = function() {
2885
2885
  const ret = MsgHandler.get_my_services();
2886
2886
  _assertClass(ret, WasmPeerServiceList);
2887
2887
  var ptr1 = ret.__destroy_into_raw();
@@ -3216,8 +3216,8 @@ function __wbg_get_imports() {
3216
3216
  const ret = wasm.memory;
3217
3217
  return addHeapObject(ret);
3218
3218
  };
3219
- imports.wbg.__wbindgen_closure_wrapper1534 = function(arg0, arg1, arg2) {
3220
- const ret = makeMutClosure(arg0, arg1, 548, __wbg_adapter_38);
3219
+ imports.wbg.__wbindgen_closure_wrapper1544 = function(arg0, arg1, arg2) {
3220
+ const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
3221
3221
  return addHeapObject(ret);
3222
3222
  };
3223
3223
 
Binary file
@@ -75,11 +75,6 @@ export function wasmwalletslip_get_amount(a: number): number;
75
75
  export function wasmwalletslip_get_block_id(a: number): number;
76
76
  export function wasmwalletslip_get_tx_ordinal(a: number): number;
77
77
  export function __wbg_wasmstats_free(a: number): void;
78
- export function __wbg_wasmbalancesnapshot_free(a: number): void;
79
- export function wasmbalancesnapshot_get_file_name(a: number): number;
80
- export function wasmbalancesnapshot_get_entries(a: number): number;
81
- export function wasmbalancesnapshot_from_string(a: number, b: number): void;
82
- export function wasmbalancesnapshot_to_string(a: number): number;
83
78
  export function __wbg_wasmblockchain_free(a: number): void;
84
79
  export function wasmblockchain_reset(a: number): number;
85
80
  export function wasmblockchain_get_last_block_id(a: number): number;
@@ -203,6 +198,11 @@ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: n
203
198
  export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
204
199
  export function wasmconsensusvalues_avg_income(a: number): number;
205
200
  export function wasmconsensusvalues_avg_total_fees(a: number): number;
201
+ export function __wbg_wasmbalancesnapshot_free(a: number): void;
202
+ export function wasmbalancesnapshot_get_file_name(a: number): number;
203
+ export function wasmbalancesnapshot_get_entries(a: number): number;
204
+ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
205
+ export function wasmbalancesnapshot_to_string(a: number): number;
206
206
  export function __wbg_wasmblock_free(a: number): void;
207
207
  export function wasmblock_new(): number;
208
208
  export function wasmblock_get_transactions(a: number): number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.130",
3
+ "version": "0.2.132",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",