+ public static native VecOrSliceDef LDKCVec_NetAddressZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_NetAddressZ_new(long[] elems);
+ public static native long[] LDKCVec_ChannelMonitorZ_arr_info(long vec_ptr);
+ 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);
+ public static native LDKWatch LDKWatch_get_obj_from_jcalls(long val);
+ // 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);
+ public static native LDKBroadcasterInterface LDKBroadcasterInterface_get_obj_from_jcalls(long val);
+ // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface* 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();
+ 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);
+ public static native LDKKeysInterface LDKKeysInterface_get_obj_from_jcalls(long val);
+ // 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_ChanKeySignerDecodeErrorZ 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);
+ public static native LDKFeeEstimator LDKFeeEstimator_get_obj_from_jcalls(long val);
+ // 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 LDKLogger LDKLogger_get_obj_from_jcalls(long val);
+ 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_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 VecOrSliceDef LDKCVec_u64Z_arr_info(long vec_ptr);
+ public static native long LDKCVec_u64Z_new(long[] elems);
+ public static native long[] LDKCVec_UpdateAddHTLCZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_UpdateAddHTLCZ_new(long[] elems);
+ public static native long[] LDKCVec_UpdateFulfillHTLCZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_UpdateFulfillHTLCZ_new(long[] elems);
+ public static native long[] LDKCVec_UpdateFailHTLCZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_UpdateFailHTLCZ_new(long[] elems);
+ public static native long[] LDKCVec_UpdateFailMalformedHTLCZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_UpdateFailMalformedHTLCZ_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);
+ public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
+ public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(long ptr);
+ public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(long ptr);
+ public static native long LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(long ptr);
+ public static native VecOrSliceDef LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_new(long[] elems);
+ public static native long[] LDKCVec_NodeAnnouncementZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_NodeAnnouncementZ_new(long[] elems);
+ 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);
+ 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_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_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_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_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_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 native VecOrSliceDef LDKCVec_PublicKeyZ_arr_info(long vec_ptr);
+ 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_SecretKeySecpErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult_SecretKeySecpErrorZ_get_ok(long arg);
+ public static native LDKSecp256k1Error LDKCResult_SecretKeySecpErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_PublicKeySecpErrorZ_result_ok(long arg);
+ public static native byte[] LDKCResult_PublicKeySecpErrorZ_get_ok(long arg);
+ public static native LDKSecp256k1Error LDKCResult_PublicKeySecpErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_TxCreationKeysSecpErrorZ_result_ok(long arg);
+ public static native long LDKCResult_TxCreationKeysSecpErrorZ_get_ok(long arg);
+ public static native LDKSecp256k1Error LDKCResult_TxCreationKeysSecpErrorZ_get_err(long arg);
+ public static native boolean LDKCResult_TrustedCommitmentTransactionNoneZ_result_ok(long arg);
+ public static native long LDKCResult_TrustedCommitmentTransactionNoneZ_get_ok(long arg);
+ public static native void LDKCResult_TrustedCommitmentTransactionNoneZ_get_err(long arg);
+ public static native long[] LDKCVec_RouteHopZ_arr_info(long vec_ptr);
+ public static native long LDKCVec_RouteHopZ_new(long[] elems);
+ public static native VecOrSliceDef LDKCVec_CVec_RouteHopZZ_arr_info(long vec_ptr);
+ 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_arr_info(long vec_ptr);
+ 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_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 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 interface LDKMessageSendEventsProvider {
+ long[] get_and_clear_pending_msg_events();
+ }
+ public static native long LDKMessageSendEventsProvider_new(LDKMessageSendEventsProvider impl);
+ public static native LDKMessageSendEventsProvider LDKMessageSendEventsProvider_get_obj_from_jcalls(long val);
+ // 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);
+ public static native LDKEventsProvider LDKEventsProvider_get_obj_from_jcalls(long val);
+ // 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);
+ public static native LDKAccess LDKAccess_get_obj_from_jcalls(long val);
+ // 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);
+ public static native LDKFilter LDKFilter_get_obj_from_jcalls(long val);
+ // 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);
+ public static native LDKPersist LDKPersist_get_obj_from_jcalls(long val);
+ // 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);