import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import java.lang.ref.Reference;
import javax.annotation.Nullable;
/**
* The outpoint which is spendable
*/
- public final OutPoint outpoint;
+ public final org.ldk.structs.OutPoint outpoint;
/**
* The output which is referenced by the given outpoint.
*/
- public final TxOut output;
+ public final org.ldk.structs.TxOut output;
private StaticOutput(long ptr, bindings.LDKSpendableOutputDescriptor.StaticOutput obj) {
super(null, ptr);
long outpoint = obj.outpoint;
* chan_utils::get_revokeable_redeemscript.
*/
public final static class DelayedPaymentOutput extends SpendableOutputDescriptor {
- public final DelayedPaymentOutputDescriptor delayed_payment_output;
+ public final org.ldk.structs.DelayedPaymentOutputDescriptor delayed_payment_output;
private DelayedPaymentOutput(long ptr, bindings.LDKSpendableOutputDescriptor.DelayedPaymentOutput obj) {
super(null, ptr);
long delayed_payment_output = obj.delayed_payment_output;
* allowing us to claim the non-HTLC-encumbered outputs immediately.
*/
public final static class StaticPaymentOutput extends SpendableOutputDescriptor {
- public final StaticPaymentOutputDescriptor static_payment_output;
+ public final org.ldk.structs.StaticPaymentOutputDescriptor static_payment_output;
private StaticPaymentOutput(long ptr, bindings.LDKSpendableOutputDescriptor.StaticPaymentOutput obj) {
super(null, ptr);
long static_payment_output = obj.static_payment_output;
}
long clone_ptr() {
long ret = bindings.SpendableOutputDescriptor_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public SpendableOutputDescriptor clone() {
long ret = bindings.SpendableOutputDescriptor_clone(this.ptr);
+ Reference.reachabilityFence(this);
if (ret >= 0 && ret <= 4096) { return null; }
- SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
+ org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
}
*/
public static SpendableOutputDescriptor static_output(OutPoint outpoint, TxOut output) {
long ret = bindings.SpendableOutputDescriptor_static_output(outpoint == null ? 0 : outpoint.ptr & ~1, output.ptr);
+ Reference.reachabilityFence(outpoint);
+ Reference.reachabilityFence(output);
if (ret >= 0 && ret <= 4096) { return null; }
- SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
+ org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
*/
public static SpendableOutputDescriptor delayed_payment_output(DelayedPaymentOutputDescriptor a) {
long ret = bindings.SpendableOutputDescriptor_delayed_payment_output(a == null ? 0 : a.ptr & ~1);
+ Reference.reachabilityFence(a);
if (ret >= 0 && ret <= 4096) { return null; }
- SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
+ org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
*/
public static SpendableOutputDescriptor static_payment_output(StaticPaymentOutputDescriptor a) {
long ret = bindings.SpendableOutputDescriptor_static_payment_output(a == null ? 0 : a.ptr & ~1);
+ Reference.reachabilityFence(a);
if (ret >= 0 && ret <= 4096) { return null; }
- SpendableOutputDescriptor ret_hu_conv = SpendableOutputDescriptor.constr_from_ptr(ret);
+ org.ldk.structs.SpendableOutputDescriptor ret_hu_conv = org.ldk.structs.SpendableOutputDescriptor.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
*/
public byte[] write() {
byte[] ret = bindings.SpendableOutputDescriptor_write(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
*/
public static Result_SpendableOutputDescriptorDecodeErrorZ read(byte[] ser) {
long ret = bindings.SpendableOutputDescriptor_read(ser);
+ Reference.reachabilityFence(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_SpendableOutputDescriptorDecodeErrorZ ret_hu_conv = Result_SpendableOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;