- // Skipped Shutdown_set_scriptpubkey
- // Skipped Shutdown_new
- // Skipped Shutdown_write
- public Shutdown(byte[] ser) {
- super(bindings.Shutdown_read(ser));
+ 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);
+ return ret_hu_conv;
+ }
+
+ public byte[] write(Shutdown obj) {
+ byte[] ret = bindings.Shutdown_write(obj == null ? 0 : obj.ptr & ~1);
+ this.ptrs_to.add(obj);
+ return ret;
+ }
+
+ public static Shutdown constructor_read(byte[] ser) {
+ long ret = bindings.Shutdown_read(ser);
+ Shutdown ret_hu_conv = new Shutdown(null, ret);
+ return ret_hu_conv;