+package io.bytom.types;\r
+\r
+import java.io.ByteArrayOutputStream;\r
+\r
+public class Output extends Entry {\r
+\r
+ public ValueSource source;\r
+\r
+ public Program controlProgram;\r
+\r
+ public Integer ordinal;\r
+\r
+ public Output() {\r
+ this.source = new ValueSource();\r
+ this.controlProgram = new Program();\r
+ }\r
+\r
+\r
+ public Output(ValueSource source, Program controlProgram, Integer ordinal) {\r
+ this.source = source;\r
+ this.controlProgram = controlProgram;\r
+ this.ordinal = ordinal;\r
+ }\r
+\r
+ @Override\r
+ public String typ() {\r
+ return "output1";\r
+ }\r
+\r
+ @Override\r
+ public void writeForHash(ByteArrayOutputStream out) {\r
+ mustWriteForHash(out, this.source);\r
+ mustWriteForHash(out, this.controlProgram);\r
+ }\r
+}\r