+ // 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 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 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);
+ // 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);
+ // 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);
+ // 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 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);
+ // 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);
+ // 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, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_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);
+ // 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);
+ 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);
+ // 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_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);
+ // 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 BlindedRoute_free(struct LDKBlindedRoute this_obj);
+ public static native void BlindedRoute_free(long this_obj);
+ // void BlindedHop_free(struct LDKBlindedHop this_obj);
+ public static native void BlindedHop_free(long this_obj);
+ // MUST_USE_RES struct LDKCResult_BlindedRouteNoneZ BlindedRoute_new(struct LDKCVec_PublicKeyZ node_pks, const struct LDKKeysInterface *NONNULL_PTR keys_manager);
+ public static native long BlindedRoute_new(byte[][] node_pks, long keys_manager);
+ // struct LDKCVec_u8Z BlindedRoute_write(const struct LDKBlindedRoute *NONNULL_PTR obj);
+ public static native byte[] BlindedRoute_write(long obj);
+ // struct LDKCResult_BlindedRouteDecodeErrorZ BlindedRoute_read(struct LDKu8slice ser);
+ public static native long BlindedRoute_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 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);
+ // struct LDKDestination Destination_node(struct LDKPublicKey a);
+ public static native long Destination_node(byte[] a);
+ // struct LDKDestination Destination_blinded_route(struct LDKBlindedRoute a);
+ public static native long Destination_blinded_route(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_buffer_full(void);
+ public static native long SendError_buffer_full();
+ // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKKeysInterface keys_manager, struct LDKLogger logger);
+ public static native long OnionMessenger_new(long keys_manager, long logger);
+ // 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 LDKBlindedRoute reply_path);
+ public static native long OnionMessenger_send_onion_message(long this_arg, byte[][] intermediate_nodes, long destination, 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);