Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasSufficientL2Nodes ¶ added in v1.13.0
func HasSufficientL2Nodes(chainIdx uint64, minNodes int) systest.PreconditionValidator
HasSufficientL2Nodes returns a validator that ensures a specific L2 chain has at least the specified number of nodes.
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 L2NodeCounter ¶ added in v1.13.0
L2NodeCounter is a function type that retrieves the node count from a context.
func AcquireL2NodeCount ¶ added in v1.13.0
func AcquireL2NodeCount(chainIdx uint64) (L2NodeCounter, systest.PreconditionValidator)
AcquireL2NodeCount returns a node counter function and a validator that ensures an L2 chain exists and provides the node count in the context.
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)