- public void set_channel_id(Shutdown this_ptr, byte[] val) {
- bindings.Shutdown_set_channel_id(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ public void set_channel_id(byte[] val) {
+ bindings.Shutdown_set_channel_id(this.ptr, val);
+ }
+
+ public byte[] get_scriptpubkey() {
+ byte[] ret = bindings.Shutdown_get_scriptpubkey(this.ptr);
+ return ret;
+ }
+
+ public void set_scriptpubkey(byte[] val) {
+ bindings.Shutdown_set_scriptpubkey(this.ptr, val);
+ }
+
+ public static Shutdown constructor_new(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
+ long ret = bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg);
+ Shutdown ret_hu_conv = new Shutdown(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ public byte[] write() {
+ byte[] ret = bindings.Shutdown_write(this.ptr);
+ return ret;
+ }
+
+ public static Shutdown constructor_read(byte[] ser) {
+ long ret = bindings.Shutdown_read(ser);
+ Shutdown ret_hu_conv = new Shutdown(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;