- 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;
+ long reason = obj.reason;
+ org.ldk.structs.ClosureReason reason_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(reason);
+ if (reason_hu_conv != null) { reason_hu_conv.ptrs_to.add(this); };
+ this.reason = reason_hu_conv;
+ long outpoint = obj.outpoint;
+ org.ldk.structs.OutPoint outpoint_hu_conv = null; if (outpoint < 0 || outpoint > 4096) { outpoint_hu_conv = new org.ldk.structs.OutPoint(null, outpoint); }
+ if (outpoint_hu_conv != null) { outpoint_hu_conv.ptrs_to.add(this); };
+ this.outpoint = outpoint_hu_conv;
+ long channel_id = obj.channel_id;
+ org.ldk.structs.ChannelId channel_id_hu_conv = null; if (channel_id < 0 || channel_id > 4096) { channel_id_hu_conv = new org.ldk.structs.ChannelId(null, channel_id); }
+ if (channel_id_hu_conv != null) { channel_id_hu_conv.ptrs_to.add(this); };
+ this.channel_id = channel_id_hu_conv;
+ }
+ }
+ /**
+ * Indicates we broadcasted the channel's latest commitment transaction and thus closed the
+ * channel.
+ */
+ public final static class HolderForceClosed extends MonitorEvent {
+ public final org.ldk.structs.OutPoint holder_force_closed;
+ private HolderForceClosed(long ptr, bindings.LDKMonitorEvent.HolderForceClosed obj) {
+ super(null, ptr);
+ long holder_force_closed = obj.holder_force_closed;
+ org.ldk.structs.OutPoint holder_force_closed_hu_conv = null; if (holder_force_closed < 0 || holder_force_closed > 4096) { holder_force_closed_hu_conv = new org.ldk.structs.OutPoint(null, holder_force_closed); }
+ if (holder_force_closed_hu_conv != null) { holder_force_closed_hu_conv.ptrs_to.add(this); };
+ this.holder_force_closed = holder_force_closed_hu_conv;