github.com/turingchain2020/turingchain@v1.1.21/types/proto/executor.proto (about) 1 syntax = "proto3"; 2 3 import "transaction.proto"; 4 5 package types; 6 option go_package = "github.com/turingchain2020/turingchain/types"; 7 8 message Genesis { 9 bool isrun = 1; 10 } 11 12 message ExecTxList { 13 bytes stateHash = 1; 14 bytes parentHash = 7; 15 bytes mainHash = 8; 16 int64 mainHeight = 9; 17 int64 blockTime = 3; 18 int64 height = 4; 19 uint64 difficulty = 5; 20 bool isMempool = 6; 21 repeated Transaction txs = 2; 22 } 23 24 message Query { 25 bytes execer = 1; 26 string funcName = 2; 27 bytes payload = 3; 28 } 29 30 message CreateTxIn { 31 bytes execer = 1; 32 string actionName = 2; 33 bytes payload = 3; 34 } 35 36 // 配置修改部分 37 message ArrayConfig { 38 repeated string value = 3; 39 } 40 message StringConfig { 41 string value = 3; 42 } 43 message Int32Config { 44 int32 value = 3; 45 } 46 47 message ConfigItem { 48 string key = 1; 49 string addr = 2; 50 oneof value { 51 ArrayConfig arr = 3; 52 StringConfig str = 4; 53 Int32Config int = 5; 54 } 55 int32 Ty = 11; 56 } 57 58 message ModifyConfig { 59 string key = 1; 60 string value = 2; 61 string op = 3; 62 string addr = 4; 63 } 64 65 message ReceiptConfig { 66 ConfigItem prev = 1; 67 ConfigItem current = 2; 68 } 69 70 message ReplyConfig { 71 string key = 1; 72 string value = 2; 73 } 74 75 message HistoryCertStore { 76 repeated bytes rootcerts = 1; 77 repeated bytes intermediateCerts = 2; 78 repeated bytes revocationList = 3; 79 int64 curHeigth = 4; 80 int64 nxtHeight = 5; 81 } 82 83 message AuthorityCfg { 84 bool enable = 1; 85 string cryptoPath = 2; 86 string signType = 3; 87 }