Skip to content

Commit

Permalink
Use primitive type instead of new structures to not make dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jihoonsong committed Jan 19, 2025
1 parent 7540a56 commit 57afad2
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions src/engine/experimental/eip7805.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ This specification is based on and extends [Engine API - Prague](./prague.md) sp
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Constants](#constants)
- [Structures](#structures)
- [InclusionListV1](#inclusionlistv1)
- [UpdateInclusionListResponse](#updateinclusionlistresponse)
- [Methods](#methods)
- [engine_newPayloadV5](#engine_newpayloadv5)
- [Request](#request)
Expand All @@ -36,18 +33,6 @@ This specification is based on and extends [Engine API - Prague](./prague.md) sp
| - | - |
| `MaxBytesPerInclusionList` | `uint64(8192) = 2**13` |

## Structures

### InclusionListV1

This structure contains a list of transactions. The fields are encoded as follows:
- `transactions`: `Array of DATA` - Array of transaction objects, each object is a byte list (`DATA`) representing `TransactionType || TransactionPayload` or `LegacyTransaction` as defined in [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718)

### UpdateInclusionListResponse

This structure contains an identifier of the payload build process that is requested to update with the given inclusion list.
- `payloadId`: `DATA`, 8 Bytes - Identifier of the payload build process

## Methods

### engine_newPayloadV5
Expand All @@ -61,7 +46,7 @@ The request of this method is updated with [`ExecutionPayloadV3`](./cancun.md#ex
1. `executionPayload`: [`ExecutionPayloadV3`](./cancun.md#executionpayloadv3).
2. `expectedBlobVersionedHashes`: `Array of DATA`, 32 Bytes - Array of expected blob versioned hashes to validate.
3. `parentBeaconBlockRoot`: `DATA`, 32 Bytes - Root of the parent beacon block.
4. `inclusionList`: [`InclusionListV1`](#InclusionListV1).
4. `inclusionList`: `Array of DATA` - Array of transaction objects, each object is a byte list (`DATA`) representing `TransactionType || TransactionPayload` or `LegacyTransaction` as defined in [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718).

#### Response

Expand All @@ -84,7 +69,7 @@ This method follows the same specification as [`engine_newPayloadV4`](./prague.m

#### Response

* result: [`InclusionListV1`](#InclusionListV1).
* result: `inclusionList`: `Array of DATA` - Array of transaction objects, each object is a byte list (`DATA`) representing `TransactionType || TransactionPayload` or `LegacyTransaction` as defined in [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718).
* error: code and message set in case an exception happens while getting the inclusion list.

#### Specification
Expand All @@ -98,12 +83,12 @@ This method follows the same specification as [`engine_newPayloadV4`](./prague.m
* method: `engine_updatePayloadWithInclusionListV1`
* params:
1. `payloadId`: `DATA`, 8 Bytes - Identifier of the payload build process.
2. `inclusionList`: [`InclusionListV1`](#InclusionListV1).
2. `inclusionList`: `inclusionList`: `Array of DATA` - Array of transaction objects, each object is a byte list (`DATA`) representing `TransactionType || TransactionPayload` or `LegacyTransaction` as defined in [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718).
* timeout: 1s

#### Response

* result: [`UpdateInclusionListResponse`](#UpdateInclusionListResponse).
* result: `payloadId`: `DATA`, 8 Bytes - Identifier of the payload build process.
* error: code and message set in case an exception happens while getting the inclusion list.

#### Specification
Expand Down

0 comments on commit 57afad2

Please sign in to comment.