X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FScoringParameters.ts;h=18e17f3c8952a07696d4d187098f983ec147ccd5;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=edbe4bcc41da50d4f1830fc07958006d7ed5faad;hpb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;p=ldk-java diff --git a/ts/structs/ScoringParameters.ts b/ts/structs/ScoringParameters.ts index edbe4bcc..18e17f3c 100644 --- a/ts/structs/ScoringParameters.ts +++ b/ts/structs/ScoringParameters.ts @@ -36,6 +36,24 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ScoringParameters_set_failure_penalty_msat(this.ptr, val); } + public number get_overuse_penalty_start_1024th() { + number ret = bindings.ScoringParameters_get_overuse_penalty_start_1024th(this.ptr); + return ret; + } + + public void set_overuse_penalty_start_1024th(number val) { + bindings.ScoringParameters_set_overuse_penalty_start_1024th(this.ptr, val); + } + + public number get_overuse_penalty_msat_per_1024th() { + number ret = bindings.ScoringParameters_get_overuse_penalty_msat_per_1024th(this.ptr); + return ret; + } + + public void set_overuse_penalty_msat_per_1024th(number val) { + bindings.ScoringParameters_set_overuse_penalty_msat_per_1024th(this.ptr, val); + } + public number get_failure_penalty_half_life() { number ret = bindings.ScoringParameters_get_failure_penalty_half_life(this.ptr); return ret; @@ -45,8 +63,8 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ScoringParameters_set_failure_penalty_half_life(this.ptr, val); } - public static ScoringParameters constructor_new(number base_penalty_msat_arg, number failure_penalty_msat_arg, number failure_penalty_half_life_arg) { - number ret = bindings.ScoringParameters_new(base_penalty_msat_arg, failure_penalty_msat_arg, failure_penalty_half_life_arg); + public static ScoringParameters constructor_new(number base_penalty_msat_arg, number failure_penalty_msat_arg, number overuse_penalty_start_1024th_arg, number overuse_penalty_msat_per_1024th_arg, number failure_penalty_half_life_arg) { + number ret = bindings.ScoringParameters_new(base_penalty_msat_arg, failure_penalty_msat_arg, overuse_penalty_start_1024th_arg, overuse_penalty_msat_per_1024th_arg, failure_penalty_half_life_arg); const ret_hu_conv: ScoringParameters = new ScoringParameters(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv;