Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / DirectionalChannelInfo.ts
index 4f80064ec19aadd4a40449742e6bbdf615407dbf..903e56ecf2d4cb64b25fffad37b6cf2d64099542 100644 (file)
@@ -57,6 +57,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public RoutingFees get_fees() {
                number ret = bindings.DirectionalChannelInfo_get_fees(this.ptr);
                const ret_hu_conv: RoutingFees = new RoutingFees(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -68,6 +69,7 @@ import * as bindings from '../bindings' // TODO: figure out location
        public ChannelUpdate get_last_update_message() {
                number ret = bindings.DirectionalChannelInfo_get_last_update_message(this.ptr);
                const ret_hu_conv: ChannelUpdate = new ChannelUpdate(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -76,14 +78,21 @@ import * as bindings from '../bindings' // TODO: figure out location
                this.ptrs_to.add(val);
        }
 
+       public DirectionalChannelInfo clone() {
+               number ret = bindings.DirectionalChannelInfo_clone(this.ptr);
+               const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
        public Uint8Array write() {
                Uint8Array ret = bindings.DirectionalChannelInfo_write(this.ptr);
                return ret;
        }
 
-       public static DirectionalChannelInfo constructor_read(Uint8Array ser) {
+       public static Result_DirectionalChannelInfoDecodeErrorZ constructor_read(Uint8Array ser) {
                number ret = bindings.DirectionalChannelInfo_read(ser);
-               const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret);
+               Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }