X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelHandshakeConfig.ts;h=2c06b274874b3e3a27aa602b2ea73eebd1ed24f1;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=96cb4d85f2073dd2b94e533b7e52cc1df28a1245;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/ChannelHandshakeConfig.ts b/ts/structs/ChannelHandshakeConfig.ts index 96cb4d85..2c06b274 100644 --- a/ts/structs/ChannelHandshakeConfig.ts +++ b/ts/structs/ChannelHandshakeConfig.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelHandshakeConfig_free(this.ptr); } } - public ChannelHandshakeConfig clone() { - number ret = bindings.ChannelHandshakeConfig_clone(this.ptr); - const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret); - return ret_hu_conv; - } - public number get_minimum_depth() { number ret = bindings.ChannelHandshakeConfig_get_minimum_depth(this.ptr); return ret; @@ -54,12 +48,26 @@ import * as bindings from '../bindings' // TODO: figure out location public static ChannelHandshakeConfig constructor_new(number minimum_depth_arg, number our_to_self_delay_arg, number our_htlc_minimum_msat_arg) { number ret = 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); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public number clone_ptr() { + number ret = bindings.ChannelHandshakeConfig_clone_ptr(this.ptr); + return ret; + } + + public ChannelHandshakeConfig clone() { + number ret = bindings.ChannelHandshakeConfig_clone(this.ptr); + const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret); + ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } public static ChannelHandshakeConfig constructor_default() { number ret = bindings.ChannelHandshakeConfig_default(); const ret_hu_conv: ChannelHandshakeConfig = new ChannelHandshakeConfig(null, ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv; }