syntax = "proto3"; package types; // This file is copied from http://github.com/tendermint/tmsp //---------------------------------------- // Message types enum MessageType { NullMessage = 0x00; Echo = 0x01; Flush = 0x02; Info = 0x03; SetOption = 0x04; Exception = 0x05; AppendTx = 0x11; CheckTx = 0x12; Commit = 0x13; Query = 0x14; InitChain = 0x15; // BeginBlock = 0x16; NOT USED EndBlock = 0x17; } //---------------------------------------- // Code types enum CodeType { OK = 0; // General response codes, 0 ~ 99 InternalError = 1; EncodingError = 2; BadNonce = 3; Unauthorized = 4; InsufficientFunds = 5; UnknownRequest = 6; // Reserved for basecoin, 100 ~ 199 BaseDuplicateAddress = 101; BaseEncodingError = 102; BaseInsufficientFees = 103; BaseInsufficientFunds = 104; BaseInsufficientGasPrice = 105; BaseInvalidAddress = 106; BaseInvalidAmount = 107; BaseInvalidPubKey = 108; BaseInvalidSequence = 109; BaseInvalidSignature = 110; BaseUnknownAddress = 111; BaseUnknownPubKey = 112; // Reserved for governance, 200 ~ 299 GovUnknownEntity = 201; GovUnknownGroup = 202; GovUnknownProposal = 203; GovDuplicateGroup = 204; GovDuplicateMember = 205; GovDuplicateProposal = 206; GovDuplicateVote = 207; GovInvalidMember = 208; GovInvalidVote = 209; GovInvalidVotingPower = 210; } //---------------------------------------- // Request types message Request { MessageType type = 1; bytes data = 2; string key = 3; string value = 4; repeated Validator validators = 5; uint64 height = 6; } //---------------------------------------- // Response types message Response { MessageType type = 1; bytes data = 2; CodeType code = 3; string error = 4; string log = 5; repeated Validator validators = 6; } //---------------------------------------- // Misc types message Validator { bytes pubKey = 1; uint64 power = 2; }