@@ -100,15 +100,13 @@ pub struct RequestQuery {
100100#[ derive( Clone , PartialEq , :: prost:: Message ) ]
101101pub struct RequestFinalizeBlock {
102102}
103-
104103#[ derive( Clone , PartialEq , :: prost:: Message ) ]
105104pub struct RequestCheckTx {
106105 #[ prost( bytes="bytes" , tag="1" ) ]
107106 pub tx : :: prost:: bytes:: Bytes ,
108107 #[ prost( enumeration="CheckTxType" , tag="2" ) ]
109108 pub r#type : i32 ,
110109}
111-
112110#[ derive( Clone , PartialEq , :: prost:: Message ) ]
113111pub struct RequestCommit {
114112}
@@ -146,55 +144,41 @@ pub struct RequestApplySnapshotChunk {
146144 #[ prost( string, tag="3" ) ]
147145 pub sender : :: prost:: alloc:: string:: String ,
148146}
149-
150147/// Prepare proposal
151148#[ derive( Clone , PartialEq , :: prost:: Message ) ]
152149pub struct RequestPrepareProposal {
153- //FIXME(Ash): add block field, unbatched header field
154150}
155-
156151/// Verify header
157152#[ derive( Clone , PartialEq , :: prost:: Message ) ]
158153pub struct RequestVerifyHeader {
159- //FIXME(Ash): add header field
160-
161154 #[ prost( bool , tag="1" ) ]
162155 pub is_validator : bool ,
163156}
164-
165157/// Process proposal
166158#[ derive( Clone , PartialEq , :: prost:: Message ) ]
167159pub struct RequestProcessProposal {
168- //FIXME(Ash): add block field
169160}
170-
171- /// Revert proposal
172161#[ derive( Clone , PartialEq , :: prost:: Message ) ]
173162pub struct RequestRevertProposal {
174163 #[ prost( uint64, tag="1" ) ]
175164 pub height : u64 ,
176165 #[ prost( uint64, tag="2" ) ]
177166 pub round : u64 ,
178167}
179-
180- /// Extend vote
181168#[ derive( Clone , PartialEq , :: prost:: Message ) ]
182169pub struct RequestExtendVote {
183170 #[ prost( uint64, tag="1" ) ]
184171 pub height : u64 ,
185172 #[ prost( uint64, tag="2" ) ]
186173 pub round : u64 ,
187174}
188-
189- /// Verify vote extension
190175#[ derive( Clone , PartialEq , :: prost:: Message ) ]
191176pub struct RequestVerifyVoteExtension {
192- #[ prost( bytes, tag="1" ) ]
193- pub signed_app_vote_data : Vec < u8 > ,
194- #[ prost( bytes, tag="2" ) ]
195- pub self_authenticating_app_vote_data : Vec < u8 > ,
177+ #[ prost( bytes= "bytes" , tag="1" ) ]
178+ pub signed_app_vote_data : :: prost :: bytes :: Bytes ,
179+ #[ prost( bytes= "bytes" , tag="2" ) ]
180+ pub self_authenticating_app_vote_data : :: prost :: bytes :: Bytes ,
196181}
197-
198182//----------------------------------------
199183// Response types
200184
@@ -314,6 +298,13 @@ pub struct ResponseQuery {
314298 pub codespace : :: prost:: alloc:: string:: String ,
315299}
316300#[ derive( Clone , PartialEq , :: prost:: Message ) ]
301+ pub struct ResponseFinalizeBlock {
302+ #[ prost( message, optional, tag="1" ) ]
303+ pub updates : :: core:: option:: Option < ConsensusUpdates > ,
304+ #[ prost( message, repeated, tag="2" ) ]
305+ pub tx_results : :: prost:: alloc:: vec:: Vec < ResponseTx > ,
306+ }
307+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
317308pub struct ResponseCheckTx {
318309 #[ prost( uint32, tag="1" ) ]
319310 pub code : u32 ,
@@ -335,14 +326,6 @@ pub struct ResponseCheckTx {
335326 pub codespace : :: prost:: alloc:: string:: String ,
336327}
337328#[ derive( Clone , PartialEq , :: prost:: Message ) ]
338- pub struct ResponseFinalizeBlock {
339- //FIXME(ash): this should not be optional
340- #[ prost( message, optional, tag="1" ) ]
341- pub updates : :: std:: option:: Option < ConsensusUpdates > ,
342- #[ prost( message, repeated, tag="2" ) ]
343- pub tx_results : :: std:: vec:: Vec < ResponseTx > ,
344- }
345- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
346329pub struct ResponseTx {
347330 #[ prost( uint32, tag="1" ) ]
348331 pub code : u32 ,
@@ -447,30 +430,29 @@ pub mod response_apply_snapshot_chunk {
447430}
448431#[ derive( Clone , PartialEq , :: prost:: Message ) ]
449432pub struct ResponsePrepareProposal {
450- //FIXME(Ash): add BlockData field, header field
451433}
452434#[ derive( Clone , PartialEq , :: prost:: Message ) ]
453435pub struct ResponseVerifyHeader {
454436 #[ prost( bool , tag="1" ) ]
455437 pub accept_header : bool ,
456438 #[ prost( message, repeated, tag="2" ) ]
457- pub evidence : :: std :: vec:: Vec < Evidence > ,
439+ pub evidence : :: prost :: alloc :: vec:: Vec < Evidence > ,
458440}
459441#[ derive( Clone , PartialEq , :: prost:: Message ) ]
460442pub struct ResponseProcessProposal {
461443 #[ prost( bool , tag="1" ) ]
462444 pub accept_block : bool ,
463445 #[ prost( message, repeated, tag="2" ) ]
464- pub evidence : :: std :: vec:: Vec < Evidence > ,
446+ pub evidence : :: prost :: alloc :: vec:: Vec < Evidence > ,
465447}
466448#[ derive( Clone , PartialEq , :: prost:: Message ) ]
467449pub struct ResponseRevertProposal {
468450}
469451#[ derive( Clone , PartialEq , :: prost:: Message ) ]
470452pub struct ResponseExtendVote {
471- #[ prost( bytes, tag="1" ) ]
453+ #[ prost( bytes= "bytes" , tag="1" ) ]
472454 pub unsigned_app_vote_data : :: prost:: bytes:: Bytes ,
473- #[ prost( bytes, tag="2" ) ]
455+ #[ prost( bytes= "bytes" , tag="2" ) ]
474456 pub self_authenticating_app_data : :: prost:: bytes:: Bytes ,
475457}
476458#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -489,7 +471,7 @@ pub struct LastCommitInfo {
489471 pub votes : :: prost:: alloc:: vec:: Vec < VoteInfo > ,
490472}
491473/// Event allows application developers to attach additional information to
492- /// ResponseFinalizeBlock and ResponseCheckTx.
474+ /// ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx .
493475/// Later, transactions may be queried using these events.
494476#[ derive( Clone , PartialEq , :: prost:: Message ) ]
495477pub struct Event {
@@ -501,10 +483,10 @@ pub struct Event {
501483/// EventAttribute is a single key-value pair, associated with an event.
502484#[ derive( Clone , PartialEq , :: prost:: Message ) ]
503485pub struct EventAttribute {
504- #[ prost( bytes= "bytes" , tag="1" ) ]
505- pub key : :: prost:: bytes :: Bytes ,
506- #[ prost( bytes= "bytes" , tag="2" ) ]
507- pub value : :: prost:: bytes :: Bytes ,
486+ #[ prost( string , tag="1" ) ]
487+ pub key : :: prost:: alloc :: string :: String ,
488+ #[ prost( string , tag="2" ) ]
489+ pub value : :: prost:: alloc :: string :: String ,
508490 /// nondeterministic
509491 #[ prost( bool , tag="3" ) ]
510492 pub index : bool ,
0 commit comments