[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / PhantomKeysManager.java
index f3791cf6fa43ffefbbcbb827f82a9ebe3d13cf45..3d8e66f68781ec791a2ca9c71a2641fc600ed77e 100644 (file)
@@ -60,6 +60,19 @@ public class PhantomKeysManager extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Constructs a new OutputSpender which calls the relevant methods on this_arg.
+        * This copies the `inner` pointer in this_arg and thus the returned OutputSpender must be freed before this_arg is
+        */
+       public OutputSpender as_OutputSpender() {
+               long ret = bindings.PhantomKeysManager_as_OutputSpender(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               OutputSpender ret_hu_conv = new OutputSpender(null, ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
+               return ret_hu_conv;
+       }
+
        /**
         * Constructs a new SignerProvider which calls the relevant methods on this_arg.
         * This copies the `inner` pointer in this_arg and thus the returned SignerProvider must be freed before this_arg is
@@ -98,24 +111,6 @@ public class PhantomKeysManager extends CommonBase {
                return ret_hu_conv;
        }
 
-       /**
-        * See [`KeysManager::spend_spendable_outputs`] for documentation on this method.
-        */
-       public Result_TransactionNoneZ spend_spendable_outputs(SpendableOutputDescriptor[] descriptors, TxOut[] outputs, byte[] change_destination_script, int feerate_sat_per_1000_weight, org.ldk.structs.Option_u32Z locktime) {
-               long ret = bindings.PhantomKeysManager_spend_spendable_outputs(this.ptr, descriptors != null ? Arrays.stream(descriptors).mapToLong(descriptors_conv_27 -> descriptors_conv_27.ptr).toArray() : null, outputs != null ? Arrays.stream(outputs).mapToLong(outputs_conv_7 -> outputs_conv_7.ptr).toArray() : null, change_destination_script, feerate_sat_per_1000_weight, locktime.ptr);
-               Reference.reachabilityFence(this);
-               Reference.reachabilityFence(descriptors);
-               Reference.reachabilityFence(outputs);
-               Reference.reachabilityFence(change_destination_script);
-               Reference.reachabilityFence(feerate_sat_per_1000_weight);
-               Reference.reachabilityFence(locktime);
-               if (ret >= 0 && ret <= 4096) { return null; }
-               Result_TransactionNoneZ ret_hu_conv = Result_TransactionNoneZ.constr_from_ptr(ret);
-               for (SpendableOutputDescriptor descriptors_conv_27: descriptors) { if (this != null) { this.ptrs_to.add(descriptors_conv_27); }; };
-               if (this != null) { this.ptrs_to.add(locktime); };
-               return ret_hu_conv;
-       }
-
        /**
         * See [`KeysManager::derive_channel_keys`] for documentation on this method.
         */