saito-wasm 0.2.132 → 0.2.134

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.132"
3
+ version = "0.2.134"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -9,27 +9,27 @@ crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
11
  saito-core = { path = "../saito-core" }
12
- wasm-bindgen = { version = "0.2.92" }
13
- wasm-bindgen-futures = "0.4.42"
14
- serde = { version = "1.0.203", features = ["derive"] }
15
- serde-wasm-bindgen = { version = "0.6.5" }
16
- web-sys = "0.3.69"
17
- async-trait = "0.1.80"
18
- hex = "0.4.3"
19
- tokio = "1.36.0"
20
- js-sys = { version = "0.3.69" }
21
- lazy_static = "1.4.0"
22
- console_log = { version = "1.0.0", features = ["color"] }
23
- log = "0.4.21"
24
- getrandom = { version = "0.2.15", features = ["js", "std"] }
25
- rand = { version = "0.8.5", features = ["getrandom"] }
26
- secp256k1 = { version = "0.30.0", features = ["hashes", "global-context", "serde"] }
27
- bs58 = "0.5.0"
28
- figment = { version = "0.10.12", features = ["json"] }
29
- serde_json = { version = "1.0.117" }
30
- num-derive = { version = "0.4.2" }
31
- num-traits = { version = "0.2.19" }
32
- console_error_panic_hook = "0.1.7"
12
+ wasm-bindgen = { version = "=0.2.92" }
13
+ wasm-bindgen-futures = "=0.4.42"
14
+ serde = { version = "=1.0.204", features = ["derive"] }
15
+ serde-wasm-bindgen = { version = "=0.6.5" }
16
+ web-sys = "=0.3.69"
17
+ async-trait = "=0.1.80"
18
+ hex = "=0.4.3"
19
+ tokio = "=1.37.0"
20
+ js-sys = { version = "=0.3.69" }
21
+ lazy_static = "=1.4.0"
22
+ console_log = { version = "=1.0.0", features = ["color"] }
23
+ log = "=0.4.21"
24
+ getrandom = { version = "=0.2.15", features = ["js", "std"] }
25
+ rand = { version = "=0.8.5", features = ["getrandom"] }
26
+ secp256k1 = { version = "=0.30.0", features = ["hashes", "global-context", "serde"] }
27
+ bs58 = "=0.5.0"
28
+ figment = { version = "=0.10.15", features = ["json"] }
29
+ serde_json = { version = "=1.0.120" }
30
+ num-derive = { version = "=0.4.2" }
31
+ num-traits = { version = "=0.2.19" }
32
+ console_error_panic_hook = "=0.1.7"
33
33
 
34
34
  [package.metadata.wasm-pack.profile.release]
35
35
  wasm-opt = ['-Oz']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.132",
3
+ "version": "0.2.134",
4
4
  "description": "js wrappings around saito-core using wasm",
5
5
  "scripts": {
6
6
  "test": "./node_modules/.bin/jest",
@@ -19,31 +19,31 @@
19
19
  "author": "",
20
20
  "license": "ISC",
21
21
  "devDependencies": {
22
- "@babel/preset-env": "^7.20.2",
23
- "@babel/preset-typescript": "^7.18.6",
24
- "@types/jest": "^29.2.5",
22
+ "@babel/preset-env": "7.20.2",
23
+ "@babel/preset-typescript": "7.18.6",
24
+ "@types/jest": "29.2.5",
25
25
  "@wasm-tool/wasm-pack-plugin": "1.7.0",
26
- "babel-loader": "^9.1.2",
27
- "babel-regenerator-runtime": "^6.5.0",
28
- "copy-webpack-plugin": "^11.0.0",
29
- "file-loader": "^6.2.0",
30
- "html-webpack-plugin": "^5.5.0",
31
- "jest": "^29.3.1",
32
- "path-browserify": "^1.0.1",
26
+ "babel-loader": "9.1.2",
27
+ "babel-regenerator-runtime": "6.5.0",
28
+ "copy-webpack-plugin": "11.0.0",
29
+ "file-loader": "6.2.0",
30
+ "html-webpack-plugin": "5.5.0",
31
+ "jest": "29.3.1",
32
+ "path-browserify": "1.0.1",
33
33
  "process": "0.11.10",
34
- "source-map-loader": "^4.0.1",
35
- "text-encoding": "^0.7.0",
36
- "ts-loader": "^9.4.2",
37
- "ts-node-dev": "^2.0.0",
38
- "typescript": "^4.9.4",
39
- "webpack": "^5.75.0",
40
- "webpack-cli": "^5.0.1",
41
- "webpack-dev-server": "^4.11.1",
42
- "webpack-merge": "^5.8.0",
43
- "node-fetch": "^3.3.0"
34
+ "source-map-loader": "4.0.1",
35
+ "text-encoding": "0.7.0",
36
+ "ts-loader": "9.4.2",
37
+ "ts-node-dev": "2.0.0",
38
+ "typescript": "4.9.4",
39
+ "webpack": "5.75.0",
40
+ "webpack-cli": "5.0.1",
41
+ "webpack-dev-server": "4.11.1",
42
+ "webpack-merge": "5.8.0",
43
+ "node-fetch": "3.3.0"
44
44
  },
45
45
  "dependencies": {
46
- "node-fetch": "^3.3.0",
47
- "cross-env": "^7.0.3"
46
+ "node-fetch": "3.3.0",
47
+ "cross-env": "7.0.3"
48
48
  }
49
49
  }
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-ec8041aac096a25b/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-24635c52a02dbf94/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');
@@ -2630,18 +2630,18 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2630
2630
  takeObject(arg0);
