+ long outbound_amount_forwarded_msat = bindings.LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(ptr);
+ org.ldk.structs.Option_u64Z outbound_amount_forwarded_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(outbound_amount_forwarded_msat);
+ if (outbound_amount_forwarded_msat_hu_conv != null) { outbound_amount_forwarded_msat_hu_conv.ptrs_to.AddLast(this); };
+ this.outbound_amount_forwarded_msat = outbound_amount_forwarded_msat_hu_conv;
+ }
+ }
+ /** A Event of type ChannelPending */
+ public class Event_ChannelPending : Event {
+ /**
+ * The `channel_id` of the channel that is pending confirmation.
+ */
+ public byte[] channel_id;
+ /**
+ * The `user_channel_id` value passed in to [`ChannelManager::create_channel`] for outbound
+ * channels, or to [`ChannelManager::accept_inbound_channel`] for inbound channels if
+ * [`UserConfig::manually_accept_inbound_channels`] config flag is set to true. Otherwise
+ * `user_channel_id` will be randomized for an inbound channel.
+ *
+ * [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
+ * [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
+ * [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
+ */
+ public UInt128 user_channel_id;
+ /**
+ * The `temporary_channel_id` this channel used to be known by during channel establishment.
+ *
+ * Will be `None` for channels created prior to LDK version 0.0.115.
+ *
+ * Note that this (or a relevant inner pointer) may be NULL or all-0s to represent None
+ */
+ public byte[] former_temporary_channel_id;
+ /**
+ * The `node_id` of the channel counterparty.
+ */
+ public byte[] counterparty_node_id;
+ /**
+ * The outpoint of the channel's funding transaction.
+ */
+ public OutPoint funding_txo;
+ internal Event_ChannelPending(long ptr) : base(null, ptr) {
+ this.channel_id = bindings.LDKEvent_ChannelPending_get_channel_id(ptr);
+ byte[] user_channel_id = bindings.LDKEvent_ChannelPending_get_user_channel_id(ptr);
+ org.ldk.util.UInt128 user_channel_id_conv = new org.ldk.util.UInt128(user_channel_id);
+ this.user_channel_id = user_channel_id_conv;
+ this.former_temporary_channel_id = bindings.LDKEvent_ChannelPending_get_former_temporary_channel_id(ptr);
+ this.counterparty_node_id = bindings.LDKEvent_ChannelPending_get_counterparty_node_id(ptr);
+ long funding_txo = bindings.LDKEvent_ChannelPending_get_funding_txo(ptr);
+ 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.AddLast(this); };
+ this.funding_txo = funding_txo_hu_conv;