@@ -9514,7 +9514,7 @@ JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_00024LDKPendingHTLCRouting_ini
95149514 LDKPendingHTLCRouting_Forward_class =
95159515 (*env)->NewGlobalRef(env, (*env)->FindClass(env, "org/ldk/impl/bindings$LDKPendingHTLCRouting$Forward"));
95169516 CHECK(LDKPendingHTLCRouting_Forward_class != NULL);
9517- LDKPendingHTLCRouting_Forward_meth = (*env)->GetMethodID(env, LDKPendingHTLCRouting_Forward_class, "<init>", "(JJJ )V");
9517+ LDKPendingHTLCRouting_Forward_meth = (*env)->GetMethodID(env, LDKPendingHTLCRouting_Forward_class, "<init>", "(JJJJ )V");
95189518 CHECK(LDKPendingHTLCRouting_Forward_meth != NULL);
95199519 LDKPendingHTLCRouting_Receive_class =
95209520 (*env)->NewGlobalRef(env, (*env)->FindClass(env, "org/ldk/impl/bindings$LDKPendingHTLCRouting$Receive"));
@@ -9540,7 +9540,8 @@ JNIEXPORT jobject JNICALL Java_org_ldk_impl_bindings_LDKPendingHTLCRouting_1ref_
95409540 int64_t blinded_ref = 0;
95419541 CHECK_INNER_FIELD_ACCESS_OR_NULL(blinded_var);
95429542 blinded_ref = tag_ptr(blinded_var.inner, false);
9543- return (*env)->NewObject(env, LDKPendingHTLCRouting_Forward_class, LDKPendingHTLCRouting_Forward_meth, onion_packet_ref, short_channel_id_conv, blinded_ref);
9543+ int64_t incoming_cltv_expiry_ref = tag_ptr(&obj->forward.incoming_cltv_expiry, false);
9544+ return (*env)->NewObject(env, LDKPendingHTLCRouting_Forward_class, LDKPendingHTLCRouting_Forward_meth, onion_packet_ref, short_channel_id_conv, blinded_ref, incoming_cltv_expiry_ref);
95449545 }
95459546 case LDKPendingHTLCRouting_Receive: {
95469547 LDKFinalOnionHopData payment_data_var = obj->receive.payment_data;
@@ -50579,7 +50580,7 @@ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_PendingHTLCRouting_1clone(J
5057950580 return ret_ref;
5058050581}
5058150582
50582- JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_PendingHTLCRouting_1forward(JNIEnv *env, jclass clz, int64_t onion_packet, int64_t short_channel_id, int64_t blinded) {
50583+ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_PendingHTLCRouting_1forward(JNIEnv *env, jclass clz, int64_t onion_packet, int64_t short_channel_id, int64_t blinded, int64_t incoming_cltv_expiry ) {
5058350584 LDKOnionPacket onion_packet_conv;
5058450585 onion_packet_conv.inner = untag_ptr(onion_packet);
5058550586 onion_packet_conv.is_owned = ptr_is_owned(onion_packet);
@@ -50590,8 +50591,12 @@ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_PendingHTLCRouting_1forward
5059050591 blinded_conv.is_owned = ptr_is_owned(blinded);
5059150592 CHECK_INNER_FIELD_ACCESS_OR_NULL(blinded_conv);
5059250593 blinded_conv = BlindedForward_clone(&blinded_conv);
50594+ void* incoming_cltv_expiry_ptr = untag_ptr(incoming_cltv_expiry);
50595+ CHECK_ACCESS(incoming_cltv_expiry_ptr);
50596+ LDKCOption_u32Z incoming_cltv_expiry_conv = *(LDKCOption_u32Z*)(incoming_cltv_expiry_ptr);
50597+ incoming_cltv_expiry_conv = COption_u32Z_clone((LDKCOption_u32Z*)untag_ptr(incoming_cltv_expiry));
5059350598 LDKPendingHTLCRouting *ret_copy = MALLOC(sizeof(LDKPendingHTLCRouting), "LDKPendingHTLCRouting");
50594- *ret_copy = PendingHTLCRouting_forward(onion_packet_conv, short_channel_id, blinded_conv);
50599+ *ret_copy = PendingHTLCRouting_forward(onion_packet_conv, short_channel_id, blinded_conv, incoming_cltv_expiry_conv );
5059550600 int64_t ret_ref = tag_ptr(ret_copy, true);
5059650601 return ret_ref;
5059750602}
@@ -51807,6 +51812,33 @@ JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_ChannelManager_1force_1close_1
5180751812 ChannelManager_force_close_all_channels_without_broadcasting_txn(&this_arg_conv, error_message_conv);
5180851813}
5180951814
51815+ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_ChannelManager_1send_1payment_1with_1route(JNIEnv *env, jclass clz, int64_t this_arg, int64_t route, int8_tArray payment_hash, int64_t recipient_onion, int8_tArray payment_id) {
51816+ LDKChannelManager this_arg_conv;
51817+ this_arg_conv.inner = untag_ptr(this_arg);
51818+ this_arg_conv.is_owned = ptr_is_owned(this_arg);
51819+ CHECK_INNER_FIELD_ACCESS_OR_NULL(this_arg_conv);
51820+ this_arg_conv.is_owned = false;
51821+ LDKRoute route_conv;
51822+ route_conv.inner = untag_ptr(route);
51823+ route_conv.is_owned = ptr_is_owned(route);
51824+ CHECK_INNER_FIELD_ACCESS_OR_NULL(route_conv);
51825+ route_conv = Route_clone(&route_conv);
51826+ LDKThirtyTwoBytes payment_hash_ref;
51827+ CHECK((*env)->GetArrayLength(env, payment_hash) == 32);
51828+ (*env)->GetByteArrayRegion(env, payment_hash, 0, 32, payment_hash_ref.data);
51829+ LDKRecipientOnionFields recipient_onion_conv;
51830+ recipient_onion_conv.inner = untag_ptr(recipient_onion);
51831+ recipient_onion_conv.is_owned = ptr_is_owned(recipient_onion);
51832+ CHECK_INNER_FIELD_ACCESS_OR_NULL(recipient_onion_conv);
51833+ recipient_onion_conv = RecipientOnionFields_clone(&recipient_onion_conv);
51834+ LDKThirtyTwoBytes payment_id_ref;
51835+ CHECK((*env)->GetArrayLength(env, payment_id) == 32);
51836+ (*env)->GetByteArrayRegion(env, payment_id, 0, 32, payment_id_ref.data);
51837+ LDKCResult_NoneRetryableSendFailureZ* ret_conv = MALLOC(sizeof(LDKCResult_NoneRetryableSendFailureZ), "LDKCResult_NoneRetryableSendFailureZ");
51838+ *ret_conv = ChannelManager_send_payment_with_route(&this_arg_conv, route_conv, payment_hash_ref, recipient_onion_conv, payment_id_ref);
51839+ return tag_ptr(ret_conv, true);
51840+ }
51841+
5181051842JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_ChannelManager_1send_1payment(JNIEnv *env, jclass clz, int64_t this_arg, int8_tArray payment_hash, int64_t recipient_onion, int8_tArray payment_id, int64_t route_params, int64_t retry_strategy) {
5181151843 LDKChannelManager this_arg_conv;
5181251844 this_arg_conv.inner = untag_ptr(this_arg);
@@ -83275,6 +83307,15 @@ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_SpendableOutputDescriptor_1
8327583307 return tag_ptr(ret_conv, true);
8327683308}
8327783309
83310+ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_SpendableOutputDescriptor_1spendable_1outpoint(JNIEnv *env, jclass clz, int64_t this_arg) {
83311+ LDKSpendableOutputDescriptor* this_arg_conv = (LDKSpendableOutputDescriptor*)untag_ptr(this_arg);
83312+ LDKOutPoint ret_var = SpendableOutputDescriptor_spendable_outpoint(this_arg_conv);
83313+ int64_t ret_ref = 0;
83314+ CHECK_INNER_FIELD_ACCESS_OR_NULL(ret_var);
83315+ ret_ref = tag_ptr(ret_var.inner, ret_var.is_owned);
83316+ return ret_ref;
83317+ }
83318+
8327883319JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_ChannelDerivationParameters_1free(JNIEnv *env, jclass clz, int64_t this_obj) {
8327983320 LDKChannelDerivationParameters this_obj_conv;
8328083321 this_obj_conv.inner = untag_ptr(this_obj);
0 commit comments