Commit f2b54baf authored by protolambda's avatar protolambda Committed by GitHub

Merge pull request #8744 from danyalprout/update-l1-block-info

Update l1 block info
parents 5358d75d 40f5c750
......@@ -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 upgrade.
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
......
......@@ -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)
......@@ -1140,8 +1140,8 @@ A deposit transaction is derived with the following attributes:
- `value`: `0`
- `gasLimit`: `1,000,000` (TBC)
- `data`: `0x22b90ab3`
- `sourceHash`: `0xee4f9385eceef498af0be7ec5862229f426dec41c8d42397c7257a5117d9230a`,
computed with the "Upgrade-deposited" type, with `intent = "Ecotone: Gas Price Oracle Proxy Update"`
- `sourceHash`: `0x0c1cb38e99dbc9cbfab3bb80863380b0905290b37eb3d6ab18dc01c1f3e75f93`,
computed with the "Upgrade-deposited" type, with `intent = "Ecotone: Gas Price Oracle Set Ecotone"
Verify data:
......@@ -1153,8 +1153,8 @@ cast sig "setEcotone()"
Verify `sourceHash`:
```bash
cast keccak $(cast concat-hex 0x0000000000000000000000000000000000000000000000000000000000000002 $(cast keccak "Ecotone: Gas Price Oracle Proxy Update"))
# 0xee4f9385eceef498af0be7ec5862229f426dec41c8d42397c7257a5117d9230a
cast keccak $(cast concat-hex 0x0000000000000000000000000000000000000000000000000000000000000002 $(cast keccak "Ecotone: Gas Price Oracle Set Ecotone"))
# 0x0c1cb38e99dbc9cbfab3bb80863380b0905290b37eb3d6ab18dc01c1f3e75f93
```
##### Beacon block roots contract deployment (EIP-4788)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment