+ // void NetworkGraph_fail_node(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey _node_id, bool is_permanent);
+ public static native void NetworkGraph_fail_node(long this_arg, byte[] _node_id, boolean is_permanent);
+ // void NetworkGraph_remove_stale_channels(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
+ public static native void NetworkGraph_remove_stale_channels(long this_arg);
+ // void NetworkGraph_remove_stale_channels_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
+ public static native void NetworkGraph_remove_stale_channels_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 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 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);
+ // uintptr_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 Route_free(struct LDKRoute this_obj);
+ public static native void Route_free(long this_obj);
+ // struct LDKCVec_CVec_RouteHopZZ 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_CVec_RouteHopZZ 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_CVec_RouteHopZZ paths_arg, struct LDKPaymentParameters payment_params_arg);
+ public static native long Route_new(long[][] paths_arg, long payment_params_arg);
+ // uintptr_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);
+ // uint32_t RouteParameters_get_final_cltv_expiry_delta(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
+ public static native int RouteParameters_get_final_cltv_expiry_delta(long this_ptr);
+ // void RouteParameters_set_final_cltv_expiry_delta(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint32_t val);
+ public static native void RouteParameters_set_final_cltv_expiry_delta(long this_ptr, int val);
+ // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg, uint32_t final_cltv_expiry_delta_arg);
+ public static native long RouteParameters_new(long payment_params_arg, long final_value_msat_arg, int final_cltv_expiry_delta_arg);
+ // uintptr_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);
+ // 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 LDKCVec_RouteHintZ 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 LDKCVec_RouteHintZ 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);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_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);
+ // uintptr_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);
+ public static native long PaymentParameters_read(byte[] ser);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey);
+ public static native long PaymentParameters_from_node_id(byte[] payee_pubkey);
+ // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey);
+ public static native long PaymentParameters_for_keysend(byte[] payee_pubkey);
+ // 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);
+ // uintptr_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);
+ // uintptr_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, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer);
+ public static native long find_route(byte[] our_node_pubkey, long route_params, long network, long[] first_hops, long logger, long scorer);
+ // 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 MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
+ public static native void MultiThreadedLockableScore_free(long this_obj);
+ // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
+ public static native long MultiThreadedLockableScore_new(long score);
+ // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
+ public static native void FixedPenaltyScorer_free(long this_obj);
+ // uintptr_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);
+ // 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);
+ public static native long FixedPenaltyScorer_read(byte[] ser);
+ // 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);
+ // void Scorer_free(struct LDKScorer this_obj);
+ public static native void Scorer_free(long this_obj);
+ // void ScoringParameters_free(struct LDKScoringParameters this_obj);
+ public static native void ScoringParameters_free(long this_obj);
+ // uint64_t ScoringParameters_get_base_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ScoringParameters_get_base_penalty_msat(long this_ptr);
+ // void ScoringParameters_set_base_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ScoringParameters_set_base_penalty_msat(long this_ptr, long val);
+ // uint64_t ScoringParameters_get_failure_penalty_msat(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ScoringParameters_get_failure_penalty_msat(long this_ptr);
+ // void ScoringParameters_set_failure_penalty_msat(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ScoringParameters_set_failure_penalty_msat(long this_ptr, long val);
+ // uint16_t ScoringParameters_get_overuse_penalty_start_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
+ public static native short ScoringParameters_get_overuse_penalty_start_1024th(long this_ptr);
+ // void ScoringParameters_set_overuse_penalty_start_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint16_t val);
+ public static native void ScoringParameters_set_overuse_penalty_start_1024th(long this_ptr, short val);
+ // uint64_t ScoringParameters_get_overuse_penalty_msat_per_1024th(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ScoringParameters_get_overuse_penalty_msat_per_1024th(long this_ptr);
+ // void ScoringParameters_set_overuse_penalty_msat_per_1024th(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ScoringParameters_set_overuse_penalty_msat_per_1024th(long this_ptr, long val);
+ // uint64_t ScoringParameters_get_failure_penalty_half_life(const struct LDKScoringParameters *NONNULL_PTR this_ptr);
+ public static native long ScoringParameters_get_failure_penalty_half_life(long this_ptr);
+ // void ScoringParameters_set_failure_penalty_half_life(struct LDKScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void ScoringParameters_set_failure_penalty_half_life(long this_ptr, long val);
+ // MUST_USE_RES struct LDKScoringParameters ScoringParameters_new(uint64_t base_penalty_msat_arg, uint64_t failure_penalty_msat_arg, uint16_t overuse_penalty_start_1024th_arg, uint64_t overuse_penalty_msat_per_1024th_arg, uint64_t failure_penalty_half_life_arg);
+ public static native long ScoringParameters_new(long base_penalty_msat_arg, long failure_penalty_msat_arg, short overuse_penalty_start_1024th_arg, long overuse_penalty_msat_per_1024th_arg, long failure_penalty_half_life_arg);
+ // uintptr_t ScoringParameters_clone_ptr(LDKScoringParameters *NONNULL_PTR arg);
+ public static native long ScoringParameters_clone_ptr(long arg);
+ // struct LDKScoringParameters ScoringParameters_clone(const struct LDKScoringParameters *NONNULL_PTR orig);
+ public static native long ScoringParameters_clone(long orig);
+ // struct LDKCVec_u8Z ScoringParameters_write(const struct LDKScoringParameters *NONNULL_PTR obj);
+ public static native byte[] ScoringParameters_write(long obj);
+ // struct LDKCResult_ScoringParametersDecodeErrorZ ScoringParameters_read(struct LDKu8slice ser);
+ public static native long ScoringParameters_read(byte[] ser);
+ // MUST_USE_RES struct LDKScorer Scorer_new(struct LDKScoringParameters params);
+ public static native long Scorer_new(long params);
+ // MUST_USE_RES struct LDKScorer Scorer_default(void);
+ public static native long Scorer_default();
+ // MUST_USE_RES struct LDKScoringParameters ScoringParameters_default(void);
+ public static native long ScoringParameters_default();
+ // struct LDKScore Scorer_as_Score(const struct LDKScorer *NONNULL_PTR this_arg);
+ public static native long Scorer_as_Score(long this_arg);
+ // struct LDKCVec_u8Z Scorer_write(const struct LDKScorer *NONNULL_PTR obj);
+ public static native byte[] Scorer_write(long obj);
+ // struct LDKCResult_ScorerDecodeErrorZ Scorer_read(struct LDKu8slice ser);
+ public static native long Scorer_read(byte[] ser);
+ // 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_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);
+ // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_new(uint64_t liquidity_penalty_multiplier_msat_arg, uint64_t liquidity_offset_half_life_arg);
+ public static native long ProbabilisticScoringParameters_new(long liquidity_penalty_multiplier_msat_arg, long liquidity_offset_half_life_arg);
+ // uintptr_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);
+ // struct LDKCVec_u8Z ProbabilisticScoringParameters_write(const struct LDKProbabilisticScoringParameters *NONNULL_PTR obj);
+ public static native byte[] ProbabilisticScoringParameters_write(long obj);
+ // struct LDKCResult_ProbabilisticScoringParametersDecodeErrorZ ProbabilisticScoringParameters_read(struct LDKu8slice ser);
+ public static native long ProbabilisticScoringParameters_read(byte[] ser);
+ // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph);
+ public static native long ProbabilisticScorer_new(long params, long network_graph);
+ // 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 LDKC2Tuple_ProbabilisticScoringParametersNetworkGraphZ arg);
+ public static native long ProbabilisticScorer_read(byte[] ser, long arg);
+ // 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_NoneErrorZ FilesystemPersister_persist_manager(struct LDKStr data_dir, const struct LDKChannelManager *NONNULL_PTR manager);
+ public static native long FilesystemPersister_persist_manager(String data_dir, long manager);
+ // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ FilesystemPersister_read_channelmonitors(const struct LDKFilesystemPersister *NONNULL_PTR this_arg, struct LDKKeysInterface keys_manager);
+ public static native long FilesystemPersister_read_channelmonitors(long this_arg, long keys_manager);
+ // struct LDKPersist FilesystemPersister_as_Persist(const struct LDKFilesystemPersister *NONNULL_PTR this_arg);
+ public static native long FilesystemPersister_as_Persist(long this_arg);
+ // void BackgroundProcessor_free(struct LDKBackgroundProcessor this_obj);
+ public static native void BackgroundProcessor_free(long this_obj);
+ // void ChannelManagerPersister_free(struct LDKChannelManagerPersister this_ptr);
+ public static native void ChannelManagerPersister_free(long this_ptr);
+ // MUST_USE_RES struct LDKBackgroundProcessor BackgroundProcessor_start(struct LDKChannelManagerPersister persister, struct LDKEventHandler event_handler, const struct LDKChainMonitor *NONNULL_PTR chain_monitor, const struct LDKChannelManager *NONNULL_PTR channel_manager, struct LDKNetGraphMsgHandler net_graph_msg_handler, const struct LDKPeerManager *NONNULL_PTR peer_manager, struct LDKLogger logger);
+ public static native long BackgroundProcessor_start(long persister, long event_handler, long chain_monitor, long channel_manager, long net_graph_msg_handler, long peer_manager, long logger);
+ // 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 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);
+ // uintptr_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);
+ // 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);
+ // uintptr_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);
+ // 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);
+ // uintptr_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);
+ // 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);
+ // uintptr_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);
+ // 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);
+ // uintptr_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);
+ // 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);
+ // 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);
+ // uintptr_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);
+ // void Description_free(struct LDKDescription this_obj);
+ public static native void Description_free(long this_obj);
+ // uintptr_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);
+ // uintptr_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);
+ // uintptr_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 MinFinalCltvExpiry_free(struct LDKMinFinalCltvExpiry this_obj);
+ public static native void MinFinalCltvExpiry_free(long this_obj);
+ // uint64_t MinFinalCltvExpiry_get_a(const struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr);
+ public static native long MinFinalCltvExpiry_get_a(long this_ptr);
+ // void MinFinalCltvExpiry_set_a(struct LDKMinFinalCltvExpiry *NONNULL_PTR this_ptr, uint64_t val);
+ public static native void MinFinalCltvExpiry_set_a(long this_ptr, long val);
+ // MUST_USE_RES struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_new(uint64_t a_arg);
+ public static native long MinFinalCltvExpiry_new(long a_arg);
+ // uintptr_t MinFinalCltvExpiry_clone_ptr(LDKMinFinalCltvExpiry *NONNULL_PTR arg);
+ public static native long MinFinalCltvExpiry_clone_ptr(long arg);
+ // struct LDKMinFinalCltvExpiry MinFinalCltvExpiry_clone(const struct LDKMinFinalCltvExpiry *NONNULL_PTR orig);
+ public static native long MinFinalCltvExpiry_clone(long orig);
+ // uint64_t MinFinalCltvExpiry_hash(const struct LDKMinFinalCltvExpiry *NONNULL_PTR o);
+ public static native long MinFinalCltvExpiry_hash(long o);
+ // bool MinFinalCltvExpiry_eq(const struct LDKMinFinalCltvExpiry *NONNULL_PTR a, const struct LDKMinFinalCltvExpiry *NONNULL_PTR b);
+ public static native boolean MinFinalCltvExpiry_eq(long a, long b);
+ // void Fallback_free(struct LDKFallback this_ptr);
+ public static native void Fallback_free(long this_ptr);
+ // uintptr_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 LDKu5 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);
+ // uintptr_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);
+ // 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);
+ // uintptr_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_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
+ public static native byte[] SignedRawInvoice_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_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native byte[] RawInvoice_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 LDKMinFinalCltvExpiry RawInvoice_min_final_cltv_expiry(const struct LDKRawInvoice *NONNULL_PTR this_arg);
+ public static native long RawInvoice_min_final_cltv_expiry(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 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 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 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 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 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(const struct LDKInvoice *NONNULL_PTR this_arg);
+ public static native long Invoice_min_final_cltv_expiry(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();
+ // 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);
+ // uintptr_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);
+ // void InvoicePayer_free(struct LDKInvoicePayer this_obj);
+ public static native void InvoicePayer_free(long this_obj);
+ // void Payer_free(struct LDKPayer this_ptr);
+ public static native void Payer_free(long this_ptr);
+ // void Router_free(struct LDKRouter this_ptr);
+ public static native void Router_free(long this_ptr);
+ // void RetryAttempts_free(struct LDKRetryAttempts this_obj);
+ public static native void RetryAttempts_free(long this_obj);
+ // uintptr_t RetryAttempts_get_a(const struct LDKRetryAttempts *NONNULL_PTR this_ptr);
+ public static native long RetryAttempts_get_a(long this_ptr);
+ // void RetryAttempts_set_a(struct LDKRetryAttempts *NONNULL_PTR this_ptr, uintptr_t val);
+ public static native void RetryAttempts_set_a(long this_ptr, long val);
+ // MUST_USE_RES struct LDKRetryAttempts RetryAttempts_new(uintptr_t a_arg);
+ public static native long RetryAttempts_new(long a_arg);
+ // uintptr_t RetryAttempts_clone_ptr(LDKRetryAttempts *NONNULL_PTR arg);
+ public static native long RetryAttempts_clone_ptr(long arg);
+ // struct LDKRetryAttempts RetryAttempts_clone(const struct LDKRetryAttempts *NONNULL_PTR orig);
+ public static native long RetryAttempts_clone(long orig);
+ // bool RetryAttempts_eq(const struct LDKRetryAttempts *NONNULL_PTR a, const struct LDKRetryAttempts *NONNULL_PTR b);
+ public static native boolean RetryAttempts_eq(long a, long b);
+ // uint64_t RetryAttempts_hash(const struct LDKRetryAttempts *NONNULL_PTR o);
+ public static native long RetryAttempts_hash(long o);
+ // void PaymentError_free(struct LDKPaymentError this_ptr);
+ public static native void PaymentError_free(long this_ptr);
+ // uintptr_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_routing(struct LDKLightningError a);
+ public static native long PaymentError_routing(long a);
+ // struct LDKPaymentError PaymentError_sending(struct LDKPaymentSendFailure a);
+ public static native long PaymentError_sending(long a);
+ // MUST_USE_RES struct LDKInvoicePayer InvoicePayer_new(struct LDKPayer payer, struct LDKRouter router, const struct LDKMultiThreadedLockableScore *NONNULL_PTR scorer, struct LDKLogger logger, struct LDKEventHandler event_handler, struct LDKRetryAttempts retry_attempts);
+ public static native long InvoicePayer_new(long payer, long router, long scorer, long logger, long event_handler, long retry_attempts);
+ // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice);
+ public static native long InvoicePayer_pay_invoice(long this_arg, long invoice);
+ // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_zero_value_invoice(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats);
+ public static native long InvoicePayer_pay_zero_value_invoice(long this_arg, long invoice, long amount_msats);
+ // MUST_USE_RES struct LDKCResult_PaymentIdPaymentErrorZ InvoicePayer_pay_pubkey(const struct LDKInvoicePayer *NONNULL_PTR this_arg, struct LDKPublicKey pubkey, struct LDKThirtyTwoBytes payment_preimage, uint64_t amount_msats, uint32_t final_cltv_expiry_delta);
+ public static native long InvoicePayer_pay_pubkey(long this_arg, byte[] pubkey, byte[] payment_preimage, long amount_msats, int final_cltv_expiry_delta);
+ // void InvoicePayer_remove_cached_payment(const struct LDKInvoicePayer *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
+ public static native void InvoicePayer_remove_cached_payment(long this_arg, byte[] payment_hash);
+ // struct LDKEventHandler InvoicePayer_as_EventHandler(const struct LDKInvoicePayer *NONNULL_PTR this_arg);
+ public static native long InvoicePayer_as_EventHandler(long this_arg);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKStr description, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKKeysInterface keys_manager, enum LDKCurrency network);
+ public static native long create_phantom_invoice(long amt_msat, String description, byte[] payment_hash, byte[] payment_secret, long[] phantom_route_hints, long keys_manager, Currency network);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description);
+ public static native long create_invoice_from_channelmanager(long channelmanager, long keys_manager, Currency network, long amt_msat, String description);
+ // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKKeysInterface keys_manager, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch);
+ public static native long create_invoice_from_channelmanager_and_duration_since_epoch(long channelmanager, long keys_manager, Currency network, long amt_msat, String description, long duration_since_epoch);
+ // 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);
+ public static native long DefaultRouter_new(long network_graph, long logger);
+ // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
+ public static native long DefaultRouter_as_Router(long this_arg);
+ // struct LDKPayer ChannelManager_as_Payer(const struct LDKChannelManager *NONNULL_PTR this_arg);
+ public static native long ChannelManager_as_Payer(long this_arg);
+ // struct LDKCResult_SiPrefixNoneZ SiPrefix_from_str(struct LDKStr s);
+ public static native long SiPrefix_from_str(String s);
+ // struct LDKCResult_InvoiceNoneZ Invoice_from_str(struct LDKStr s);
+ public static native long Invoice_from_str(String s);
+ // struct LDKCResult_SignedRawInvoiceNoneZ SignedRawInvoice_from_str(struct LDKStr s);
+ public static native long SignedRawInvoice_from_str(String s);
+ // 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);