+ // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
+ public static native long NodeInfo_new(long[] channels_arg, long announcement_info_arg);
+ // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
+ public static native long NodeInfo_clone_ptr(long arg);
+ // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
+ public static native long NodeInfo_clone(long orig);
+ // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
+ public static native boolean NodeInfo_eq(long a, long b);
+ // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
+ public static native byte[] NodeInfo_write(long obj);
+ // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
+ public static native long NodeInfo_read(byte[] ser);
+ // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
+ public static native byte[] NetworkGraph_write(long obj);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
+ public static native long NetworkGraph_read(byte[] ser, long arg);
+ // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
+ public static native long NetworkGraph_new(Network network, long logger);
+ // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
+ public static native long NetworkGraph_read_only(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
+ public static native long NetworkGraph_get_last_rapid_gossip_sync_timestamp(long this_arg);
+ // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
+ public static native void NetworkGraph_set_last_rapid_gossip_sync_timestamp(long this_arg, int last_rapid_gossip_sync_timestamp);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
+ public static native long NetworkGraph_update_node_from_announcement(long this_arg, long msg);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
+ public static native long NetworkGraph_update_node_from_unsigned_announcement(long this_arg, long msg);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup);
+ public static native long NetworkGraph_update_channel_from_announcement(long this_arg, long msg, long utxo_lookup);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup);
+ public static native long NetworkGraph_update_channel_from_unsigned_announcement(long this_arg, long msg, long utxo_lookup);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_add_channel_from_partial_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t timestamp, struct LDKChannelFeatures features, struct LDKPublicKey node_id_1, struct LDKPublicKey node_id_2);
+ public static native long NetworkGraph_add_channel_from_partial_announcement(long this_arg, long short_channel_id, long timestamp, long features, byte[] node_id_1, byte[] node_id_2);
+ // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
+ public static native void NetworkGraph_channel_failed_permanent(long this_arg, long short_channel_id);
+ // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
+ public static native void NetworkGraph_node_failed_permanent(long this_arg, byte[] node_id);
+ // void NetworkGraph_remove_stale_channels_and_tracking(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
+ public static native void NetworkGraph_remove_stale_channels_and_tracking(long this_arg);
+ // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
+ public static native void NetworkGraph_remove_stale_channels_and_tracking_with_time(long this_arg, long current_time_unix);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
+ public static native long NetworkGraph_update_channel(long this_arg, long msg);
+ // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
+ public static native long NetworkGraph_update_channel_unsigned(long this_arg, long msg);
+ // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
+ public static native long ReadOnlyNetworkGraph_channel(long this_arg, long short_channel_id);
+ // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
+ public static native long[] ReadOnlyNetworkGraph_list_channels(long this_arg);
+ // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
+ public static native long ReadOnlyNetworkGraph_node(long this_arg, long node_id);
+ // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
+ public static native long[] ReadOnlyNetworkGraph_list_nodes(long this_arg);
+ // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
+ public static native long ReadOnlyNetworkGraph_get_addresses(long this_arg, byte[] pubkey);
+ // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
+ public static native void DefaultRouter_free(long this_obj);
+ // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes, struct LDKLockableScore scorer);
+ public static native long DefaultRouter_new(long network_graph, long logger, byte[] random_seed_bytes, long scorer);
+ // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
+ public static native long DefaultRouter_as_Router(long this_arg);
+ // void Router_free(struct LDKRouter this_ptr);
+ public static native void Router_free(long this_ptr);
+ // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
+ public static native void ScorerAccountingForInFlightHtlcs_free(long this_obj);
+ // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
+ public static native long ScorerAccountingForInFlightHtlcs_new(long scorer, long inflight_htlcs);
+ // struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj);
+ public static native byte[] ScorerAccountingForInFlightHtlcs_write(long obj);
+ // struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
+ public static native long ScorerAccountingForInFlightHtlcs_as_Score(long this_arg);
+ // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
+ public static native void InFlightHtlcs_free(long this_obj);
+ // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
+ public static native long InFlightHtlcs_clone_ptr(long arg);
+ // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
+ public static native long InFlightHtlcs_clone(long orig);
+ // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
+ public static native long InFlightHtlcs_new();
+ // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
+ public static native void InFlightHtlcs_process_path(long this_arg, long path, byte[] payer_node_id);
+ // MUST_USE_RES struct LDKCOption_u64Z InFlightHtlcs_used_liquidity_msat(const struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid);
+ public static native long InFlightHtlcs_used_liquidity_msat(long this_arg, long source, long target, long channel_scid);
+ // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
+ public static native byte[] InFlightHtlcs_write(long obj);
+ // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
+ public static native long InFlightHtlcs_read(byte[] ser);
+ // void RouteHop_free(struct LDKRouteHop this_obj);
+ public static native void RouteHop_free(long this_obj);
+ // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native byte[] RouteHop_get_pubkey(long this_ptr);
+ // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void RouteHop_set_pubkey(long this_ptr, byte[] val);
+ // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native long RouteHop_get_node_features(long this_ptr);
+ // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
+ public static native void RouteHop_set_node_features(long this_ptr, long val);
+ // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native long RouteHop_get_short_channel_id(long this_ptr);
+ // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void RouteHop_set_short_channel_id(long this_ptr, long val);
+ // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native long RouteHop_get_channel_features(long this_ptr);
+ // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
+ public static native void RouteHop_set_channel_features(long this_ptr, long val);
+ // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native long RouteHop_get_fee_msat(long this_ptr);
+ // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void RouteHop_set_fee_msat(long this_ptr, long val);
+ // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
+ public static native int RouteHop_get_cltv_expiry_delta(long this_ptr);
+ // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void RouteHop_set_cltv_expiry_delta(long this_ptr, int val);
+ // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg);
+ public static native long RouteHop_new(byte[] pubkey_arg, long node_features_arg, long short_channel_id_arg, long channel_features_arg, long fee_msat_arg, int cltv_expiry_delta_arg);
+ // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
+ public static native long RouteHop_clone_ptr(long arg);
+ // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
+ public static native long RouteHop_clone(long orig);
+ // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
+ public static native long RouteHop_hash(long o);
+ // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
+ public static native boolean RouteHop_eq(long a, long b);
+ // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
+ public static native byte[] RouteHop_write(long obj);
+ // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
+ public static native long RouteHop_read(byte[] ser);
+ // void BlindedTail_free(struct LDKBlindedTail this_obj);
+ public static native void BlindedTail_free(long this_obj);
+ // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
+ public static native long[] BlindedTail_get_hops(long this_ptr);
+ // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
+ public static native void BlindedTail_set_hops(long this_ptr, long[] val);
+ // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
+ public static native byte[] BlindedTail_get_blinding_point(long this_ptr);
+ // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void BlindedTail_set_blinding_point(long this_ptr, byte[] val);
+ // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
+ public static native int BlindedTail_get_excess_final_cltv_expiry_delta(long this_ptr);
+ // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void BlindedTail_set_excess_final_cltv_expiry_delta(long this_ptr, int val);
+ // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
+ public static native long BlindedTail_get_final_value_msat(long this_ptr);
+ // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void BlindedTail_set_final_value_msat(long this_ptr, long val);
+ // MUST_USE_RES struct LDKBlindedTail BlindedTail_new(struct LDKCVec_BlindedHopZ hops_arg, struct LDKPublicKey blinding_point_arg, uint32_t excess_final_cltv_expiry_delta_arg, uint64_t final_value_msat_arg);
+ public static native long BlindedTail_new(long[] hops_arg, byte[] blinding_point_arg, int excess_final_cltv_expiry_delta_arg, long final_value_msat_arg);
+ // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
+ public static native long BlindedTail_clone_ptr(long arg);
+ // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
+ public static native long BlindedTail_clone(long orig);
+ // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
+ public static native long BlindedTail_hash(long o);
+ // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
+ public static native boolean BlindedTail_eq(long a, long b);
+ // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
+ public static native byte[] BlindedTail_write(long obj);
+ // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
+ public static native long BlindedTail_read(byte[] ser);
+ // void Path_free(struct LDKPath this_obj);
+ public static native void Path_free(long this_obj);
+ // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
+ public static native long[] Path_get_hops(long this_ptr);
+ // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
+ public static native void Path_set_hops(long this_ptr, long[] val);
+ // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
+ public static native long Path_get_blinded_tail(long this_ptr);
+ // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
+ public static native void Path_set_blinded_tail(long this_ptr, long val);
+ // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
+ public static native long Path_new(long[] hops_arg, long blinded_tail_arg);
+ // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
+ public static native long Path_clone_ptr(long arg);
+ // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
+ public static native long Path_clone(long orig);
+ // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
+ public static native long Path_hash(long o);
+ // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
+ public static native boolean Path_eq(long a, long b);
+ // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
+ public static native long Path_fee_msat(long this_arg);
+ // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
+ public static native long Path_final_value_msat(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
+ public static native long Path_final_cltv_expiry_delta(long this_arg);
+ // void Route_free(struct LDKRoute this_obj);
+ public static native void Route_free(long this_obj);
+ // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
+ public static native long[] Route_get_paths(long this_ptr);
+ // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
+ public static native void Route_set_paths(long this_ptr, long[] val);
+ // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
+ public static native long Route_get_payment_params(long this_ptr);
+ // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
+ public static native void Route_set_payment_params(long this_ptr, long val);
+ // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKPaymentParameters payment_params_arg);
+ public static native long Route_new(long[] paths_arg, long payment_params_arg);
+ // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
+ public static native long Route_clone_ptr(long arg);
+ // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
+ public static native long Route_clone(long orig);
+ // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
+ public static native long Route_hash(long o);
+ // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
+ public static native boolean Route_eq(long a, long b);
+ // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
+ public static native long Route_get_total_fees(long this_arg);
+ // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
+ public static native long Route_get_total_amount(long this_arg);
+ // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
+ public static native byte[] Route_write(long obj);
+ // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
+ public static native long Route_read(byte[] ser);
+ // void RouteParameters_free(struct LDKRouteParameters this_obj);
+ public static native void RouteParameters_free(long this_obj);
+ // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
+ public static native long RouteParameters_get_payment_params(long this_ptr);
+ // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
+ public static native void RouteParameters_set_payment_params(long this_ptr, long val);
+ // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
+ public static native long RouteParameters_get_final_value_msat(long this_ptr);
+ // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void RouteParameters_set_final_value_msat(long this_ptr, long val);
+ // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg);
+ public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg);
+ // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
+ public static native long RouteParameters_clone_ptr(long arg);
+ // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
+ public static native long RouteParameters_clone(long orig);
+ // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
+ public static native boolean RouteParameters_eq(long a, long b);
+ // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
+ public static native byte[] RouteParameters_write(long obj);
+ // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
+ public static native long RouteParameters_read(byte[] ser);
+ // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
+ public static native void PaymentParameters_free(long this_obj);
+ // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native byte[] PaymentParameters_get_payee_pubkey(long this_ptr);
+ // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void PaymentParameters_set_payee_pubkey(long this_ptr, byte[] val);
+ // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native long PaymentParameters_get_features(long this_ptr);
+ // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
+ public static native void PaymentParameters_set_features(long this_ptr, long val);
+ // struct LDKHints PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native long PaymentParameters_get_route_hints(long this_ptr);
+ // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKHints val);
+ public static native void PaymentParameters_set_route_hints(long this_ptr, long val);
+ // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native long PaymentParameters_get_expiry_time(long this_ptr);
+ // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
+ public static native void PaymentParameters_set_expiry_time(long this_ptr, long val);
+ // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native int PaymentParameters_get_max_total_cltv_expiry_delta(long this_ptr);
+ // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void PaymentParameters_set_max_total_cltv_expiry_delta(long this_ptr, int val);
+ // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native byte PaymentParameters_get_max_path_count(long this_ptr);
+ // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
+ public static native void PaymentParameters_set_max_path_count(long this_ptr, byte val);
+ // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native byte PaymentParameters_get_max_channel_saturation_power_of_half(long this_ptr);
+ // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
+ public static native void PaymentParameters_set_max_channel_saturation_power_of_half(long this_ptr, byte val);
+ // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native long[] PaymentParameters_get_previously_failed_channels(long this_ptr);
+ // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
+ public static native void PaymentParameters_set_previously_failed_channels(long this_ptr, long[] val);
+ // uint32_t PaymentParameters_get_final_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
+ public static native int PaymentParameters_get_final_cltv_expiry_delta(long this_ptr);
+ // void PaymentParameters_set_final_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void PaymentParameters_set_final_cltv_expiry_delta(long this_ptr, int val);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKHints route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg, uint32_t final_cltv_expiry_delta_arg);
+ public static native long PaymentParameters_new(byte[] payee_pubkey_arg, long features_arg, long route_hints_arg, long expiry_time_arg, int max_total_cltv_expiry_delta_arg, byte max_path_count_arg, byte max_channel_saturation_power_of_half_arg, long[] previously_failed_channels_arg, int final_cltv_expiry_delta_arg);
+ // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
+ public static native long PaymentParameters_clone_ptr(long arg);
+ // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
+ public static native long PaymentParameters_clone(long orig);
+ // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
+ public static native long PaymentParameters_hash(long o);
+ // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
+ public static native boolean PaymentParameters_eq(long a, long b);
+ // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
+ public static native byte[] PaymentParameters_write(long obj);
+ // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
+ public static native long PaymentParameters_read(byte[] ser, int arg);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
+ public static native long PaymentParameters_from_node_id(byte[] payee_pubkey, int final_cltv_expiry_delta);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
+ public static native long PaymentParameters_for_keysend(byte[] payee_pubkey, int final_cltv_expiry_delta);
+ // void Hints_free(struct LDKHints this_ptr);
+ public static native void Hints_free(long this_ptr);
+ // uint64_t Hints_clone_ptr(LDKHints *NONNULL_PTR arg);
+ public static native long Hints_clone_ptr(long arg);
+ // struct LDKHints Hints_clone(const struct LDKHints *NONNULL_PTR orig);
+ public static native long Hints_clone(long orig);
+ // struct LDKHints Hints_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ a);
+ public static native long Hints_blinded(long[] a);
+ // struct LDKHints Hints_clear(struct LDKCVec_RouteHintZ a);
+ public static native long Hints_clear(long[] a);
+ // uint64_t Hints_hash(const struct LDKHints *NONNULL_PTR o);
+ public static native long Hints_hash(long o);
+ // bool Hints_eq(const struct LDKHints *NONNULL_PTR a, const struct LDKHints *NONNULL_PTR b);
+ public static native boolean Hints_eq(long a, long b);
+ // void RouteHint_free(struct LDKRouteHint this_obj);
+ public static native void RouteHint_free(long this_obj);
+ // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
+ public static native long[] RouteHint_get_a(long this_ptr);
+ // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
+ public static native void RouteHint_set_a(long this_ptr, long[] val);
+ // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
+ public static native long RouteHint_new(long[] a_arg);
+ // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
+ public static native long RouteHint_clone_ptr(long arg);
+ // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
+ public static native long RouteHint_clone(long orig);
+ // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
+ public static native long RouteHint_hash(long o);
+ // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
+ public static native boolean RouteHint_eq(long a, long b);
+ // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
+ public static native byte[] RouteHint_write(long obj);
+ // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
+ public static native long RouteHint_read(byte[] ser);
+ // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
+ public static native void RouteHintHop_free(long this_obj);
+ // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native byte[] RouteHintHop_get_src_node_id(long this_ptr);
+ // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void RouteHintHop_set_src_node_id(long this_ptr, byte[] val);
+ // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native long RouteHintHop_get_short_channel_id(long this_ptr);
+ // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void RouteHintHop_set_short_channel_id(long this_ptr, long val);
+ // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native long RouteHintHop_get_fees(long this_ptr);
+ // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
+ public static native void RouteHintHop_set_fees(long this_ptr, long val);
+ // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native short RouteHintHop_get_cltv_expiry_delta(long this_ptr);
+ // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void RouteHintHop_set_cltv_expiry_delta(long this_ptr, short val);
+ // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native long RouteHintHop_get_htlc_minimum_msat(long this_ptr);
+ // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
+ public static native void RouteHintHop_set_htlc_minimum_msat(long this_ptr, long val);
+ // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
+ public static native long RouteHintHop_get_htlc_maximum_msat(long this_ptr);
+ // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
+ public static native void RouteHintHop_set_htlc_maximum_msat(long this_ptr, long val);
+ // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg);
+ public static native long RouteHintHop_new(byte[] src_node_id_arg, long short_channel_id_arg, long fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg, long htlc_maximum_msat_arg);
+ // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
+ public static native long RouteHintHop_clone_ptr(long arg);
+ // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
+ public static native long RouteHintHop_clone(long orig);
+ // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
+ public static native long RouteHintHop_hash(long o);
+ // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
+ public static native boolean RouteHintHop_eq(long a, long b);
+ // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
+ public static native byte[] RouteHintHop_write(long obj);
+ // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
+ public static native long RouteHintHop_read(byte[] ser);
+ // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const uint8_t (*random_seed_bytes)[32]);
+ public static native long find_route(byte[] our_node_pubkey, long route_params, long network_graph, long[] first_hops, long logger, long scorer, byte[] random_seed_bytes);
+ // struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]);
+ public static native long build_route_from_hops(byte[] our_node_pubkey, byte[][] hops, long route_params, long network_graph, long logger, byte[] random_seed_bytes);
+ // void Score_free(struct LDKScore this_ptr);
+ public static native void Score_free(long this_ptr);
+ // void LockableScore_free(struct LDKLockableScore this_ptr);
+ public static native void LockableScore_free(long this_ptr);
+ // void WriteableScore_free(struct LDKWriteableScore this_ptr);
+ public static native void WriteableScore_free(long this_ptr);
+ // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
+ public static native void MultiThreadedLockableScore_free(long this_obj);
+ // void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj);
+ public static native void MultiThreadedScoreLock_free(long this_obj);
+ // struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg);
+ public static native long MultiThreadedScoreLock_as_Score(long this_arg);
+ // struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj);
+ public static native byte[] MultiThreadedScoreLock_write(long obj);
+ // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
+ public static native long MultiThreadedLockableScore_as_LockableScore(long this_arg);
+ // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
+ public static native byte[] MultiThreadedLockableScore_write(long obj);
+ // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
+ public static native long MultiThreadedLockableScore_as_WriteableScore(long this_arg);
+ // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
+ public static native long MultiThreadedLockableScore_new(long score);
+ // void ChannelUsage_free(struct LDKChannelUsage this_obj);
+ public static native void ChannelUsage_free(long this_obj);
+ // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
+ public static native long ChannelUsage_get_amount_msat(long this_ptr);
+ // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelUsage_set_amount_msat(long this_ptr, long val);
+ // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
+ public static native long ChannelUsage_get_inflight_htlc_msat(long this_ptr);
+ // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ChannelUsage_set_inflight_htlc_msat(long this_ptr, long val);
+ // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
+ public static native long ChannelUsage_get_effective_capacity(long this_ptr);
+ // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
+ public static native void ChannelUsage_set_effective_capacity(long this_ptr, long val);
+ // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
+ public static native long ChannelUsage_new(long amount_msat_arg, long inflight_htlc_msat_arg, long effective_capacity_arg);
+ // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
+ public static native long ChannelUsage_clone_ptr(long arg);
+ // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
+ public static native long ChannelUsage_clone(long orig);
+ // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
+ public static native void FixedPenaltyScorer_free(long this_obj);
+ // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
+ public static native long FixedPenaltyScorer_clone_ptr(long arg);
+ // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
+ public static native long FixedPenaltyScorer_clone(long orig);
+ // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
+ public static native long FixedPenaltyScorer_with_penalty(long penalty_msat);
+ // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
+ public static native long FixedPenaltyScorer_as_Score(long this_arg);
+ // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
+ public static native byte[] FixedPenaltyScorer_write(long obj);
+ // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
+ public static native long FixedPenaltyScorer_read(byte[] ser, long arg);
+ // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
+ public static native void ProbabilisticScorer_free(long this_obj);
+ // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
+ public static native void ProbabilisticScoringParameters_free(long this_obj);
+ // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_base_penalty_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_base_penalty_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_liquidity_offset_half_life(long this_ptr);
+ // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_liquidity_offset_half_life(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_historical_no_updates_half_life(long this_ptr);
+ // void ProbabilisticScoringParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_historical_no_updates_half_life(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_anti_probing_penalty_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(long this_ptr);
+ // void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(long this_ptr, long val);
+ // uint64_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
+ public static native long ProbabilisticScoringParameters_clone_ptr(long arg);
+ // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
+ public static native long ProbabilisticScoringParameters_clone(long orig);
+ // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
+ public static native long ProbabilisticScorer_new(long params, long network_graph, long logger);
+ // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
+ public static native void ProbabilisticScorer_debug_log_liquidity_stats(long this_arg);
+ // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
+ public static native long ProbabilisticScorer_estimated_channel_liquidity_range(long this_arg, long scid, long target);
+ // MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
+ public static native long ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(long this_arg, long scid, long target);
+ // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
+ public static native void ProbabilisticScorer_add_banned(long this_arg, long node_id);
+ // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
+ public static native void ProbabilisticScorer_remove_banned(long this_arg, long node_id);
+ // void ProbabilisticScorer_set_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
+ public static native void ProbabilisticScorer_set_manual_penalty(long this_arg, long node_id, long penalty);
+ // void ProbabilisticScorer_remove_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
+ public static native void ProbabilisticScorer_remove_manual_penalty(long this_arg, long node_id);
+ // void ProbabilisticScorer_clear_manual_penalties(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
+ public static native void ProbabilisticScorer_clear_manual_penalties(long this_arg);
+ // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
+ public static native void ProbabilisticScoringParameters_add_banned_from_list(long this_arg, long[] node_ids);
+ // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
+ public static native long ProbabilisticScoringParameters_default();
+ // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
+ public static native long ProbabilisticScorer_as_Score(long this_arg);
+ // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
+ public static native byte[] ProbabilisticScorer_write(long obj);
+ // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
+ public static native long ProbabilisticScorer_read(byte[] ser, long arg_a, long arg_b, long arg_c);
+ // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
+ public static native void OnionMessenger_free(long this_obj);
+ // void Destination_free(struct LDKDestination this_ptr);
+ public static native void Destination_free(long this_ptr);
+ // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
+ public static native long Destination_clone_ptr(long arg);
+ // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
+ public static native long Destination_clone(long orig);
+ // struct LDKDestination Destination_node(struct LDKPublicKey a);
+ public static native long Destination_node(byte[] a);
+ // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
+ public static native long Destination_blinded_path(long a);
+ // void SendError_free(struct LDKSendError this_ptr);
+ public static native void SendError_free(long this_ptr);
+ // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
+ public static native long SendError_clone_ptr(long arg);
+ // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
+ public static native long SendError_clone(long orig);
+ // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
+ public static native long SendError_secp256k1(Secp256k1Error a);
+ // struct LDKSendError SendError_too_big_packet(void);
+ public static native long SendError_too_big_packet();
+ // struct LDKSendError SendError_too_few_blinded_hops(void);
+ public static native long SendError_too_few_blinded_hops();
+ // struct LDKSendError SendError_invalid_first_hop(void);
+ public static native long SendError_invalid_first_hop();
+ // struct LDKSendError SendError_invalid_message(void);
+ public static native long SendError_invalid_message();
+ // struct LDKSendError SendError_buffer_full(void);
+ public static native long SendError_buffer_full();
+ // struct LDKSendError SendError_get_node_id_failed(void);
+ public static native long SendError_get_node_id_failed();
+ // struct LDKSendError SendError_blinded_path_advance_failed(void);
+ public static native long SendError_blinded_path_advance_failed();
+ // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
+ public static native boolean SendError_eq(long a, long b);
+ // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
+ public static native void CustomOnionMessageHandler_free(long this_ptr);
+ // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
+ public static native long OnionMessenger_new(long entropy_source, long node_signer, long logger, long custom_handler);
+ // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKCVec_PublicKeyZ intermediate_nodes, struct LDKDestination destination, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path);
+ public static native long OnionMessenger_send_onion_message(long this_arg, byte[][] intermediate_nodes, long destination, long message, long reply_path);
+ // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
+ public static native long OnionMessenger_as_OnionMessageHandler(long this_arg);
+ // struct LDKOnionMessageProvider OnionMessenger_as_OnionMessageProvider(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
+ public static native long OnionMessenger_as_OnionMessageProvider(long this_arg);
+ // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
+ public static native void OnionMessageContents_free(long this_ptr);
+ // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
+ public static native long OnionMessageContents_clone_ptr(long arg);
+ // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
+ public static native long OnionMessageContents_clone(long orig);
+ // struct LDKOnionMessageContents OnionMessageContents_custom(struct LDKCustomOnionMessageContents a);
+ public static native long OnionMessageContents_custom(long a);
+ // uint64_t CustomOnionMessageContents_clone_ptr(LDKCustomOnionMessageContents *NONNULL_PTR arg);
+ public static native long CustomOnionMessageContents_clone_ptr(long arg);
+ // struct LDKCustomOnionMessageContents CustomOnionMessageContents_clone(const struct LDKCustomOnionMessageContents *NONNULL_PTR orig);
+ public static native long CustomOnionMessageContents_clone(long orig);
+ // void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_ptr);
+ public static native void CustomOnionMessageContents_free(long this_ptr);
+ // void BlindedPath_free(struct LDKBlindedPath this_obj);
+ public static native void BlindedPath_free(long this_obj);
+ // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
+ public static native long BlindedPath_clone_ptr(long arg);
+ // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
+ public static native long BlindedPath_clone(long orig);
+ // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
+ public static native long BlindedPath_hash(long o);
+ // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
+ public static native boolean BlindedPath_eq(long a, long b);
+ // void BlindedHop_free(struct LDKBlindedHop this_obj);
+ public static native void BlindedHop_free(long this_obj);
+ // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
+ public static native long BlindedHop_clone_ptr(long arg);
+ // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
+ public static native long BlindedHop_clone(long orig);
+ // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
+ public static native long BlindedHop_hash(long o);
+ // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
+ public static native boolean BlindedHop_eq(long a, long b);
+ // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
+ public static native long BlindedPath_new_for_message(byte[][] node_pks, long entropy_source);
+ // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
+ public static native byte[] BlindedPath_write(long obj);
+ // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
+ public static native long BlindedPath_read(byte[] ser);
+ // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
+ public static native byte[] BlindedHop_write(long obj);
+ // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
+ public static native long BlindedHop_read(byte[] ser);
+ // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
+ public static native void PaymentPurpose_free(long this_ptr);
+ // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
+ public static native long PaymentPurpose_clone_ptr(long arg);
+ // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
+ public static native long PaymentPurpose_clone(long orig);
+ // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
+ public static native long PaymentPurpose_invoice_payment(byte[] payment_preimage, byte[] payment_secret);
+ // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
+ public static native long PaymentPurpose_spontaneous_payment(byte[] a);
+ // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
+ public static native boolean PaymentPurpose_eq(long a, long b);
+ // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
+ public static native byte[] PaymentPurpose_write(long obj);
+ // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
+ public static native long PaymentPurpose_read(byte[] ser);
+ // void PathFailure_free(struct LDKPathFailure this_ptr);
+ public static native void PathFailure_free(long this_ptr);
+ // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
+ public static native long PathFailure_clone_ptr(long arg);
+ // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
+ public static native long PathFailure_clone(long orig);
+ // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
+ public static native long PathFailure_initial_send(long err);
+ // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
+ public static native long PathFailure_on_path(long network_update);
+ // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
+ public static native boolean PathFailure_eq(long a, long b);
+ // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
+ public static native byte[] PathFailure_write(long obj);
+ // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
+ public static native long PathFailure_read(byte[] ser);
+ // void ClosureReason_free(struct LDKClosureReason this_ptr);
+ public static native void ClosureReason_free(long this_ptr);
+ // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
+ public static native long ClosureReason_clone_ptr(long arg);
+ // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
+ public static native long ClosureReason_clone(long orig);
+ // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
+ public static native long ClosureReason_counterparty_force_closed(long peer_msg);
+ // struct LDKClosureReason ClosureReason_holder_force_closed(void);
+ public static native long ClosureReason_holder_force_closed();
+ // struct LDKClosureReason ClosureReason_cooperative_closure(void);
+ public static native long ClosureReason_cooperative_closure();
+ // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
+ public static native long ClosureReason_commitment_tx_confirmed();
+ // struct LDKClosureReason ClosureReason_funding_timed_out(void);
+ public static native long ClosureReason_funding_timed_out();
+ // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
+ public static native long ClosureReason_processing_error(String err);
+ // struct LDKClosureReason ClosureReason_disconnected_peer(void);
+ public static native long ClosureReason_disconnected_peer();
+ // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
+ public static native long ClosureReason_outdated_channel_manager();
+ // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
+ public static native boolean ClosureReason_eq(long a, long b);
+ // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
+ public static native byte[] ClosureReason_write(long obj);
+ // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
+ public static native long ClosureReason_read(byte[] ser);
+ // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
+ public static native void HTLCDestination_free(long this_ptr);
+ // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
+ public static native long HTLCDestination_clone_ptr(long arg);
+ // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
+ public static native long HTLCDestination_clone(long orig);
+ // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
+ public static native long HTLCDestination_next_hop_channel(byte[] node_id, byte[] channel_id);
+ // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
+ public static native long HTLCDestination_unknown_next_hop(long requested_forward_scid);
+ // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
+ public static native long HTLCDestination_invalid_forward(long requested_forward_scid);
+ // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
+ public static native long HTLCDestination_failed_payment(byte[] payment_hash);
+ // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
+ public static native boolean HTLCDestination_eq(long a, long b);
+ // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
+ public static native byte[] HTLCDestination_write(long obj);
+ // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
+ public static native long HTLCDestination_read(byte[] ser);
+ // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
+ public static native PaymentFailureReason PaymentFailureReason_clone(long orig);
+ // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
+ public static native PaymentFailureReason PaymentFailureReason_recipient_rejected();
+ // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
+ public static native PaymentFailureReason PaymentFailureReason_user_abandoned();
+ // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
+ public static native PaymentFailureReason PaymentFailureReason_retries_exhausted();
+ // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
+ public static native PaymentFailureReason PaymentFailureReason_payment_expired();
+ // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
+ public static native PaymentFailureReason PaymentFailureReason_route_not_found();
+ // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
+ public static native PaymentFailureReason PaymentFailureReason_unexpected_error();
+ // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
+ public static native boolean PaymentFailureReason_eq(long a, long b);
+ // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
+ public static native byte[] PaymentFailureReason_write(long obj);
+ // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
+ public static native long PaymentFailureReason_read(byte[] ser);
+ // void Event_free(struct LDKEvent this_ptr);
+ public static native void Event_free(long this_ptr);
+ // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
+ public static native long Event_clone_ptr(long arg);
+ // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
+ public static native long Event_clone(long orig);
+ // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id);
+ public static native long Event_funding_generation_ready(byte[] temporary_channel_id, byte[] counterparty_node_id, long channel_value_satoshis, byte[] output_script, byte[] user_channel_id);
+ // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
+ public static native long Event_payment_claimable(byte[] receiver_node_id, byte[] payment_hash, long onion_fields, long amount_msat, long purpose, byte[] via_channel_id, long via_user_channel_id, long claim_deadline);
+ // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
+ public static native long Event_payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, long purpose);
+ // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
+ public static native long Event_payment_sent(byte[] payment_id, byte[] payment_preimage, byte[] payment_hash, long fee_paid_msat);
+ // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
+ public static native long Event_payment_failed(byte[] payment_id, byte[] payment_hash, long reason);
+ // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
+ public static native long Event_payment_path_successful(byte[] payment_id, byte[] payment_hash, long path);
+ // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
+ public static native long Event_payment_path_failed(byte[] payment_id, byte[] payment_hash, boolean payment_failed_permanently, long failure, long path, long short_channel_id);
+ // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
+ public static native long Event_probe_successful(byte[] payment_id, byte[] payment_hash, long path);
+ // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
+ public static native long Event_probe_failed(byte[] payment_id, byte[] payment_hash, long path, long short_channel_id);
+ // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
+ public static native long Event_pending_htlcs_forwardable(long time_forwardable);
+ // struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uint64_t requested_next_hop_scid, struct LDKThirtyTwoBytes payment_hash, uint64_t inbound_amount_msat, uint64_t expected_outbound_amount_msat);
+ public static native long Event_htlcintercepted(byte[] intercept_id, long requested_next_hop_scid, byte[] payment_hash, long inbound_amount_msat, long expected_outbound_amount_msat);
+ // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
+ public static native long Event_spendable_outputs(long[] outputs);
+ // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
+ public static native long Event_payment_forwarded(byte[] prev_channel_id, byte[] next_channel_id, long fee_earned_msat, boolean claim_from_onchain_tx, long outbound_amount_forwarded_msat);
+ // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKThirtyTwoBytes former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo);
+ public static native long Event_channel_pending(byte[] channel_id, byte[] user_channel_id, byte[] former_temporary_channel_id, byte[] counterparty_node_id, long funding_txo);
+ // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
+ public static native long Event_channel_ready(byte[] channel_id, byte[] user_channel_id, byte[] counterparty_node_id, long channel_type);
+ // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason);
+ public static native long Event_channel_closed(byte[] channel_id, byte[] user_channel_id, long reason);
+ // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
+ public static native long Event_discard_funding(byte[] channel_id, byte[] transaction);
+ // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type);
+ public static native long Event_open_channel_request(byte[] temporary_channel_id, byte[] counterparty_node_id, long funding_satoshis, long push_msat, long channel_type);
+ // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
+ public static native long Event_htlchandling_failed(byte[] prev_channel_id, long failed_next_destination);
+ // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
+ public static native boolean Event_eq(long a, long b);
+ // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
+ public static native byte[] Event_write(long obj);
+ // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
+ public static native long Event_read(byte[] ser);
+ // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
+ public static native void MessageSendEvent_free(long this_ptr);
+ // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
+ public static native long MessageSendEvent_clone_ptr(long arg);
+ // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
+ public static native long MessageSendEvent_clone(long orig);
+ // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
+ public static native long MessageSendEvent_send_accept_channel(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
+ public static native long MessageSendEvent_send_open_channel(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
+ public static native long MessageSendEvent_send_funding_created(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
+ public static native long MessageSendEvent_send_funding_signed(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
+ public static native long MessageSendEvent_send_channel_ready(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
+ public static native long MessageSendEvent_send_announcement_signatures(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
+ public static native long MessageSendEvent_update_htlcs(byte[] node_id, long updates);
+ // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
+ public static native long MessageSendEvent_send_revoke_and_ack(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
+ public static native long MessageSendEvent_send_closing_signed(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
+ public static native long MessageSendEvent_send_shutdown(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
+ public static native long MessageSendEvent_send_channel_reestablish(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
+ public static native long MessageSendEvent_send_channel_announcement(byte[] node_id, long msg, long update_msg);
+ // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
+ public static native long MessageSendEvent_broadcast_channel_announcement(long msg, long update_msg);
+ // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
+ public static native long MessageSendEvent_broadcast_channel_update(long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
+ public static native long MessageSendEvent_broadcast_node_announcement(long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
+ public static native long MessageSendEvent_send_channel_update(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
+ public static native long MessageSendEvent_handle_error(byte[] node_id, long action);
+ // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
+ public static native long MessageSendEvent_send_channel_range_query(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
+ public static native long MessageSendEvent_send_short_ids_query(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
+ public static native long MessageSendEvent_send_reply_channel_range(byte[] node_id, long msg);
+ // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
+ public static native long MessageSendEvent_send_gossip_timestamp_filter(byte[] node_id, long msg);
+ // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
+ public static native void MessageSendEventsProvider_free(long this_ptr);
+ // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
+ public static native void OnionMessageProvider_free(long this_ptr);
+ // void EventsProvider_free(struct LDKEventsProvider this_ptr);
+ public static native void EventsProvider_free(long this_ptr);
+ // void EventHandler_free(struct LDKEventHandler this_ptr);
+ public static native void EventHandler_free(long this_ptr);
+ // void FilesystemPersister_free(struct LDKFilesystemPersister this_obj);
+ public static native void FilesystemPersister_free(long this_obj);
+ // MUST_USE_RES struct LDKFilesystemPersister FilesystemPersister_new(struct LDKStr path_to_channel_data);
+ public static native long FilesystemPersister_new(String path_to_channel_data);
+ // MUST_USE_RES struct LDKStr FilesystemPersister_get_data_dir(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
+ public static native String FilesystemPersister_get_data_dir(long this_arg);
+ // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKEntropySource entropy_source, const struct LDKSignerProvider *NONNULL_PTR signer_provider);
+ public static native long FilesystemPersister_read_channelmonitors(long this_arg, long entropy_source, long signer_provider);
+ // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
+ public static native void BackgroundProcessor_free(long this_obj);
+ // void GossipSync_free(struct LDKGossipSync this_ptr);
+ public static native void GossipSync_free(long this_ptr);
+ // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
+ public static native long GossipSync_p2_p(long a);
+ // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
+ public static native long GossipSync_rapid(long a);
+ // struct LDKGossipSync GossipSync_none(void);
+ public static native long GossipSync_none();
+ // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, struct LDKGossipSync gossip_sync, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger, struct LDKCOption_WriteableScoreZ scorer);
+ public static native long BackgroundProcessor_start(long persister, long event_handler, long chain_monitor, long channel_manager, long gossip_sync, long peer_manager, long logger, long scorer);
+ // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_join(struct LDKBackgroundProcessor this_arg);
+ public static native long BackgroundProcessor_join(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneErrorZ BackgroundProcessor_stop(struct LDKBackgroundProcessor this_arg);
+ public static native long BackgroundProcessor_stop(long this_arg);
+ // void ParseError_free(struct LDKParseError this_ptr);
+ public static native void ParseError_free(long this_ptr);
+ // uint64_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
+ public static native long ParseError_clone_ptr(long arg);
+ // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
+ public static native long ParseError_clone(long orig);
+ // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
+ public static native long ParseError_bech32_error(long a);
+ // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
+ public static native long ParseError_parse_amount_error(int a);
+ // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
+ public static native long ParseError_malformed_signature(Secp256k1Error a);
+ // struct LDKParseError ParseError_bad_prefix(void);
+ public static native long ParseError_bad_prefix();
+ // struct LDKParseError ParseError_unknown_currency(void);
+ public static native long ParseError_unknown_currency();
+ // struct LDKParseError ParseError_unknown_si_prefix(void);
+ public static native long ParseError_unknown_si_prefix();
+ // struct LDKParseError ParseError_malformed_hrp(void);
+ public static native long ParseError_malformed_hrp();
+ // struct LDKParseError ParseError_too_short_data_part(void);
+ public static native long ParseError_too_short_data_part();
+ // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
+ public static native long ParseError_unexpected_end_of_tagged_fields();
+ // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
+ public static native long ParseError_description_decode_error(int a);
+ // struct LDKParseError ParseError_padding_error(void);
+ public static native long ParseError_padding_error();
+ // struct LDKParseError ParseError_integer_overflow_error(void);
+ public static native long ParseError_integer_overflow_error();
+ // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
+ public static native long ParseError_invalid_seg_wit_program_length();
+ // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
+ public static native long ParseError_invalid_pub_key_hash_length();
+ // struct LDKParseError ParseError_invalid_script_hash_length(void);
+ public static native long ParseError_invalid_script_hash_length();
+ // struct LDKParseError ParseError_invalid_recovery_id(void);
+ public static native long ParseError_invalid_recovery_id();
+ // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
+ public static native long ParseError_invalid_slice_length(String a);
+ // struct LDKParseError ParseError_skip(void);
+ public static native long ParseError_skip();
+ // bool ParseError_eq(const struct LDKParseError *NONNULL_PTR a, const struct LDKParseError *NONNULL_PTR b);
+ public static native boolean ParseError_eq(long a, long b);
+ // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
+ public static native void ParseOrSemanticError_free(long this_ptr);
+ // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
+ public static native long ParseOrSemanticError_clone_ptr(long arg);
+ // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
+ public static native long ParseOrSemanticError_clone(long orig);
+ // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
+ public static native long ParseOrSemanticError_parse_error(long a);
+ // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
+ public static native long ParseOrSemanticError_semantic_error(SemanticError a);
+ // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
+ public static native boolean ParseOrSemanticError_eq(long a, long b);
+ // void Invoice_free(struct LDKInvoice this_obj);
+ public static native void Invoice_free(long this_obj);
+ // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
+ public static native boolean Invoice_eq(long a, long b);
+ // uint64_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
+ public static native long Invoice_clone_ptr(long arg);
+ // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
+ public static native long Invoice_clone(long orig);
+ // uint64_t Invoice_hash(const struct LDKInvoice *NONNULL_PTR o);
+ public static native long Invoice_hash(long o);
+ // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
+ public static native void SignedRawInvoice_free(long this_obj);
+ // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
+ public static native boolean SignedRawInvoice_eq(long a, long b);
+ // uint64_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
+ public static native long SignedRawInvoice_clone_ptr(long arg);
+ // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
+ public static native long SignedRawInvoice_clone(long orig);
+ // uint64_t SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR o);
+ public static native long SignedRawInvoice_hash(long o);
+ // void RawInvoice_free(struct LDKRawInvoice this_obj);
+ public static native void RawInvoice_free(long this_obj);
+ // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
+ public static native long RawInvoice_get_data(long this_ptr);
+ // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
+ public static native void RawInvoice_set_data(long this_ptr, long val);
+ // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
+ public static native boolean RawInvoice_eq(long a, long b);
+ // uint64_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
+ public static native long RawInvoice_clone_ptr(long arg);
+ // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
+ public static native long RawInvoice_clone(long orig);
+ // uint64_t RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR o);
+ public static native long RawInvoice_hash(long o);
+ // void RawDataPart_free(struct LDKRawDataPart this_obj);
+ public static native void RawDataPart_free(long this_obj);
+ // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
+ public static native long RawDataPart_get_timestamp(long this_ptr);
+ // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
+ public static native void RawDataPart_set_timestamp(long this_ptr, long val);
+ // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
+ public static native boolean RawDataPart_eq(long a, long b);
+ // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
+ public static native long RawDataPart_clone_ptr(long arg);
+ // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
+ public static native long RawDataPart_clone(long orig);
+ // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
+ public static native long RawDataPart_hash(long o);
+ // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
+ public static native void PositiveTimestamp_free(long this_obj);
+ // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
+ public static native boolean PositiveTimestamp_eq(long a, long b);
+ // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
+ public static native long PositiveTimestamp_clone_ptr(long arg);
+ // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
+ public static native long PositiveTimestamp_clone(long orig);
+ // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
+ public static native long PositiveTimestamp_hash(long o);
+ // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
+ public static native SiPrefix SiPrefix_clone(long orig);
+ // enum LDKSiPrefix SiPrefix_milli(void);
+ public static native SiPrefix SiPrefix_milli();
+ // enum LDKSiPrefix SiPrefix_micro(void);
+ public static native SiPrefix SiPrefix_micro();
+ // enum LDKSiPrefix SiPrefix_nano(void);
+ public static native SiPrefix SiPrefix_nano();
+ // enum LDKSiPrefix SiPrefix_pico(void);
+ public static native SiPrefix SiPrefix_pico();
+ // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
+ public static native boolean SiPrefix_eq(long a, long b);
+ // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
+ public static native long SiPrefix_hash(long o);
+ // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
+ public static native long SiPrefix_multiplier(long this_arg);
+ // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
+ public static native Currency Currency_clone(long orig);
+ // enum LDKCurrency Currency_bitcoin(void);
+ public static native Currency Currency_bitcoin();
+ // enum LDKCurrency Currency_bitcoin_testnet(void);
+ public static native Currency Currency_bitcoin_testnet();
+ // enum LDKCurrency Currency_regtest(void);
+ public static native Currency Currency_regtest();
+ // enum LDKCurrency Currency_simnet(void);
+ public static native Currency Currency_simnet();
+ // enum LDKCurrency Currency_signet(void);
+ public static native Currency Currency_signet();
+ // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
+ public static native long Currency_hash(long o);
+ // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
+ public static native boolean Currency_eq(long a, long b);
+ // void Sha256_free(struct LDKSha256 this_obj);
+ public static native void Sha256_free(long this_obj);
+ // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
+ public static native long Sha256_clone_ptr(long arg);
+ // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
+ public static native long Sha256_clone(long orig);
+ // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
+ public static native long Sha256_hash(long o);
+ // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
+ public static native boolean Sha256_eq(long a, long b);
+ // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
+ public static native long Sha256_from_bytes(byte[] bytes);
+ // void Description_free(struct LDKDescription this_obj);
+ public static native void Description_free(long this_obj);
+ // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
+ public static native long Description_clone_ptr(long arg);
+ // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
+ public static native long Description_clone(long orig);
+ // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
+ public static native long Description_hash(long o);
+ // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
+ public static native boolean Description_eq(long a, long b);
+ // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
+ public static native void PayeePubKey_free(long this_obj);
+ // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
+ public static native byte[] PayeePubKey_get_a(long this_ptr);
+ // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void PayeePubKey_set_a(long this_ptr, byte[] val);
+ // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
+ public static native long PayeePubKey_new(byte[] a_arg);
+ // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
+ public static native long PayeePubKey_clone_ptr(long arg);
+ // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
+ public static native long PayeePubKey_clone(long orig);
+ // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
+ public static native long PayeePubKey_hash(long o);
+ // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
+ public static native boolean PayeePubKey_eq(long a, long b);
+ // void ExpiryTime_free(struct LDKExpiryTime this_obj);
+ public static native void ExpiryTime_free(long this_obj);
+ // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
+ public static native long ExpiryTime_clone_ptr(long arg);
+ // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
+ public static native long ExpiryTime_clone(long orig);
+ // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
+ public static native long ExpiryTime_hash(long o);
+ // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
+ public static native boolean ExpiryTime_eq(long a, long b);
+ // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
+ public static native void MinFinalCltvExpiryDelta_free(long this_obj);
+ // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
+ public static native long MinFinalCltvExpiryDelta_get_a(long this_ptr);
+ // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void MinFinalCltvExpiryDelta_set_a(long this_ptr, long val);
+ // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
+ public static native long MinFinalCltvExpiryDelta_new(long a_arg);
+ // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
+ public static native long MinFinalCltvExpiryDelta_clone_ptr(long arg);
+ // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
+ public static native long MinFinalCltvExpiryDelta_clone(long orig);
+ // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
+ public static native long MinFinalCltvExpiryDelta_hash(long o);
+ // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
+ public static native boolean MinFinalCltvExpiryDelta_eq(long a, long b);
+ // void Fallback_free(struct LDKFallback this_ptr);
+ public static native void Fallback_free(long this_ptr);
+ // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
+ public static native long Fallback_clone_ptr(long arg);
+ // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
+ public static native long Fallback_clone(long orig);
+ // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
+ public static native long Fallback_seg_wit_program(byte version, byte[] program);
+ // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
+ public static native long Fallback_pub_key_hash(byte[] a);
+ // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
+ public static native long Fallback_script_hash(byte[] a);
+ // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
+ public static native long Fallback_hash(long o);
+ // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
+ public static native boolean Fallback_eq(long a, long b);
+ // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
+ public static native void InvoiceSignature_free(long this_obj);
+ // uint64_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
+ public static native long InvoiceSignature_clone_ptr(long arg);
+ // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
+ public static native long InvoiceSignature_clone(long orig);
+ // uint64_t InvoiceSignature_hash(const struct LDKInvoiceSignature *NONNULL_PTR o);
+ public static native long InvoiceSignature_hash(long o);
+ // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
+ public static native boolean InvoiceSignature_eq(long a, long b);
+ // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
+ public static native void PrivateRoute_free(long this_obj);
+ // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
+ public static native long PrivateRoute_clone_ptr(long arg);
+ // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
+ public static native long PrivateRoute_clone(long orig);
+ // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
+ public static native long PrivateRoute_hash(long o);
+ // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
+ public static native boolean PrivateRoute_eq(long a, long b);
+ // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
+ public static native long SignedRawInvoice_into_parts(long this_arg);
+ // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_raw_invoice(long this_arg);
+ // MUST_USE_RES const uint8_t (*SignedRawInvoice_signable_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] SignedRawInvoice_signable_hash(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_signature(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native long SignedRawInvoice_recover_payee_pub_key(long this_arg);
+ // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
+ public static native boolean SignedRawInvoice_check_signature(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_signable_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native byte[] RawInvoice_signable_hash(long this_arg);
+ // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_payment_hash(long this_arg);
+ // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_description(long this_arg);
+ // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_payee_pub_key(long this_arg);
+ // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_description_hash(long this_arg);
+ // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_expiry_time(long this_arg);
+ // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawInvoice_min_final_cltv_expiry_delta(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_min_final_cltv_expiry_delta(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native byte[] RawInvoice_payment_secret(long this_arg);
+ // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawInvoice_payment_metadata(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_payment_metadata(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_features(long this_arg);
+ // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long[] RawInvoice_private_routes(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_amount_pico_btc(long this_arg);
+ // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native Currency RawInvoice_currency(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
+ public static native long PositiveTimestamp_from_unix_timestamp(long unix_seconds);
+ // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_system_time(uint64_t time);
+ public static native long PositiveTimestamp_from_system_time(long time);
+ // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
+ public static native long PositiveTimestamp_from_duration_since_epoch(long duration);
+ // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
+ public static native long PositiveTimestamp_as_unix_timestamp(long this_arg);
+ // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
+ public static native long PositiveTimestamp_as_duration_since_epoch(long this_arg);
+ // MUST_USE_RES uint64_t PositiveTimestamp_as_time(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
+ public static native long PositiveTimestamp_as_time(long this_arg);
+ // MUST_USE_RES struct LDKThirtyTwoBytes Invoice_signable_hash(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_signable_hash(long this_arg);
+ // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
+ public static native long Invoice_into_signed_raw(long this_arg);
+ // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_check_signature(long this_arg);
+ // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
+ public static native long Invoice_from_signed(long signed_invoice);
+ // MUST_USE_RES uint64_t Invoice_timestamp(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_timestamp(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_duration_since_epoch(long this_arg);
+ // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] Invoice_payment_hash(long this_arg);
+ // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_payee_pub_key(long this_arg);
+ // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] Invoice_payment_secret(long this_arg);
+ // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Invoice_payment_metadata(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_payment_metadata(long this_arg);
+ // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_features(long this_arg);
+ // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native byte[] Invoice_recover_payee_pub_key(long this_arg);
+ // MUST_USE_RES struct LDKCOption_DurationZ Invoice_expires_at(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_expires_at(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_expiry_time(long this_arg);
+ // MUST_USE_RES bool Invoice_is_expired(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native boolean Invoice_is_expired(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_duration_until_expiry(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_duration_until_expiry(long this_arg);
+ // MUST_USE_RES uint64_t Invoice_expiration_remaining_from_epoch(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t time);
+ public static native long Invoice_expiration_remaining_from_epoch(long this_arg, long time);
+ // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
+ public static native boolean Invoice_would_expire(long this_arg, long at_time);
+ // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry_delta(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_min_final_cltv_expiry_delta(long this_arg);
+ // MUST_USE_RES struct LDKCVec_AddressZ Invoice_fallback_addresses(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native String[] Invoice_fallback_addresses(long this_arg);
+ // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long[] Invoice_private_routes(long this_arg);
+ // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long[] Invoice_route_hints(long this_arg);
+ // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native Currency Invoice_currency(long this_arg);
+ // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_amount_milli_satoshis(long this_arg);
+ // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
+ public static native long Description_new(String description);
+ // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
+ public static native String Description_into_inner(long this_arg);
+ // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
+ public static native long ExpiryTime_from_seconds(long seconds);
+ // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
+ public static native long ExpiryTime_from_duration(long duration);
+ // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
+ public static native long ExpiryTime_as_seconds(long this_arg);
+ // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
+ public static native long ExpiryTime_as_duration(long this_arg);
+ // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
+ public static native long PrivateRoute_new(long hops);
+ // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
+ public static native long PrivateRoute_into_inner(long this_arg);
+ // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
+ public static native CreationError CreationError_clone(long orig);
+ // enum LDKCreationError CreationError_description_too_long(void);
+ public static native CreationError CreationError_description_too_long();
+ // enum LDKCreationError CreationError_route_too_long(void);
+ public static native CreationError CreationError_route_too_long();
+ // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
+ public static native CreationError CreationError_timestamp_out_of_bounds();
+ // enum LDKCreationError CreationError_invalid_amount(void);
+ public static native CreationError CreationError_invalid_amount();
+ // enum LDKCreationError CreationError_missing_route_hints(void);
+ public static native CreationError CreationError_missing_route_hints();
+ // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
+ public static native CreationError CreationError_min_final_cltv_expiry_delta_too_short();
+ // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
+ public static native boolean CreationError_eq(long a, long b);
+ // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
+ public static native String CreationError_to_str(long o);
+ // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
+ public static native SemanticError SemanticError_clone(long orig);
+ // enum LDKSemanticError SemanticError_no_payment_hash(void);
+ public static native SemanticError SemanticError_no_payment_hash();
+ // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
+ public static native SemanticError SemanticError_multiple_payment_hashes();
+ // enum LDKSemanticError SemanticError_no_description(void);
+ public static native SemanticError SemanticError_no_description();
+ // enum LDKSemanticError SemanticError_multiple_descriptions(void);
+ public static native SemanticError SemanticError_multiple_descriptions();
+ // enum LDKSemanticError SemanticError_no_payment_secret(void);
+ public static native SemanticError SemanticError_no_payment_secret();
+ // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
+ public static native SemanticError SemanticError_multiple_payment_secrets();
+ // enum LDKSemanticError SemanticError_invalid_features(void);
+ public static native SemanticError SemanticError_invalid_features();
+ // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
+ public static native SemanticError SemanticError_invalid_recovery_id();
+ // enum LDKSemanticError SemanticError_invalid_signature(void);
+ public static native SemanticError SemanticError_invalid_signature();
+ // enum LDKSemanticError SemanticError_imprecise_amount(void);
+ public static native SemanticError SemanticError_imprecise_amount();
+ // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
+ public static native boolean SemanticError_eq(long a, long b);
+ // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
+ public static native String SemanticError_to_str(long o);
+ // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
+ public static native void SignOrCreationError_free(long this_ptr);
+ // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
+ public static native long SignOrCreationError_clone_ptr(long arg);
+ // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
+ public static native long SignOrCreationError_clone(long orig);
+ // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
+ public static native long SignOrCreationError_sign_error();
+ // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
+ public static native long SignOrCreationError_creation_error(CreationError a);
+ // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
+ public static native boolean SignOrCreationError_eq(long a, long b);
+ // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
+ public static native String SignOrCreationError_to_str(long o);
+ // struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
+ public static native long pay_invoice(long invoice, long retry_strategy, long channelmanager);
+ // struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
+ public static native long pay_invoice_with_id(long invoice, byte[] payment_id, long retry_strategy, long channelmanager);
+ // struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
+ public static native long pay_zero_value_invoice(long invoice, long amount_msats, long retry_strategy, long channelmanager);
+ // struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
+ public static native long pay_zero_value_invoice_with_id(long invoice, long amount_msats, byte[] payment_id, long retry_strategy, long channelmanager);
+ // void PaymentError_free(struct LDKPaymentError this_ptr);
+ public static native void PaymentError_free(long this_ptr);
+ // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
+ public static native long PaymentError_clone_ptr(long arg);
+ // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
+ public static native long PaymentError_clone(long orig);
+ // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
+ public static native long PaymentError_invoice(String a);
+ // struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a);
+ public static native long PaymentError_sending(RetryableSendFailure a);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
+ public static native long create_phantom_invoice(long amt_msat, byte[] payment_hash, String description, int invoice_expiry_delta_secs, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
+ public static native long create_phantom_invoice_with_description_hash(long amt_msat, byte[] payment_hash, int invoice_expiry_delta_secs, long description_hash, long[] phantom_route_hints, long entropy_source, long node_signer, long logger, Currency network, long min_final_cltv_expiry_delta, long duration_since_epoch);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
+ public static native long create_invoice_from_channelmanager(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
+ public static native long create_invoice_from_channelmanager_with_description_hash(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, long description_hash, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
+ public static native long create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, long description_hash, long duration_since_epoch, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
+ public static native long create_invoice_from_channelmanager_and_duration_since_epoch(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, long duration_since_epoch, int invoice_expiry_delta_secs, long min_final_cltv_expiry_delta);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
+ public static native long create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(long channelmanager, long node_signer, long logger, Currency network, long amt_msat, String description, long duration_since_epoch, int invoice_expiry_delta_secs, byte[] payment_hash, long min_final_cltv_expiry_delta);
+ // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
+ public static native long SiPrefix_from_str(String s);
+ // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
+ public static native long Invoice_from_str(String s);
+ // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
+ public static native long SignedRawInvoice_from_str(String s);
+ // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
+ public static native String ParseError_to_str(long o);
+ // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
+ public static native String ParseOrSemanticError_to_str(long o);
+ // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
+ public static native String Invoice_to_str(long o);
+ // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
+ public static native String SignedRawInvoice_to_str(long o);
+ // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
+ public static native String Currency_to_str(long o);
+ // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
+ public static native String SiPrefix_to_str(long o);
+ // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
+ public static native void RapidGossipSync_free(long this_obj);
+ // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
+ public static native long RapidGossipSync_new(long network_graph, long logger);
+ // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph_no_std(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data, struct LDKCOption_u64Z current_time_unix);
+ public static native long RapidGossipSync_update_network_graph_no_std(long this_arg, byte[] update_data, long current_time_unix);
+ // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
+ public static native boolean RapidGossipSync_is_initial_sync_complete(long this_arg);
+ // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
+ public static native void GraphSyncError_free(long this_ptr);
+ // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
+ public static native long GraphSyncError_clone_ptr(long arg);
+ // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
+ public static native long GraphSyncError_clone(long orig);
+ // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
+ public static native long GraphSyncError_decode_error(long a);
+ // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
+ public static native long GraphSyncError_lightning_error(long a);