@@ -9514,7 +9514,7 @@ JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_00024LDKPendingHTLCRouting_ini
9514
9514
LDKPendingHTLCRouting_Forward_class =
9515
9515
(*env)->NewGlobalRef(env, (*env)->FindClass(env, "org/ldk/impl/bindings$LDKPendingHTLCRouting$Forward"));
9516
9516
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");
9518
9518
CHECK(LDKPendingHTLCRouting_Forward_meth != NULL);
9519
9519
LDKPendingHTLCRouting_Receive_class =
9520
9520
(*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_
9540
9540
int64_t blinded_ref = 0;
9541
9541
CHECK_INNER_FIELD_ACCESS_OR_NULL(blinded_var);
9542
9542
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);
9544
9545
}
9545
9546
case LDKPendingHTLCRouting_Receive: {
9546
9547
LDKFinalOnionHopData payment_data_var = obj->receive.payment_data;
@@ -50579,7 +50580,7 @@ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_PendingHTLCRouting_1clone(J
50579
50580
return ret_ref;
50580
50581
}
50581
50582
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 ) {
50583
50584
LDKOnionPacket onion_packet_conv;
50584
50585
onion_packet_conv.inner = untag_ptr(onion_packet);
50585
50586
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
50590
50591
blinded_conv.is_owned = ptr_is_owned(blinded);
50591
50592
CHECK_INNER_FIELD_ACCESS_OR_NULL(blinded_conv);
50592
50593
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));
50593
50598
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 );
50595
50600
int64_t ret_ref = tag_ptr(ret_copy, true);
50596
50601
return ret_ref;
50597
50602
}
@@ -51807,6 +51812,33 @@ JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_ChannelManager_1force_1close_1
51807
51812
ChannelManager_force_close_all_channels_without_broadcasting_txn(&this_arg_conv, error_message_conv);
51808
51813
}
51809
51814
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
+
51810
51842
JNIEXPORT 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) {
51811
51843
LDKChannelManager this_arg_conv;
51812
51844
this_arg_conv.inner = untag_ptr(this_arg);
@@ -83275,6 +83307,15 @@ JNIEXPORT int64_t JNICALL Java_org_ldk_impl_bindings_SpendableOutputDescriptor_1
83275
83307
return tag_ptr(ret_conv, true);
83276
83308
}
83277
83309
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
+
83278
83319
JNIEXPORT void JNICALL Java_org_ldk_impl_bindings_ChannelDerivationParameters_1free(JNIEnv *env, jclass clz, int64_t this_obj) {
83279
83320
LDKChannelDerivationParameters this_obj_conv;
83280
83321
this_obj_conv.inner = untag_ptr(this_obj);
0 commit comments