From f785f3acaa8fa026a65c6f3e864fbd11af0170e7 Mon Sep 17 00:00:00 2001 From: Danyal Prout Date: Fri, 22 Dec 2023 08:36:58 -0600 Subject: [PATCH] Update the Ecotone L1Block upgrade spec --- deposits.md | 15 +++++++++------ derivation.md | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/deposits.md b/deposits.md index 613fce880..e22a0597c 100644 --- a/deposits.md +++ b/deposits.md @@ -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 diff --git a/derivation.md b/derivation.md index 9762ca063..88a8cbfa8 100644 --- a/derivation.md +++ b/derivation.md @@ -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)