Module optimism
Available on crate feature
optimism
only.Expand description
Optimism-specific constants, types, and helpers.
Structs§
- L1 block info
Constants§
- The address of the base fee recipient.
- The address of the L1Block contract.
- The address of L1 fee recipient.
Functions§
- Deduct max balance from caller
- Optimism end handle changes output if the transaction is a deposit transaction. Deposit transaction can’t be reverted and is always successful.
- Handle output of the transaction
- Load account (make them warm) and l1 data from database.
- Load precompiles for Optimism chain.
- Main return handle, returns the output of the transaction.
- Record Eip-7702 refund and calculate final refund.
- Reward beneficiary with gas fee.
- Validate environment for the Optimism chain.
- Don not perform any extra validation for deposit transactions, they are pre-verified on L1.