+ public static native long LDKCVec_NetAddressZ_new(long[] elems);
+ public static native boolean LDKCResult_NodeAnnouncementInfoDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NodeAnnouncementInfoDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_u64Z_new(long[] elems);
+ public static native boolean LDKCResult_NodeInfoDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NodeInfoDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NodeInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NetworkGraphDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NetworkGraphDecodeErrorZ_get_err(long arg);
+ public static native long LDKC2Tuple_usizeTransactionZ_new(long a, byte[] b);
+ public static native long LDKC2Tuple_usizeTransactionZ_get_a(long ptr);
+ public static native byte[] LDKC2Tuple_usizeTransactionZ_get_b(long ptr);
+ public static native long LDKCVec_C2Tuple_usizeTransactionZZ_new(long[] elems);
+ public static native boolean LDKCResult_NoneChannelMonitorUpdateErrZ_result_ok(long arg);
+ public static native void LDKCResult_NoneChannelMonitorUpdateErrZ_get_ok(long arg);
+ public static native LDKChannelMonitorUpdateErr LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(long arg);
+ public static native long LDKCVec_MonitorEventZ_new(long[] elems);
+ public static native long LDKC2Tuple_u64u64Z_new(long a, long b);
+ public static native long LDKC2Tuple_u64u64Z_get_a(long ptr);
+ public static native long LDKC2Tuple_u64u64Z_get_b(long ptr);
+ public static class LDKSpendableOutputDescriptor {
+ private LDKSpendableOutputDescriptor() {}
+ public final static class StaticOutput extends LDKSpendableOutputDescriptor {
+ public long outpoint;
+ public long output;
+ StaticOutput(long outpoint, long output) { this.outpoint = outpoint; this.output = output; }
+ }
+ public final static class DynamicOutputP2WSH extends LDKSpendableOutputDescriptor {
+ public long outpoint;
+ public byte[] per_commitment_point;
+ public short to_self_delay;
+ public long output;
+ public long key_derivation_params;
+ public byte[] revocation_pubkey;
+ DynamicOutputP2WSH(long outpoint, byte[] per_commitment_point, short to_self_delay, long output, long key_derivation_params, byte[] revocation_pubkey) { this.outpoint = outpoint; this.per_commitment_point = per_commitment_point; this.to_self_delay = to_self_delay; this.output = output; this.key_derivation_params = key_derivation_params; this.revocation_pubkey = revocation_pubkey; }
+ }
+ public final static class StaticOutputCounterpartyPayment extends LDKSpendableOutputDescriptor {
+ public long outpoint;
+ public long output;
+ public long key_derivation_params;
+ StaticOutputCounterpartyPayment(long outpoint, long output, long key_derivation_params) { this.outpoint = outpoint; this.output = output; this.key_derivation_params = key_derivation_params; }
+ }
+ static native void init();
+ }
+ static { LDKSpendableOutputDescriptor.init(); }
+ public static native LDKSpendableOutputDescriptor LDKSpendableOutputDescriptor_ref_from_ptr(long ptr);
+ public static native long LDKCVec_SpendableOutputDescriptorZ_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 native long LDKCVec_EventZ_new(long[] elems);
+ public static native boolean LDKCResult_OutPointDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_OutPointDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_OutPointDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelMonitorUpdateDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelMonitorUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_HTLCUpdateDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_HTLCUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NoneMonitorUpdateErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NoneMonitorUpdateErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NoneMonitorUpdateErrorZ_get_err(long arg);
+ public static native long LDKC2Tuple_OutPointScriptZ_new(long a, byte[] b);
+ public static native long LDKC2Tuple_OutPointScriptZ_get_a(long ptr);
+ public static native byte[] LDKC2Tuple_OutPointScriptZ_get_b(long ptr);
+ public static native long LDKC2Tuple_u32TxOutZ_new(int a, long b);
+ public static native int LDKC2Tuple_u32TxOutZ_get_a(long ptr);
+ public static native long LDKC2Tuple_u32TxOutZ_get_b(long ptr);
+ public static native long LDKCVec_C2Tuple_u32TxOutZZ_new(long[] elems);
+ public static native long LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(byte[] a, long[] b);
+ public static native byte[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long ptr);
+ public static native long[] LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long ptr);
+ public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_new(long[] elems);
+ public static native long LDKC2Tuple_SignatureCVec_SignatureZZ_new(byte[] a, byte[][] b);
+ public static native byte[] LDKC2Tuple_SignatureCVec_SignatureZZ_get_a(long ptr);
+ public static native byte[][] LDKC2Tuple_SignatureCVec_SignatureZZ_get_b(long ptr);
+ public static native boolean LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_result_ok(long arg);
+ public static native long LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(long arg);
+ public static native void LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_SignatureNoneZ_result_ok(long arg);
+ public static native byte[] LDKCResult_SignatureNoneZ_get_ok(long arg);
+ public static native void LDKCResult_SignatureNoneZ_get_err(long arg);
+ public interface LDKChannelKeys {
+ byte[] get_per_commitment_point(long idx);
+ byte[] release_commitment_secret(long idx);
+ long key_derivation_params();
+ long sign_counterparty_commitment(long commitment_tx);
+ long sign_holder_commitment_and_htlcs(long commitment_tx);
+ long sign_justice_transaction(byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
+ long sign_counterparty_htlc_transaction(byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
+ long sign_closing_transaction(byte[] closing_tx);
+ long sign_channel_announcement(long msg);
+ void ready_channel(long channel_parameters);
+ byte[] write();
+ }
+ public static native long LDKChannelKeys_new(LDKChannelKeys impl, long pubkeys);
+ // LDKPublicKey ChannelKeys_get_per_commitment_point LDKChannelKeys* this_arg, uint64_t idx
+ public static native byte[] ChannelKeys_get_per_commitment_point(long this_arg, long idx);
+ // LDKThirtyTwoBytes ChannelKeys_release_commitment_secret LDKChannelKeys* this_arg, uint64_t idx
+ public static native byte[] ChannelKeys_release_commitment_secret(long this_arg, long idx);
+ // LDKC2Tuple_u64u64Z ChannelKeys_key_derivation_params LDKChannelKeys* this_arg
+ public static native long ChannelKeys_key_derivation_params(long this_arg);
+ // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ ChannelKeys_sign_counterparty_commitment LDKChannelKeys* this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx
+ public static native long ChannelKeys_sign_counterparty_commitment(long this_arg, long commitment_tx);
+ // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ ChannelKeys_sign_holder_commitment_and_htlcs LDKChannelKeys* this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
+ public static native long ChannelKeys_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
+ // LDKCResult_SignatureNoneZ ChannelKeys_sign_justice_transaction LDKChannelKeys* this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
+ public static native long ChannelKeys_sign_justice_transaction(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
+ // LDKCResult_SignatureNoneZ ChannelKeys_sign_counterparty_htlc_transaction LDKChannelKeys* this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
+ public static native long ChannelKeys_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
+ // LDKCResult_SignatureNoneZ ChannelKeys_sign_closing_transaction LDKChannelKeys* this_arg, struct LDKTransaction closing_tx
+ public static native long ChannelKeys_sign_closing_transaction(long this_arg, byte[] closing_tx);
+ // LDKCResult_SignatureNoneZ ChannelKeys_sign_channel_announcement LDKChannelKeys* this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
+ public static native long ChannelKeys_sign_channel_announcement(long this_arg, long msg);
+ // void ChannelKeys_ready_channel LDKChannelKeys* this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
+ public static native void ChannelKeys_ready_channel(long this_arg, long channel_parameters);
+ // LDKCVec_u8Z ChannelKeys_write LDKChannelKeys* this_arg
+ public static native byte[] ChannelKeys_write(long this_arg);
+ // LDKChannelPublicKeys ChannelKeys_get_pubkeys LDKChannelKeys* this_arg
+ public static native long ChannelKeys_get_pubkeys(long this_arg);
+ public static native long LDKC2Tuple_BlockHashChannelMonitorZ_new(byte[] a, long b);
+ public static native byte[] LDKC2Tuple_BlockHashChannelMonitorZ_get_a(long ptr);
+ public static native long LDKC2Tuple_BlockHashChannelMonitorZ_get_b(long ptr);
+ public static native boolean LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_TxOutAccessErrorZ_result_ok(long arg);
+ public static native long LDKCResult_TxOutAccessErrorZ_get_ok(long arg);
+ public static native LDKAccessError LDKCResult_TxOutAccessErrorZ_get_err(long arg);
+ public static class LDKAPIError {
+ private LDKAPIError() {}
+ public final static class APIMisuseError extends LDKAPIError {
+ public byte[] err;
+ APIMisuseError(byte[] err) { this.err = err; }
+ }
+ public final static class FeeRateTooHigh extends LDKAPIError {
+ public byte[] err;
+ public int feerate;
+ FeeRateTooHigh(byte[] err, int feerate) { this.err = err; this.feerate = feerate; }
+ }
+ public final static class RouteError extends LDKAPIError {
+ public String err;
+ RouteError(String err) { this.err = err; }
+ }
+ public final static class ChannelUnavailable extends LDKAPIError {
+ public byte[] err;
+ ChannelUnavailable(byte[] err) { this.err = err; }
+ }
+ public final static class MonitorUpdateFailed extends LDKAPIError {
+ MonitorUpdateFailed() { }
+ }
+ static native void init();
+ }
+ static { LDKAPIError.init(); }
+ public static native LDKAPIError LDKAPIError_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_NoneAPIErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NoneAPIErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NoneAPIErrorZ_get_err(long arg);
+ public static native long LDKCVec_ChannelDetailsZ_new(long[] elems);
+ public static native boolean LDKCResult_NonePaymentSendFailureZ_result_ok(long arg);
+ public static native void LDKCResult_NonePaymentSendFailureZ_get_ok(long arg);
+ public static native long LDKCResult_NonePaymentSendFailureZ_get_err(long arg);
+ public static native long LDKCVec_ChannelMonitorZ_new(long[] elems);
+ public interface LDKWatch {
+ long watch_channel(long funding_txo, long monitor);
+ long update_channel(long funding_txo, long update);
+ long[] release_pending_monitor_events();
+ }
+ public static native long LDKWatch_new(LDKWatch impl);
+ // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_watch_channel LDKWatch* this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
+ public static native long Watch_watch_channel(long this_arg, long funding_txo, long monitor);
+ // LDKCResult_NoneChannelMonitorUpdateErrZ Watch_update_channel LDKWatch* this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitorUpdate update
+ public static native long Watch_update_channel(long this_arg, long funding_txo, long update);
+ // LDKCVec_MonitorEventZ Watch_release_pending_monitor_events LDKWatch* this_arg
+ public static native long[] Watch_release_pending_monitor_events(long this_arg);
+ public interface LDKBroadcasterInterface {
+ void broadcast_transaction(byte[] tx);
+ }
+ public static native long LDKBroadcasterInterface_new(LDKBroadcasterInterface impl);
+ // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface* this_arg, struct LDKTransaction tx
+ public static native void BroadcasterInterface_broadcast_transaction(long this_arg, byte[] tx);
+ public static native boolean LDKCResult_ChannelKeysDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelKeysDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelKeysDecodeErrorZ_get_err(long arg);
+ public interface LDKKeysInterface {
+ byte[] get_node_secret();
+ byte[] get_destination_script();
+ byte[] get_shutdown_pubkey();
+ long get_channel_keys(boolean inbound, long channel_value_satoshis);
+ byte[] get_secure_random_bytes();
+ long read_chan_signer(byte[] reader);
+ }
+ public static native long LDKKeysInterface_new(LDKKeysInterface impl);
+ // LDKSecretKey KeysInterface_get_node_secret LDKKeysInterface* this_arg
+ public static native byte[] KeysInterface_get_node_secret(long this_arg);
+ // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface* this_arg
+ public static native byte[] KeysInterface_get_destination_script(long this_arg);
+ // LDKPublicKey KeysInterface_get_shutdown_pubkey LDKKeysInterface* this_arg
+ public static native byte[] KeysInterface_get_shutdown_pubkey(long this_arg);
+ // LDKChannelKeys KeysInterface_get_channel_keys LDKKeysInterface* this_arg, bool inbound, uint64_t channel_value_satoshis
+ public static native long KeysInterface_get_channel_keys(long this_arg, boolean inbound, long channel_value_satoshis);
+ // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface* this_arg
+ public static native byte[] KeysInterface_get_secure_random_bytes(long this_arg);
+ // LDKCResult_ChannelKeysDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface* this_arg, struct LDKu8slice reader
+ public static native long KeysInterface_read_chan_signer(long this_arg, byte[] reader);
+ public interface LDKFeeEstimator {
+ int get_est_sat_per_1000_weight(LDKConfirmationTarget confirmation_target);
+ }
+ public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
+ // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator* this_arg, enum LDKConfirmationTarget confirmation_target
+ public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, LDKConfirmationTarget confirmation_target);
+ public interface LDKLogger {
+ void log(String record);
+ }
+ public static native long LDKLogger_new(LDKLogger impl);
+ public static native long LDKC2Tuple_BlockHashChannelManagerZ_new(byte[] a, long b);
+ public static native byte[] LDKC2Tuple_BlockHashChannelManagerZ_get_a(long ptr);
+ public static native long LDKC2Tuple_BlockHashChannelManagerZ_get_b(long ptr);
+ public static native boolean LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_SpendableOutputDescriptorDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_SpendableOutputDescriptorDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InMemoryChannelKeysDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_InMemoryChannelKeysDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_RouteHopZ_new(long[] elems);
+ public static native boolean LDKCResult_RouteDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_RouteDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_RouteDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_RouteHintZ_new(long[] elems);
+ public static native boolean LDKCResult_RouteLightningErrorZ_result_ok(long arg);
+ public static native long LDKCResult_RouteLightningErrorZ_get_ok(long arg);
+ public static native long LDKCResult_RouteLightningErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NetAddressu8Z_result_ok(long arg);
+ public static native long LDKCResult_NetAddressu8Z_get_ok(long arg);
+ public static native byte LDKCResult_NetAddressu8Z_get_err(long arg);
+ public static native boolean LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_CResult_NetAddressu8ZDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_UpdateAddHTLCZ_new(long[] elems);
+ public static native long LDKCVec_UpdateFulfillHTLCZ_new(long[] elems);
+ public static native long LDKCVec_UpdateFailHTLCZ_new(long[] elems);
+ public static native long LDKCVec_UpdateFailMalformedHTLCZ_new(long[] elems);
+ public static native boolean LDKCResult_AcceptChannelDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_AcceptChannelDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_AnnouncementSignaturesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_AnnouncementSignaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelReestablishDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelReestablishDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ClosingSignedDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ClosingSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_CommitmentSignedDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_CommitmentSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingCreatedDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_FundingCreatedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingSignedDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_FundingSignedDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_FundingSignedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_FundingLockedDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_FundingLockedDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_FundingLockedDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InitDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InitDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_InitDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_OpenChannelDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_OpenChannelDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_OpenChannelDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_RevokeAndACKDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_RevokeAndACKDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ShutdownDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ShutdownDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ShutdownDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFailHTLCDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UpdateFailHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFeeDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UpdateFeeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateFulfillHTLCDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UpdateFulfillHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UpdateAddHTLCDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UpdateAddHTLCDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PingDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_PingDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_PingDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PongDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_PongDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_PongDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedChannelUpdateDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UnsignedChannelUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelUpdateDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelUpdateDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ErrorMessageDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ErrorMessageDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NodeAnnouncementDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NodeAnnouncementDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_QueryShortChannelIdsDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_QueryShortChannelIdsDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_QueryChannelRangeDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_QueryChannelRangeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ReplyChannelRangeDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ReplyChannelRangeDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_GossipTimestampFilterDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_GossipTimestampFilterDecodeErrorZ_get_err(long arg);
+ public interface LDKMessageSendEventsProvider {
+ long[] get_and_clear_pending_msg_events();
+ }
+ public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
+ // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider* this_arg
+ public static native long[] MessageSendEventsProvider_get_and_clear_pending_msg_events(long this_arg);
+ public interface LDKEventsProvider {
+ long[] get_and_clear_pending_events();
+ }
+ public static native long LDKEventsProvider_new(LDKEventsProvider impl);
+ // LDKCVec_EventZ EventsProvider_get_and_clear_pending_events LDKEventsProvider* this_arg
+ public static native long[] EventsProvider_get_and_clear_pending_events(long this_arg);
+ public interface LDKAccess {
+ long get_utxo(byte[] genesis_hash, long short_channel_id);
+ }
+ public static native long LDKAccess_new(LDKAccess impl);
+ // LDKCResult_TxOutAccessErrorZ Access_get_utxo LDKAccess* this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
+ public static native long Access_get_utxo(long this_arg, byte[] genesis_hash, long short_channel_id);
+ public interface LDKFilter {
+ void register_tx(byte[] txid, byte[] script_pubkey);
+ void register_output(long outpoint, byte[] script_pubkey);
+ }
+ public static native long LDKFilter_new(LDKFilter impl);
+ // void Filter_register_tx LDKFilter* this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
+ public static native void Filter_register_tx(long this_arg, byte[] txid, byte[] script_pubkey);
+ // void Filter_register_output LDKFilter* this_arg, const struct LDKOutPoint *NONNULL_PTR outpoint, struct LDKu8slice script_pubkey
+ public static native void Filter_register_output(long this_arg, long outpoint, byte[] script_pubkey);
+ public interface LDKPersist {
+ long persist_new_channel(long id, long data);
+ long update_persisted_channel(long id, long update, long data);
+ }
+ public static native long LDKPersist_new(LDKPersist impl);
+ // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_persist_new_channel LDKPersist* this_arg, struct LDKOutPoint id, const struct LDKChannelMonitor *NONNULL_PTR data
+ public static native long Persist_persist_new_channel(long this_arg, long id, long data);
+ // LDKCResult_NoneChannelMonitorUpdateErrZ Persist_update_persisted_channel LDKPersist* this_arg, struct LDKOutPoint id, const struct LDKChannelMonitorUpdate *NONNULL_PTR update, const struct LDKChannelMonitor *NONNULL_PTR data
+ public static native long Persist_update_persisted_channel(long this_arg, long id, long update, long data);