Update auto-generated bindings
[ldk-java] / ts / structs / ReplyShortChannelIdsEnd.ts
index 9ab50feada61dfd15d7bee6ea4ceb037a21e0971..9c3d2881c15e2b12f20faecff65ccd8e6d0ce72f 100644 (file)
@@ -18,19 +18,13 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.ReplyShortChannelIdsEnd_free(this.ptr);
                     }
                 }
-       public ReplyShortChannelIdsEnd clone() {
-               number ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
-               const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret);
-               return ret_hu_conv;
-       }
-
        public Uint8Array get_chain_hash() {
                Uint8Array ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr);
                return ret;
        }
 
        public void set_chain_hash(Uint8Array val) {
-               bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, val);
+               bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32));
        }
 
        public boolean get_full_information() {
@@ -43,14 +37,21 @@ import * as bindings from '../bindings' // TODO: figure out location
        }
 
        public static ReplyShortChannelIdsEnd constructor_new(Uint8Array chain_hash_arg, boolean full_information_arg) {
-               number ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
+               number ret = bindings.ReplyShortChannelIdsEnd_new(InternalUtils.check_arr_len(chain_hash_arg, 32), full_information_arg);
                const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
                return ret_hu_conv;
        }
 
-       public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(Uint8Array ser) {
-               number ret = bindings.ReplyShortChannelIdsEnd_read(ser);
-               Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
+       public number clone_ptr() {
+               number ret = bindings.ReplyShortChannelIdsEnd_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       public ReplyShortChannelIdsEnd clone() {
+               number ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
+               const ret_hu_conv: ReplyShortChannelIdsEnd = new ReplyShortChannelIdsEnd(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }
 
@@ -59,4 +60,10 @@ import * as bindings from '../bindings' // TODO: figure out location
                return ret;
        }
 
+       public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(Uint8Array ser) {
+               number ret = bindings.ReplyShortChannelIdsEnd_read(ser);
+               Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
 }