Update auto-generated bindings to 0.0.101
[ldk-java] / src / main / java / org / ldk / structs / UtilMethods.java
index e7ea1861b68bc9923a92da15ea758402799de734..863cce7f79d882e70623665cbe3ed1db378aeec6 100644 (file)
@@ -60,7 +60,7 @@ public class UtilMethods {
                ret_hu_conv.ptrs_to.add(arg_tx_broadcaster);
                ret_hu_conv.ptrs_to.add(arg_logger);
                ret_hu_conv.ptrs_to.add(arg_default_config);
-               /* TODO 2 ChannelMonitor  */;
+               for (ChannelMonitor arg_channel_monitors_conv_16: arg_channel_monitors) { ret_hu_conv.ptrs_to.add(arg_channel_monitors_conv_16); };
                return ret_hu_conv;
        }
 
@@ -72,6 +72,15 @@ public class UtilMethods {
                return ret;
        }
 
+       /**
+        * Build a closing transaction
+        */
+       public static byte[] build_closing_transaction(long to_holder_value_sat, long to_counterparty_value_sat, byte[] to_holder_script, byte[] to_counterparty_script, OutPoint funding_outpoint) {
+               byte[] ret = bindings.build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint == null ? 0 : funding_outpoint.ptr & ~1);
+               // this.ptrs_to.add(funding_outpoint);
+               return ret;
+       }
+
        /**
         * Derives a per-commitment-transaction private key (eg an htlc key or delayed_payment key)
         * from the base secret and the per_commitment_point.
@@ -209,8 +218,8 @@ public class UtilMethods {
                if (ret < 1024) { return null; }
                Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(network);
-               /* TODO 2 ChannelDetails  */;
-               /* TODO 2 RouteHint  */;
+               for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
+               for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
                ret_hu_conv.ptrs_to.add(logger);
                return ret_hu_conv;
        }
@@ -245,8 +254,8 @@ public class UtilMethods {
                Result_RouteLightningErrorZ ret_hu_conv = Result_RouteLightningErrorZ.constr_from_ptr(ret);
                ret_hu_conv.ptrs_to.add(network);
                ret_hu_conv.ptrs_to.add(payee_features);
-               /* TODO 2 ChannelDetails  */;
-               /* TODO 2 RouteHint  */;
+               for (ChannelDetails first_hops_conv_16: first_hops) { ret_hu_conv.ptrs_to.add(first_hops_conv_16); };
+               for (RouteHint last_hops_conv_11: last_hops) { ret_hu_conv.ptrs_to.add(last_hops_conv_11); };
                ret_hu_conv.ptrs_to.add(logger);
                return ret_hu_conv;
        }