l2-fees
l2-fees copied to clipboard
Updates for Optimism Bedrock
Hi, I was looking at the Optimism fees adapters & they reference subgrapghs that don't seem to be public. I wanted to make sure the appropriate changes got in before Bedrock migration on June 6.
L2 Transaction Fees:
- Formula does not change
- If the fee vault address is used, there will now be 3 fee vault addresses (1 previously). Withdrawals will come out of these 3 addresses as well on L2:
- 0x4200000000000000000000000000000000000011: SequencerFeeVault
- 0x4200000000000000000000000000000000000019: BaseFeeVault
- 0x420000000000000000000000000000000000001a: L1FeeVault
L1 Data Costs
- The addresses that data is posted to on L1 are changing. Rather than CanonicalTransactionChain and StateCommitmentChain contracts, there is now BatchInbox and OutputOracle:
- L1 BatchInbox from address: 0x7431310e026B69BFC676C0013E12A1A11411EEc9
- L1 BatchInbox to address: 0xFF00000000000000000000000000000000000010
- L2 OutputOracle contract: 0xdfe97868233d1aa22e815a266982f2cf17685a27
The formula to calculate costs per transaction should not change, but see https://www.optimism.io/bedrock-upgrade for more information!
Just added the last missing contract L2 OutputOracle