X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FResult_ScoringParametersDecodeErrorZ.mts;h=74d7c105bddbad0e5aea4fae04a4c0237e4e6f0e;hp=f8def3c9fe4cb18d981bff1ab31439aa97eac0d5;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/Result_ScoringParametersDecodeErrorZ.mts b/ts/structs/Result_ScoringParametersDecodeErrorZ.mts index f8def3c9..74d7c105 100644 --- a/ts/structs/Result_ScoringParametersDecodeErrorZ.mts +++ b/ts/structs/Result_ScoringParametersDecodeErrorZ.mts @@ -294,18 +294,27 @@ export class Result_ScoringParametersDecodeErrorZ extends CommonBase { return new Result_ScoringParametersDecodeErrorZ_Err(null, ptr); } } + /** + * Creates a new CResult_ScoringParametersDecodeErrorZ in the success state. + */ public static constructor_ok(o_base_penalty_msat_arg: bigint, o_failure_penalty_msat_arg: bigint, o_overuse_penalty_start_1024th_arg: number, o_overuse_penalty_msat_per_1024th_arg: bigint, o_failure_penalty_half_life_arg: bigint): Result_ScoringParametersDecodeErrorZ { const ret: number = bindings.CResult_ScoringParametersDecodeErrorZ_ok(bindings.ScoringParameters_new(o_base_penalty_msat_arg, o_failure_penalty_msat_arg, o_overuse_penalty_start_1024th_arg, o_overuse_penalty_msat_per_1024th_arg, o_failure_penalty_half_life_arg)); const ret_hu_conv: Result_ScoringParametersDecodeErrorZ = Result_ScoringParametersDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; } + /** + * Creates a new CResult_ScoringParametersDecodeErrorZ in the error state. + */ public static constructor_err(e: DecodeError): Result_ScoringParametersDecodeErrorZ { const ret: number = bindings.CResult_ScoringParametersDecodeErrorZ_err(e == null ? 0 : CommonBase.get_ptr_of(e) & ~1); const ret_hu_conv: Result_ScoringParametersDecodeErrorZ = Result_ScoringParametersDecodeErrorZ.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_ScoringParametersDecodeErrorZ_is_ok(this.ptr); return ret;