[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / ChannelReady.mts
index 1d01b480dd4538e3555c38993aa29bafaa80db42..275f6919001f31512cc460fc2b6cf45b15a91bd9 100644 (file)
@@ -361,7 +361,7 @@ import * as bindings from '../bindings.mjs'
  */
 export class ChannelReady extends CommonBase {
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(ptr, bindings.ChannelReady_free);
        }
 
@@ -402,7 +402,7 @@ export class ChannelReady extends CommonBase {
         * to be forwarded over this SCID and forward them to this messages' recipient.
         */
        public get_short_channel_id_alias(): Option_u64Z {
-               const ret: number = bindings.ChannelReady_get_short_channel_id_alias(this.ptr);
+               const ret: bigint = bindings.ChannelReady_get_short_channel_id_alias(this.ptr);
                const ret_hu_conv: Option_u64Z = Option_u64Z.constr_from_ptr(ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -420,14 +420,14 @@ export class ChannelReady extends CommonBase {
         * Constructs a new ChannelReady given each field
         */
        public static constructor_new(channel_id_arg: Uint8Array, next_per_commitment_point_arg: Uint8Array, short_channel_id_alias_arg: Option_u64Z): ChannelReady {
-               const ret: number = bindings.ChannelReady_new(bindings.encodeUint8Array(bindings.check_arr_len(channel_id_arg, 32)), bindings.encodeUint8Array(bindings.check_arr_len(next_per_commitment_point_arg, 33)), CommonBase.get_ptr_of(short_channel_id_alias_arg));
+               const ret: bigint = bindings.ChannelReady_new(bindings.encodeUint8Array(bindings.check_arr_len(channel_id_arg, 32)), bindings.encodeUint8Array(bindings.check_arr_len(next_per_commitment_point_arg, 33)), CommonBase.get_ptr_of(short_channel_id_alias_arg));
                const ret_hu_conv: ChannelReady = new ChannelReady(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.ChannelReady_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.ChannelReady_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -435,7 +435,7 @@ export class ChannelReady extends CommonBase {
         * Creates a copy of the ChannelReady
         */
        public clone(): ChannelReady {
-               const ret: number = bindings.ChannelReady_clone(this.ptr);
+               const ret: bigint = bindings.ChannelReady_clone(this.ptr);
                const ret_hu_conv: ChannelReady = new ChannelReady(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -454,7 +454,7 @@ export class ChannelReady extends CommonBase {
         * Read a ChannelReady from a byte array, created by ChannelReady_write
         */
        public static constructor_read(ser: Uint8Array): Result_ChannelReadyDecodeErrorZ {
-               const ret: number = bindings.ChannelReady_read(bindings.encodeUint8Array(ser));
+               const ret: bigint = bindings.ChannelReady_read(bindings.encodeUint8Array(ser));
                const ret_hu_conv: Result_ChannelReadyDecodeErrorZ = Result_ChannelReadyDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }