- public static ChannelTransactionParameters constructor_new(ChannelPublicKeys holder_pubkeys_arg, short holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, CounterpartyChannelTransactionParameters counterparty_parameters_arg, OutPoint funding_outpoint_arg) {
- uint32_t ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr & ~1, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr & ~1, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr & ~1);
- ChannelTransactionParameters ret_hu_conv = new ChannelTransactionParameters(null, ret);
- ret_hu_conv.ptrs_to.add(holder_pubkeys_arg);
- ret_hu_conv.ptrs_to.add(counterparty_parameters_arg);
- ret_hu_conv.ptrs_to.add(funding_outpoint_arg);
+ public COption_NoneZ get_opt_anchors() {
+ COption_NoneZ ret = bindings.ChannelTransactionParameters_get_opt_anchors(this.ptr);
+ return ret;
+ }
+
+ public void set_opt_anchors(COption_NoneZ val) {
+ bindings.ChannelTransactionParameters_set_opt_anchors(this.ptr, val);
+ }
+
+ public static ChannelTransactionParameters constructor_new(ChannelPublicKeys holder_pubkeys_arg, number holder_selected_contest_delay_arg, boolean is_outbound_from_holder_arg, CounterpartyChannelTransactionParameters counterparty_parameters_arg, OutPoint funding_outpoint_arg, COption_NoneZ opt_anchors_arg) {
+ number ret = bindings.ChannelTransactionParameters_new(holder_pubkeys_arg == null ? 0 : holder_pubkeys_arg.ptr & ~1, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg == null ? 0 : counterparty_parameters_arg.ptr & ~1, funding_outpoint_arg == null ? 0 : funding_outpoint_arg.ptr & ~1, opt_anchors_arg);
+ const ret_hu_conv: ChannelTransactionParameters = new ChannelTransactionParameters(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public number clone_ptr() {
+ number ret = bindings.ChannelTransactionParameters_clone_ptr(this.ptr);
+ return ret;
+ }
+
+ public ChannelTransactionParameters clone() {
+ number ret = bindings.ChannelTransactionParameters_clone(this.ptr);
+ const ret_hu_conv: ChannelTransactionParameters = new ChannelTransactionParameters(null, ret);
+ ret_hu_conv.ptrs_to.add(this);