Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSpecularEVMPreTransferHook ¶
func MakeSpecularEVMPreTransferHook(cfg RollupConfig) vm.EVMHook
MakeSpecularEVMPreTransferHook creates specular's vm.EVMHook function which is injected into the EVM and runs before every transfer currently this is only used to calculate & charge the L1 Fee
func RegisterGethRollupServices ¶
func RegisterGethRollupServices( stack Node, cliCtx *cli.Context, eth api.ExecutionBackend, proofBackend proof.Backend, ) error
TODO: remove this when EL and CL client are decoupled. Creates rollup services and registers them as Geth services.
Types ¶
type RollupConfig ¶
type RollupConfig interface { GetAccountAddr() common.Address // recipient of the L1 Fee GetChainID() uint64 // chain ID of the specular rollup GetL1FeeOverhead() int64 // fixed cost of submitting a tx to L1 GetL1FeeMultiplier() float64 // value to scale the L1 Fee GetL1OracleAddress() common.Address // contract providing the L1 basefee GetL1OracleBaseFeeSlot() common.Hash // L1 basefee storage slot }
Click to show internal directories.
Click to hide internal directories.