+ public final static class UpdateCompleted extends MonitorEvent {
+ /**
+ * The funding outpoint of the [`ChannelMonitor`] that was updated
+ */
+ public final OutPoint funding_txo;
+ /**
+ * The Update ID from [`ChannelMonitorUpdate::update_id`] which was applied or
+ * [`ChannelMonitor::get_latest_update_id`].
+ *
+ * Note that this should only be set to a given update's ID if all previous updates for the
+ * same [`ChannelMonitor`] have been applied and persisted.
+ */
+ public final long monitor_update_id;
+ private UpdateCompleted(long ptr, bindings.LDKMonitorEvent.UpdateCompleted obj) {
+ super(null, ptr);
+ long funding_txo = obj.funding_txo;
+ OutPoint funding_txo_hu_conv = null; if (funding_txo < 0 || funding_txo > 4096) { funding_txo_hu_conv = new OutPoint(null, funding_txo); }
+ funding_txo_hu_conv.ptrs_to.add(this);
+ this.funding_txo = funding_txo_hu_conv;
+ this.monitor_update_id = obj.monitor_update_id;
+ }
+ }
+ public final static class UpdateFailed extends MonitorEvent {
+ public final OutPoint update_failed;
+ private UpdateFailed(long ptr, bindings.LDKMonitorEvent.UpdateFailed obj) {
+ super(null, ptr);
+ long update_failed = obj.update_failed;
+ OutPoint update_failed_hu_conv = null; if (update_failed < 0 || update_failed > 4096) { update_failed_hu_conv = new OutPoint(null, update_failed); }
+ update_failed_hu_conv.ptrs_to.add(this);
+ this.update_failed = update_failed_hu_conv;
+ }
+ }