Update auto-generated bindings
[ldk-java] / ts / structs / ChainMonitor.ts
index 902ef2685e41b0df738bc654ee415c9a27a2e4ee..e65e42be81c56de272c0fb3ca3f733e513971998 100644 (file)
@@ -22,6 +22,7 @@ import * as bindings from '../bindings' // TODO: figure out location
                number ret = bindings.ChainMonitor_new(chain_source.ptr, broadcaster == null ? 0 : broadcaster.ptr, logger == null ? 0 : logger.ptr, feeest == null ? 0 : feeest.ptr, persister == null ? 0 : persister.ptr);
                const ret_hu_conv: ChainMonitor = new ChainMonitor(null, ret);
                ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               ret_hu_conv.ptrs_to.add(chain_source);
                ret_hu_conv.ptrs_to.add(broadcaster);
                ret_hu_conv.ptrs_to.add(logger);
                ret_hu_conv.ptrs_to.add(feeest);
@@ -59,6 +60,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);