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

EIP-4844 extensions #156

Merged
merged 2 commits into from
Feb 6, 2023
Merged
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
7 changes: 7 additions & 0 deletions remote/ethbackend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ service ETHBACKEND {

rpc EngineGetPayloadBodiesByRangeV1(EngineGetPayloadBodiesByRangeV1Request) returns (EngineGetPayloadBodiesV1Response);

// Fetch the blobs bundle using its ID.
rpc EngineGetBlobsBundleV1(EngineGetBlobsBundleRequest) returns (types.BlobsBundleV1);

// End of Engine API requests
// ------------------------------------------------------------------------

Expand Down Expand Up @@ -93,6 +96,10 @@ message EngineGetPayloadRequest {
uint64 payloadId = 1;
}

message EngineGetBlobsBundleRequest {
uint64 payloadId = 1;
}

enum EngineStatus {
VALID = 0;
INVALID = 1;
Expand Down
12 changes: 11 additions & 1 deletion types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message VersionReply {
// Engine API types
// See https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md
message ExecutionPayload {
uint32 version = 1; // v1 - no withdrawals, v2 - with withdrawals
uint32 version = 1; // v1 - no withdrawals, v2 - with withdrawals, v3 - with excess data gas
H256 parentHash = 2;
H160 coinbase = 3;
H256 stateRoot = 4;
Expand All @@ -75,6 +75,7 @@ message ExecutionPayload {
H256 blockHash = 14;
repeated bytes transactions = 15;
repeated Withdrawal withdrawals = 16;
H256 excessDataGas = 17;
}

message Withdrawal {
Expand All @@ -83,6 +84,15 @@ message Withdrawal {
H160 address = 3;
uint64 amount = 4;
}

message BlobsBundleV1 {
H256 blockHash = 1;
// TODO(eip-4844): define a protobuf message for type KZGCommitment
repeated bytes kzgs = 2;
// TODO(eip-4844): define a protobuf message for type Blob
repeated bytes blobs = 3;
}

// End of Engine API types
// ------------------------------------------------------------------------

Expand Down