Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / OutPoint.ts
index 1ceb657f476c0ff29cb440501094351df4c546af..508f2e13f162b7067031a4b9e20bb39bbd20758a 100644 (file)
@@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.OutPoint_free(this.ptr);
                     }
                 }
-       public OutPoint clone() {
-               number ret = bindings.OutPoint_clone(this.ptr);
-               const ret_hu_conv: OutPoint = new OutPoint(null, ret);
-               return ret_hu_conv;
-       }
-
        public Uint8Array get_txid() {
                Uint8Array ret = bindings.OutPoint_get_txid(this.ptr);
                return ret;
@@ -45,6 +39,14 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static OutPoint constructor_new(Uint8Array txid_arg, number index_arg) {
                number ret = bindings.OutPoint_new(txid_arg, index_arg);
                const ret_hu_conv: OutPoint = new OutPoint(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public OutPoint clone() {
+               number ret = bindings.OutPoint_clone(this.ptr);
+               const ret_hu_conv: OutPoint = new OutPoint(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -58,9 +60,9 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret;
        }
 
-       public static OutPoint constructor_read(Uint8Array ser) {
+       public static Result_OutPointDecodeErrorZ constructor_read(Uint8Array ser) {
                number ret = bindings.OutPoint_read(ser);
-               const ret_hu_conv: OutPoint = new OutPoint(null, ret);
+               Result_OutPointDecodeErrorZ ret_hu_conv = Result_OutPointDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }