Skip to content

Commit

Permalink
Som/pectra4 engine api (#239)
Browse files Browse the repository at this point in the history
* Flatten 7251 req

* Replace requests with generic requests

* fix type

* change byte to uint8

* Simplify requests bundle

* Rename requests_hash and remove reqs from body
  • Loading branch information
somnathb1 authored and yperbasis committed Oct 24, 2024
1 parent 46d0f96 commit 6ae5033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ message BlockBody {
repeated bytes transactions = 3;
repeated Header uncles = 4;
repeated types.Withdrawal withdrawals = 5; // added in Shapella (EIP-4895)
repeated bytes requests = 6; // added in Pectra (EIP-7685)
}

message Block {
Expand Down Expand Up @@ -143,6 +142,7 @@ message AssembledBlockData {
types.ExecutionPayload execution_payload = 1;
types.H256 block_value = 2;
types.BlobsBundleV1 blobs_bundle = 3;
types.RequestsBundle requests = 4;
}

message GetAssembledBlockResponse {
Expand Down
23 changes: 4 additions & 19 deletions types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,6 @@ message ExecutionPayload {
repeated Withdrawal withdrawals = 16;
optional uint64 blob_gas_used = 17;
optional uint64 excess_blob_gas = 18;
repeated DepositRequest deposit_requests = 19;
repeated WithdrawalRequest withdrawal_requests = 20;
repeated ConsolidationRequest consolidation_requests = 21;
}

message DepositRequest {
bytes pubkey = 1;
H256 withdrawal_credentials = 2;
uint64 amount = 3;
bytes signature = 4;
uint64 index = 5;
}

message WithdrawalRequest {
bytes request_data = 1;
}

message ConsolidationRequest {
bytes request_data = 1;
}

message Withdrawal {
Expand All @@ -113,6 +94,10 @@ message BlobsBundleV1 {
repeated bytes proofs = 3;
}

message RequestsBundle {
repeated bytes requests = 1;
}

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

Expand Down

0 comments on commit 6ae5033

Please sign in to comment.