X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FChainMonitor.ts;h=356c5d4b78dd5dc13181c0b9538eb64c829a968f;hb=c6bac88847b7c09560af81f00ba8dd3c2ebe3a19;hp=902ef2685e41b0df738bc654ee415c9a27a2e4ee;hpb=0d48e557e83ef085cc92c2de63b9c81c061ce78c;p=ldk-java diff --git a/ts/structs/ChainMonitor.ts b/ts/structs/ChainMonitor.ts index 902ef268..356c5d4b 100644 --- a/ts/structs/ChainMonitor.ts +++ b/ts/structs/ChainMonitor.ts @@ -59,6 +59,12 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_conv_10_arr; } + public Result_NoneAPIErrorZ channel_monitor_updated(OutPoint funding_txo, MonitorUpdateId completed_update_id) { + number ret = bindings.ChainMonitor_channel_monitor_updated(this.ptr, funding_txo == null ? 0 : funding_txo.ptr & ~1, completed_update_id == null ? 0 : completed_update_id.ptr & ~1); + Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + public Listen as_Listen() { number ret = bindings.ChainMonitor_as_Listen(this.ptr); Listen ret_hu_conv = new Listen(null, ret);