X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChannelMonitorUpdate.ts;h=d33e5141db1d2210f3fdddb07649feccfe825814;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=a5ef1d14a4c6783aa373123a5bcc711cd83b595c;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/ChannelMonitorUpdate.ts b/ts/structs/ChannelMonitorUpdate.ts index a5ef1d14..d33e5141 100644 --- a/ts/structs/ChannelMonitorUpdate.ts +++ b/ts/structs/ChannelMonitorUpdate.ts @@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelMonitorUpdate_free(this.ptr); } } - public ChannelMonitorUpdate clone() { - number ret = bindings.ChannelMonitorUpdate_clone(this.ptr); - const ret_hu_conv: ChannelMonitorUpdate = new ChannelMonitorUpdate(null, ret); - return ret_hu_conv; - } - public number get_update_id() { number ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr); return ret; @@ -33,6 +27,18 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val); } + public number clone_ptr() { + number ret = bindings.ChannelMonitorUpdate_clone_ptr(this.ptr); + return ret; + } + + public ChannelMonitorUpdate clone() { + number ret = bindings.ChannelMonitorUpdate_clone(this.ptr); + const ret_hu_conv: ChannelMonitorUpdate = new ChannelMonitorUpdate(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.ChannelMonitorUpdate_write(this.ptr); return ret;