+ /**
+ * A monitor event that the Channel's commitment transaction was confirmed.
+ */
+ public final static class CommitmentTxConfirmed extends MonitorEvent {
+ public final org.ldk.structs.OutPoint commitment_tx_confirmed;
+ private CommitmentTxConfirmed(long ptr, bindings.LDKMonitorEvent.CommitmentTxConfirmed obj) {
+ super(null, ptr);
+ long commitment_tx_confirmed = obj.commitment_tx_confirmed;
+ org.ldk.structs.OutPoint commitment_tx_confirmed_hu_conv = null; if (commitment_tx_confirmed < 0 || commitment_tx_confirmed > 4096) { commitment_tx_confirmed_hu_conv = new org.ldk.structs.OutPoint(null, commitment_tx_confirmed); }
+ if (commitment_tx_confirmed_hu_conv != null) { commitment_tx_confirmed_hu_conv.ptrs_to.add(this); };
+ this.commitment_tx_confirmed = commitment_tx_confirmed_hu_conv;
+ }
+ }
+ /**
+ * Indicates a [`ChannelMonitor`] update has completed. See
+ * [`ChannelMonitorUpdateErr::TemporaryFailure`] for more information on how this is used.
+ *
+ * [`ChannelMonitorUpdateErr::TemporaryFailure`]: super::ChannelMonitorUpdateErr::TemporaryFailure
+ */
+ public final static class UpdateCompleted extends MonitorEvent {
+ /**
+ * The funding outpoint of the [`ChannelMonitor`] that was updated
+ */
+ public final org.ldk.structs.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;
+ org.ldk.structs.OutPoint funding_txo_hu_conv = null; if (funding_txo < 0 || funding_txo > 4096) { funding_txo_hu_conv = new org.ldk.structs.OutPoint(null, funding_txo); }
+ if (funding_txo_hu_conv != null) { funding_txo_hu_conv.ptrs_to.add(this); };
+ this.funding_txo = funding_txo_hu_conv;
+ this.monitor_update_id = obj.monitor_update_id;
+ }
+ }
+ /**
+ * Indicates a [`ChannelMonitor`] update has failed. See
+ * [`ChannelMonitorUpdateErr::PermanentFailure`] for more information on how this is used.
+ *
+ * [`ChannelMonitorUpdateErr::PermanentFailure`]: super::ChannelMonitorUpdateErr::PermanentFailure
+ */
+ public final static class UpdateFailed extends MonitorEvent {
+ public final org.ldk.structs.OutPoint update_failed;
+ private UpdateFailed(long ptr, bindings.LDKMonitorEvent.UpdateFailed obj) {