X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FChannelHandshakeConfig.mts;h=d2f7c91470ae033e5ed4aa88f51d29d309eeb971;hp=25ab216c7b6d89156ab23347d3cb1538eae242e3;hb=7d372e434499e36b8be0d090ef733a03650dec6e;hpb=d87886bb194886ef86d3597a5cdc142b6ccc89e9 diff --git a/ts/structs/ChannelHandshakeConfig.mts b/ts/structs/ChannelHandshakeConfig.mts index 25ab216c..d2f7c914 100644 --- a/ts/structs/ChannelHandshakeConfig.mts +++ b/ts/structs/ChannelHandshakeConfig.mts @@ -279,7 +279,6 @@ import { MultiThreadedLockableScore } from '../structs/MultiThreadedLockableScor import CommonBase from './CommonBase.mjs'; import * as bindings from '../bindings.mjs' -import * as InternalUtils from '../InternalUtils.mjs' export class ChannelHandshakeConfig extends CommonBase { @@ -306,16 +305,16 @@ export class ChannelHandshakeConfig extends CommonBase { bindings.ChannelHandshakeConfig_set_our_to_self_delay(this.ptr, val); } - public get_our_htlc_minimum_msat(): number { - const ret: number = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr); + public get_our_htlc_minimum_msat(): bigint { + const ret: bigint = bindings.ChannelHandshakeConfig_get_our_htlc_minimum_msat(this.ptr); return ret; } - public set_our_htlc_minimum_msat(val: number): void { + public set_our_htlc_minimum_msat(val: bigint): void { bindings.ChannelHandshakeConfig_set_our_htlc_minimum_msat(this.ptr, val); } - public static constructor_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: number): ChannelHandshakeConfig { + public static constructor_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint): ChannelHandshakeConfig { const ret: number = bindings.ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg); const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret); CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);