X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelInfo.ts;h=19a1837936d72c45f008a5c5c752215f8f524795;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=2ae6c0e9591f4a87e0a778cd4593a7f028ff4eb5;hpb=db55d4ed1b9ee1b2712db1df0f9b0081a70e269b;p=ldk-java diff --git a/ts/structs/ChannelInfo.ts b/ts/structs/ChannelInfo.ts index 2ae6c0e9..19a18379 100644 --- a/ts/structs/ChannelInfo.ts +++ b/ts/structs/ChannelInfo.ts @@ -95,11 +95,9 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1); } - public static ChannelInfo constructor_new(ChannelFeatures features_arg, NodeId node_one_arg, DirectionalChannelInfo one_to_two_arg, NodeId node_two_arg, DirectionalChannelInfo two_to_one_arg, Option_u64Z capacity_sats_arg, ChannelAnnouncement announcement_message_arg) { - number ret = bindings.ChannelInfo_new(features_arg == null ? 0 : features_arg.ptr & ~1, node_one_arg == null ? 0 : node_one_arg.ptr & ~1, one_to_two_arg == null ? 0 : one_to_two_arg.ptr & ~1, node_two_arg == null ? 0 : node_two_arg.ptr & ~1, two_to_one_arg == null ? 0 : two_to_one_arg.ptr & ~1, capacity_sats_arg.ptr, announcement_message_arg == null ? 0 : announcement_message_arg.ptr & ~1); - const ret_hu_conv: ChannelInfo = new ChannelInfo(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); - return ret_hu_conv; + public number clone_ptr() { + number ret = bindings.ChannelInfo_clone_ptr(this.ptr); + return ret; } public ChannelInfo clone() {