+ public static native long LDKCVecTempl_SpendableOutputDescriptor_new(long[] elems);
+ public static class LDKEvent {
+ private LDKEvent() {}
+ public final static class FundingGenerationReady extends LDKEvent {
+ public byte[] temporary_channel_id;
+ public long channel_value_satoshis;
+ public byte[] output_script;
+ public long user_channel_id;
+ FundingGenerationReady(byte[] temporary_channel_id, long channel_value_satoshis, byte[] output_script, long user_channel_id) { this.temporary_channel_id = temporary_channel_id; this.channel_value_satoshis = channel_value_satoshis; this.output_script = output_script; this.user_channel_id = user_channel_id; }
+ }
+ public final static class FundingBroadcastSafe extends LDKEvent {
+ public long funding_txo;
+ public long user_channel_id;
+ FundingBroadcastSafe(long funding_txo, long user_channel_id) { this.funding_txo = funding_txo; this.user_channel_id = user_channel_id; }
+ }
+ public final static class PaymentReceived extends LDKEvent {
+ public byte[] payment_hash;
+ public byte[] payment_secret;
+ public long amt;
+ PaymentReceived(byte[] payment_hash, byte[] payment_secret, long amt) { this.payment_hash = payment_hash; this.payment_secret = payment_secret; this.amt = amt; }
+ }
+ public final static class PaymentSent extends LDKEvent {
+ public byte[] payment_preimage;
+ PaymentSent(byte[] payment_preimage) { this.payment_preimage = payment_preimage; }
+ }
+ public final static class PaymentFailed extends LDKEvent {
+ public byte[] payment_hash;
+ public boolean rejected_by_dest;
+ PaymentFailed(byte[] payment_hash, boolean rejected_by_dest) { this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; }
+ }
+ public final static class PendingHTLCsForwardable extends LDKEvent {
+ public long time_forwardable;
+ PendingHTLCsForwardable(long time_forwardable) { this.time_forwardable = time_forwardable; }
+ }
+ public final static class SpendableOutputs extends LDKEvent {
+ public long[] outputs;
+ SpendableOutputs(long[] outputs) { this.outputs = outputs; }
+ }
+ static native void init();
+ }
+ static { LDKEvent.init(); }
+ public static native LDKEvent LDKEvent_ref_from_ptr(long ptr);
+ public static class LDKErrorAction {
+ private LDKErrorAction() {}
+ public final static class DisconnectPeer extends LDKErrorAction {
+ public long msg;
+ DisconnectPeer(long msg) { this.msg = msg; }
+ }
+ public final static class IgnoreError extends LDKErrorAction {
+ }
+ public final static class SendErrorMessage extends LDKErrorAction {
+ public long msg;
+ SendErrorMessage(long msg) { this.msg = msg; }
+ }
+ static native void init();
+ }
+ static { LDKErrorAction.init(); }
+ public static native LDKErrorAction LDKErrorAction_ref_from_ptr(long ptr);
+ public static class LDKHTLCFailChannelUpdate {
+ private LDKHTLCFailChannelUpdate() {}
+ public final static class ChannelUpdateMessage extends LDKHTLCFailChannelUpdate {
+ public long msg;
+ ChannelUpdateMessage(long msg) { this.msg = msg; }
+ }
+ public final static class ChannelClosed extends LDKHTLCFailChannelUpdate {
+ public long short_channel_id;
+ public boolean is_permanent;
+ ChannelClosed(long short_channel_id, boolean is_permanent) { this.short_channel_id = short_channel_id; this.is_permanent = is_permanent; }
+ }
+ public final static class NodeFailure extends LDKHTLCFailChannelUpdate {
+ public byte[] node_id;
+ public boolean is_permanent;
+ NodeFailure(byte[] node_id, boolean is_permanent) { this.node_id = node_id; this.is_permanent = is_permanent; }
+ }
+ static native void init();
+ }
+ static { LDKHTLCFailChannelUpdate.init(); }
+ public static native LDKHTLCFailChannelUpdate LDKHTLCFailChannelUpdate_ref_from_ptr(long ptr);
+ public static class LDKMessageSendEvent {
+ private LDKMessageSendEvent() {}
+ public final static class SendAcceptChannel extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendAcceptChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendOpenChannel extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendOpenChannel(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendFundingCreated extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendFundingCreated(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendFundingSigned extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendFundingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendFundingLocked extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendFundingLocked(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendAnnouncementSignatures extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendAnnouncementSignatures(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class UpdateHTLCs extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long updates;
+ UpdateHTLCs(byte[] node_id, long updates) { this.node_id = node_id; this.updates = updates; }
+ }
+ public final static class SendRevokeAndACK extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendRevokeAndACK(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendClosingSigned extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendClosingSigned(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendShutdown extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendShutdown(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendChannelReestablish extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendChannelReestablish(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class BroadcastChannelAnnouncement extends LDKMessageSendEvent {
+ public long msg;
+ public long update_msg;
+ BroadcastChannelAnnouncement(long msg, long update_msg) { this.msg = msg; this.update_msg = update_msg; }
+ }
+ public final static class BroadcastNodeAnnouncement extends LDKMessageSendEvent {
+ public long msg;
+ BroadcastNodeAnnouncement(long msg) { this.msg = msg; }
+ }
+ public final static class BroadcastChannelUpdate extends LDKMessageSendEvent {
+ public long msg;
+ BroadcastChannelUpdate(long msg) { this.msg = msg; }
+ }
+ public final static class HandleError extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long action;
+ HandleError(byte[] node_id, long action) { this.node_id = node_id; this.action = action; }
+ }
+ public final static class PaymentFailureNetworkUpdate extends LDKMessageSendEvent {
+ public long update;
+ PaymentFailureNetworkUpdate(long update) { this.update = update; }
+ }
+ static native void init();
+ }
+ static { LDKMessageSendEvent.init(); }
+ public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);