public void set_outpoint(OutPoint val) {
bindings.DelayedPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : val.ptr & ~1);
- this.ptrs_to.add(val);
}
public Uint8Array get_per_commitment_point() {
number ret = bindings.DelayedPaymentOutputDescriptor_new(outpoint_arg == null ? 0 : outpoint_arg.ptr & ~1, per_commitment_point_arg, to_self_delay_arg, output_arg.ptr, revocation_pubkey_arg, channel_keys_id_arg, channel_value_satoshis_arg);
const ret_hu_conv: DelayedPaymentOutputDescriptor = new DelayedPaymentOutputDescriptor(null, ret);
ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(outpoint_arg);
return ret_hu_conv;
}
return ret_hu_conv;
}
+ public Uint8Array write() {
+ Uint8Array ret = bindings.DelayedPaymentOutputDescriptor_write(this.ptr);
+ return ret;
+ }
+
+ public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor_read(Uint8Array ser) {
+ number ret = bindings.DelayedPaymentOutputDescriptor_read(ser);
+ Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
}