Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsForkActivated ¶ added in v1.12.0
func IsForkActivated(c *params.ChainConfig, forkName rollup.ForkName, timestamp uint64) (bool, error)
IsForkActivated checks if a specific fork is activated at the given timestamp based on the chain configuration.
Types ¶
type ChainConfigGetter ¶ added in v1.12.0
type ChainConfigGetter = func(context.Context) *params.ChainConfig
ChainConfigGetter is a function type that retrieves a ForkConfig from a context.
func AcquireL2WithFork ¶ added in v1.12.0
func AcquireL2WithFork(chainIdx uint64, forkName rollup.ForkName) (ChainConfigGetter, systest.PreconditionValidator)
RequiresFork returns a validator that ensures a specific L2 chain has a specific fork activated.
func AcquireL2WithoutFork ¶ added in v1.12.0
func AcquireL2WithoutFork(chainIdx uint64, forkName rollup.ForkName) (ChainConfigGetter, systest.PreconditionValidator)
RequiresNotFork returns a validator that ensures a specific L2 chain does not have a specific fork activated. Will not work with the interop fork specifically since interop is not an ordered release fork.
type LowLevelSystemGetter ¶
type LowLevelSystemGetter = func(context.Context) system.LowLevelSystem
func AcquireLowLevelSystem ¶
func AcquireLowLevelSystem() (LowLevelSystemGetter, systest.PreconditionValidator)
type WalletGetter ¶
func AcquireL1WalletWithFunds ¶ added in v1.12.0
func AcquireL1WalletWithFunds(minFunds types.Balance) (WalletGetter, systest.PreconditionValidator)
func AcquireL2WalletWithFunds ¶
func AcquireL2WalletWithFunds(chainIndex uint64, minFunds types.Balance) (WalletGetter, systest.PreconditionValidator)
Click to show internal directories.
Click to hide internal directories.