change contract in common

This commit is contained in:
OliveDS 2020-04-03 20:57:08 +08:00
parent 6be578b502
commit 0f41b0eb9c

View File

@ -32,6 +32,30 @@ message Transaction {
bytes s = 11; // ECDSA signature s
}
message Contract {
bytes contractName = 1; //
uint32 randomNum =2; //
bytes operation = 3; //
bytes arg = 4; //
bytes path = 5; //(IDE工程的相对路径)
bytes content = 6; //(/)
bytes pubkey = 7; //
enum ContractUnitRequestType{
START = 0;
STOP = 1;
EXECUTE = 2;
REPLY = 3;
REQUEST = 4;
PREPREPARE = 5;
PREPARE = 6;
COMMIT = 7;
ADDPEER = 8;
DROPPEER = 9;
STATESYNC = 10;
}
}
message Block {
bytes hash = 1; // `null`
repeated bytes parent_hashes = 2; //