saito-wasm 0.2.95 → 0.2.97

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.95"
3
+ version = "0.2.97"
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.95",
3
+ "version": "0.2.97",
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,17 +1,26 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { MsgHandler } = require(String.raw`./snippets/saito-wasm-54beba3cbd6d7df7/js/msg_handler.js`);
5
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-b45c8a6dcd9ce9de/js/msg_handler.js`);
5
+ const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
8
8
 
9
9
  heap.push(undefined, null, true, false);
10
10
 
11
- function getObject(idx) { return heap[idx]; }
12
-
13
11
  let heap_next = heap.length;
14
12
 
13
+ function addHeapObject(obj) {
14
+ if (heap_next === heap.length) heap.push(heap.length + 1);
15
+ const idx = heap_next;
16
+ heap_next = heap[idx];
17
+
18
+ heap[idx] = obj;
19
+ return idx;
20
+ }
21
+
22
+ function getObject(idx) { return heap[idx]; }
23
+
15
24
  function dropObject(idx) {
16
25
  if (idx < 132) return;
17
26
  heap[idx] = heap_next;
@@ -24,16 +33,9 @@ function takeObject(idx) {
24
33
  return ret;
25
34
  }
26
35
 
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
- }
36
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
35
37
 
36
- let WASM_VECTOR_LEN = 0;
38
+ cachedTextDecoder.decode();
37
39
 
38
40
  let cachedUint8Memory0 = null;
39
41
 
@@ -44,6 +46,13 @@ function getUint8Memory0() {
44
46
  return cachedUint8Memory0;
45
47
  }
46
48
 
49
+ function getStringFromWasm0(ptr, len) {
50
+ ptr = ptr >>> 0;
51
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
+ }
53
+
54
+ let WASM_VECTOR_LEN = 0;
55
+
47
56
  let cachedTextEncoder = new TextEncoder('utf-8');
48
57
 
49
58
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -111,15 +120,6 @@ function getInt32Memory0() {
111
120
  return cachedInt32Memory0;
112
121
  }
113
122
 
114
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
115
-
116
- cachedTextDecoder.decode();
117
-
118
- function getStringFromWasm0(ptr, len) {
119
- ptr = ptr >>> 0;
120
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
121
- }
122
-
123
123
  let cachedFloat64Memory0 = null;
124
124
 
125
125
  function getFloat64Memory0() {
@@ -2214,7 +2214,7 @@ class WasmTransaction {
2214
2214
  * @returns {bigint}
2215
2215
  */
2216
2216
  get timestamp() {
2217
- const ret = wasm.wasmpeer_get_peer_index(this.__wbg_ptr);
2217
+ const ret = wasm.wasmtransaction_get_timestamp(this.__wbg_ptr);
2218
2218
  return BigInt.asUintN(64, ret);
2219
2219
  }
2220
2220
  /**
@@ -2555,27 +2555,13 @@ class WasmWalletSlip {
2555
2555
  }
2556
2556
  module.exports.WasmWalletSlip = WasmWalletSlip;
2557
2557
 
2558
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
2559
- takeObject(arg0);
2560
- };
2561
-
2562
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2563
- const ret = WasmTransaction.__wrap(arg0);
2564
- return addHeapObject(ret);
2565
- };
2566
-
2567
2558
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2568
2559
  const ret = BigInt.asUintN(64, arg0);
2569
2560
  return addHeapObject(ret);
2570
2561
  };
2571
2562
 
2572
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2573
- const obj = getObject(arg1);
2574
- const ret = typeof(obj) === 'string' ? obj : undefined;
2575
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2576
- var len1 = WASM_VECTOR_LEN;
2577
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2578
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2563
+ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2564
+ takeObject(arg0);
2579
2565
  };
2580
2566
 
2581
2567
  module.exports.__wbindgen_string_new = function(arg0, arg1) {
@@ -2583,11 +2569,6 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2583
2569
  return addHeapObject(ret);
2584
2570
  };
2585
2571
 
2586
- module.exports.__wbg_wasmpeer_new = function(arg0) {
2587
- const ret = WasmPeer.__wrap(arg0);
2588
- return addHeapObject(ret);
2589
- };
2590
-
2591
2572
  module.exports.__wbg_wasmblockchain_new = function(arg0) {
2592
2573
  const ret = WasmBlockchain.__wrap(arg0);
2593
2574
  return addHeapObject(ret);
@@ -2598,6 +2579,16 @@ module.exports.__wbg_wasmblock_new = function(arg0) {
2598
2579
  return addHeapObject(ret);
2599
2580
  };
2600
2581
 
2582
+ module.exports.__wbg_wasmpeer_new = function(arg0) {
2583
+ const ret = WasmPeer.__wrap(arg0);
2584
+ return addHeapObject(ret);
2585
+ };
2586
+
2587
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2588
+ const ret = WasmNFT.__wrap(arg0);
2589
+ return addHeapObject(ret);
2590
+ };
2591
+
2601
2592
  module.exports.__wbg_wasmwallet_new = function(arg0) {
2602
2593
  const ret = WasmWallet.__wrap(arg0);
2603
2594
  return addHeapObject(ret);
@@ -2608,18 +2599,27 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2608
2599
  return addHeapObject(ret);
2609
2600
  };
2610
2601
 
2611
- module.exports.__wbg_wasmnft_new = function(arg0) {
2612
- const ret = WasmNFT.__wrap(arg0);
2602
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2603
+ const obj = getObject(arg1);
2604
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2605
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2606
+ var len1 = WASM_VECTOR_LEN;
2607
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2608
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2609
+ };
2610
+
2611
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2612
+ const ret = WasmWalletSlip.__wrap(arg0);
2613
2613
  return addHeapObject(ret);
2614
2614
  };
2615
2615
 
2616
- module.exports.__wbg_wasmslip_new = function(arg0) {
2617
- const ret = WasmSlip.__wrap(arg0);
2616
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2617
+ const ret = WasmTransaction.__wrap(arg0);
2618
2618
  return addHeapObject(ret);
2619
2619
  };
2620
2620
 
2621
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2622
- const ret = WasmWalletSlip.__wrap(arg0);
2621
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2622
+ const ret = WasmSlip.__wrap(arg0);
2623
2623
  return addHeapObject(ret);
2624
2624
  };
2625
2625
 
@@ -2644,15 +2644,15 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
2644
2644
  return ret;
2645
2645
  };
2646
2646
 
2647
- module.exports.__wbg_sendmessage_902e21902c5e262d = function(arg0, arg1) {
2647
+ module.exports.__wbg_sendmessage_2b354f191bbba65f = function(arg0, arg1) {
2648
2648
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2649
2649
  };
2650
2650
 
2651
- module.exports.__wbg_sendmessagetoall_603e52dae7959572 = function(arg0, arg1) {
2651
+ module.exports.__wbg_sendmessagetoall_a02b856abefbfe14 = function(arg0, arg1) {
2652
2652
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2653
2653
  };
2654
2654
 
2655
- module.exports.__wbg_connecttopeer_50264b7f7d8f3348 = function() { return handleError(function (arg0, arg1, arg2) {
2655
+ module.exports.__wbg_connecttopeer_f6a3e45a0ac78200 = function() { return handleError(function (arg0, arg1, arg2) {
2656
2656
  let deferred0_0;
2657
2657
  let deferred0_1;
2658
2658
  try {
@@ -2665,12 +2665,12 @@ module.exports.__wbg_connecttopeer_50264b7f7d8f3348 = function() { return handle
2665
2665
  }
2666
2666
  }, arguments) };
2667
2667
 
2668
- module.exports.__wbg_disconnectfrompeer_0e096206b76116af = function() { return handleError(function (arg0) {
2668
+ module.exports.__wbg_disconnectfrompeer_2f8dae828632793c = function() { return handleError(function (arg0) {
2669
2669
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2670
2670
  return addHeapObject(ret);
2671
2671
  }, arguments) };
2672
2672
 
2673
- module.exports.__wbg_fetchblockfrompeer_d9e340951116fd5e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2673
+ module.exports.__wbg_fetchblockfrompeer_3e78b4611fb74141 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2674
2674
  let deferred0_0;
2675
2675
  let deferred0_1;
2676
2676
  try {
@@ -2683,7 +2683,7 @@ module.exports.__wbg_fetchblockfrompeer_d9e340951116fd5e = function() { return h
2683
2683
  }
2684
2684
  }, arguments) };
2685
2685
 
2686
- module.exports.__wbg_writevalue_ea54b07da8d73841 = function(arg0, arg1, arg2) {
2686
+ module.exports.__wbg_writevalue_c19f047c2edbf7e6 = function(arg0, arg1, arg2) {
2687
2687
  let deferred0_0;
2688
2688
  let deferred0_1;
2689
2689
  try {
@@ -2695,7 +2695,7 @@ module.exports.__wbg_writevalue_ea54b07da8d73841 = function(arg0, arg1, arg2) {
2695
2695
  }
2696
2696
  };
2697
2697
 
2698
- module.exports.__wbg_appendvalue_93d3921c67970198 = function(arg0, arg1, arg2) {
2698
+ module.exports.__wbg_appendvalue_190f0b64fdd1118f = function(arg0, arg1, arg2) {
2699
2699
  let deferred0_0;
2700
2700
  let deferred0_1;
2701
2701
  try {
@@ -2707,7 +2707,7 @@ module.exports.__wbg_appendvalue_93d3921c67970198 = function(arg0, arg1, arg2) {
2707
2707
  }
2708
2708
  };
2709
2709
 
2710
- module.exports.__wbg_flushdata_f28f633aed082e26 = function(arg0, arg1) {
2710
+ module.exports.__wbg_flushdata_d81471c52acf9534 = function(arg0, arg1) {
2711
2711
  let deferred0_0;
2712
2712
  let deferred0_1;
2713
2713
  try {
@@ -2719,7 +2719,7 @@ module.exports.__wbg_flushdata_f28f633aed082e26 = function(arg0, arg1) {
2719
2719
  }
2720
2720
  };
2721
2721
 
2722
- module.exports.__wbg_readvalue_2931aceaeb438aff = function() { return handleError(function (arg0, arg1) {
2722
+ module.exports.__wbg_readvalue_21a901db2b03aa6e = function() { return handleError(function (arg0, arg1) {
2723
2723
  let deferred0_0;
2724
2724
  let deferred0_1;
2725
2725
  try {
@@ -2732,12 +2732,12 @@ module.exports.__wbg_readvalue_2931aceaeb438aff = function() { return handleErro
2732
2732
  }
2733
2733
  }, arguments) };
2734
2734
 
2735
- module.exports.__wbg_loadblockfilelist_b380ec35971a08ff = function() { return handleError(function () {
2735
+ module.exports.__wbg_loadblockfilelist_75fb9bfa84a987db = function() { return handleError(function () {
2736
2736
  const ret = MsgHandler.load_block_file_list();
2737
2737
  return addHeapObject(ret);
2738
2738
  }, arguments) };
2739
2739
 
2740
- module.exports.__wbg_isexistingfile_9fbf96fdc0412096 = function() { return handleError(function (arg0, arg1) {
2740
+ module.exports.__wbg_isexistingfile_5ff330a31fbe4ab8 = function() { return handleError(function (arg0, arg1) {
2741
2741
  let deferred0_0;
2742
2742
  let deferred0_1;
2743
2743
  try {
@@ -2750,7 +2750,7 @@ module.exports.__wbg_isexistingfile_9fbf96fdc0412096 = function() { return handl
2750
2750
  }
2751
2751
  }, arguments) };
2752
2752
 
2753
- module.exports.__wbg_removevalue_0c4b6b558e89215f = function() { return handleError(function (arg0, arg1) {
2753
+ module.exports.__wbg_removevalue_5aad14b432fc5e3b = function() { return handleError(function (arg0, arg1) {
2754
2754
  let deferred0_0;
2755
2755
  let deferred0_1;
2756
2756
  try {
@@ -2763,7 +2763,7 @@ module.exports.__wbg_removevalue_0c4b6b558e89215f = function() { return handleEr
2763
2763
  }
2764
2764
  }, arguments) };
2765
2765
 
2766
- module.exports.__wbg_ensureblockdirectoryexists_24dd763a83b0b2b0 = function() { return handleError(function (arg0, arg1) {
2766
+ module.exports.__wbg_ensureblockdirectoryexists_6acb3dcab334e54f = function() { return handleError(function (arg0, arg1) {
2767
2767
  let deferred0_0;
2768
2768
  let deferred0_1;
2769
2769
  try {
@@ -2775,19 +2775,19 @@ module.exports.__wbg_ensureblockdirectoryexists_24dd763a83b0b2b0 = function() {
2775
2775
  }
2776
2776
  }, arguments) };
2777
2777
 
2778
- module.exports.__wbg_processapicall_6f760a4144c8aee4 = function(arg0, arg1, arg2) {
2778
+ module.exports.__wbg_processapicall_348f8802466464f8 = function(arg0, arg1, arg2) {
2779
2779
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2780
2780
  };
2781
2781
 
2782
- module.exports.__wbg_processapisuccess_54c5ada448ed6240 = function(arg0, arg1, arg2) {
2782
+ module.exports.__wbg_processapisuccess_2548ab1b4cbf4550 = function(arg0, arg1, arg2) {
2783
2783
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2784
2784
  };
2785
2785
 
2786
- module.exports.__wbg_processapierror_f5aa5f808992e8c7 = function(arg0, arg1, arg2) {
2786
+ module.exports.__wbg_processapierror_50719fffa83242ac = function(arg0, arg1, arg2) {
2787
2787
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2788
2788
  };
2789
2789
 
2790
- module.exports.__wbg_sendinterfaceevent_71da58d10523e1c2 = function(arg0, arg1, arg2, arg3, arg4) {
2790
+ module.exports.__wbg_sendinterfaceevent_624c75814d5c701f = function(arg0, arg1, arg2, arg3, arg4) {
2791
2791
  let deferred0_0;
2792
2792
  let deferred0_1;
2793
2793
  let deferred1_0;
@@ -2804,7 +2804,7 @@ module.exports.__wbg_sendinterfaceevent_71da58d10523e1c2 = function(arg0, arg1,
2804
2804
  }
2805
2805
  };
2806
2806
 
2807
- module.exports.__wbg_sendblocksuccess_7db37b555c014b46 = function(arg0, arg1, arg2) {
2807
+ module.exports.__wbg_sendblocksuccess_3d2a8a7f0565ba5a = function(arg0, arg1, arg2) {
2808
2808
  let deferred0_0;
2809
2809
  let deferred0_1;
2810
2810
  try {
@@ -2816,11 +2816,11 @@ module.exports.__wbg_sendblocksuccess_7db37b555c014b46 = function(arg0, arg1, ar
2816
2816
  }
2817
2817
  };
2818
2818
 
2819
- module.exports.__wbg_sendwalletupdate_45462f5f064b6068 = function() {
2819
+ module.exports.__wbg_sendwalletupdate_495f6f7559a64ef4 = function() {
2820
2820
  MsgHandler.send_wallet_update();
2821
2821
  };
2822
2822
 
2823
- module.exports.__wbg_sendnewversionalert_632ad4258760c5ea = function(arg0, arg1, arg2) {
2823
+ module.exports.__wbg_sendnewversionalert_0fd3ce9054611c4f = function(arg0, arg1, arg2) {
2824
2824
  let deferred0_0;
2825
2825
  let deferred0_1;
2826
2826
  try {
@@ -2832,32 +2832,32 @@ module.exports.__wbg_sendnewversionalert_632ad4258760c5ea = function(arg0, arg1,
2832
2832
  }
2833
2833
  };
2834
2834
 
2835
- module.exports.__wbg_sendblockfetchstatusevent_c4501c23877de83e = function(arg0) {
2835
+ module.exports.__wbg_sendblockfetchstatusevent_e0d10082e9d3260d = function(arg0) {
2836
2836
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2837
2837
  };
2838
2838
 
2839
- module.exports.__wbg_savewallet_74dbf7500d189f85 = function() {
2839
+ module.exports.__wbg_savewallet_85ace855f615ea4e = function() {
2840
2840
  MsgHandler.save_wallet();
2841
2841
  };
2842
2842
 
2843
- module.exports.__wbg_loadwallet_233127d53a5cfb10 = function() {
2843
+ module.exports.__wbg_loadwallet_7c3aa7326ed80060 = function() {
2844
2844
  MsgHandler.load_wallet();
2845
2845
  };
2846
2846
 
2847
- module.exports.__wbg_getmyservices_1e26bd90a0f96aa9 = function() {
2847
+ module.exports.__wbg_getmyservices_45b0fe08ed80e525 = function() {
2848
2848
  const ret = MsgHandler.get_my_services();
2849
2849
  _assertClass(ret, WasmPeerServiceList);
2850
2850
  var ptr1 = ret.__destroy_into_raw();
2851
2851
  return ptr1;
2852
2852
  };
2853
2853
 
2854
- module.exports.__wbg_wasmhop_new = function(arg0) {
2855
- const ret = WasmHop.__wrap(arg0);
2854
+ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2855
+ const ret = WasmPeerService.__wrap(arg0);
2856
2856
  return addHeapObject(ret);
2857
2857
  };
2858
2858
 
2859
- module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2860
- const ret = WasmPeerService.__wrap(arg0);
2859
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2860
+ const ret = WasmHop.__wrap(arg0);
2861
2861
  return addHeapObject(ret);
2862
2862
  };
2863
2863
 
@@ -3227,7 +3227,7 @@ module.exports.__wbindgen_memory = function() {
3227
3227
  return addHeapObject(ret);
3228
3228
  };
3229
3229
 
3230
- module.exports.__wbindgen_closure_wrapper1367 = function(arg0, arg1, arg2) {
3230
+ module.exports.__wbindgen_closure_wrapper1374 = function(arg0, arg1, arg2) {
3231
3231
  const ret = makeMutClosure(arg0, arg1, 489, __wbg_adapter_38);
3232
3232
  return addHeapObject(ret);
3233
3233
  };
Binary file
@@ -1,13 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function __wbg_wasmbalancesnapshot_free(a: number): void;
5
- export function wasmbalancesnapshot_get_file_name(a: number): number;
6
- export function wasmbalancesnapshot_get_entries(a: number): number;
7
- export function wasmbalancesnapshot_from_string(a: number, b: number): void;
8
- export function wasmbalancesnapshot_to_string(a: number): number;
9
- export function __wbg_wasmconfiguration_free(a: number): void;
10
- export function wasmconfiguration_new(): number;
11
4
  export function __wbg_wasmnft_free(a: number): void;
12
5
  export function wasmnft_new(): number;
13
6
  export function wasmnft_id(a: number): number;
@@ -64,70 +57,6 @@ export function wasmwalletslip_set_lc(a: number, b: number): void;
64
57
  export function wasmwalletslip_get_slip_type(a: number): number;
65
58
  export function wasmwalletslip_set_slip_type(a: number, b: number): void;
66
59
  export function wasmwalletslip_new_(): number;
67
- export function __wbg_wasmhop_free(a: number): void;
68
- export function wasmhop_from(a: number, b: number): void;
69
- export function wasmhop_sig(a: number, b: number): void;
70
- export function wasmhop_to(a: number, b: number): void;
71
- export function __wbg_saitowasm_free(a: number): void;
72
- export function initialize(a: number, b: number, c: number, d: number, e: number): number;
73
- export function create_transaction(a: number, b: number, c: number, d: number): number;
74
- export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
75
- export function create_bound_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number;
76
- export function create_send_bound_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
77
- export function get_nft_list(): number;
78
- export function get_latest_block_hash(): number;
79
- export function get_block(a: number): number;
80
- export function process_new_peer(a: number, b: number): number;
81
- export function process_stun_peer(a: number, b: number): number;
82
- export function remove_stun_peer(a: number): number;
83
- export function get_next_peer_index(): number;
84
- export function process_peer_disconnection(a: number): number;
85
- export function process_msg_buffer_from_peer(a: number, b: number): number;
86
- export function process_fetched_block(a: number, b: number, c: number, d: number): number;
87
- export function process_failed_block_fetch(a: number, b: number, c: number): number;
88
- export function process_timer_event(a: number): number;
89
- export function process_stat_interval(a: number): number;
90
- export function hash(a: number): number;
91
- export function sign_buffer(a: number, b: number, c: number): void;
92
- export function verify_signature(a: number, b: number, c: number): number;
93
- export function get_peers(): number;
94
- export function get_peer(a: number): number;
95
- export function get_account_slips(a: number): number;
96
- export function get_balance_snapshot(a: number): number;
97
- export function update_from_balance_snapshot(a: number): number;
98
- export function generate_private_key(): number;
99
- export function generate_public_key(a: number, b: number): void;
100
- export function propagate_transaction(a: number): number;
101
- export function send_api_call(a: number, b: number, c: number): number;
102
- export function send_api_success(a: number, b: number, c: number): number;
103
- export function send_api_error(a: number, b: number, c: number): number;
104
- export function get_wallet(): number;
105
- export function get_blockchain(): number;
106
- export function get_mempool_txs(): number;
107
- export function set_wallet_version(a: number, b: number, c: number): number;
108
- export function is_valid_public_key(a: number): number;
109
- export function write_issuance_file(a: number): number;
110
- export function disable_producing_blocks_by_timer(): number;
111
- export function produce_block_with_gt(): number;
112
- export function produce_block_without_gt(): number;
113
- export function get_stats(): number;
114
- export function get_peer_stats(): number;
115
- export function __wbg_wasmconsensusvalues_free(a: number): void;
116
- export function wasmconsensusvalues_it_num(a: number): number;
117
- export function wasmconsensusvalues_fee_transaction(a: number): number;
118
- export function wasmconsensusvalues_it_index(a: number): number;
119
- export function wasmconsensusvalues_ft_num(a: number): number;
120
- export function wasmconsensusvalues_ft_index(a: number): number;
121
- export function wasmconsensusvalues_gt_index(a: number): number;
122
- export function wasmconsensusvalues_total_fees(a: number): number;
123
- export function wasmconsensusvalues_expected_difficulty(a: number): number;
124
- export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
125
- export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
126
- export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
127
- export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
128
- export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
129
- export function wasmconsensusvalues_avg_income(a: number): number;
130
- export function wasmconsensusvalues_avg_total_fees(a: number): number;
131
60
  export function __wbg_wasmblock_free(a: number): void;
132
61
  export function wasmblock_new(): number;
133
62
  export function wasmblock_get_transactions(a: number): number;
@@ -211,7 +140,6 @@ export function wasmslip_set_tx_ordinal(a: number, b: number): void;
211
140
  export function wasmslip_set_utxo_key(a: number, b: number): void;
212
141
  export function wasmslip_utxo_key(a: number): number;
213
142
  export function wasmslip_new(): number;
214
- export function __wbg_wasmstats_free(a: number): void;
215
143
  export function __wbg_wasmtransaction_free(a: number): void;
216
144
  export function wasmtransaction_new(): number;
217
145
  export function wasmtransaction_signature(a: number): number;
@@ -227,6 +155,7 @@ export function wasmtransaction_is_from(a: number, b: number): number;
227
155
  export function wasmtransaction_is_to(a: number, b: number): number;
228
156
  export function wasmtransaction_get_data(a: number): number;
229
157
  export function wasmtransaction_set_data(a: number, b: number): void;
158
+ export function wasmtransaction_get_timestamp(a: number): number;
230
159
  export function wasmtransaction_set_timestamp(a: number, b: number): void;
231
160
  export function wasmtransaction_sign(a: number): number;
232
161
  export function wasmtransaction_get_type(a: number): number;
@@ -235,7 +164,22 @@ export function wasmtransaction_total_fees(a: number): number;
235
164
  export function wasmtransaction_serialize(a: number): number;
236
165
  export function wasmtransaction_deserialize(a: number, b: number): void;
237
166
  export function wasmblock_avg_total_fees(a: number): number;
238
- export function wasmtransaction_get_timestamp(a: number): number;
167
+ export function __wbg_wasmconsensusvalues_free(a: number): void;
168
+ export function wasmconsensusvalues_it_num(a: number): number;
169
+ export function wasmconsensusvalues_fee_transaction(a: number): number;
170
+ export function wasmconsensusvalues_it_index(a: number): number;
171
+ export function wasmconsensusvalues_ft_num(a: number): number;
172
+ export function wasmconsensusvalues_ft_index(a: number): number;
173
+ export function wasmconsensusvalues_gt_index(a: number): number;
174
+ export function wasmconsensusvalues_total_fees(a: number): number;
175
+ export function wasmconsensusvalues_expected_difficulty(a: number): number;
176
+ export function wasmconsensusvalues_total_rebroadcast_slips(a: number): number;
177
+ export function wasmconsensusvalues_total_rebroadcast_nolan(a: number): number;
178
+ export function wasmconsensusvalues_total_rebroadcast_fees_nolan(a: number): number;
179
+ export function wasmconsensusvalues_total_rebroadcast_staking_payouts_nolan(a: number): number;
180
+ export function wasmconsensusvalues_rebroadcast_hash(a: number): number;
181
+ export function wasmconsensusvalues_avg_income(a: number): number;
182
+ export function wasmconsensusvalues_avg_total_fees(a: number): number;
239
183
  export function __wbg_wasmblockchain_free(a: number): void;
240
184
  export function wasmblockchain_reset(a: number): number;
241
185
  export function wasmblockchain_get_last_block_id(a: number): number;
@@ -254,6 +198,62 @@ export function wasmblockchain_set_fork_id(a: number, b: number): number;
254
198
  export function wasmblockchain_get_longest_chain_hash_at_id(a: number, b: number): number;
255
199
  export function wasmblockchain_get_hashes_at_id(a: number, b: number): number;
256
200
  export function wasmblockchain_set_safe_to_prune_transaction(a: number, b: number): number;
201
+ export function __wbg_saitowasm_free(a: number): void;
202
+ export function initialize(a: number, b: number, c: number, d: number, e: number): number;
203
+ export function create_transaction(a: number, b: number, c: number, d: number): number;
204
+ export function create_transaction_with_multiple_payments(a: number, b: number, c: number, d: number): number;
205
+ export function create_bound_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number): number;
206
+ export function create_send_bound_transaction(a: number, b: number, c: number, d: number, e: number, f: number, g: number): number;
207
+ export function get_nft_list(): number;
208
+ export function get_latest_block_hash(): number;
209
+ export function get_block(a: number): number;
210
+ export function process_new_peer(a: number, b: number): number;
211
+ export function process_stun_peer(a: number, b: number): number;
212
+ export function remove_stun_peer(a: number): number;
213
+ export function get_next_peer_index(): number;
214
+ export function process_peer_disconnection(a: number): number;
215
+ export function process_msg_buffer_from_peer(a: number, b: number): number;
216
+ export function process_fetched_block(a: number, b: number, c: number, d: number): number;
217
+ export function process_failed_block_fetch(a: number, b: number, c: number): number;
218
+ export function process_timer_event(a: number): number;
219
+ export function process_stat_interval(a: number): number;
220
+ export function hash(a: number): number;
221
+ export function sign_buffer(a: number, b: number, c: number): void;
222
+ export function verify_signature(a: number, b: number, c: number): number;
223
+ export function get_peers(): number;
224
+ export function get_peer(a: number): number;
225
+ export function get_account_slips(a: number): number;
226
+ export function get_balance_snapshot(a: number): number;
227
+ export function update_from_balance_snapshot(a: number): number;
228
+ export function generate_private_key(): number;
229
+ export function generate_public_key(a: number, b: number): void;
230
+ export function propagate_transaction(a: number): number;
231
+ export function send_api_call(a: number, b: number, c: number): number;
232
+ export function send_api_success(a: number, b: number, c: number): number;
233
+ export function send_api_error(a: number, b: number, c: number): number;
234
+ export function get_wallet(): number;
235
+ export function get_blockchain(): number;
236
+ export function get_mempool_txs(): number;
237
+ export function set_wallet_version(a: number, b: number, c: number): number;
238
+ export function is_valid_public_key(a: number): number;
239
+ export function write_issuance_file(a: number): number;
240
+ export function disable_producing_blocks_by_timer(): number;
241
+ export function produce_block_with_gt(): number;
242
+ export function produce_block_without_gt(): number;
243
+ export function get_stats(): number;
244
+ export function get_peer_stats(): number;
245
+ export function __wbg_wasmstats_free(a: number): void;
246
+ export function __wbg_wasmbalancesnapshot_free(a: number): void;
247
+ export function wasmbalancesnapshot_get_file_name(a: number): number;
248
+ export function wasmbalancesnapshot_get_entries(a: number): number;
249
+ export function wasmbalancesnapshot_from_string(a: number, b: number): void;
250
+ export function wasmbalancesnapshot_to_string(a: number): number;
251
+ export function __wbg_wasmconfiguration_free(a: number): void;
252
+ export function wasmconfiguration_new(): number;
253
+ export function __wbg_wasmhop_free(a: number): void;
254
+ export function wasmhop_from(a: number, b: number): void;
255
+ export function wasmhop_sig(a: number, b: number): void;
256
+ export function wasmhop_to(a: number, b: number): void;
257
257
  export function rustsecp256k1_v0_10_0_context_create(a: number): number;
258
258
  export function rustsecp256k1_v0_10_0_context_destroy(a: number): void;
259
259
  export function rustsecp256k1_v0_10_0_default_illegal_callback_fn(a: number, b: number): void;
@@ -262,7 +262,7 @@ export function __wbindgen_malloc(a: number, b: number): number;
262
262
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
263
263
  export const __wbindgen_export_2: WebAssembly.Table;
264
264
  export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b308e3e106cb6(a: number, b: number, c: number): void;
265
- export function __wbindgen_add_to_stack_pointer(a: number): number;
266
265
  export function __wbindgen_free(a: number, b: number, c: number): void;
267
266
  export function __wbindgen_exn_store(a: number): void;
267
+ export function __wbindgen_add_to_stack_pointer(a: number): number;
268
268
  export function wasm_bindgen__convert__closures__invoke2_mut__h1d2fe914d97897fe(a: number, b: number, c: number, d: number): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.95",
3
+ "version": "0.2.97",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",
@@ -9,7 +9,7 @@
9
9
  "main": "index.js",
10
10
  "types": "index.d.ts",
11
11
  "dependencies": {
12
- "cross-env": "^7.0.3",
13
- "node-fetch": "^3.3.0"
12
+ "node-fetch": "^3.3.0",
13
+ "cross-env": "^7.0.3"
14
14
  }
15
15
  }