Skip to content

Commit

Permalink
request type for baseblock
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarreif authored and bharath-123 committed Sep 26, 2024
1 parent 3df6de7 commit ba29401
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 6 deletions.
32 changes: 27 additions & 5 deletions crates/astria-core/src/generated/astria.bundle.v1alpha1.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 91 additions & 0 deletions crates/astria-core/src/generated/astria.bundle.v1alpha1.serde.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion proto/executionapis/astria/bundle/v1alpha1/bundle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ message BaseBlock {
google.protobuf.Timestamp timestamp = 3;
}

message StreamExecuteOptimisticBlockRequest {
BaseBlock block = 1;
}

message StreamExecuteOptimisticBlockResponse {
// Metadata identifying the block resulting from executing a block. Includes number, hash,
// parent hash and timestamp.
astria.execution.v1alpha2.Block block = 1;
// The base_sequencer_block_hash is the hash from the base sequencer block this block
// is based on. This is used to associate an optimistic execution result with the hash
Expand Down Expand Up @@ -51,7 +57,7 @@ message Bundle {
service BundleService {
// Stream blocks from the Auctioneer to Geth for optimistic execution. Geth will stream back
// metadata from the executed blocks.
rpc StreamExecuteOptimisticBlock(stream BaseBlock) returns (stream StreamExecuteOptimisticBlockResponse);
rpc StreamExecuteOptimisticBlock(stream StreamExecuteOptimisticBlockRequest) returns (stream StreamExecuteOptimisticBlockResponse);
// A bundle submitter requests bundles given a new optimistic Sequencer block,
// and receives a stream of potential bundles for submission, until either a timeout
// or the connection is closed by the client.
Expand Down

0 comments on commit ba29401

Please sign in to comment.