Update auto-generated bindings
[ldk-java] / ts / structs / Result_PaymentSecretAPIErrorZ.ts
index 4a9306f766e89b083b2604b8cb1fc7c158b3f48a..906f575b5c7e5b19b35a1c8349da40e51bbe7ea2 100644 (file)
@@ -9,7 +9,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase {
        }
 
        static Result_PaymentSecretAPIErrorZ constr_from_ptr(long ptr) {
-               if (bindings.LDKCResult_PaymentSecretAPIErrorZ_result_ok(ptr)) {
+               if (bindings.CResult_PaymentSecretAPIErrorZ_is_ok(ptr)) {
                        return new Result_PaymentSecretAPIErrorZ_OK(null, ptr);
                } else {
                        return new Result_PaymentSecretAPIErrorZ_Err(null, ptr);
@@ -34,19 +34,29 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase {
                }
        }
 
-       public static Result_PaymentSecretAPIErrorZ constructor__ok(Uint8Array o) {
-               number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(o);
+       public static Result_PaymentSecretAPIErrorZ constructor_ok(Uint8Array o) {
+               number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(InternalUtils.check_arr_len(o, 32));
                Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
 
-       public static Result_PaymentSecretAPIErrorZ constructor__err(APIError e) {
+       public static Result_PaymentSecretAPIErrorZ constructor_err(APIError e) {
                number ret = bindings.CResult_PaymentSecretAPIErrorZ_err(e.ptr);
                Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;
        }
 
-       public Result_PaymentSecretAPIErrorZ _clone() {
+       public boolean is_ok() {
+               boolean ret = bindings.CResult_PaymentSecretAPIErrorZ_is_ok(this.ptr);
+               return ret;
+       }
+
+       public number clone_ptr() {
+               number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone_ptr(this.ptr);
+               return ret;
+       }
+
+       public Result_PaymentSecretAPIErrorZ clone() {
                number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr);
                Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret);
                return ret_hu_conv;