forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broadcast proto (0xPolygonHermez#759)
* Broadcast proto * move batch_number outside of transaction * address review comments * add missing batch response fields * updated generated code * remove tx fields * updated generated code * Update proto/src/proto/broadcast/v1/broadcast.proto Co-authored-by: a_bennassar <[email protected]> * removed uneeded timestamp message and code regenerated * reverted protoc version comment changes Co-authored-by: a_bennassar <[email protected]>
- Loading branch information
1 parent
f13073e
commit 3e28edb
Showing
4 changed files
with
554 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* Broadcast service. | ||
**/ | ||
|
||
syntax = "proto3"; | ||
|
||
package broadcast.v1; | ||
|
||
option go_package = "github.com/hermeznetwork/hermez-core/sequencerv2/broadcast/pb"; | ||
|
||
service BroadcastService { | ||
rpc GetLastBatch(Empty) returns (GetBatchResponse); | ||
rpc GetBatch(GetBatchRequest) returns (GetBatchResponse); | ||
} | ||
|
||
// Requests | ||
message GetBatchRequest { | ||
uint64 batch_number = 1; | ||
} | ||
|
||
// Responses | ||
message GetBatchResponse { | ||
uint64 batch_number = 1; | ||
string global_exit_root = 2; | ||
uint64 timestamp = 3; | ||
repeated Transaction transactions = 4; | ||
} | ||
|
||
// Common | ||
message Transaction { | ||
string encoded = 1; | ||
} | ||
|
||
message Empty{} |
Oops, something went wrong.