- public void set_funding_txid(FundingCreated this_ptr, byte[] val) {
- bindings.FundingCreated_set_funding_txid(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * The specific output index funding this channel
+ */
+ public void set_funding_output_index(short val) {
+ bindings.FundingCreated_set_funding_output_index(this.ptr, val);
+ }
+
+ /**
+ * The signature of the channel initiator (funder) on the initial commitment transaction
+ */
+ public byte[] get_signature() {
+ byte[] ret = bindings.FundingCreated_get_signature(this.ptr);
+ return ret;
+ }
+
+ /**
+ * The signature of the channel initiator (funder) on the initial commitment transaction
+ */
+ public void set_signature(byte[] val) {
+ bindings.FundingCreated_set_signature(this.ptr, val);
+ }
+
+ /**
+ * Constructs a new FundingCreated given each field
+ */
+ public static FundingCreated of(byte[] temporary_channel_id_arg, byte[] funding_txid_arg, short funding_output_index_arg, byte[] signature_arg) {
+ long ret = bindings.FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ FundingCreated ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingCreated(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the FundingCreated
+ */
+ public FundingCreated clone() {
+ long ret = bindings.FundingCreated_clone(this.ptr);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ FundingCreated ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FundingCreated(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;