X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FResult_TrustedClosingTransactionNoneZ.mts;h=d58bfbe43db62b9785774821f45e39a1658836f8;hp=1097e6becb6de34f42b873fa185114507a5a5e7b;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/Result_TrustedClosingTransactionNoneZ.mts b/ts/structs/Result_TrustedClosingTransactionNoneZ.mts index 1097e6be..d58bfbe4 100644 --- a/ts/structs/Result_TrustedClosingTransactionNoneZ.mts +++ b/ts/structs/Result_TrustedClosingTransactionNoneZ.mts @@ -294,6 +294,9 @@ export class Result_TrustedClosingTransactionNoneZ extends CommonBase { return new Result_TrustedClosingTransactionNoneZ_Err(null, ptr); } } + /** + * Creates a new CResult_TrustedClosingTransactionNoneZ in the success state. + */ public static constructor_ok(o: TrustedClosingTransaction): Result_TrustedClosingTransactionNoneZ { const ret: number = bindings.CResult_TrustedClosingTransactionNoneZ_ok(o == null ? 0 : CommonBase.get_ptr_of(o) & ~1); const ret_hu_conv: Result_TrustedClosingTransactionNoneZ = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret); @@ -309,12 +312,18 @@ export class Result_TrustedClosingTransactionNoneZ extends CommonBase { return ret_hu_conv; } + /** + * Creates a new CResult_TrustedClosingTransactionNoneZ in the error state. + */ public static constructor_err(): Result_TrustedClosingTransactionNoneZ { const ret: number = bindings.CResult_TrustedClosingTransactionNoneZ_err(); const ret_hu_conv: Result_TrustedClosingTransactionNoneZ = Result_TrustedClosingTransactionNoneZ.constr_from_ptr(ret); return ret_hu_conv; } + /** + * Checks if the given object is currently in the success state + */ public is_ok(): boolean { const ret: boolean = bindings.CResult_TrustedClosingTransactionNoneZ_is_ok(this.ptr); return ret;