Update auto-generated bindings with new upstream.
[ldk-java] / src / main / java / org / ldk / structs / ClosingSigned.java
index fe05ebef55ffd58e4ad28ee05cde39958adf1b31..a42c3e506fc0e64f1052ef88559b0aab01aba51d 100644 (file)
@@ -14,13 +14,6 @@ public class ClosingSigned extends CommonBase {
                if (ptr != 0) { bindings.ClosingSigned_free(ptr); }
        }
 
-       public static ClosingSigned constructor_clone(ClosingSigned orig) {
-               long ret = bindings.ClosingSigned_clone(orig == null ? 0 : orig.ptr & ~1);
-               ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
-               ret_hu_conv.ptrs_to.add(orig);
-               return ret_hu_conv;
-       }
-
        public byte[] get_channel_id() {
                byte[] ret = bindings.ClosingSigned_get_channel_id(this.ptr);
                return ret;
@@ -51,18 +44,25 @@ public class ClosingSigned extends CommonBase {
        public static ClosingSigned constructor_new(byte[] channel_id_arg, long fee_satoshis_arg, byte[] signature_arg) {
                long ret = bindings.ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg);
                ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
-       public byte[] write(ClosingSigned obj) {
-               byte[] ret = bindings.ClosingSigned_write(obj == null ? 0 : obj.ptr & ~1);
-               this.ptrs_to.add(obj);
+       public ClosingSigned clone() {
+               long ret = bindings.ClosingSigned_clone(this.ptr);
+               ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       public byte[] write() {
+               byte[] ret = bindings.ClosingSigned_write(this.ptr);
                return ret;
        }
 
-       public static ClosingSigned constructor_read(byte[] ser) {
+       public static Result_ClosingSignedDecodeErrorZ constructor_read(byte[] ser) {
                long ret = bindings.ClosingSigned_read(ser);
-               ClosingSigned ret_hu_conv = new ClosingSigned(null, ret);
+               Result_ClosingSignedDecodeErrorZ ret_hu_conv = Result_ClosingSignedDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }