[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / PayeePubKey.mts
index 9a2bfc90f62936e0a59d7e03bc4b19a5a39bc310..76fc868ad263c56f0092be4ea0a5cb96f50aa636 100644 (file)
@@ -361,7 +361,7 @@ import * as bindings from '../bindings.mjs'
  */
 export class PayeePubKey extends CommonBase {
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(ptr, bindings.PayeePubKey_free);
        }
 
@@ -379,14 +379,14 @@ export class PayeePubKey extends CommonBase {
         * Constructs a new PayeePubKey given each field
         */
        public static constructor_new(a_arg: Uint8Array): PayeePubKey {
-               const ret: number = bindings.PayeePubKey_new(bindings.encodeUint8Array(bindings.check_arr_len(a_arg, 33)));
+               const ret: bigint = bindings.PayeePubKey_new(bindings.encodeUint8Array(bindings.check_arr_len(a_arg, 33)));
                const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
                return ret_hu_conv;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.PayeePubKey_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.PayeePubKey_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -394,7 +394,7 @@ export class PayeePubKey extends CommonBase {
         * Creates a copy of the PayeePubKey
         */
        public clone(): PayeePubKey {
-               const ret: number = bindings.PayeePubKey_clone(this.ptr);
+               const ret: bigint = bindings.PayeePubKey_clone(this.ptr);
                const ret_hu_conv: PayeePubKey = new PayeePubKey(null, ret);
                CommonBase.add_ref_from(ret_hu_conv, this);
                return ret_hu_conv;
@@ -414,7 +414,7 @@ export class PayeePubKey extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public eq(b: PayeePubKey): boolean {
-               const ret: boolean = bindings.PayeePubKey_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+               const ret: boolean = bindings.PayeePubKey_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
                CommonBase.add_ref_from(this, b);
                return ret;
        }