2631
2631
  };
2632
2632
 
2633
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2634
- const ret = getStringFromWasm0(arg0, arg1);
2633
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
2634
+ const ret = getObject(arg0);
2635
2635
  return addHeapObject(ret);
2636
2636
  };
2637
2637
 
2638
- module.exports.__wbg_wasmnft_new = function(arg0) {
2639
- const ret = WasmNFT.__wrap(arg0);
2638
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2639
+ const ret = BigInt.asUintN(64, arg0);
2640
2640
  return addHeapObject(ret);
2641
2641
  };
2642
2642
 
2643
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2644
- const ret = WasmPeer.__wrap(arg0);
2643
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2644
+ const ret = getStringFromWasm0(arg0, arg1);
2645
2645
  return addHeapObject(ret);
2646
2646
  };
2647
2647
 
@@ -2650,28 +2650,23 @@ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2650
2650
  return addHeapObject(ret);
2651
2651
  };
2652
2652
 
2653
- module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2654
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2655
- return addHeapObject(ret);
2656
- };
2657
-
2658
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2659
- const ret = WasmBlockchain.__wrap(arg0);
2653
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2654
+ const ret = WasmPeer.__wrap(arg0);
2660
2655
  return addHeapObject(ret);
2661
2656
  };
2662
2657
 
2663
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
2664
- const ret = getObject(arg0);
2658
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2659
+ const ret = WasmSlip.__wrap(arg0);
2665
2660
  return addHeapObject(ret);
2666
2661
  };
2667
2662
 
2668
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2669
- const ret = BigInt.asUintN(64, arg0);
2663
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2664
+ const ret = WasmBlock.__wrap(arg0);
2670
2665
  return addHeapObject(ret);
2671
2666
  };
2672
2667
 
2673
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2674
- const ret = WasmWalletSlip.__wrap(arg0);
2668
+ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2669
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2675
2670
  return addHeapObject(ret);
2676
2671
  };
2677
2672
 
@@ -2684,30 +2679,35 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2684
2679
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2685
2680
  };
2686
2681
 
2687
- module.exports.__wbg_wasmslip_new = function(arg0) {
2688
- const ret = WasmSlip.__wrap(arg0);
2682
+ module.exports.__wbg_wasmwallet_new = function(arg0) {
2683
+ const ret = WasmWallet.__wrap(arg0);
2689
2684
  return addHeapObject(ret);
2690
2685
  };
2691
2686
 
2692
- module.exports.__wbg_wasmwallet_new = function(arg0) {
2693
- const ret = WasmWallet.__wrap(arg0);
2687
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2688
+ const ret = WasmBlockchain.__wrap(arg0);
2694
2689
  return addHeapObject(ret);
2695
2690
  };
2696
2691
 
2697
- module.exports.__wbg_wasmblock_new = function(arg0) {
2698
- const ret = WasmBlock.__wrap(arg0);
2692
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2693
+ const ret = WasmNFT.__wrap(arg0);
2699
2694
  return addHeapObject(ret);
2700
2695
  };
2701
2696
 
2702
- module.exports.__wbg_sendmessage_d6cffd6929d01b09 = function(arg0, arg1) {
2697
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2698
+ const ret = WasmWalletSlip.__wrap(arg0);
2699
+ return addHeapObject(ret);
2700
+ };
2701
+
2702
+ module.exports.__wbg_sendmessage_e66fcef3b59df154 = function(arg0, arg1) {
2703
2703
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2704
2704
  };
2705
2705
 
2706
- module.exports.__wbg_sendmessagetoall_bd396b9961d8d071 = function(arg0, arg1) {
2706
+ module.exports.__wbg_sendmessagetoall_831321c61365bd7c = function(arg0, arg1) {
2707
2707
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2708
2708
  };
2709
2709
 
2710
- module.exports.__wbg_connecttopeer_bfde0a2b3b33202e = function() { return handleError(function (arg0, arg1, arg2) {
2710
+ module.exports.__wbg_connecttopeer_1cabef69a5b22ac6 = 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_bfde0a2b3b33202e = function() { return handle
2720
2720
  }
2721
2721
  }, arguments) };
2722
2722
 
2723
- module.exports.__wbg_disconnectfrompeer_1596accf061f36e3 = function() { return handleError(function (arg0) {
2723
+ module.exports.__wbg_disconnectfrompeer_3fced3f4304c5d26 = 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_cd09702443e563ca = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2728
+ module.exports.__wbg_fetchblockfrompeer_18aff0827910ffb6 = 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_cd09702443e563ca = function() { return h
2738
2738
  }
2739
2739
  }, arguments) };
2740
2740
 
2741
- module.exports.__wbg_writevalue_d8f4abc7670b6d48 = function(arg0, arg1, arg2) {
2741
+ module.exports.__wbg_writevalue_24b26d9e64b8d08e = 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_d8f4abc7670b6d48 = function(arg0, arg1, arg2) {
2750
2750
  }
2751
2751
  };
2752
2752
 
2753
- module.exports.__wbg_appendvalue_104f235628a50d32 = function(arg0, arg1, arg2) {
2753
+ module.exports.__wbg_appendvalue_006582911fd3e3ca = 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_104f235628a50d32 = function(arg0, arg1, arg2) {
2762
2762
  }
2763
2763
  };
2764
2764
 
2765
- module.exports.__wbg_flushdata_e5c5c8ebd2bcd128 = function(arg0, arg1) {
2765
+ module.exports.__wbg_flushdata_02fe772f3a9bcf3f = function(arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,7 +2774,7 @@ module.exports.__wbg_flushdata_e5c5c8ebd2bcd128 = function(arg0, arg1) {
2774
2774
  }
2775
2775
  };
2776
2776
 
2777
- module.exports.__wbg_readvalue_7c03d6cef90df406 = function() { return handleError(function (arg0, arg1) {
2777
+ module.exports.__wbg_readvalue_74492beef5daf427 = 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_7c03d6cef90df406 = function() { return handleErro
2787
2787
  }
2788
2788
  }, arguments) };
2789
2789
 
2790
- module.exports.__wbg_loadblockfilelist_06d3b573c0ed3807 = function() { return handleError(function () {
2790
+ module.exports.__wbg_loadblockfilelist_15e8b32663eaee15 = 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_28a9417e5c76cb44 = function() { return handleError(function (arg0, arg1) {
2795
+ module.exports.__wbg_isexistingfile_22014e6a6e5e4105 = 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_28a9417e5c76cb44 = function() { return handl
2805
2805
  }
2806
2806
  }, arguments) };
2807
2807
 
2808
- module.exports.__wbg_removevalue_27a117b3ceb62c07 = function() { return handleError(function (arg0, arg1) {
2808
+ module.exports.__wbg_removevalue_071287254c6635e6 = 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_27a117b3ceb62c07 = function() { return handleEr
2818
2818
  }
2819
2819
  }, arguments) };
2820
2820
 
2821
- module.exports.__wbg_ensureblockdirectoryexists_1f8a41c339af22a0 = function() { return handleError(function (arg0, arg1) {
2821
+ module.exports.__wbg_ensureblockdirectoryexists_8a43f94e999bde4d = 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_1f8a41c339af22a0 = function() {
2830
2830
  }
2831
2831
  }, arguments) };
2832
2832
 
2833
- module.exports.__wbg_processapicall_1adc598fc395d8aa = function(arg0, arg1, arg2) {
2833
+ module.exports.__wbg_processapicall_01094eb67c61456f = 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_87a83cf27b5def13 = function(arg0, arg1, arg2) {
2837
+ module.exports.__wbg_processapisuccess_c12b0a14e9f9b461 = 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_0654ec17b94922fe = function(arg0, arg1, arg2) {
2841
+ module.exports.__wbg_processapierror_e6e8a3496ca82e72 = 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_4252a05d8e5043db = function(arg0, arg1, arg2, arg3, arg4) {
2845
+ module.exports.__wbg_sendinterfaceevent_6f00a38b417f7cc2 = 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_4252a05d8e5043db = function(arg0, arg1,
2859
2859
  }
2860
2860
  };
2861
2861
 
2862
- module.exports.__wbg_sendblocksuccess_b65411816a9c8fb9 = function(arg0, arg1, arg2) {
2862
+ module.exports.__wbg_sendblocksuccess_64e6b1300fa3b86c = 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_b65411816a9c8fb9 = function(arg0, arg1, ar
2871
2871
  }
2872
2872
  };
2873
2873
 
2874
- module.exports.__wbg_sendwalletupdate_0584b0dfdceea1e8 = function() {
2874
+ module.exports.__wbg_sendwalletupdate_d9ab38516850aae7 = function() {
2875
2875
  MsgHandler.send_wallet_update();
2876
2876
  };
2877
2877
 
2878
- module.exports.__wbg_sendnewversionalert_0e96ce5e0b3fc4ff = function(arg0, arg1, arg2) {
2878
+ module.exports.__wbg_sendnewversionalert_6364ce9f59fd2f04 = function(arg0, arg1, arg2) {
2879
2879
  let deferred0_0;
2880
2880
  let deferred0_1;
2881
2881
  try {
@@ -2887,34 +2887,44 @@ module.exports.__wbg_sendnewversionalert_0e96ce5e0b3fc4ff = function(arg0, arg1,
2887
2887
  }
2888
2888
  };
2889
2889
 
2890
- module.exports.__wbg_sendblockfetchstatusevent_f55acabbf1494e1f = function(arg0) {
2890
+ module.exports.__wbg_sendblockfetchstatusevent_491f0b23585f8fef = function(arg0) {
2891
2891
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2892
2892
  };
2893
2893
 
2894
- module.exports.__wbg_sendnewchaindetectedevent_d56b658a8a01f168 = function() {
2894
+ module.exports.__wbg_sendnewchaindetectedevent_cb2eaeee4a9c17d4 = function() {
2895
2895
  MsgHandler.send_new_chain_detected_event();
2896
2896
  };
2897
2897
 
2898
- module.exports.__wbg_savewallet_03fb41bc9e9fd899 = function() {
2898
+ module.exports.__wbg_savewallet_8e7037a16698452f = function() {
2899
2899
  MsgHandler.save_wallet();
2900
2900
  };
2901
2901
 
2902
- module.exports.__wbg_loadwallet_ce84d85f8dec2f72 = function() {
2902
+ module.exports.__wbg_loadwallet_dfd547f4988749ec = function() {
2903
2903
  MsgHandler.load_wallet();
2904
2904
  };
2905
2905
 
2906
- module.exports.__wbg_getmyservices_e6b4841b7df6ff69 = function() {
2906
+ module.exports.__wbg_getmyservices_6397dae52cbe7399 = function() {
2907
2907
  const ret = MsgHandler.get_my_services();
2908
2908
  _assertClass(ret, WasmPeerServiceList);
2909
2909
  var ptr1 = ret.__destroy_into_raw();
2910
2910
  return ptr1;
2911
2911
  };
2912
2912
 
2913
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
2914
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2915
+ return addHeapObject(ret);
2916
+ };
2917
+
2913
2918
  module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2914
2919
  const ret = WasmPeerService.__wrap(arg0);
2915
2920
  return addHeapObject(ret);
2916
2921
  };
2917
2922
 
2923
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2924
+ const ret = WasmHop.__wrap(arg0);
2925
+ return addHeapObject(ret);
2926
+ };
2927
+
2918
2928
  module.exports.__wbindgen_is_object = function(arg0) {
2919
2929
  const val = getObject(arg0);
2920
2930
  const ret = typeof(val) === 'object' && val !== null;
@@ -2931,16 +2941,6 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2931
2941
  return ret;
2932
2942
  };
2933
2943
 
2934
- module.exports.__wbg_wasmhop_new = function(arg0) {
2935
- const ret = WasmHop.__wrap(arg0);
2936
- return addHeapObject(ret);
2937
- };
2938
-
2939
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
2940
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2941
- return addHeapObject(ret);
2942
- };
2943
-
2944
2944
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2945
2945
  const ret = getObject(arg0) == getObject(arg1);
2946
2946
  return ret;
@@ -3260,6 +3260,11 @@ module.exports.__wbg_length_c20a40f15020d68a = function(arg0) {
3260
3260
  return ret;
3261
3261
  };
3262
3262
 
3263
+ module.exports.__wbg_newwithbyteoffsetandlength_f3784c11ba58e531 = function(arg0, arg1, arg2) {
3264
+ const ret = new BigUint64Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3265
+ return addHeapObject(ret);
3266
+ };
3267
+
3263
3268
  module.exports.__wbg_new_5b2a2842270c66e6 = function(arg0) {
3264
3269
  const ret = new BigUint64Array(getObject(arg0));
3265
3270
  return addHeapObject(ret);
@@ -3312,7 +3317,7 @@ module.exports.__wbindgen_memory = function() {
3312
3317
  return addHeapObject(ret);
3313
3318
  };
3314
3319
 
3315
- module.exports.__wbindgen_closure_wrapper1544 = function(arg0, arg1, arg2) {
3320
+ module.exports.__wbindgen_closure_wrapper1542 = function(arg0, arg1, arg2) {
3316
3321
  const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
3317
3322
  return addHeapObject(ret);
3318
3323
  };
Binary file
@@ -75,6 +75,27 @@ 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_wasmconsensusvalues_free(a: number): void;
79
+ export function wasmconsensusvalues_it_num(a: number): number;
80
+ export function wasmconsensusvalues_fee_transaction(a: number): number;
81
+ export function wasmconsensusvalues_it_index(a: number): number;
82
+ export function wasmconsensusvalues_ft_num(a: number): number;
83
+ export function wasmconsensusvalues_ft_index(a: number): number;
84
+ export function wasmconsensusvalues_gt_index(a: number): number;
85
+ export function wasmconsensusvalues_total_fees(a: number): number;
86
+ export function wasmconsensusvalues_expected_difficulty(a: number): number;
87
+ export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
88
+ export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
89
+ export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
90
+ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
91
+ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
92
+ export function wasmconsensusvalues_avg_income(a: number): number;
93
+ export function wasmconsensusvalues_avg_total_fees(a: number): number;
94
+ export function __wbg_wasmbalancesnapshot_free(a: number): void;
95
+ export function wasmbalancesnapshot_get_file_name(a: number): number;
96
+ export function wasmbalancesnapshot_get_entries(a: number): number;
97
+ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
98
+ export function wasmbalancesnapshot_to_string(a: number): number;
78
99
  export function __wbg_wasmblockchain_free(a: number): void;
79
100
  export function wasmblockchain_reset(a: number): number;
80
101
  export function wasmblockchain_get_last_block_id(a: number): number;
@@ -108,6 +129,64 @@ export function wasmpeer_get_services(a: number): number;
108
129
  export function wasmpeer_set_services(a: number, b: number): void;
109
130
  export function wasmpeer_has_service(a: number, b: number): number;
110
131
  export function wasmpeer_get_status(a: number): number;
132
+ export function __wbg_wasmblock_free(a: number): void;
133
+ export function wasmblock_new(): number;
134
+ export function wasmblock_get_transactions(a: number): number;
135
+ export function wasmblock_avg_fee_per_byte(a: number): number;
136
+ export function wasmblock_burnfee(a: number): number;
137
+ export function wasmblock_total_fees(a: number): number;
138
+ export function wasmblock_total_fees_cumulative(a: number): number;
139
+ export function wasmblock_difficulty(a: number): number;
140
+ export function wasmblock_total_rebroadcast_slips(a: number): number;
141
+ export function wasmblock_total_rebroadcast_nolan(a: number): number;
142
+ export function wasmblock_avg_nolan_rebroadcast_per_block(a: number): number;
143
+ export function wasmblock_rebroadcast_hash(a: number): number;
144
+ export function wasmblock_avg_income(a: number): number;
145
+ export function wasmblock_get_id(a: number): number;
146
+ export function wasmblock_set_id(a: number, b: number): void;
147
+ export function wasmblock_get_timestamp(a: number): number;
148
+ export function wasmblock_set_timestamp(a: number, b: number): void;
149
+ export function wasmblock_get_previous_block_hash(a: number): number;
150
+ export function wasmblock_set_previous_block_hash(a: number, b: number): void;
151
+ export function wasmblock_set_creator(a: number, b: number): void;
152
+ export function wasmblock_get_creator(a: number): number;
153
+ export function wasmblock_get_type(a: number): number;
154
+ export function wasmblock_set_type(a: number, b: number): void;
155
+ export function wasmblock_get_hash(a: number): number;
156
+ export function wasmblock_in_longest_chain(a: number): number;
157
+ export function wasmblock_force_loaded(a: number): number;
158
+ export function wasmblock_get_file_name(a: number): number;
159
+ export function wasmblock_serialize(a: number): number;
160
+ export function wasmblock_deserialize(a: number, b: number, c: number): void;
161
+ export function wasmblock_has_keylist_txs(a: number, b: number): number;
162
+ export function wasmblock_generate_lite_block(a: number, b: number): number;
163
+ export function wasmblock_treasury(a: number): number;
164
+ export function wasmblock_graveyard(a: number): number;
165
+ export function wasmblock_total_fees_new(a: number): number;
166
+ export function wasmblock_total_fees_atr(a: number): number;
167
+ export function wasmblock_avg_total_fees_new(a: number): number;
168
+ export function wasmblock_avg_total_fees_atr(a: number): number;
169
+ export function wasmblock_total_payout_routing(a: number): number;
170
+ export function wasmblock_total_payout_mining(a: number): number;
171
+ export function wasmblock_total_payout_treasury(a: number): number;
172
+ export function wasmblock_total_payout_graveyard(a: number): number;
173
+ export function wasmblock_avg_payout_routing(a: number): number;
174
+ export function wasmblock_avg_payout_treasury(a: number): number;
175
+ export function wasmblock_avg_payout_graveyard(a: number): number;
176
+ export function wasmblock_avg_payout_atr(a: number): number;
177
+ export function wasmblock_fee_per_byte(a: number): number;
178
+ export function wasmblock_previous_block_unpaid(a: number): number;
179
+ export function wasmblock_total_work(a: number): number;
180
+ export function wasmblock_has_golden_ticket(a: number): number;
181
+ export function wasmblock_has_issuance_transaction(a: number): number;
182
+ export function wasmblock_issuance_transaction_index(a: number): number;
183
+ export function wasmblock_has_fee_transaction(a: number): number;
184
+ export function wasmblock_has_staking_transaction(a: number): number;
185
+ export function wasmblock_golden_ticket_index(a: number): number;
186
+ export function wasmblock_fee_transaction_index(a: number): number;
187
+ export function wasmblock_total_payout_atr(a: number): number;
188
+ export function wasmblock_avg_payout_mining(a: number): number;
189
+ export function wasmblock_avg_total_fees(a: number): number;
111
190
  export function __wbg_saitowasm_free(a: number): void;
112
191
  export function initialize(a: number, b: number, c: number, d: number, e: number): number;
113
192
  export function create_transaction(a: number, b: number, c: number, d: number): number;
@@ -182,85 +261,6 @@ export function wasmtransaction_set_type(a: number, b: number): void;
182
261
  export function wasmtransaction_total_fees(a: number): number;
183
262
  export function wasmtransaction_serialize(a: number): number;
184
263
  export function wasmtransaction_deserialize(a: number, b: number): void;
185
- export function __wbg_wasmconsensusvalues_free(a: number): void;
186
- export function wasmconsensusvalues_it_num(a: number): number;
187
- export function wasmconsensusvalues_fee_transaction(a: number): number;
188
- export function wasmconsensusvalues_it_index(a: number): number;
189
- export function wasmconsensusvalues_ft_num(a: number): number;
190
- export function wasmconsensusvalues_ft_index(a: number): number;
191
- export function wasmconsensusvalues_gt_index(a: number): number;
192
- export function wasmconsensusvalues_total_fees(a: number): number;
193
- export function wasmconsensusvalues_expected_difficulty(a: number): number;
194
- export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
195
- export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
196
- export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
197
- export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
198
- export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
199
- export function wasmconsensusvalues_avg_income(a: number): number;
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
- export function __wbg_wasmblock_free(a: number): void;
207
- export function wasmblock_new(): number;
208
- export function wasmblock_get_transactions(a: number): number;
209
- export function wasmblock_avg_fee_per_byte(a: number): number;
210
- export function wasmblock_burnfee(a: number): number;
211
- export function wasmblock_total_fees(a: number): number;
212
- export function wasmblock_total_fees_cumulative(a: number): number;
213
- export function wasmblock_difficulty(a: number): number;
214
- export function wasmblock_total_rebroadcast_slips(a: number): number;
215
- export function wasmblock_total_rebroadcast_nolan(a: number): number;
216
- export function wasmblock_avg_nolan_rebroadcast_per_block(a: number): number;
217
- export function wasmblock_rebroadcast_hash(a: number): number;
218
- export function wasmblock_avg_income(a: number): number;
219
- export function wasmblock_get_id(a: number): number;
220
- export function wasmblock_set_id(a: number, b: number): void;
221
- export function wasmblock_get_timestamp(a: number): number;
222
- export function wasmblock_set_timestamp(a: number, b: number): void;
223
- export function wasmblock_get_previous_block_hash(a: number): number;
224
- export function wasmblock_set_previous_block_hash(a: number, b: number): void;
225
- export function wasmblock_set_creator(a: number, b: number): void;
226
- export function wasmblock_get_creator(a: number): number;
227
- export function wasmblock_get_type(a: number): number;
228
- export function wasmblock_set_type(a: number, b: number): void;
229
- export function wasmblock_get_hash(a: number): number;
230
- export function wasmblock_in_longest_chain(a: number): number;
231
- export function wasmblock_force_loaded(a: number): number;
232
- export function wasmblock_get_file_name(a: number): number;
233
- export function wasmblock_serialize(a: number): number;
234
- export function wasmblock_deserialize(a: number, b: number, c: number): void;
235
- export function wasmblock_has_keylist_txs(a: number, b: number): number;
236
- export function wasmblock_generate_lite_block(a: number, b: number): number;
237
- export function wasmblock_treasury(a: number): number;
238
- export function wasmblock_graveyard(a: number): number;
239
- export function wasmblock_total_fees_new(a: number): number;
240
- export function wasmblock_total_fees_atr(a: number): number;
241
- export function wasmblock_avg_total_fees_new(a: number): number;
242
- export function wasmblock_avg_total_fees_atr(a: number): number;
243
- export function wasmblock_total_payout_routing(a: number): number;
244
- export function wasmblock_total_payout_mining(a: number): number;
245
- export function wasmblock_total_payout_treasury(a: number): number;
246
- export function wasmblock_total_payout_graveyard(a: number): number;
247
- export function wasmblock_avg_payout_routing(a: number): number;
248
- export function wasmblock_avg_payout_treasury(a: number): number;
249
- export function wasmblock_avg_payout_graveyard(a: number): number;
250
- export function wasmblock_avg_payout_atr(a: number): number;
251
- export function wasmblock_fee_per_byte(a: number): number;
252
- export function wasmblock_previous_block_unpaid(a: number): number;
253
- export function wasmblock_total_work(a: number): number;
254
- export function wasmblock_has_golden_ticket(a: number): number;
255
- export function wasmblock_has_issuance_transaction(a: number): number;
256
- export function wasmblock_issuance_transaction_index(a: number): number;
257
- export function wasmblock_has_fee_transaction(a: number): number;
258
- export function wasmblock_has_staking_transaction(a: number): number;
259
- export function wasmblock_golden_ticket_index(a: number): number;
260
- export function wasmblock_fee_transaction_index(a: number): number;
261
- export function wasmblock_total_payout_atr(a: number): number;
262
- export function wasmblock_avg_payout_mining(a: number): number;
263
- export function wasmblock_avg_total_fees(a: number): number;
264
264
  export function rustsecp256k1_v0_10_0_context_create(a: number): number;
265
265
  export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
266
266
  export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;