saito-wasm 0.2.115 → 0.2.117

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.115"
3
+ version = "0.2.117"
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.115",
3
+ "version": "0.2.117",
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-2fc8199fcf867225/js/msg_handler.js`);
4
+ const { MsgHandler } = require(String.raw`./snippets/saito-wasm-ff93f5dc0775fb10/js/msg_handler.js`);
5
5
  const { TextDecoder, TextEncoder } = require(`util`);
6
6
 
7
7
  const heap = new Array(128).fill(undefined);
@@ -228,12 +228,6 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
228
228
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5b81f38714849c11(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
- function _assertClass(instance, klass) {
232
- if (!(instance instanceof klass)) {
233
- throw new Error(`expected instance of ${klass.name}`);
234
- }
235
- return instance.ptr;
236
- }
237
231
  /**
238
232
  * @param {string} config_json
239
233
  * @param {string} private_key
@@ -525,6 +519,12 @@ module.exports.get_balance_snapshot = function(keys) {
525
519
  return takeObject(ret);
526
520
  };
527
521
 
522
+ function _assertClass(instance, klass) {
523
+ if (!(instance instanceof klass)) {
524
+ throw new Error(`expected instance of ${klass.name}`);
525
+ }
526
+ return instance.ptr;
527
+ }
528
528
  /**
529
529
  * @param {WasmBalanceSnapshot} snapshot
530
530
  * @returns {Promise<void>}
@@ -2607,19 +2607,23 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
2607
2607
  takeObject(arg0);
2608
2608
  };
2609
2609
 
2610
- module.exports.__wbg_wasmnft_new = function(arg0) {
2611
- const ret = WasmNFT.__wrap(arg0);
2610
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2611
+ const ret = BigInt.asUintN(64, arg0);
2612
2612
  return addHeapObject(ret);
2613
2613
  };
2614
2614
 
2615
- module.exports.__wbg_wasmtransaction_new = function(arg0) {
2616
- const ret = WasmTransaction.__wrap(arg0);
2615
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
2616
+ const ret = getStringFromWasm0(arg0, arg1);
2617
2617
  return addHeapObject(ret);
2618
2618
  };
2619
2619
 
2620
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
2621
- const ret = BigInt.asUintN(64, arg0);
2622
- return addHeapObject(ret);
2620
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
2621
+ const obj = getObject(arg1);
2622
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2623
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2624
+ var len1 = WASM_VECTOR_LEN;
2625
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
2626
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2623
2627
  };
2624
2628
 
2625
2629
  module.exports.__wbg_wasmpeer_new = function(arg0) {
@@ -2627,32 +2631,28 @@ module.exports.__wbg_wasmpeer_new = function(arg0) {
2627
2631
  return addHeapObject(ret);
2628
2632
  };
2629
2633
 
2630
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
2631
- const ret = getStringFromWasm0(arg0, arg1);
2634
+ module.exports.__wbg_wasmblockchain_new = function(arg0) {
2635
+ const ret = WasmBlockchain.__wrap(arg0);
2632
2636
  return addHeapObject(ret);
2633
2637
  };
2634
2638
 
2635
- module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2636
- const ret = WasmWalletSlip.__wrap(arg0);
2639
+ module.exports.__wbg_wasmslip_new = function(arg0) {
2640
+ const ret = WasmSlip.__wrap(arg0);
2637
2641
  return addHeapObject(ret);
2638
2642
  };
2639
2643
 
2640
- module.exports.__wbg_wasmblockchain_new = function(arg0) {
2641
- const ret = WasmBlockchain.__wrap(arg0);
2644
+ module.exports.__wbg_wasmtransaction_new = function(arg0) {
2645
+ const ret = WasmTransaction.__wrap(arg0);
2642
2646
  return addHeapObject(ret);
2643
2647
  };
2644
2648
 
2645
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
2646
- const obj = getObject(arg1);
2647
- const ret = typeof(obj) === 'string' ? obj : undefined;
2648
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2649
- var len1 = WASM_VECTOR_LEN;
2650
- getInt32Memory0()[arg0 / 4 + 1] = len1;
2651
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2649
+ module.exports.__wbg_wasmblock_new = function(arg0) {
2650
+ const ret = WasmBlock.__wrap(arg0);
2651
+ return addHeapObject(ret);
2652
2652
  };
2653
2653
 
2654
- module.exports.__wbg_wasmslip_new = function(arg0) {
2655
- const ret = WasmSlip.__wrap(arg0);
2654
+ module.exports.__wbg_wasmwalletslip_new = function(arg0) {
2655
+ const ret = WasmWalletSlip.__wrap(arg0);
2656
2656
  return addHeapObject(ret);
2657
2657
  };
2658
2658
 
@@ -2661,8 +2661,8 @@ module.exports.__wbg_wasmbalancesnapshot_new = function(arg0) {
2661
2661
  return addHeapObject(ret);
2662
2662
  };
2663
2663
 
2664
- module.exports.__wbg_wasmblock_new = function(arg0) {
2665
- const ret = WasmBlock.__wrap(arg0);
2664
+ module.exports.__wbg_wasmnft_new = function(arg0) {
2665
+ const ret = WasmNFT.__wrap(arg0);
2666
2666
  return addHeapObject(ret);
2667
2667
  };
2668
2668
 
@@ -2671,11 +2671,6 @@ module.exports.__wbg_wasmwallet_new = function(arg0) {
2671
2671
  return addHeapObject(ret);
2672
2672
  };
2673
2673
 
2674
- module.exports.__wbg_wasmhop_new = function(arg0) {
2675
- const ret = WasmHop.__wrap(arg0);
2676
- return addHeapObject(ret);
2677
- };
2678
-
2679
2674
  module.exports.__wbindgen_is_object = function(arg0) {
2680
2675
  const val = getObject(arg0);
2681
2676
  const ret = typeof(val) === 'object' && val !== null;
@@ -2697,15 +2692,20 @@ module.exports.__wbg_wasmpeerservice_new = function(arg0) {
2697
2692
  return addHeapObject(ret);
2698
2693
  };
2699
2694
 
2700
- module.exports.__wbg_sendmessage_af51d3062b14a26e = function(arg0, arg1) {
2695
+ module.exports.__wbg_wasmhop_new = function(arg0) {
2696
+ const ret = WasmHop.__wrap(arg0);
2697
+ return addHeapObject(ret);
2698
+ };
2699
+
2700
+ module.exports.__wbg_sendmessage_0834f430c651b7a5 = function(arg0, arg1) {
2701
2701
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2702
2702
  };
2703
2703
 
2704
- module.exports.__wbg_sendmessagetoall_8486a6f927fe0672 = function(arg0, arg1) {
2704
+ module.exports.__wbg_sendmessagetoall_d49ed4b3fe0cbdd1 = function(arg0, arg1) {
2705
2705
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2706
2706
  };
2707
2707
 
2708
- module.exports.__wbg_connecttopeer_767f895e43d3c660 = function() { return handleError(function (arg0, arg1, arg2) {
2708
+ module.exports.__wbg_connecttopeer_0d13419b6e00daed = function() { return handleError(function (arg0, arg1, arg2) {
2709
2709
  let deferred0_0;
2710
2710
  let deferred0_1;
2711
2711
  try {
@@ -2718,12 +2718,12 @@ module.exports.__wbg_connecttopeer_767f895e43d3c660 = function() { return handle
2718
2718
  }
2719
2719
  }, arguments) };
2720
2720
 
2721
- module.exports.__wbg_disconnectfrompeer_dcf75913150a3c06 = function() { return handleError(function (arg0) {
2721
+ module.exports.__wbg_disconnectfrompeer_5a34f17a1e63246f = function() { return handleError(function (arg0) {
2722
2722
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2723
2723
  return addHeapObject(ret);
2724
2724
  }, arguments) };
2725
2725
 
2726
- module.exports.__wbg_fetchblockfrompeer_d622ed9ea60c33aa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2726
+ module.exports.__wbg_fetchblockfrompeer_66456872f5ad5641 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2727
2727
  let deferred0_0;
2728
2728
  let deferred0_1;
2729
2729
  try {
@@ -2736,7 +2736,7 @@ module.exports.__wbg_fetchblockfrompeer_d622ed9ea60c33aa = function() { return h
2736
2736
  }
2737
2737
  }, arguments) };
2738
2738
 
2739
- module.exports.__wbg_writevalue_7c854fac87461d42 = function(arg0, arg1, arg2) {
2739
+ module.exports.__wbg_writevalue_8a9ae0308a7da75e = function(arg0, arg1, arg2) {
2740
2740
  let deferred0_0;
2741
2741
  let deferred0_1;
2742
2742
  try {
@@ -2748,7 +2748,7 @@ module.exports.__wbg_writevalue_7c854fac87461d42 = function(arg0, arg1, arg2) {
2748
2748
  }
2749
2749
  };
2750
2750
 
2751
- module.exports.__wbg_appendvalue_e26b31bfec9a4989 = function(arg0, arg1, arg2) {
2751
+ module.exports.__wbg_appendvalue_863a1d30afc56bff = function(arg0, arg1, arg2) {
2752
2752
  let deferred0_0;
2753
2753
  let deferred0_1;
2754
2754
  try {
@@ -2760,7 +2760,7 @@ module.exports.__wbg_appendvalue_e26b31bfec9a4989 = function(arg0, arg1, arg2) {
2760
2760
  }
2761
2761
  };
2762
2762
 
2763
- module.exports.__wbg_flushdata_75533d5225acc8c7 = function(arg0, arg1) {
2763
+ module.exports.__wbg_flushdata_1b8ecab03145ac93 = function(arg0, arg1) {
2764
2764
  let deferred0_0;
2765
2765
  let deferred0_1;
2766
2766
  try {
@@ -2772,7 +2772,7 @@ module.exports.__wbg_flushdata_75533d5225acc8c7 = function(arg0, arg1) {
2772
2772
  }
2773
2773
  };
2774
2774
 
2775
- module.exports.__wbg_readvalue_dcbb6786dce0946c = function() { return handleError(function (arg0, arg1) {
2775
+ module.exports.__wbg_readvalue_c3451bae38a64c25 = function() { return handleError(function (arg0, arg1) {
2776
2776
  let deferred0_0;
2777
2777
  let deferred0_1;
2778
2778
  try {
@@ -2785,12 +2785,12 @@ module.exports.__wbg_readvalue_dcbb6786dce0946c = function() { return handleErro
2785
2785
  }
2786
2786
  }, arguments) };
2787
2787
 
2788
- module.exports.__wbg_loadblockfilelist_5da882d138b3411e = function() { return handleError(function () {
2788
+ module.exports.__wbg_loadblockfilelist_1ca97e1723ebd31a = function() { return handleError(function () {
2789
2789
  const ret = MsgHandler.load_block_file_list();
2790
2790
  return addHeapObject(ret);
2791
2791
  }, arguments) };
2792
2792
 
2793
- module.exports.__wbg_isexistingfile_bd34839b9ce4e807 = function() { return handleError(function (arg0, arg1) {
2793
+ module.exports.__wbg_isexistingfile_0060c10f96de1ec9 = function() { return handleError(function (arg0, arg1) {
2794
2794
  let deferred0_0;
2795
2795
  let deferred0_1;
2796
2796
  try {
@@ -2803,7 +2803,7 @@ module.exports.__wbg_isexistingfile_bd34839b9ce4e807 = function() { return handl
2803
2803
  }
2804
2804
  }, arguments) };
2805
2805
 
2806
- module.exports.__wbg_removevalue_2d424b872502aa63 = function() { return handleError(function (arg0, arg1) {
2806
+ module.exports.__wbg_removevalue_7548e35f614331fb = function() { return handleError(function (arg0, arg1) {
2807
2807
  let deferred0_0;
2808
2808
  let deferred0_1;
2809
2809
  try {
@@ -2816,7 +2816,7 @@ module.exports.__wbg_removevalue_2d424b872502aa63 = function() { return handleEr
2816
2816
  }
2817
2817
  }, arguments) };
2818
2818
 
2819
- module.exports.__wbg_ensureblockdirectoryexists_4f439fc7acbc6db8 = function() { return handleError(function (arg0, arg1) {
2819
+ module.exports.__wbg_ensureblockdirectoryexists_8f85c3aab4cf2aaf = function() { return handleError(function (arg0, arg1) {
2820
2820
  let deferred0_0;
2821
2821
  let deferred0_1;
2822
2822
  try {
@@ -2828,19 +2828,19 @@ module.exports.__wbg_ensureblockdirectoryexists_4f439fc7acbc6db8 = function() {
2828
2828
  }
2829
2829
  }, arguments) };
2830
2830
 
2831
- module.exports.__wbg_processapicall_a93af09d85722efd = function(arg0, arg1, arg2) {
2831
+ module.exports.__wbg_processapicall_fdf8c849743261f9 = function(arg0, arg1, arg2) {
2832
2832
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2833
2833
  };
2834
2834
 
2835
- module.exports.__wbg_processapisuccess_17aee9da92b8d541 = function(arg0, arg1, arg2) {
2835
+ module.exports.__wbg_processapisuccess_45ebbb62cdfa0c0e = function(arg0, arg1, arg2) {
2836
2836
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2837
2837
  };
2838
2838
 
2839
- module.exports.__wbg_processapierror_b1b1361b443025d9 = function(arg0, arg1, arg2) {
2839
+ module.exports.__wbg_processapierror_cc61ca428a0c7ce0 = function(arg0, arg1, arg2) {
2840
2840
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2841
2841
  };
2842
2842
 
2843
- module.exports.__wbg_sendinterfaceevent_805ae781045c0a23 = function(arg0, arg1, arg2, arg3, arg4) {
2843
+ module.exports.__wbg_sendinterfaceevent_a054bafb0de4c06c = function(arg0, arg1, arg2, arg3, arg4) {
2844
2844
  let deferred0_0;
2845
2845
  let deferred0_1;
2846
2846
  let deferred1_0;
@@ -2857,7 +2857,7 @@ module.exports.__wbg_sendinterfaceevent_805ae781045c0a23 = function(arg0, arg1,
2857
2857
  }
2858
2858
  };
2859
2859
 
2860
- module.exports.__wbg_sendblocksuccess_e3edf110f9b1240a = function(arg0, arg1, arg2) {
2860
+ module.exports.__wbg_sendblocksuccess_f8ab1b35a5afd2cd = function(arg0, arg1, arg2) {
2861
2861
  let deferred0_0;
2862
2862
  let deferred0_1;
2863
2863
  try {
@@ -2869,11 +2869,11 @@ module.exports.__wbg_sendblocksuccess_e3edf110f9b1240a = function(arg0, arg1, ar
2869
2869
  }
2870
2870
  };
2871
2871
 
2872
- module.exports.__wbg_sendwalletupdate_fd2f691158dccd2f = function() {
2872
+ module.exports.__wbg_sendwalletupdate_5ff1a52a58716b71 = function() {
2873
2873
  MsgHandler.send_wallet_update();
2874
2874
  };
2875
2875
 
2876
- module.exports.__wbg_sendnewversionalert_45c0935ff6a1b380 = function(arg0, arg1, arg2) {
2876
+ module.exports.__wbg_sendnewversionalert_a9f897deec230466 = function(arg0, arg1, arg2) {
2877
2877
  let deferred0_0;
2878
2878
  let deferred0_1;
2879
2879
  try {
@@ -2885,19 +2885,19 @@ module.exports.__wbg_sendnewversionalert_45c0935ff6a1b380 = function(arg0, arg1,
2885
2885
  }
2886
2886
  };
2887
2887
 
2888
- module.exports.__wbg_sendblockfetchstatusevent_076eaa40a5c960e0 = function(arg0) {
2888
+ module.exports.__wbg_sendblockfetchstatusevent_5215793fc88247c2 = function(arg0) {
2889
2889
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2890
2890
  };
2891
2891
 
2892
- module.exports.__wbg_savewallet_17217fcc921233a4 = function() {
2892
+ module.exports.__wbg_savewallet_813fd3d753a3a836 = function() {
2893
2893
  MsgHandler.save_wallet();
2894
2894
  };
2895
2895
 
2896
- module.exports.__wbg_loadwallet_b3bc7049bbc77a55 = function() {
2896
+ module.exports.__wbg_loadwallet_9fc30d61341f2b5d = function() {
2897
2897
  MsgHandler.load_wallet();
2898
2898
  };
2899
2899
 
2900
- module.exports.__wbg_getmyservices_22e36d9058017361 = function() {
2900
+ module.exports.__wbg_getmyservices_ddd80d5beb1776bd = function() {
2901
2901
  const ret = MsgHandler.get_my_services();
2902
2902
  _assertClass(ret, WasmPeerServiceList);
2903
2903
  var ptr1 = ret.__destroy_into_raw();
@@ -3276,7 +3276,7 @@ module.exports.__wbindgen_memory = function() {
3276
3276
  };
3277
3277
 
3278
3278
  module.exports.__wbindgen_closure_wrapper1507 = function(arg0, arg1, arg2) {
3279
- const ret = makeMutClosure(arg0, arg1, 534, __wbg_adapter_38);
3279
+ const ret = makeMutClosure(arg0, arg1, 536, __wbg_adapter_38);
3280
3280
  return addHeapObject(ret);
3281
3281
  };
3282
3282
 
Binary file
@@ -66,29 +66,6 @@ export function wasmblock_fee_transaction_index(a: number): number;
66
66
  export function wasmblock_total_payout_atr(a: number): number;
67
67
  export function wasmblock_avg_payout_mining(a: number): number;
68
68
  export function wasmblock_avg_total_fees(a: number): number;
69
- export function __wbg_wasmtransaction_free(a: number): void;
70
- export function wasmtransaction_new(): number;
71
- export function wasmtransaction_signature(a: number): number;
72
- export function wasmtransaction_get_routing_path(a: number): number;
73
- export function wasmtransaction_set_signature(a: number, b: number): void;
74
- export function wasmtransaction_add_to_slip(a: number, b: number): void;
75
- export function wasmtransaction_add_from_slip(a: number, b: number): void;
76
- export function wasmtransaction_get_txs_replacements(a: number): number;
77
- export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
78
- export function wasmtransaction_to(a: number): number;
79
- export function wasmtransaction_from(a: number): number;
80
- export function wasmtransaction_is_from(a: number, b: number): number;
81
- export function wasmtransaction_is_to(a: number, b: number): number;
82
- export function wasmtransaction_get_data(a: number): number;
83
- export function wasmtransaction_set_data(a: number, b: number): void;
84
- export function wasmtransaction_get_timestamp(a: number): number;
85
- export function wasmtransaction_set_timestamp(a: number, b: number): void;
86
- export function wasmtransaction_sign(a: number): number;
87
- export function wasmtransaction_get_type(a: number): number;
88
- export function wasmtransaction_set_type(a: number, b: number): void;
89
- export function wasmtransaction_total_fees(a: number): number;
90
- export function wasmtransaction_serialize(a: number): number;
91
- export function wasmtransaction_deserialize(a: number, b: number): void;
92
69
  export function __wbg_saitowasm_free(a: number): void;
93
70
  export function initialize(a: number, b: number, c: number, d: number, e: number): number;
94
71
  export function create_transaction(a: number, b: number, c: number, d: number): number;
@@ -150,6 +127,29 @@ export function wasmpeer_get_services(a: number): number;
150
127
  export function wasmpeer_set_services(a: number, b: number): void;
151
128
  export function wasmpeer_has_service(a: number, b: number): number;
152
129
  export function wasmpeer_get_status(a: number): number;
130
+ export function __wbg_wasmtransaction_free(a: number): void;
131
+ export function wasmtransaction_new(): number;
132
+ export function wasmtransaction_signature(a: number): number;
133
+ export function wasmtransaction_get_routing_path(a: number): number;
134
+ export function wasmtransaction_set_signature(a: number, b: number): void;
135
+ export function wasmtransaction_add_to_slip(a: number, b: number): void;
136
+ export function wasmtransaction_add_from_slip(a: number, b: number): void;
137
+ export function wasmtransaction_get_txs_replacements(a: number): number;
138
+ export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
139
+ export function wasmtransaction_to(a: number): number;
140
+ export function wasmtransaction_from(a: number): number;
141
+ export function wasmtransaction_is_from(a: number, b: number): number;
142
+ export function wasmtransaction_is_to(a: number, b: number): number;
143
+ export function wasmtransaction_get_data(a: number): number;
144
+ export function wasmtransaction_set_data(a: number, b: number): void;
145
+ export function wasmtransaction_get_timestamp(a: number): number;
146
+ export function wasmtransaction_set_timestamp(a: number, b: number): void;
147
+ export function wasmtransaction_sign(a: number): number;
148
+ export function wasmtransaction_get_type(a: number): number;
149
+ export function wasmtransaction_set_type(a: number, b: number): void;
150
+ export function wasmtransaction_total_fees(a: number): number;
151
+ export function wasmtransaction_serialize(a: number): number;
152
+ export function wasmtransaction_deserialize(a: number, b: number): void;
153
153
  export function __wbg_wasmnft_free(a: number): void;
154
154
  export function wasmnft_new(): number;
155
155
  export function wasmnft_id(a: number): number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.115",
3
+ "version": "0.2.117",
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
  }
@@ -1007,29 +1007,6 @@ export interface InitOutput {
1007
1007
  readonly wasmblock_total_payout_atr: (a: number) => number;
1008
1008
  readonly wasmblock_avg_payout_mining: (a: number) => number;
1009
1009
  readonly wasmblock_avg_total_fees: (a: number) => number;
1010
- readonly __wbg_wasmtransaction_free: (a: number) => void;
1011
- readonly wasmtransaction_new: () => number;
1012
- readonly wasmtransaction_signature: (a: number) => number;
1013
- readonly wasmtransaction_get_routing_path: (a: number) => number;
1014
- readonly wasmtransaction_set_signature: (a: number, b: number) => void;
1015
- readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
1016
- readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
1017
- readonly wasmtransaction_get_txs_replacements: (a: number) => number;
1018
- readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
1019
- readonly wasmtransaction_to: (a: number) => number;
1020
- readonly wasmtransaction_from: (a: number) => number;
1021
- readonly wasmtransaction_is_from: (a: number, b: number) => number;
1022
- readonly wasmtransaction_is_to: (a: number, b: number) => number;
1023
- readonly wasmtransaction_get_data: (a: number) => number;
1024
- readonly wasmtransaction_set_data: (a: number, b: number) => void;
1025
- readonly wasmtransaction_get_timestamp: (a: number) => number;
1026
- readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
1027
- readonly wasmtransaction_sign: (a: number) => number;
1028
- readonly wasmtransaction_get_type: (a: number) => number;
1029
- readonly wasmtransaction_set_type: (a: number, b: number) => void;
1030
- readonly wasmtransaction_total_fees: (a: number) => number;
1031
- readonly wasmtransaction_serialize: (a: number) => number;
1032
- readonly wasmtransaction_deserialize: (a: number, b: number) => void;
1033
1010
  readonly __wbg_saitowasm_free: (a: number) => void;
1034
1011
  readonly initialize: (a: number, b: number, c: number, d: number, e: number) => number;
1035
1012
  readonly create_transaction: (a: number, b: number, c: number, d: number) => number;
@@ -1091,6 +1068,29 @@ export interface InitOutput {
1091
1068
  readonly wasmpeer_set_services: (a: number, b: number) => void;
1092
1069
  readonly wasmpeer_has_service: (a: number, b: number) => number;
1093
1070
  readonly wasmpeer_get_status: (a: number) => number;
1071
+ readonly __wbg_wasmtransaction_free: (a: number) => void;
1072
+ readonly wasmtransaction_new: () => number;
1073
+ readonly wasmtransaction_signature: (a: number) => number;
1074
+ readonly wasmtransaction_get_routing_path: (a: number) => number;
1075
+ readonly wasmtransaction_set_signature: (a: number, b: number) => void;
1076
+ readonly wasmtransaction_add_to_slip: (a: number, b: number) => void;
1077
+ readonly wasmtransaction_add_from_slip: (a: number, b: number) => void;
1078
+ readonly wasmtransaction_get_txs_replacements: (a: number) => number;
1079
+ readonly wasmtransaction_set_txs_replacements: (a: number, b: number) => void;
1080
+ readonly wasmtransaction_to: (a: number) => number;
1081
+ readonly wasmtransaction_from: (a: number) => number;
1082
+ readonly wasmtransaction_is_from: (a: number, b: number) => number;
1083
+ readonly wasmtransaction_is_to: (a: number, b: number) => number;
1084
+ readonly wasmtransaction_get_data: (a: number) => number;
1085
+ readonly wasmtransaction_set_data: (a: number, b: number) => void;
1086
+ readonly wasmtransaction_get_timestamp: (a: number) => number;
1087
+ readonly wasmtransaction_set_timestamp: (a: number, b: number) => void;
1088
+ readonly wasmtransaction_sign: (a: number) => number;
1089
+ readonly wasmtransaction_get_type: (a: number) => number;
1090
+ readonly wasmtransaction_set_type: (a: number, b: number) => void;
1091
+ readonly wasmtransaction_total_fees: (a: number) => number;
1092
+ readonly wasmtransaction_serialize: (a: number) => number;
1093
+ readonly wasmtransaction_deserialize: (a: number, b: number) => void;
1094
1094
  readonly __wbg_wasmnft_free: (a: number) => void;
1095
1095
  readonly wasmnft_new: () => number;
1096
1096
  readonly wasmnft_id: (a: number) => number;
package/pkg/web/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MsgHandler } from './snippets/saito-wasm-2fc8199fcf867225/js/msg_handler.js';
1
+ import { MsgHandler } from './snippets/saito-wasm-ff93f5dc0775fb10/js/msg_handler.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -226,12 +226,6 @@ function __wbg_adapter_38(arg0, arg1, arg2) {
226
226
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5b81f38714849c11(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
- function _assertClass(instance, klass) {
230
- if (!(instance instanceof klass)) {
231
- throw new Error(`expected instance of ${klass.name}`);
232
- }
233
- return instance.ptr;
234
- }
235
229
  /**
236
230
  * @param {string} config_json
237
231
  * @param {string} private_key
@@ -523,6 +517,12 @@ export function get_balance_snapshot(keys) {
523
517
  return takeObject(ret);
524
518
  }
525
519
 
520
+ function _assertClass(instance, klass) {
521
+ if (!(instance instanceof klass)) {
522
+ throw new Error(`expected instance of ${klass.name}`);
523
+ }
524
+ return instance.ptr;
525
+ }
526
526
  /**
527
527
  * @param {WasmBalanceSnapshot} snapshot
528
528
  * @returns {Promise<void>}
@@ -2622,34 +2622,14 @@ function __wbg_get_imports() {
2622
2622
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
2623
2623
  takeObject(arg0);
2624
2624
  };
2625
- imports.wbg.__wbg_wasmnft_new = function(arg0) {
2626
- const ret = WasmNFT.__wrap(arg0);
2627
- return addHeapObject(ret);
2628
- };
2629
- imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2630
- const ret = WasmTransaction.__wrap(arg0);
2631
- return addHeapObject(ret);
2632
- };
2633
2625
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2634
2626
  const ret = BigInt.asUintN(64, arg0);
2635
2627
  return addHeapObject(ret);
2636
2628
  };
2637
- imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2638
- const ret = WasmPeer.__wrap(arg0);
2639
- return addHeapObject(ret);
2640
- };
2641
2629
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2642
2630
  const ret = getStringFromWasm0(arg0, arg1);
2643
2631
  return addHeapObject(ret);
2644
2632
  };
2645
- imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2646
- const ret = WasmWalletSlip.__wrap(arg0);
2647
- return addHeapObject(ret);
2648
- };
2649
- imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2650
- const ret = WasmBlockchain.__wrap(arg0);
2651
- return addHeapObject(ret);
2652
- };
2653
2633
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2654
2634
  const obj = getObject(arg1);
2655
2635
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -2658,24 +2638,40 @@ function __wbg_get_imports() {
2658
2638
  getInt32Memory0()[arg0 / 4 + 1] = len1;
2659
2639
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
2660
2640
  };
2641
+ imports.wbg.__wbg_wasmpeer_new = function(arg0) {
2642
+ const ret = WasmPeer.__wrap(arg0);
2643
+ return addHeapObject(ret);
2644
+ };
2645
+ imports.wbg.__wbg_wasmblockchain_new = function(arg0) {
2646
+ const ret = WasmBlockchain.__wrap(arg0);
2647
+ return addHeapObject(ret);
2648
+ };
2661
2649
  imports.wbg.__wbg_wasmslip_new = function(arg0) {
2662
2650
  const ret = WasmSlip.__wrap(arg0);
2663
2651
  return addHeapObject(ret);
2664
2652
  };
2665
- imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2666
- const ret = WasmBalanceSnapshot.__wrap(arg0);
2653
+ imports.wbg.__wbg_wasmtransaction_new = function(arg0) {
2654
+ const ret = WasmTransaction.__wrap(arg0);
2667
2655
  return addHeapObject(ret);
2668
2656
  };
2669
2657
  imports.wbg.__wbg_wasmblock_new = function(arg0) {
2670
2658
  const ret = WasmBlock.__wrap(arg0);
2671
2659
  return addHeapObject(ret);
2672
2660
  };
2673
- imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2674
- const ret = WasmWallet.__wrap(arg0);
2661
+ imports.wbg.__wbg_wasmwalletslip_new = function(arg0) {
2662
+ const ret = WasmWalletSlip.__wrap(arg0);
2675
2663
  return addHeapObject(ret);
2676
2664
  };
2677
- imports.wbg.__wbg_wasmhop_new = function(arg0) {
2678
- const ret = WasmHop.__wrap(arg0);
2665
+ imports.wbg.__wbg_wasmbalancesnapshot_new = function(arg0) {
2666
+ const ret = WasmBalanceSnapshot.__wrap(arg0);
2667
+ return addHeapObject(ret);
2668
+ };
2669
+ imports.wbg.__wbg_wasmnft_new = function(arg0) {
2670
+ const ret = WasmNFT.__wrap(arg0);
2671
+ return addHeapObject(ret);
2672
+ };
2673
+ imports.wbg.__wbg_wasmwallet_new = function(arg0) {
2674
+ const ret = WasmWallet.__wrap(arg0);
2679
2675
  return addHeapObject(ret);
2680
2676
  };
2681
2677
  imports.wbg.__wbindgen_is_object = function(arg0) {
@@ -2695,13 +2691,17 @@ function __wbg_get_imports() {
2695
2691
  const ret = WasmPeerService.__wrap(arg0);
2696
2692
  return addHeapObject(ret);
2697
2693
  };
2698
- imports.wbg.__wbg_sendmessage_af51d3062b14a26e = function(arg0, arg1) {
2694
+ imports.wbg.__wbg_wasmhop_new = function(arg0) {
2695
+ const ret = WasmHop.__wrap(arg0);
2696
+ return addHeapObject(ret);
2697
+ };
2698
+ imports.wbg.__wbg_sendmessage_0834f430c651b7a5 = function(arg0, arg1) {
2699
2699
  MsgHandler.send_message(takeObject(arg0), getObject(arg1));
2700
2700
  };
2701
- imports.wbg.__wbg_sendmessagetoall_8486a6f927fe0672 = function(arg0, arg1) {
2701
+ imports.wbg.__wbg_sendmessagetoall_d49ed4b3fe0cbdd1 = function(arg0, arg1) {
2702
2702
  MsgHandler.send_message_to_all(getObject(arg0), getObject(arg1));
2703
2703
  };
2704
- imports.wbg.__wbg_connecttopeer_767f895e43d3c660 = function() { return handleError(function (arg0, arg1, arg2) {
2704
+ imports.wbg.__wbg_connecttopeer_0d13419b6e00daed = function() { return handleError(function (arg0, arg1, arg2) {
2705
2705
  let deferred0_0;
2706
2706
  let deferred0_1;
2707
2707
  try {
@@ -2713,11 +2713,11 @@ function __wbg_get_imports() {
2713
2713
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2714
2714
  }
2715
2715
  }, arguments) };
2716
- imports.wbg.__wbg_disconnectfrompeer_dcf75913150a3c06 = function() { return handleError(function (arg0) {
2716
+ imports.wbg.__wbg_disconnectfrompeer_5a34f17a1e63246f = function() { return handleError(function (arg0) {
2717
2717
  const ret = MsgHandler.disconnect_from_peer(takeObject(arg0));
2718
2718
  return addHeapObject(ret);
2719
2719
  }, arguments) };
2720
- imports.wbg.__wbg_fetchblockfrompeer_d622ed9ea60c33aa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2720
+ imports.wbg.__wbg_fetchblockfrompeer_66456872f5ad5641 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2721
2721
  let deferred0_0;
2722
2722
  let deferred0_1;
2723
2723
  try {
@@ -2729,7 +2729,7 @@ function __wbg_get_imports() {
2729
2729
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2730
2730
  }
2731
2731
  }, arguments) };
2732
- imports.wbg.__wbg_writevalue_7c854fac87461d42 = function(arg0, arg1, arg2) {
2732
+ imports.wbg.__wbg_writevalue_8a9ae0308a7da75e = function(arg0, arg1, arg2) {
2733
2733
  let deferred0_0;
2734
2734
  let deferred0_1;
2735
2735
  try {
@@ -2740,7 +2740,7 @@ function __wbg_get_imports() {
2740
2740
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2741
2741
  }
2742
2742
  };
2743
- imports.wbg.__wbg_appendvalue_e26b31bfec9a4989 = function(arg0, arg1, arg2) {
2743
+ imports.wbg.__wbg_appendvalue_863a1d30afc56bff = function(arg0, arg1, arg2) {
2744
2744
  let deferred0_0;
2745
2745
  let deferred0_1;
2746
2746
  try {
@@ -2751,7 +2751,7 @@ function __wbg_get_imports() {
2751
2751
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2752
2752
  }
2753
2753
  };
2754
- imports.wbg.__wbg_flushdata_75533d5225acc8c7 = function(arg0, arg1) {
2754
+ imports.wbg.__wbg_flushdata_1b8ecab03145ac93 = function(arg0, arg1) {
2755
2755
  let deferred0_0;
2756
2756
  let deferred0_1;
2757
2757
  try {
@@ -2762,7 +2762,7 @@ function __wbg_get_imports() {
2762
2762
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2763
2763
  }
2764
2764
  };
2765
- imports.wbg.__wbg_readvalue_dcbb6786dce0946c = function() { return handleError(function (arg0, arg1) {
2765
+ imports.wbg.__wbg_readvalue_c3451bae38a64c25 = function() { return handleError(function (arg0, arg1) {
2766
2766
  let deferred0_0;
2767
2767
  let deferred0_1;
2768
2768
  try {
@@ -2774,11 +2774,11 @@ function __wbg_get_imports() {
2774
2774
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2775
2775
  }
2776
2776
  }, arguments) };
2777
- imports.wbg.__wbg_loadblockfilelist_5da882d138b3411e = function() { return handleError(function () {
2777
+ imports.wbg.__wbg_loadblockfilelist_1ca97e1723ebd31a = function() { return handleError(function () {
2778
2778
  const ret = MsgHandler.load_block_file_list();
2779
2779
  return addHeapObject(ret);
2780
2780
  }, arguments) };
2781
- imports.wbg.__wbg_isexistingfile_bd34839b9ce4e807 = function() { return handleError(function (arg0, arg1) {
2781
+ imports.wbg.__wbg_isexistingfile_0060c10f96de1ec9 = function() { return handleError(function (arg0, arg1) {
2782
2782
  let deferred0_0;
2783
2783
  let deferred0_1;
2784
2784
  try {
@@ -2790,7 +2790,7 @@ function __wbg_get_imports() {
2790
2790
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2791
2791
  }
2792
2792
  }, arguments) };
2793
- imports.wbg.__wbg_removevalue_2d424b872502aa63 = function() { return handleError(function (arg0, arg1) {
2793
+ imports.wbg.__wbg_removevalue_7548e35f614331fb = function() { return handleError(function (arg0, arg1) {
2794
2794
  let deferred0_0;
2795
2795
  let deferred0_1;
2796
2796
  try {
@@ -2802,7 +2802,7 @@ function __wbg_get_imports() {
2802
2802
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2803
2803
  }
2804
2804
  }, arguments) };
2805
- imports.wbg.__wbg_ensureblockdirectoryexists_4f439fc7acbc6db8 = function() { return handleError(function (arg0, arg1) {
2805
+ imports.wbg.__wbg_ensureblockdirectoryexists_8f85c3aab4cf2aaf = function() { return handleError(function (arg0, arg1) {
2806
2806
  let deferred0_0;
2807
2807
  let deferred0_1;
2808
2808
  try {
@@ -2813,16 +2813,16 @@ function __wbg_get_imports() {
2813
2813
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2814
2814
  }
2815
2815
  }, arguments) };
2816
- imports.wbg.__wbg_processapicall_a93af09d85722efd = function(arg0, arg1, arg2) {
2816
+ imports.wbg.__wbg_processapicall_fdf8c849743261f9 = function(arg0, arg1, arg2) {
2817
2817
  MsgHandler.process_api_call(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2818
2818
  };
2819
- imports.wbg.__wbg_processapisuccess_17aee9da92b8d541 = function(arg0, arg1, arg2) {
2819
+ imports.wbg.__wbg_processapisuccess_45ebbb62cdfa0c0e = function(arg0, arg1, arg2) {
2820
2820
  MsgHandler.process_api_success(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2821
2821
  };
2822
- imports.wbg.__wbg_processapierror_b1b1361b443025d9 = function(arg0, arg1, arg2) {
2822
+ imports.wbg.__wbg_processapierror_cc61ca428a0c7ce0 = function(arg0, arg1, arg2) {
2823
2823
  MsgHandler.process_api_error(takeObject(arg0), arg1 >>> 0, takeObject(arg2));
2824
2824
  };
2825
- imports.wbg.__wbg_sendinterfaceevent_805ae781045c0a23 = function(arg0, arg1, arg2, arg3, arg4) {
2825
+ imports.wbg.__wbg_sendinterfaceevent_a054bafb0de4c06c = function(arg0, arg1, arg2, arg3, arg4) {
2826
2826
  let deferred0_0;
2827
2827
  let deferred0_1;
2828
2828
  let deferred1_0;
@@ -2838,7 +2838,7 @@ function __wbg_get_imports() {
2838
2838
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2839
2839
  }
2840
2840
  };
2841
- imports.wbg.__wbg_sendblocksuccess_e3edf110f9b1240a = function(arg0, arg1, arg2) {
2841
+ imports.wbg.__wbg_sendblocksuccess_f8ab1b35a5afd2cd = function(arg0, arg1, arg2) {
2842
2842
  let deferred0_0;
2843
2843
  let deferred0_1;
2844
2844
  try {
@@ -2849,10 +2849,10 @@ function __wbg_get_imports() {
2849
2849
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2850
2850
  }
2851
2851
  };
2852
- imports.wbg.__wbg_sendwalletupdate_fd2f691158dccd2f = function() {
2852
+ imports.wbg.__wbg_sendwalletupdate_5ff1a52a58716b71 = function() {
2853
2853
  MsgHandler.send_wallet_update();
2854
2854
  };
2855
- imports.wbg.__wbg_sendnewversionalert_45c0935ff6a1b380 = function(arg0, arg1, arg2) {
2855
+ imports.wbg.__wbg_sendnewversionalert_a9f897deec230466 = function(arg0, arg1, arg2) {
2856
2856
  let deferred0_0;
2857
2857
  let deferred0_1;
2858
2858
  try {
@@ -2863,16 +2863,16 @@ function __wbg_get_imports() {
2863
2863
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2864
2864
  }
2865
2865
  };
2866
- imports.wbg.__wbg_sendblockfetchstatusevent_076eaa40a5c960e0 = function(arg0) {
2866
+ imports.wbg.__wbg_sendblockfetchstatusevent_5215793fc88247c2 = function(arg0) {
2867
2867
  MsgHandler.send_block_fetch_status_event(BigInt.asUintN(64, arg0));
2868
2868
  };
2869
- imports.wbg.__wbg_savewallet_17217fcc921233a4 = function() {
2869
+ imports.wbg.__wbg_savewallet_813fd3d753a3a836 = function() {
2870
2870
  MsgHandler.save_wallet();
2871
2871
  };
2872
- imports.wbg.__wbg_loadwallet_b3bc7049bbc77a55 = function() {
2872
+ imports.wbg.__wbg_loadwallet_9fc30d61341f2b5d = function() {
2873
2873
  MsgHandler.load_wallet();
2874
2874
  };
2875
- imports.wbg.__wbg_getmyservices_22e36d9058017361 = function() {
2875
+ imports.wbg.__wbg_getmyservices_ddd80d5beb1776bd = function() {
2876
2876
  const ret = MsgHandler.get_my_services();
2877
2877
  _assertClass(ret, WasmPeerServiceList);
2878
2878
  var ptr1 = ret.__destroy_into_raw();
@@ -3183,7 +3183,7 @@ function __wbg_get_imports() {
3183
3183
  return addHeapObject(ret);
3184
3184
  };
3185
3185
  imports.wbg.__wbindgen_closure_wrapper1507 = function(arg0, arg1, arg2) {
3186
- const ret = makeMutClosure(arg0, arg1, 534, __wbg_adapter_38);
3186
+ const ret = makeMutClosure(arg0, arg1, 536, __wbg_adapter_38);
3187
3187
  return addHeapObject(ret);
3188
3188
  };
3189
3189
 
Binary file
@@ -66,29 +66,6 @@ export function wasmblock_fee_transaction_index(a: number): number;
66
66
  export function wasmblock_total_payout_atr(a: number): number;
67
67
  export function wasmblock_avg_payout_mining(a: number): number;
68
68
  export function wasmblock_avg_total_fees(a: number): number;
69
- export function __wbg_wasmtransaction_free(a: number): void;
70
- export function wasmtransaction_new(): number;
71
- export function wasmtransaction_signature(a: number): number;
72
- export function wasmtransaction_get_routing_path(a: number): number;
73
- export function wasmtransaction_set_signature(a: number, b: number): void;
74
- export function wasmtransaction_add_to_slip(a: number, b: number): void;
75
- export function wasmtransaction_add_from_slip(a: number, b: number): void;
76
- export function wasmtransaction_get_txs_replacements(a: number): number;
77
- export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
78
- export function wasmtransaction_to(a: number): number;
79
- export function wasmtransaction_from(a: number): number;
80
- export function wasmtransaction_is_from(a: number, b: number): number;
81
- export function wasmtransaction_is_to(a: number, b: number): number;
82
- export function wasmtransaction_get_data(a: number): number;
83
- export function wasmtransaction_set_data(a: number, b: number): void;
84
- export function wasmtransaction_get_timestamp(a: number): number;
85
- export function wasmtransaction_set_timestamp(a: number, b: number): void;
86
- export function wasmtransaction_sign(a: number): number;
87
- export function wasmtransaction_get_type(a: number): number;
88
- export function wasmtransaction_set_type(a: number, b: number): void;
89
- export function wasmtransaction_total_fees(a: number): number;
90
- export function wasmtransaction_serialize(a: number): number;
91
- export function wasmtransaction_deserialize(a: number, b: number): void;
92
69
  export function __wbg_saitowasm_free(a: number): void;
93
70
  export function initialize(a: number, b: number, c: number, d: number, e: number): number;
94
71
  export function create_transaction(a: number, b: number, c: number, d: number): number;
@@ -150,6 +127,29 @@ export function wasmpeer_get_services(a: number): number;
150
127
  export function wasmpeer_set_services(a: number, b: number): void;
151
128
  export function wasmpeer_has_service(a: number, b: number): number;
152
129
  export function wasmpeer_get_status(a: number): number;
130
+ export function __wbg_wasmtransaction_free(a: number): void;
131
+ export function wasmtransaction_new(): number;
132
+ export function wasmtransaction_signature(a: number): number;
133
+ export function wasmtransaction_get_routing_path(a: number): number;
134
+ export function wasmtransaction_set_signature(a: number, b: number): void;
135
+ export function wasmtransaction_add_to_slip(a: number, b: number): void;
136
+ export function wasmtransaction_add_from_slip(a: number, b: number): void;
137
+ export function wasmtransaction_get_txs_replacements(a: number): number;
138
+ export function wasmtransaction_set_txs_replacements(a: number, b: number): void;
139
+ export function wasmtransaction_to(a: number): number;
140
+ export function wasmtransaction_from(a: number): number;
141
+ export function wasmtransaction_is_from(a: number, b: number): number;
142
+ export function wasmtransaction_is_to(a: number, b: number): number;
143
+ export function wasmtransaction_get_data(a: number): number;
144
+ export function wasmtransaction_set_data(a: number, b: number): void;
145
+ export function wasmtransaction_get_timestamp(a: number): number;
146
+ export function wasmtransaction_set_timestamp(a: number, b: number): void;
147
+ export function wasmtransaction_sign(a: number): number;
148
+ export function wasmtransaction_get_type(a: number): number;
149
+ export function wasmtransaction_set_type(a: number, b: number): void;
150
+ export function wasmtransaction_total_fees(a: number): number;
151
+ export function wasmtransaction_serialize(a: number): number;
152
+ export function wasmtransaction_deserialize(a: number, b: number): void;
153
153
  export function __wbg_wasmnft_free(a: number): void;
154
154
  export function wasmnft_new(): number;
155
155
  export function wasmnft_id(a: number): number;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saito-wasm",
3
- "version": "0.2.115",
3
+ "version": "0.2.117",
4
4
  "files": [
5
5
  "index_bg.wasm",
6
6
  "index.js",