Skip to content

Commit

Permalink
Update the Ecotone L1Block upgrade spec
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalprout committed Dec 22, 2023
1 parent 911dcdf commit f785f3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions deposits.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,16 @@ the genesis file will be located in the `deployedBytecode` field of the build ar

#### Ecotone L1Block upgrade

The L1 Attributes Predeployed contract, `L1Block.sol`, is upgraded in the Ecotone upgrade.
The L1 Attributes Predeployed contract, `L1Block.sol`, is upgraded as part of the Ecotone hardfork.
The version is incremented to `1.2.0` and several new storage slots are used for:

- `overhead`: this getter function now reverts (TBD). Storage remains the same.
- `scalar`: this getter function now reverts (TBD). Storage remains the same.
- `x` (TBD): base-fee component scalar
- `y` (TBD): DA-base-fee component scalar (blob base fee when operating with L1 DA)
- `daBasefee`: the DA-base-fee.
- `blobBasefee` (`uint256`): The L1 basefee for blob transactions.
- `blobBasefeeScalar` (`uint256`): The scalar value applied to the L1 blob base fee portion of the L1 cost.
- `basefeeScalar` (`uint256`): The scalar value applied to the L1 base fee portion of the L1 cost.

Additionally, the `setL1BlockValues` function is deprecated and replaced with `setL1BlockValuesEcotone`.
`setL1BlockValuesEcotone` uses packed encoding for its parameters, which is described in
[L1 Attributes Deposited Transaction Calldata](#l1-attributes-deposited-transaction-calldata)

## User-Deposited Transactions

Expand Down
2 changes: 1 addition & 1 deletion derivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ The `L1Block` contract is upgraded to process the new Ecotone L1-data-fee parame
A deposit transaction is derived with the following attributes:

- `from`: `0x4210000000000000000000000000000000000000`
- `to`: `null`,
- `to`: `null`
- `mint`: `0`
- `value`: `0`
- `gasLimit`: `300,000` (TBC)
Expand Down

0 comments on commit f785f3a

Please sign in to comment.