Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protos): rename astria.bundle -> astria.auction and Bundle -> Bid #1889

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions proto/executionapis/astria/auction/v1alpha1/bid.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
syntax = "proto3";

package astria.auction.v1alpha1;

message GetBidStreamRequest {}

// A bid is a bundle of transactions that was submitted to the auctioneer's rollup node.
// The rollup node will verify that the bundle is valid and pays the fee, and will stream
// it to the auctioneer for participation in the auction for a given block.
// The sequencer block hash and the rollup parent block hash are used by the auctioneer
// to identify the block for which the bundle is intended (i.e. which auction the bid is for).
message Bid {
// The fee paid by the bundle submitter. The auctioneer's rollup node calculates this based
// on the bundles submitted by users. For example, this can be the sum of the coinbase transfers
// in the bundle's transactions.
uint64 fee = 1;
// The list of serialized rollup transactions from the bundle.
repeated bytes transactions = 2;
// The hash of the previous sequencer block, identifying the auction for which the bid is intended.
// This is the hash of the sequencer block on top of which the bundle will be executed as ToB.
bytes sequencer_parent_block_hash = 3;
// The hash of previous rollup block, on top of which the bundle will be executed as ToB.
bytes rollup_parent_block_hash = 4;
}

message GetBidStreamResponse {
Bid Bid = 1;

Check failure on line 27 in proto/executionapis/astria/auction/v1alpha1/bid.proto

View workflow job for this annotation

GitHub Actions / proto

Field name "Bid" should be lower_snake_case, such as "bid".

Check failure on line 27 in proto/executionapis/astria/auction/v1alpha1/bid.proto

View workflow job for this annotation

GitHub Actions / proto

Field name "Bid" should be lower_snake_case, such as "bid".

Check failure on line 27 in proto/executionapis/astria/auction/v1alpha1/bid.proto

View workflow job for this annotation

GitHub Actions / proto

Field name "Bid" should be lower_snake_case, such as "bid".
}

service BundleService {
// An auctioneer will initiate this long running stream to receive bids from the rollup node,
// until either a timeout or the connection is closed by the client.
rpc GetBidStream(GetBidStreamRequest) returns (stream GetBidStreamResponse);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package astria.bundle.v1alpha1;
package astria.auction.v1alpha1;

import "astria/execution/v1/execution.proto";
import "astria/sequencerblock/v1/block.proto";
Expand Down
36 changes: 0 additions & 36 deletions proto/executionapis/astria/bundle/v1alpha1/bundle.proto

This file was deleted.

Loading