[TS] Update auto-generated TS bindings
[ldk-java] / ts / structs / Result_PaymentSecretAPIErrorZ.mts
index fca6a1af23e4341e7b8af41db2f90a780b0a0216..a47af2d6d68f0dd566087679ad1e2bc4b44fc073 100644 (file)
@@ -358,11 +358,11 @@ import * as bindings from '../bindings.mjs'
 
 
 export class Result_PaymentSecretAPIErrorZ extends CommonBase {
-       protected constructor(_dummy: object, ptr: number) {
+       protected constructor(_dummy: object, ptr: bigint) {
                super(ptr, bindings.CResult_PaymentSecretAPIErrorZ_free);
        }
        /* @internal */
-       public static constr_from_ptr(ptr: number): Result_PaymentSecretAPIErrorZ {
+       public static constr_from_ptr(ptr: bigint): Result_PaymentSecretAPIErrorZ {
                if (bindings.CResult_PaymentSecretAPIErrorZ_is_ok(ptr)) {
                        return new Result_PaymentSecretAPIErrorZ_OK(null, ptr);
                } else {
@@ -373,7 +373,7 @@ export class Result_PaymentSecretAPIErrorZ extends CommonBase {
         * Creates a new CResult_PaymentSecretAPIErrorZ in the success state.
         */
        public static constructor_ok(o: Uint8Array): Result_PaymentSecretAPIErrorZ {
-               const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32)));
+               const ret: bigint = bindings.CResult_PaymentSecretAPIErrorZ_ok(bindings.encodeUint8Array(bindings.check_arr_len(o, 32)));
                const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
@@ -382,7 +382,7 @@ export class Result_PaymentSecretAPIErrorZ extends CommonBase {
         * Creates a new CResult_PaymentSecretAPIErrorZ in the error state.
         */
        public static constructor_err(e: APIError): Result_PaymentSecretAPIErrorZ {
-               const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_err(CommonBase.get_ptr_of(e));
+               const ret: bigint = bindings.CResult_PaymentSecretAPIErrorZ_err(CommonBase.get_ptr_of(e));
                const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
@@ -395,8 +395,8 @@ export class Result_PaymentSecretAPIErrorZ extends CommonBase {
                return ret;
        }
 
-       public clone_ptr(): number {
-               const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_clone_ptr(this.ptr);
+       public clone_ptr(): bigint {
+               const ret: bigint = bindings.CResult_PaymentSecretAPIErrorZ_clone_ptr(this.ptr);
                return ret;
        }
 
@@ -405,7 +405,7 @@ export class Result_PaymentSecretAPIErrorZ extends CommonBase {
         * but with all dynamically-allocated buffers duplicated in new buffers.
         */
        public clone(): Result_PaymentSecretAPIErrorZ {
-               const ret: number = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr);
+               const ret: bigint = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr);
                const ret_hu_conv: Result_PaymentSecretAPIErrorZ = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
@@ -415,7 +415,7 @@ export class Result_PaymentSecretAPIErrorZ_OK extends Result_PaymentSecretAPIErr
        public res: Uint8Array;
 
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(_dummy, ptr);
                const res: number = bindings.CResult_PaymentSecretAPIErrorZ_get_ok(ptr);
                const res_conv: Uint8Array = bindings.decodeUint8Array(res);
@@ -426,9 +426,9 @@ export class Result_PaymentSecretAPIErrorZ_Err extends Result_PaymentSecretAPIEr
        public err: APIError;
 
        /* @internal */
-       public constructor(_dummy: object, ptr: number) {
+       public constructor(_dummy: object, ptr: bigint) {
                super(_dummy, ptr);
-               const err: number = bindings.CResult_PaymentSecretAPIErrorZ_get_err(ptr);
+               const err: bigint = bindings.CResult_PaymentSecretAPIErrorZ_get_err(ptr);
                const err_hu_conv: APIError = APIError.constr_from_ptr(err);
                CommonBase.add_ref_from(err_hu_conv, this);
                this.err = err_hu_conv;