@@ -1515,6 +1515,8 @@ internal typealias UniffiVTableCallbackInterfaceVssHeaderProviderUniffiByValue =
15151515
15161516
15171517
1518+
1519+
15181520
15191521
15201522
@@ -2554,6 +2556,13 @@ internal interface UniffiLib : Library {
25542556 `urgent`: Byte,
25552557 uniffiCallStatus: UniffiRustCallStatus,
25562558 ): Pointer?
2559+ fun uniffi_ldk_node_fn_method_onchainpayment_calculate_send_all_fee(
2560+ `ptr`: Pointer?,
2561+ `address`: RustBufferByValue,
2562+ `retainReserves`: Byte,
2563+ `feeRate`: RustBufferByValue,
2564+ uniffiCallStatus: UniffiRustCallStatus,
2565+ ): Long
25572566 fun uniffi_ldk_node_fn_method_onchainpayment_calculate_total_fee(
25582567 `ptr`: Pointer?,
25592568 `address`: RustBufferByValue,
@@ -3310,6 +3319,8 @@ internal interface UniffiLib : Library {
33103319 ): Short
33113320 fun uniffi_ldk_node_checksum_method_onchainpayment_calculate_cpfp_fee_rate(
33123321 ): Short
3322+ fun uniffi_ldk_node_checksum_method_onchainpayment_calculate_send_all_fee(
3323+ ): Short
33133324 fun uniffi_ldk_node_checksum_method_onchainpayment_calculate_total_fee(
33143325 ): Short
33153326 fun uniffi_ldk_node_checksum_method_onchainpayment_list_spendable_outputs(
@@ -3897,6 +3908,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
38973908 if (lib.uniffi_ldk_node_checksum_method_onchainpayment_calculate_cpfp_fee_rate() != 32879.toShort()) {
38983909 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
38993910 }
3911+ if (lib.uniffi_ldk_node_checksum_method_onchainpayment_calculate_send_all_fee() != 16052.toShort()) {
3912+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
3913+ }
39003914 if (lib.uniffi_ldk_node_checksum_method_onchainpayment_calculate_total_fee() != 57218.toShort()) {
39013915 throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
39023916 }
@@ -8050,6 +8064,21 @@ open class OnchainPayment: Disposable, OnchainPaymentInterface {
80508064 })
80518065 }
80528066
8067+ @Throws(NodeException::class)
8068+ override fun `calculateSendAllFee`(`address`: Address, `retainReserves`: kotlin.Boolean, `feeRate`: FeeRate?): kotlin.ULong {
8069+ return FfiConverterULong.lift(callWithPointer {
8070+ uniffiRustCallWithError(NodeExceptionErrorHandler) { uniffiRustCallStatus ->
8071+ UniffiLib.INSTANCE.uniffi_ldk_node_fn_method_onchainpayment_calculate_send_all_fee(
8072+ it,
8073+ FfiConverterTypeAddress.lower(`address`),
8074+ FfiConverterBoolean.lower(`retainReserves`),
8075+ FfiConverterOptionalTypeFeeRate.lower(`feeRate`),
8076+ uniffiRustCallStatus,
8077+ )
8078+ }
8079+ })
8080+ }
8081+
80538082 @Throws(NodeException::class)
80548083 override fun `calculateTotalFee`(`address`: Address, `amountSats`: kotlin.ULong, `feeRate`: FeeRate?, `utxosToSpend`: List<SpendableUtxo>?): kotlin.ULong {
80558084 return FfiConverterULong.lift(callWithPointer {
0 commit comments