validators

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 8 Imported by: 0

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

type WalletGetter

type WalletGetter = func(context.Context) system.Wallet

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL