Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / ChannelConfig.ts
index 3f07d5c92b8873f0865fc0ad3d60bafe7b2ddb36..9bdf48c6b42df8cd7ea18f4d0d1532d5b6c5c6af 100644 (file)
@@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.ChannelConfig_free(this.ptr);
                     }
                 }
-       public ChannelConfig clone() {
-               number ret = bindings.ChannelConfig_clone(this.ptr);
-               const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
-               return ret_hu_conv;
-       }
-
        public number get_fee_proportional_millionths() {
                number ret = bindings.ChannelConfig_get_fee_proportional_millionths(this.ptr);
                return ret;
@@ -54,12 +48,21 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static ChannelConfig constructor_new(number fee_proportional_millionths_arg, boolean announced_channel_arg, boolean commit_upfront_shutdown_pubkey_arg) {
                number ret = bindings.ChannelConfig_new(fee_proportional_millionths_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg);
                const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public ChannelConfig clone() {
+               number ret = bindings.ChannelConfig_clone(this.ptr);
+               const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
        public static ChannelConfig constructor_default() {
                number ret = bindings.ChannelConfig_default();
                const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
@@ -68,9 +71,9 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret;
        }
 
-       public static ChannelConfig constructor_read(Uint8Array ser) {
+       public static Result_ChannelConfigDecodeErrorZ constructor_read(Uint8Array ser) {
                number ret = bindings.ChannelConfig_read(ser);
-               const ret_hu_conv: ChannelConfig = new ChannelConfig(null, ret);
+               Result_ChannelConfigDecodeErrorZ ret_hu_conv = Result_ChannelConfigDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }