2022-02-01 01:47:34 +00:00
|
|
|
// Copyright 2022 Prysmatic Labs.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package ethereum.engine.v1;
|
|
|
|
|
|
|
|
import "proto/eth/ext/options.proto";
|
|
|
|
|
|
|
|
option csharp_namespace = "Ethereum.Engine.V1";
|
2024-02-15 05:46:47 +00:00
|
|
|
option go_package = "github.com/prysmaticlabs/prysm/v5/proto/engine/v1;enginev1";
|
2022-02-01 01:47:34 +00:00
|
|
|
option java_multiple_files = true;
|
|
|
|
option java_outer_classname = "ExecutionEngineProto";
|
|
|
|
option java_package = "org.ethereum.engine.v1";
|
|
|
|
option php_namespace = "Ethereum\\Engine\\v1";
|
|
|
|
|
|
|
|
message ExecutionPayload {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
2022-02-02 03:30:35 +00:00
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
2022-02-26 03:47:16 +00:00
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
2022-02-01 01:47:34 +00:00
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
2022-02-01 01:47:34 +00:00
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
repeated bytes transactions = 14 [(ethereum.eth.ext.ssz_size) = "?,?", (ethereum.eth.ext.ssz_max) = "1048576,1073741824"];
|
|
|
|
}
|
|
|
|
|
2023-03-14 15:52:16 +00:00
|
|
|
message ExecutionPayloadBodyV1 {
|
|
|
|
repeated bytes transactions = 1;
|
|
|
|
repeated Withdrawal withdrawals = 2;
|
|
|
|
}
|
|
|
|
|
2022-07-27 16:39:15 +00:00
|
|
|
message ExecutionPayloadCapella {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
2022-07-27 16:39:15 +00:00
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
2022-07-27 16:39:15 +00:00
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
repeated bytes transactions = 14 [(ethereum.eth.ext.ssz_size) = "?,?", (ethereum.eth.ext.ssz_max) = "1048576,1073741824"];
|
2022-07-28 16:19:36 +00:00
|
|
|
// MAX_WITHDRAWALS_PER_PAYLOAD
|
2022-11-22 16:05:37 +00:00
|
|
|
repeated Withdrawal withdrawals = 15 [(ethereum.eth.ext.ssz_max) = "withdrawal.size"]; // New in Capella.
|
2022-07-27 16:39:15 +00:00
|
|
|
}
|
|
|
|
|
2023-05-26 18:09:16 +00:00
|
|
|
message ExecutionPayloadDeneb {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
repeated bytes transactions = 14 [(ethereum.eth.ext.ssz_size) = "?,?", (ethereum.eth.ext.ssz_max) = "1048576,1073741824"];
|
|
|
|
// MAX_WITHDRAWALS_PER_PAYLOAD
|
|
|
|
repeated Withdrawal withdrawals = 15 [(ethereum.eth.ext.ssz_max) = "withdrawal.size"];
|
2023-07-31 15:02:42 +00:00
|
|
|
uint64 blob_gas_used = 16;
|
|
|
|
uint64 excess_blob_gas = 17;
|
2023-05-26 18:09:16 +00:00
|
|
|
}
|
|
|
|
|
2023-02-10 19:36:19 +00:00
|
|
|
message ExecutionPayloadCapellaWithValue {
|
|
|
|
ExecutionPayloadCapella payload = 1;
|
|
|
|
bytes value = 2;
|
|
|
|
}
|
|
|
|
|
2023-05-26 18:09:16 +00:00
|
|
|
message ExecutionPayloadDenebWithValueAndBlobsBundle {
|
|
|
|
ExecutionPayloadDeneb payload = 1;
|
|
|
|
bytes value = 2;
|
|
|
|
BlobsBundle blobs_bundle = 3;
|
2023-07-22 08:19:23 +00:00
|
|
|
bool should_override_builder = 4;
|
2023-05-26 18:09:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-04-25 15:42:58 +00:00
|
|
|
message ExecutionPayloadHeader {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
2022-04-25 15:42:58 +00:00
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
2022-04-25 15:42:58 +00:00
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes transactions_root = 14 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
}
|
|
|
|
|
2022-07-27 16:39:15 +00:00
|
|
|
message ExecutionPayloadHeaderCapella {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
2022-07-27 16:39:15 +00:00
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
2023-05-05 23:02:21 +00:00
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
2022-07-27 16:39:15 +00:00
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes transactions_root = 14 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes withdrawals_root = 15 [(ethereum.eth.ext.ssz_size) = "32"]; // New in Capella.
|
|
|
|
}
|
|
|
|
|
2023-05-05 23:02:21 +00:00
|
|
|
message ExecutionPayloadHeaderDeneb {
|
|
|
|
bytes parent_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes fee_recipient = 2 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
bytes state_root = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes receipts_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes logs_bloom = 5 [(ethereum.eth.ext.ssz_size) = "logs_bloom.size"];
|
|
|
|
bytes prev_randao = 6 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
uint64 block_number = 7;
|
|
|
|
uint64 gas_limit = 8;
|
|
|
|
uint64 gas_used = 9;
|
|
|
|
uint64 timestamp = 10;
|
|
|
|
bytes extra_data = 11 [(ethereum.eth.ext.ssz_max) = "extra_data.size"];
|
|
|
|
bytes base_fee_per_gas = 12 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes block_hash = 13 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes transactions_root = 14 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes withdrawals_root = 15 [(ethereum.eth.ext.ssz_size) = "32"];
|
2023-07-31 15:02:42 +00:00
|
|
|
uint64 blob_gas_used = 16;
|
|
|
|
uint64 excess_blob_gas = 17;
|
2023-05-05 23:02:21 +00:00
|
|
|
}
|
|
|
|
|
2022-02-01 01:47:34 +00:00
|
|
|
message PayloadAttributes {
|
|
|
|
uint64 timestamp = 1;
|
2022-02-26 03:47:16 +00:00
|
|
|
bytes prev_randao = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
2022-02-01 01:47:34 +00:00
|
|
|
bytes suggested_fee_recipient = 3 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
}
|
|
|
|
|
2022-11-22 16:05:37 +00:00
|
|
|
message PayloadAttributesV2 {
|
2023-08-08 22:49:06 +00:00
|
|
|
uint64 timestamp = 1;
|
|
|
|
bytes prev_randao = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes suggested_fee_recipient = 3 [(ethereum.eth.ext.ssz_size) = "20"];
|
2022-11-22 16:05:37 +00:00
|
|
|
repeated Withdrawal withdrawals = 4 [(ethereum.eth.ext.ssz_max) = "withdrawal.size"]; // New in Capella.
|
|
|
|
}
|
|
|
|
|
2023-08-08 22:49:06 +00:00
|
|
|
message PayloadAttributesV3 {
|
|
|
|
uint64 timestamp = 1;
|
|
|
|
bytes prev_randao = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes suggested_fee_recipient = 3 [(ethereum.eth.ext.ssz_size) = "20"];
|
|
|
|
repeated Withdrawal withdrawals = 4 [(ethereum.eth.ext.ssz_max) = "withdrawal.size"];
|
|
|
|
bytes parent_beacon_block_root = 5 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
}
|
|
|
|
|
2022-02-01 01:47:34 +00:00
|
|
|
message PayloadStatus {
|
|
|
|
Status status = 1;
|
|
|
|
bytes latest_valid_hash = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
string validation_error = 3;
|
|
|
|
enum Status {
|
2022-02-15 20:32:39 +00:00
|
|
|
UNKNOWN = 0;
|
|
|
|
VALID = 1;
|
|
|
|
INVALID = 2;
|
|
|
|
SYNCING = 3;
|
|
|
|
ACCEPTED = 4;
|
|
|
|
INVALID_BLOCK_HASH = 5;
|
2022-02-01 01:47:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message ForkchoiceState {
|
|
|
|
bytes head_block_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes safe_block_hash = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
bytes finalized_block_hash = 3 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
|
|
}
|
2022-07-28 13:56:30 +00:00
|
|
|
|
|
|
|
// The withdrawal receipt with the recipient address and amount withdrawn
|
|
|
|
message Withdrawal {
|
|
|
|
// Withdrawal index for accounting purposes
|
2022-12-15 23:42:07 +00:00
|
|
|
uint64 index = 1;
|
2022-07-28 13:56:30 +00:00
|
|
|
|
2022-10-22 20:54:50 +00:00
|
|
|
// Validator index for the withdrawal
|
2024-02-15 05:46:47 +00:00
|
|
|
uint64 validator_index = 2 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/prysm/v5/consensus-types/primitives.ValidatorIndex"];
|
2022-10-22 20:54:50 +00:00
|
|
|
|
2022-07-28 13:56:30 +00:00
|
|
|
// The execution address receiving the funds
|
2022-12-15 23:42:07 +00:00
|
|
|
bytes address = 3 [(ethereum.eth.ext.ssz_size) = "20"];
|
2022-07-28 13:56:30 +00:00
|
|
|
|
|
|
|
// The withdrawn amount in Gwei
|
2022-10-22 20:54:50 +00:00
|
|
|
uint64 amount = 4;
|
2022-07-28 13:56:30 +00:00
|
|
|
}
|
|
|
|
|
2023-06-14 18:04:48 +00:00
|
|
|
// BlobsBundle is retrieved through engine-api from the execution layer client.
|
2022-10-31 19:11:40 +00:00
|
|
|
// It consists of the necessary components for constructing a blobs sidecar object to gossip through p2p.
|
|
|
|
message BlobsBundle {
|
|
|
|
// The KZG commitments of the blobs.
|
2023-09-14 14:21:56 +00:00
|
|
|
repeated bytes kzg_commitments = 1 [(ethereum.eth.ext.ssz_size) = "?,48", (ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"];
|
2024-02-06 21:17:32 +00:00
|
|
|
|
2023-05-26 18:09:16 +00:00
|
|
|
// The proofs of the blobs.
|
2023-09-14 14:21:56 +00:00
|
|
|
repeated bytes proofs = 2 [(ethereum.eth.ext.ssz_size) = "?,48", (ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"];
|
2024-02-06 21:17:32 +00:00
|
|
|
|
2022-10-31 19:11:40 +00:00
|
|
|
// The blobs itself.
|
2024-02-06 21:17:32 +00:00
|
|
|
repeated bytes blobs = 3 [(ethereum.eth.ext.ssz_size) = "?,blob.size", (ethereum.eth.ext.ssz_max) = "max_blob_commitments.size"];
|
2022-10-31 19:11:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Blob contains the data that is to be committed on chain.
|
|
|
|
message Blob {
|
2024-02-06 21:17:32 +00:00
|
|
|
// The blob bytes.
|
2023-05-26 18:09:16 +00:00
|
|
|
bytes data = 1 [(ethereum.eth.ext.ssz_size) = "blob.size"];
|
2022-10-31 19:11:40 +00:00
|
|
|
}
|
2023-04-17 12:55:22 +00:00
|
|
|
|
|
|
|
message ExchangeCapabilities {
|
|
|
|
repeated string supported_methods = 1;
|
|
|
|
}
|