+ // 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);
+ // 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 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 LDKPayee Route_get_payee(const struct LDKRoute *NONNULL_PTR this_ptr);
+ public static native long Route_get_payee(long this_ptr);
+ // void Route_set_payee(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPayee val);
+ public static native void Route_set_payee(long this_ptr, long val);
+ // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_CVec_RouteHopZZ paths_arg, struct LDKPayee payee_arg);
+ public static native long Route_new(long[][] paths_arg, long payee_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 LDKPayee RouteParameters_get_payee(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
+ public static native long RouteParameters_get_payee(long this_ptr);
+ // void RouteParameters_set_payee(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPayee val);
+ public static native void RouteParameters_set_payee(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 LDKPayee payee_arg, uint64_t final_value_msat_arg, uint32_t final_cltv_expiry_delta_arg);
+ public static native long RouteParameters_new(long payee_arg, long final_value_msat_arg, int final_cltv_expiry_delta_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);
+ // 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 Payee_free(struct LDKPayee this_obj);
+ public static native void Payee_free(long this_obj);
+ // struct LDKPublicKey Payee_get_pubkey(const struct LDKPayee *NONNULL_PTR this_ptr);
+ public static native byte[] Payee_get_pubkey(long this_ptr);
+ // void Payee_set_pubkey(struct LDKPayee *NONNULL_PTR this_ptr, struct LDKPublicKey val);
+ public static native void Payee_set_pubkey(long this_ptr, byte[] val);
+ // struct LDKInvoiceFeatures Payee_get_features(const struct LDKPayee *NONNULL_PTR this_ptr);
+ public static native long Payee_get_features(long this_ptr);
+ // void Payee_set_features(struct LDKPayee *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
+ public static native void Payee_set_features(long this_ptr, long val);
+ // struct LDKCVec_RouteHintZ Payee_get_route_hints(const struct LDKPayee *NONNULL_PTR this_ptr);
+ public static native long[] Payee_get_route_hints(long this_ptr);
+ // void Payee_set_route_hints(struct LDKPayee *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintZ val);
+ public static native void Payee_set_route_hints(long this_ptr, long[] val);
+ // struct LDKCOption_u64Z Payee_get_expiry_time(const struct LDKPayee *NONNULL_PTR this_ptr);
+ public static native long Payee_get_expiry_time(long this_ptr);
+ // void Payee_set_expiry_time(struct LDKPayee *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
+ public static native void Payee_set_expiry_time(long this_ptr, long val);
+ // MUST_USE_RES struct LDKPayee Payee_new(struct LDKPublicKey pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKCVec_RouteHintZ route_hints_arg, struct LDKCOption_u64Z expiry_time_arg);
+ public static native long Payee_new(byte[] pubkey_arg, long features_arg, long[] route_hints_arg, long expiry_time_arg);
+ // uint64_t Payee_clone_ptr(LDKPayee *NONNULL_PTR arg);
+ public static native long Payee_clone_ptr(long arg);
+ // struct LDKPayee Payee_clone(const struct LDKPayee *NONNULL_PTR orig);
+ public static native long Payee_clone(long orig);
+ // uint64_t Payee_hash(const struct LDKPayee *NONNULL_PTR o);
+ public static native long Payee_hash(long o);
+ // bool Payee_eq(const struct LDKPayee *NONNULL_PTR a, const struct LDKPayee *NONNULL_PTR b);
+ public static native boolean Payee_eq(long a, long b);
+ // struct LDKCVec_u8Z Payee_write(const struct LDKPayee *NONNULL_PTR obj);
+ public static native byte[] Payee_write(long obj);
+ // struct LDKCResult_PayeeDecodeErrorZ Payee_read(struct LDKu8slice ser);
+ public static native long Payee_read(byte[] ser);
+ // MUST_USE_RES struct LDKPayee Payee_from_node_id(struct LDKPublicKey pubkey);
+ public static native long Payee_from_node_id(byte[] pubkey);
+ // MUST_USE_RES struct LDKPayee Payee_for_keysend(struct LDKPublicKey pubkey);
+ public static native long Payee_for_keysend(byte[] 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);
+ // 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 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 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 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);
+ // 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);