+ 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 SendChannelUpdate extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendChannelUpdate(byte[] node_id, long msg) { this.node_id = node_id; 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 SendChannelRangeQuery extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendChannelRangeQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendShortIdsQuery extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendShortIdsQuery(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ public final static class SendReplyChannelRange extends LDKMessageSendEvent {
+ public byte[] node_id;
+ public long msg;
+ SendReplyChannelRange(byte[] node_id, long msg) { this.node_id = node_id; this.msg = msg; }
+ }
+ static native void init();
+ }
+ static { LDKMessageSendEvent.init(); }
+ public static native LDKMessageSendEvent LDKMessageSendEvent_ref_from_ptr(long ptr);
+ public static native long LDKCVec_MessageSendEventZ_new(long[] elems);
+ public static native boolean LDKCResult_InitFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_InitFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NodeFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NodeFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InvoiceFeaturesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_InvoiceFeaturesDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ScoringParametersDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ScoringParametersDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ScoringParametersDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ScorerDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ScorerDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ScorerDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ_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_NoneNoneZ_result_ok(long arg);
+ public static native void LDKCResult_NoneNoneZ_get_ok(long arg);
+ public static native void LDKCResult_NoneNoneZ_get_err(long arg);
+ // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_SignatureCVec_SignatureZZ_get_a(long tuple);
+ // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR tuple);
+ public static native byte[][] C2Tuple_SignatureCVec_SignatureZZ_get_b(long tuple);
+ 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 LDKBaseSign {
+ byte[] get_per_commitment_point(long idx);
+ byte[] release_commitment_secret(long idx);
+ long validate_holder_commitment(long holder_tx);
+ byte[] channel_keys_id();
+ long sign_counterparty_commitment(long commitment_tx);
+ long validate_counterparty_revocation(long idx, byte[] secret);
+ long sign_holder_commitment_and_htlcs(long commitment_tx);
+ long sign_justice_revoked_output(byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
+ long sign_justice_revoked_htlc(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(long closing_tx);
+ long sign_channel_announcement(long msg);
+ void ready_channel(long channel_parameters);
+ }
+ public static native long LDKBaseSign_new(LDKBaseSign impl, long pubkeys);
+ // LDKPublicKey BaseSign_get_per_commitment_point LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
+ public static native byte[] BaseSign_get_per_commitment_point(long this_arg, long idx);
+ // LDKThirtyTwoBytes BaseSign_release_commitment_secret LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx
+ public static native byte[] BaseSign_release_commitment_secret(long this_arg, long idx);
+ // LDKCResult_NoneNoneZ BaseSign_validate_holder_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx
+ public static native long BaseSign_validate_holder_commitment(long this_arg, long holder_tx);
+ // LDKThirtyTwoBytes BaseSign_channel_keys_id LDKBaseSign *NONNULL_PTR this_arg
+ public static native byte[] BaseSign_channel_keys_id(long this_arg);
+ // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_counterparty_commitment LDKBaseSign *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx
+ public static native long BaseSign_sign_counterparty_commitment(long this_arg, long commitment_tx);
+ // LDKCResult_NoneNoneZ BaseSign_validate_counterparty_revocation LDKBaseSign *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
+ public static native long BaseSign_validate_counterparty_revocation(long this_arg, long idx, byte[] secret);
+ // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ BaseSign_sign_holder_commitment_and_htlcs LDKBaseSign *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
+ public static native long BaseSign_sign_holder_commitment_and_htlcs(long this_arg, long commitment_tx);
+ // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_output LDKBaseSign *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
+ public static native long BaseSign_sign_justice_revoked_output(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key);
+ // LDKCResult_SignatureNoneZ BaseSign_sign_justice_revoked_htlc LDKBaseSign *NONNULL_PTR 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 BaseSign_sign_justice_revoked_htlc(long this_arg, byte[] justice_tx, long input, long amount, byte[] per_commitment_key, long htlc);
+ // LDKCResult_SignatureNoneZ BaseSign_sign_counterparty_htlc_transaction LDKBaseSign *NONNULL_PTR 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 BaseSign_sign_counterparty_htlc_transaction(long this_arg, byte[] htlc_tx, long input, long amount, byte[] per_commitment_point, long htlc);
+ // LDKCResult_SignatureNoneZ BaseSign_sign_closing_transaction LDKBaseSign *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
+ public static native long BaseSign_sign_closing_transaction(long this_arg, long closing_tx);
+ // LDKCResult_SignatureNoneZ BaseSign_sign_channel_announcement LDKBaseSign *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
+ public static native long BaseSign_sign_channel_announcement(long this_arg, long msg);
+ // void BaseSign_ready_channel LDKBaseSign *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
+ public static native void BaseSign_ready_channel(long this_arg, long channel_parameters);
+ // LDKChannelPublicKeys BaseSign_get_pubkeys LDKBaseSign *NONNULL_PTR this_arg
+ public static native long BaseSign_get_pubkeys(long this_arg);
+ public interface LDKSign {
+ byte[] write();
+ }
+ public static native long LDKSign_new(LDKSign impl, LDKBaseSign BaseSign, long pubkeys);
+ public static native long LDKSign_get_BaseSign(long arg);
+ // LDKCVec_u8Z Sign_write LDKSign *NONNULL_PTR this_arg
+ public static native byte[] Sign_write(long this_arg);
+ public static native boolean LDKCResult_SignDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_SignDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_SignDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_RecoverableSignatureNoneZ_result_ok(long arg);
+ public static native byte[] LDKCResult_RecoverableSignatureNoneZ_get_ok(long arg);
+ public static native void LDKCResult_RecoverableSignatureNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_CVec_CVec_u8ZZNoneZ_result_ok(long arg);
+ public static native byte[][] LDKCResult_CVec_CVec_u8ZZNoneZ_get_ok(long arg);
+ public static native void LDKCResult_CVec_CVec_u8ZZNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_InMemorySignerDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_InMemorySignerDecodeErrorZ_get_err(long arg);
+ public static native long LDKCVec_TxOutZ_new(long[] elems);
+ public static native boolean LDKCResult_TransactionNoneZ_result_ok(long arg);
+ public static native byte[] LDKCResult_TransactionNoneZ_get_ok(long arg);
+ public static native void LDKCResult_TransactionNoneZ_get_err(long arg);
+ // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_BlockHashChannelMonitorZ_get_a(long tuple);
+ // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR tuple);
+ public static native long C2Tuple_BlockHashChannelMonitorZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_BlockHashChannelMonitorZZ_new(long[] elems);
+ public static native boolean LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_result_ok(long arg);
+ public static native long[] LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_ok(long arg);
+ public static native IOError LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ_get_err(long arg);
+ public static class LDKCOption_u16Z {
+ private LDKCOption_u16Z() {}
+ public final static class Some extends LDKCOption_u16Z {
+ public short some;
+ Some(short some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_u16Z {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_u16Z.init(); }
+ public static native LDKCOption_u16Z LDKCOption_u16Z_ref_from_ptr(long ptr);
+ public static class LDKAPIError {
+ private LDKAPIError() {}
+ public final static class APIMisuseError extends LDKAPIError {
+ public String err;
+ APIMisuseError(String err) { this.err = err; }
+ }
+ public final static class FeeRateTooHigh extends LDKAPIError {
+ public String err;
+ public int feerate;
+ FeeRateTooHigh(String 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 String err;
+ ChannelUnavailable(String err) { this.err = err; }
+ }
+ public final static class MonitorUpdateFailed extends LDKAPIError {
+ MonitorUpdateFailed() { }
+ }
+ public final static class IncompatibleShutdownScript extends LDKAPIError {
+ public long script;
+ IncompatibleShutdownScript(long script) { this.script = script; }
+ }
+ 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_CResult_NoneAPIErrorZZ_new(long[] elems);
+ public static native long LDKCVec_APIErrorZ_new(long[] elems);
+ public static native boolean LDKCResult__u832APIErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult__u832APIErrorZ_get_ok(long arg);
+ public static native long LDKCResult__u832APIErrorZ_get_err(long arg);
+ public static class LDKPaymentSendFailure {
+ private LDKPaymentSendFailure() {}
+ public final static class ParameterError extends LDKPaymentSendFailure {
+ public long parameter_error;
+ ParameterError(long parameter_error) { this.parameter_error = parameter_error; }
+ }
+ public final static class PathParameterError extends LDKPaymentSendFailure {
+ public long[] path_parameter_error;
+ PathParameterError(long[] path_parameter_error) { this.path_parameter_error = path_parameter_error; }
+ }
+ public final static class AllFailedRetrySafe extends LDKPaymentSendFailure {
+ public long[] all_failed_retry_safe;
+ AllFailedRetrySafe(long[] all_failed_retry_safe) { this.all_failed_retry_safe = all_failed_retry_safe; }
+ }
+ public final static class PartialFailure extends LDKPaymentSendFailure {
+ public long[] results;
+ public long failed_paths_retry;
+ public byte[] payment_id;
+ PartialFailure(long[] results, long failed_paths_retry, byte[] payment_id) { this.results = results; this.failed_paths_retry = failed_paths_retry; this.payment_id = payment_id; }
+ }
+ static native void init();
+ }
+ static { LDKPaymentSendFailure.init(); }
+ public static native LDKPaymentSendFailure LDKPaymentSendFailure_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_PaymentIdPaymentSendFailureZ_result_ok(long arg);
+ public static native byte[] LDKCResult_PaymentIdPaymentSendFailureZ_get_ok(long arg);
+ public static native long LDKCResult_PaymentIdPaymentSendFailureZ_get_err(long arg);
+ 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);
+ // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_a(long tuple);
+ // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_PaymentHashPaymentIdZ_get_b(long tuple);
+ public static native boolean LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_result_ok(long arg);
+ public static native long LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(long arg);
+ public static native long LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(long arg);
+ public static class LDKNetAddress {
+ private LDKNetAddress() {}
+ public final static class IPv4 extends LDKNetAddress {
+ public byte[] addr;
+ public short port;
+ IPv4(byte[] addr, short port) { this.addr = addr; this.port = port; }
+ }
+ public final static class IPv6 extends LDKNetAddress {
+ public byte[] addr;
+ public short port;
+ IPv6(byte[] addr, short port) { this.addr = addr; this.port = port; }
+ }
+ public final static class OnionV2 extends LDKNetAddress {
+ public byte[] addr;
+ public short port;
+ OnionV2(byte[] addr, short port) { this.addr = addr; this.port = port; }
+ }
+ public final static class OnionV3 extends LDKNetAddress {
+ public byte[] ed25519_pubkey;
+ public short checksum;
+ public byte version;
+ public short port;
+ OnionV3(byte[] ed25519_pubkey, short checksum, byte version, short port) { this.ed25519_pubkey = ed25519_pubkey; this.checksum = checksum; this.version = version; this.port = port; }
+ }
+ static native void init();
+ }
+ static { LDKNetAddress.init(); }
+ public static native LDKNetAddress LDKNetAddress_ref_from_ptr(long ptr);
+ public static native long LDKCVec_NetAddressZ_new(long[] elems);
+ // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_a(long tuple);
+ // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_PaymentHashPaymentSecretZ_get_b(long tuple);
+ public static native boolean LDKCResult_PaymentSecretAPIErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult_PaymentSecretAPIErrorZ_get_ok(long arg);
+ public static native long LDKCResult_PaymentSecretAPIErrorZ_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 *NONNULL_PTR 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 *NONNULL_PTR 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 *NONNULL_PTR 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 *NONNULL_PTR this_arg, struct LDKTransaction tx
+ public static native void BroadcasterInterface_broadcast_transaction(long this_arg, byte[] tx);
+ public interface LDKKeysInterface {
+ byte[] get_node_secret();
+ byte[] get_destination_script();
+ long get_shutdown_scriptpubkey();
+ long get_channel_signer(boolean inbound, long channel_value_satoshis);
+ byte[] get_secure_random_bytes();
+ long read_chan_signer(byte[] reader);
+ long sign_invoice(byte[] invoice_preimage);
+ }
+ public static native long LDKKeysInterface_new(LDKKeysInterface impl);
+ // LDKSecretKey KeysInterface_get_node_secret LDKKeysInterface *NONNULL_PTR this_arg
+ public static native byte[] KeysInterface_get_node_secret(long this_arg);
+ // LDKCVec_u8Z KeysInterface_get_destination_script LDKKeysInterface *NONNULL_PTR this_arg
+ public static native byte[] KeysInterface_get_destination_script(long this_arg);
+ // LDKShutdownScript KeysInterface_get_shutdown_scriptpubkey LDKKeysInterface *NONNULL_PTR this_arg
+ public static native long KeysInterface_get_shutdown_scriptpubkey(long this_arg);
+ // LDKSign KeysInterface_get_channel_signer LDKKeysInterface *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis
+ public static native long KeysInterface_get_channel_signer(long this_arg, boolean inbound, long channel_value_satoshis);
+ // LDKThirtyTwoBytes KeysInterface_get_secure_random_bytes LDKKeysInterface *NONNULL_PTR this_arg
+ public static native byte[] KeysInterface_get_secure_random_bytes(long this_arg);
+ // LDKCResult_SignDecodeErrorZ KeysInterface_read_chan_signer LDKKeysInterface *NONNULL_PTR this_arg, struct LDKu8slice reader
+ public static native long KeysInterface_read_chan_signer(long this_arg, byte[] reader);
+ // LDKCResult_RecoverableSignatureNoneZ KeysInterface_sign_invoice LDKKeysInterface *NONNULL_PTR this_arg, struct LDKCVec_u8Z invoice_preimage
+ public static native long KeysInterface_sign_invoice(long this_arg, byte[] invoice_preimage);
+ public interface LDKFeeEstimator {
+ int get_est_sat_per_1000_weight(ConfirmationTarget confirmation_target);
+ }
+ public static native long LDKFeeEstimator_new(LDKFeeEstimator impl);
+ // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
+ public static native int FeeEstimator_get_est_sat_per_1000_weight(long this_arg, ConfirmationTarget confirmation_target);
+ public interface LDKLogger {
+ void log(String record);
+ }
+ public static native long LDKLogger_new(LDKLogger impl);
+ // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_BlockHashChannelManagerZ_get_a(long tuple);
+ // struct LDKChannelManager *C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR tuple);
+ public static native long C2Tuple_BlockHashChannelManagerZ_get_b(long tuple);
+ 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_ChannelConfigDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelConfigDecodeErrorZ_get_err(long arg);
+ 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 interface LDKType {
+ short type_id();
+ String debug_str();
+ byte[] write();
+ }
+ public static native long LDKType_new(LDKType impl);
+ // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
+ public static native short Type_type_id(long this_arg);
+ // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
+ public static native String Type_debug_str(long this_arg);
+ // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
+ public static native byte[] Type_write(long this_arg);
+ public static class LDKCOption_TypeZ {
+ private LDKCOption_TypeZ() {}
+ public final static class Some extends LDKCOption_TypeZ {
+ public long some;
+ Some(long some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_TypeZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_TypeZ.init(); }
+ public static native LDKCOption_TypeZ LDKCOption_TypeZ_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_COption_TypeZDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_COption_TypeZDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_COption_TypeZDecodeErrorZ_get_err(long arg);
+ public static class LDKPaymentError {
+ private LDKPaymentError() {}
+ public final static class Invoice extends LDKPaymentError {
+ public String invoice;
+ Invoice(String invoice) { this.invoice = invoice; }
+ }
+ public final static class Routing extends LDKPaymentError {
+ public long routing;
+ Routing(long routing) { this.routing = routing; }
+ }
+ public final static class Sending extends LDKPaymentError {
+ public long sending;
+ Sending(long sending) { this.sending = sending; }
+ }
+ static native void init();
+ }
+ static { LDKPaymentError.init(); }
+ public static native LDKPaymentError LDKPaymentError_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_PaymentIdPaymentErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult_PaymentIdPaymentErrorZ_get_ok(long arg);
+ public static native long LDKCResult_PaymentIdPaymentErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_SiPrefixNoneZ_result_ok(long arg);
+ public static native SiPrefix LDKCResult_SiPrefixNoneZ_get_ok(long arg);
+ public static native void LDKCResult_SiPrefixNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_InvoiceNoneZ_result_ok(long arg);
+ public static native long LDKCResult_InvoiceNoneZ_get_ok(long arg);
+ public static native void LDKCResult_InvoiceNoneZ_get_err(long arg);
+ public static native boolean LDKCResult_SignedRawInvoiceNoneZ_result_ok(long arg);
+ public static native long LDKCResult_SignedRawInvoiceNoneZ_get_ok(long arg);
+ public static native void LDKCResult_SignedRawInvoiceNoneZ_get_err(long arg);
+ // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR tuple);
+ public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(long tuple);
+ // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR tuple);
+ public static native byte[] C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(long tuple);
+ // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR tuple);
+ public static native long C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(long tuple);
+ public static native boolean LDKCResult_PayeePubKeyErrorZ_result_ok(long arg);
+ public static native long LDKCResult_PayeePubKeyErrorZ_get_ok(long arg);
+ public static native Secp256k1Error LDKCResult_PayeePubKeyErrorZ_get_err(long arg);
+ public static native long LDKCVec_PrivateRouteZ_new(long[] elems);
+ public static native boolean LDKCResult_PositiveTimestampCreationErrorZ_result_ok(long arg);
+ public static native long LDKCResult_PositiveTimestampCreationErrorZ_get_ok(long arg);
+ public static native CreationError LDKCResult_PositiveTimestampCreationErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NoneSemanticErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NoneSemanticErrorZ_get_ok(long arg);
+ public static native SemanticError LDKCResult_NoneSemanticErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_InvoiceSemanticErrorZ_result_ok(long arg);
+ public static native long LDKCResult_InvoiceSemanticErrorZ_get_ok(long arg);
+ public static native SemanticError LDKCResult_InvoiceSemanticErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_DescriptionCreationErrorZ_result_ok(long arg);
+ public static native long LDKCResult_DescriptionCreationErrorZ_get_ok(long arg);
+ public static native CreationError LDKCResult_DescriptionCreationErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ExpiryTimeCreationErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ExpiryTimeCreationErrorZ_get_ok(long arg);
+ public static native CreationError LDKCResult_ExpiryTimeCreationErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PrivateRouteCreationErrorZ_result_ok(long arg);
+ public static native long LDKCResult_PrivateRouteCreationErrorZ_get_ok(long arg);
+ public static native CreationError LDKCResult_PrivateRouteCreationErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_StringErrorZ_result_ok(long arg);
+ public static native String LDKCResult_StringErrorZ_get_ok(long arg);
+ public static native Secp256k1Error LDKCResult_StringErrorZ_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);
+ // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR tuple);
+ public static native long C2Tuple_OutPointScriptZ_get_a(long tuple);
+ // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_OutPointScriptZ_get_b(long tuple);
+ // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR tuple);
+ public static native int C2Tuple_u32ScriptZ_get_a(long tuple);
+ // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_u32ScriptZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_u32ScriptZZ_new(long[] elems);
+ // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(long tuple);
+ // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR tuple);
+ public static native long[] C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_new(long[] elems);
+ public static class LDKPaymentPurpose {
+ private LDKPaymentPurpose() {}
+ public final static class InvoicePayment extends LDKPaymentPurpose {
+ public byte[] payment_preimage;
+ public byte[] payment_secret;
+ public long user_payment_id;
+ InvoicePayment(byte[] payment_preimage, byte[] payment_secret, long user_payment_id) { this.payment_preimage = payment_preimage; this.payment_secret = payment_secret; this.user_payment_id = user_payment_id; }
+ }
+ public final static class SpontaneousPayment extends LDKPaymentPurpose {
+ public byte[] spontaneous_payment;
+ SpontaneousPayment(byte[] spontaneous_payment) { this.spontaneous_payment = spontaneous_payment; }
+ }
+ static native void init();
+ }
+ static { LDKPaymentPurpose.init(); }
+ public static native LDKPaymentPurpose LDKPaymentPurpose_ref_from_ptr(long ptr);
+ public static class LDKClosureReason {
+ private LDKClosureReason() {}
+ public final static class CounterpartyForceClosed extends LDKClosureReason {
+ public String peer_msg;
+ CounterpartyForceClosed(String peer_msg) { this.peer_msg = peer_msg; }
+ }
+ public final static class HolderForceClosed extends LDKClosureReason {
+ HolderForceClosed() { }
+ }
+ public final static class CooperativeClosure extends LDKClosureReason {
+ CooperativeClosure() { }
+ }
+ public final static class CommitmentTxConfirmed extends LDKClosureReason {
+ CommitmentTxConfirmed() { }
+ }
+ public final static class ProcessingError extends LDKClosureReason {
+ public String err;
+ ProcessingError(String err) { this.err = err; }
+ }
+ public final static class DisconnectedPeer extends LDKClosureReason {
+ DisconnectedPeer() { }
+ }
+ public final static class OutdatedChannelManager extends LDKClosureReason {
+ OutdatedChannelManager() { }
+ }
+ static native void init();
+ }
+ static { LDKClosureReason.init(); }
+ public static native LDKClosureReason LDKClosureReason_ref_from_ptr(long ptr);
+ 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 PaymentReceived extends LDKEvent {
+ public byte[] payment_hash;
+ public long amt;
+ public long purpose;
+ PaymentReceived(byte[] payment_hash, long amt, long purpose) { this.payment_hash = payment_hash; this.amt = amt; this.purpose = purpose; }
+ }
+ public final static class PaymentSent extends LDKEvent {
+ public byte[] payment_id;
+ public byte[] payment_preimage;
+ public byte[] payment_hash;
+ public long fee_paid_msat;
+ PaymentSent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat) { this.payment_id = payment_id; this.payment_preimage = payment_preimage; this.payment_hash = payment_hash; this.fee_paid_msat = fee_paid_msat; }
+ }
+ public final static class PaymentPathFailed extends LDKEvent {
+ public byte[] payment_id;
+ public byte[] payment_hash;
+ public boolean rejected_by_dest;
+ public long network_update;
+ public boolean all_paths_failed;
+ public long[] path;
+ public long short_channel_id;
+ public long retry;
+ PaymentPathFailed(byte[] payment_id, byte[] payment_hash, boolean rejected_by_dest, long network_update, boolean all_paths_failed, long[] path, long short_channel_id, long retry) { this.payment_id = payment_id; this.payment_hash = payment_hash; this.rejected_by_dest = rejected_by_dest; this.network_update = network_update; this.all_paths_failed = all_paths_failed; this.path = path; this.short_channel_id = short_channel_id; this.retry = retry; }
+ }
+ 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; }
+ }
+ public final static class PaymentForwarded extends LDKEvent {
+ public long fee_earned_msat;
+ public boolean claim_from_onchain_tx;
+ PaymentForwarded(long fee_earned_msat, boolean claim_from_onchain_tx) { this.fee_earned_msat = fee_earned_msat; this.claim_from_onchain_tx = claim_from_onchain_tx; }
+ }
+ public final static class ChannelClosed extends LDKEvent {
+ public byte[] channel_id;
+ public long user_channel_id;
+ public long reason;
+ ChannelClosed(byte[] channel_id, long user_channel_id, long reason) { this.channel_id = channel_id; this.user_channel_id = user_channel_id; this.reason = reason; }
+ }
+ public final static class DiscardFunding extends LDKEvent {
+ public byte[] channel_id;
+ public byte[] transaction;
+ DiscardFunding(byte[] channel_id, byte[] transaction) { this.channel_id = channel_id; this.transaction = transaction; }
+ }
+ 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);
+ // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR tuple);
+ public static native int C2Tuple_u32TxOutZ_get_a(long tuple);
+ // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR tuple);
+ public static native long C2Tuple_u32TxOutZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_u32TxOutZZ_new(long[] elems);
+ // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(long tuple);
+ // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR tuple);
+ public static native long[] C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_new(long[] elems);
+ public static class LDKBalance {
+ private LDKBalance() {}
+ public final static class ClaimableOnChannelClose extends LDKBalance {
+ public long claimable_amount_satoshis;
+ ClaimableOnChannelClose(long claimable_amount_satoshis) { this.claimable_amount_satoshis = claimable_amount_satoshis; }
+ }
+ public final static class ClaimableAwaitingConfirmations extends LDKBalance {
+ public long claimable_amount_satoshis;
+ public int confirmation_height;
+ ClaimableAwaitingConfirmations(long claimable_amount_satoshis, int confirmation_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.confirmation_height = confirmation_height; }
+ }
+ public final static class ContentiousClaimable extends LDKBalance {
+ public long claimable_amount_satoshis;
+ public int timeout_height;
+ ContentiousClaimable(long claimable_amount_satoshis, int timeout_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.timeout_height = timeout_height; }
+ }
+ public final static class MaybeClaimableHTLCAwaitingTimeout extends LDKBalance {
+ public long claimable_amount_satoshis;
+ public int claimable_height;
+ MaybeClaimableHTLCAwaitingTimeout(long claimable_amount_satoshis, int claimable_height) { this.claimable_amount_satoshis = claimable_amount_satoshis; this.claimable_height = claimable_height; }
+ }
+ static native void init();
+ }
+ static { LDKBalance.init(); }
+ public static native LDKBalance LDKBalance_ref_from_ptr(long ptr);
+ public static native long LDKCVec_BalanceZ_new(long[] elems);
+ 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_NoneLightningErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NoneLightningErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NoneLightningErrorZ_get_err(long arg);
+ // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR tuple);
+ public static native byte[] C2Tuple_PublicKeyTypeZ_get_a(long tuple);
+ // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR tuple);
+ public static native long C2Tuple_PublicKeyTypeZ_get_b(long tuple);
+ public static native long LDKCVec_C2Tuple_PublicKeyTypeZZ_new(long[] elems);
+ public static native boolean LDKCResult_boolLightningErrorZ_result_ok(long arg);
+ public static native boolean LDKCResult_boolLightningErrorZ_get_ok(long arg);
+ public static native long LDKCResult_boolLightningErrorZ_get_err(long arg);
+ // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR tuple);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long tuple);
+ // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR tuple);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long tuple);
+ // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR tuple);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long tuple);
+ public static native long LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_new(long[] elems);
+ public static native long LDKCVec_NodeAnnouncementZ_new(long[] elems);
+ public static native boolean LDKCResult_CVec_u8ZPeerHandleErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult_CVec_u8ZPeerHandleErrorZ_get_ok(long arg);
+ public static native long LDKCResult_CVec_u8ZPeerHandleErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NonePeerHandleErrorZ_result_ok(long arg);
+ public static native void LDKCResult_NonePeerHandleErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NonePeerHandleErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_boolPeerHandleErrorZ_result_ok(long arg);
+ public static native boolean LDKCResult_boolPeerHandleErrorZ_get_ok(long arg);
+ public static native long LDKCResult_boolPeerHandleErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_NodeIdDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NodeIdDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NodeIdDecodeErrorZ_get_err(long 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 *NONNULL_PTR 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 static class LDKCOption_AccessZ {
+ private LDKCOption_AccessZ() {}
+ public final static class Some extends LDKCOption_AccessZ {
+ public long some;
+ Some(long some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_AccessZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_AccessZ.init(); }
+ public static native LDKCOption_AccessZ LDKCOption_AccessZ_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_DirectionalChannelInfoDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_DirectionalChannelInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_ChannelInfoDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ChannelInfoDecodeErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_RoutingFeesDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_RoutingFeesDecodeErrorZ_get_err(long arg);
+ 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 class LDKCOption_CVec_NetAddressZZ {
+ private LDKCOption_CVec_NetAddressZZ() {}
+ public final static class Some extends LDKCOption_CVec_NetAddressZZ {
+ public long[] some;
+ Some(long[] some) { this.some = some; }
+ }
+ public final static class None extends LDKCOption_CVec_NetAddressZZ {
+ None() { }
+ }
+ static native void init();
+ }
+ static { LDKCOption_CVec_NetAddressZZ.init(); }
+ public static native LDKCOption_CVec_NetAddressZZ LDKCOption_CVec_NetAddressZZ_ref_from_ptr(long ptr);
+ public static native boolean LDKCResult_NetAddressDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_NetAddressDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_NetAddressDecodeErrorZ_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_ClosingSignedFeeRangeDecodeErrorZ_result_ok(long arg);
+ public static native long LDKCResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(long arg);
+ public static native long LDKCResult_ClosingSignedFeeRangeDecodeErrorZ_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 static class LDKSignOrCreationError {
+ private LDKSignOrCreationError() {}
+ public final static class SignError extends LDKSignOrCreationError {
+ SignError() { }