OSDN Git Service

feat: add fed orm (#136)
[bytom/vapor.git] / protocol / bc / bc.proto
index 00eda9a..fd25c9e 100644 (file)
@@ -31,11 +31,6 @@ message AssetAmount {
   uint64  amount   = 2;
 }
 
-message AssetDefinition {
-  Program issuance_program = 1;
-  Hash    data             = 2;
-}
-
 message ValueSource {
   Hash        ref      = 1;
   AssetAmount value    = 2;
@@ -99,23 +94,30 @@ message CrossChainOutput {
   uint64      ordinal         = 3;
 }
 
+message VoteOutput {
+  ValueSource source          = 1;
+  Program     control_program = 2;
+  uint64      ordinal         = 3;
+  bytes       vote            = 4;
+}
+
 message Retirement {
   ValueSource source   = 1;
   uint64      ordinal  = 2;
 }
 
-message Issuance {
-  Hash             nonce_hash               = 1;
-  AssetAmount      value                    = 2;
-  ValueDestination witness_destination      = 3;
-  AssetDefinition  witness_asset_definition = 4;
-  repeated bytes   witness_arguments        = 5;
-  uint64           ordinal                  = 6;
-}
-
 message Spend {
   Hash             spent_output_id     = 1;
   ValueDestination witness_destination = 2;
   repeated bytes   witness_arguments   = 3;
   uint64           ordinal             = 4;
+}
+
+message CrossChainInput {
+  Hash             mainchain_output_id = 1;
+  AssetAmount      value               = 2;
+  ValueDestination witness_destination = 3;
+  Program          control_program     = 4;
+  repeated bytes   witness_arguments   = 5;
+  uint64           ordinal             = 6;
 }
\ No newline at end of file