[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / ChannelFeatures.mts
index 98491b6479e0c312487086a7fa0e2aff3ed31c3b..bc32bd18735c14466fff9f15a0d8f5d058b78ee1 100644 (file)
@@ -361,7 +361,7 @@ import * as bindings from '../bindings.mjs'
  */
 export class ChannelFeatures extends CommonBase {
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(ptr, bindings.ChannelFeatures_free);
        }
 
@@ -371,13 +371,13 @@ export class ChannelFeatures extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public eq(b: ChannelFeatures): boolean {
-               const ret: boolean = bindings.ChannelFeatures_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+               const ret: boolean = bindings.ChannelFeatures_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
                CommonBase.add_ref_from(this, b);
                return ret;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.ChannelFeatures_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.ChannelFeatures_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -385,7 +385,7 @@ export class ChannelFeatures extends CommonBase {
         * Creates a copy of the ChannelFeatures
         */
        public clone(): ChannelFeatures {
-               const ret: number = bindings.ChannelFeatures_clone(this.ptr);
+               const ret: bigint = bindings.ChannelFeatures_clone(this.ptr);
                const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -395,7 +395,7 @@ export class ChannelFeatures extends CommonBase {
         * Create a blank Features with no features set
         */
        public static constructor_empty(): ChannelFeatures {
-               const ret: number = bindings.ChannelFeatures_empty();
+               const ret: bigint = bindings.ChannelFeatures_empty();
                const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
@@ -405,7 +405,7 @@ export class ChannelFeatures extends CommonBase {
         * Creates a Features with the bits set which are known by the implementation
         */
        public static constructor_known(): ChannelFeatures {
-               const ret: number = bindings.ChannelFeatures_known();
+               const ret: bigint = bindings.ChannelFeatures_known();
                const ret_hu_conv: ChannelFeatures = new ChannelFeatures(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
@@ -433,7 +433,7 @@ export class ChannelFeatures extends CommonBase {
         * Read a ChannelFeatures from a byte array, created by ChannelFeatures_write
         */
        public static constructor_read(ser: Uint8Array): Result_ChannelFeaturesDecodeErrorZ {
-               const ret: number = bindings.ChannelFeatures_read(bindings.encodeUint8Array(ser));
+               const ret: bigint = bindings.ChannelFeatures_read(bindings.encodeUint8Array(ser));
                const ret_hu_conv: Result_ChannelFeaturesDecodeErrorZ = Result_ChannelFeaturesDecodeErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }