Module optimism
Expand description
Optimism-specific constants, types, and helpers.
Structs§
- L1Block
Info - L1 block info
Constants§
- BASE_
FEE_ RECIPIENT - The address of the base fee recipient.
- L1_
BLOCK_ CONTRACT - The address of the L1Block contract.
- L1_
FEE_ RECIPIENT - The address of L1 fee recipient.
- OPERATOR_
FEE_ RECIPIENT - The address of the operator fee recipient.
Functions§
- clear
- Clears cache OP l1 value.
- deduct_
caller - Deduct max balance from caller
- end
- Optimism end handle changes output if the transaction is a deposit transaction. Deposit transaction can’t be reverted and is always successful.
- last_
frame_ return - Handle output of the transaction
- load_
precompiles - Load precompiles for Optimism chain.
- optimism_
handle_ register - output
- Main return handle, returns the output of the transaction.
- refund
- Record Eip-7702 refund and calculate final refund.
- reimburse_
caller - Reimburse the transaction caller.
- reward_
beneficiary - Reward beneficiary with gas fee.
- validate_
env - Validate environment for the Optimism chain.
- validate_
tx_ against_ state - Don not perform any extra validation for deposit transactions, they are pre-verified on L1.