Update auto-generated bindings to 0.0.103
[ldk-java] / ts / structs / RouteHintHop.ts
index eb888ebe779fa971b58bf4c7da2c845504850fdb..dc25be939c4cfce29f38e340fd51729b78b9e3b9 100644 (file)
@@ -45,7 +45,6 @@ import * as bindings from '../bindings' // TODO: figure out location
 
        public void set_fees(RoutingFees val) {
                bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
-               this.ptrs_to.add(val);
        }
 
        public number get_cltv_expiry_delta() {
@@ -83,7 +82,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                number ret = bindings.RouteHintHop_new(src_node_id_arg, short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
                const ret_hu_conv: RouteHintHop = new RouteHintHop(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
-               ret_hu_conv.ptrs_to.add(fees_arg);
                return ret_hu_conv;
        }
 
@@ -105,4 +103,15 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret;
        }
 
+       public Uint8Array write() {
+               Uint8Array ret = bindings.RouteHintHop_write(this.ptr);
+               return ret;
+       }
+
+       public static Result_RouteHintHopDecodeErrorZ constructor_read(Uint8Array ser) {
+               number ret = bindings.RouteHintHop_read(ser);
+               Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
 }