X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_PayeePubKeyErrorZ.ts;h=1a5c93cdd3bf324af9fd75d1fe9f10f324e3ccdc;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=ccb5a5b1d5c78a1ea7d5fe1031e83700cd547cb7;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/ts/structs/Result_PayeePubKeyErrorZ.ts b/ts/structs/Result_PayeePubKeyErrorZ.ts index ccb5a5b1..1a5c93cd 100644 --- a/ts/structs/Result_PayeePubKeyErrorZ.ts +++ b/ts/structs/Result_PayeePubKeyErrorZ.ts @@ -9,7 +9,7 @@ public class Result_PayeePubKeyErrorZ extends CommonBase { } static Result_PayeePubKeyErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_PayeePubKeyErrorZ_result_ok(ptr)) { + if (bindings.CResult_PayeePubKeyErrorZ_is_ok(ptr)) { return new Result_PayeePubKeyErrorZ_OK(null, ptr); } else { return new Result_PayeePubKeyErrorZ_Err(null, ptr); @@ -34,20 +34,29 @@ public class Result_PayeePubKeyErrorZ extends CommonBase { } } - public static Result_PayeePubKeyErrorZ constructor__ok(PayeePubKey o) { + public static Result_PayeePubKeyErrorZ constructor_ok(PayeePubKey o) { number ret = bindings.CResult_PayeePubKeyErrorZ_ok(o == null ? 0 : o.ptr & ~1); Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(o); return ret_hu_conv; } - public static Result_PayeePubKeyErrorZ constructor__err(Secp256k1Error e) { + public static Result_PayeePubKeyErrorZ constructor_err(Secp256k1Error e) { number ret = bindings.CResult_PayeePubKeyErrorZ_err(e); Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public Result_PayeePubKeyErrorZ _clone() { + public boolean is_ok() { + boolean ret = bindings.CResult_PayeePubKeyErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_PayeePubKeyErrorZ_clone_ptr(this.ptr); + return ret; + } + + public Result_PayeePubKeyErrorZ clone() { number ret = bindings.CResult_PayeePubKeyErrorZ_clone(this.ptr); Result_PayeePubKeyErrorZ ret_hu_conv = Result_PayeePubKeyErrorZ.constr_from_ptr(ret); return ret_hu_conv;