challenger

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 27 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMonorepoRoot added in v1.7.6

func FindMonorepoRoot(t *testing.T) string

FindMonorepoRoot finds the relative path to the monorepo root Different tests might be nested in subdirectories of the op-e2e dir.

func NewChallengerConfig added in v1.1.4

func NewChallengerConfig(t *testing.T, sys EndpointProvider, l2NodeName string, options ...Option) *config.Config

Types

type CapturingMetrics added in v1.7.6

type CapturingMetrics struct {
	metrics.NoopMetricsImpl

	HighestActedL1Block atomic.Uint64
}

func NewCapturingMetrics added in v1.7.6

func NewCapturingMetrics() *CapturingMetrics

func (*CapturingMetrics) RecordActedL1Block added in v1.7.6

func (c *CapturingMetrics) RecordActedL1Block(block uint64)

type EndpointProvider added in v1.5.1

type EndpointProvider interface {
	NodeEndpoint(name string) endpoint.RPC
	RollupEndpoint(name string) endpoint.RPC
	L1BeaconEndpoint() endpoint.RestHTTP
}

type GameAddr added in v1.1.6

type GameAddr interface {
	Addr() common.Address
}

type Helper

type Helper struct {
	// contains filtered or unexported fields
}

func NewChallenger

func NewChallenger(t *testing.T, ctx context.Context, sys EndpointProvider, name string, options ...Option) *Helper

func NewHelper added in v1.7.6

func NewHelper(log log.Logger, t *testing.T, require *require.Assertions, dir string, chl cliapp.Lifecycle, m *CapturingMetrics) *Helper

func (*Helper) Close

func (h *Helper) Close() error

func (*Helper) VerifyGameDataExists added in v1.1.6

func (h *Helper) VerifyGameDataExists(games ...GameAddr)

func (*Helper) WaitForGameDataDeletion added in v1.1.6

func (h *Helper) WaitForGameDataDeletion(ctx context.Context, games ...GameAddr)

func (*Helper) WaitForHighestActedL1Block added in v1.7.6

func (h *Helper) WaitForHighestActedL1Block(ctx context.Context, head uint64)

func (*Helper) WaitL1HeadActedOn added in v1.7.6

func (h *Helper) WaitL1HeadActedOn(ctx context.Context, client *ethclient.Client)

type Option

type Option func(c *config.Config)

func WithAlphabet added in v1.1.6

func WithAlphabet() Option

func WithCannon added in v1.1.6

func WithCannon(t *testing.T, system System) Option

func WithFactoryAddress added in v1.1.6

func WithFactoryAddress(addr common.Address) Option

func WithFastGames added in v1.7.7

func WithFastGames() Option

func WithGameAddress added in v1.1.6

func WithGameAddress(addr common.Address) Option

func WithInvalidCannonPrestate added in v1.9.4

func WithInvalidCannonPrestate() Option

func WithPermissioned added in v1.9.4

func WithPermissioned(t *testing.T, system System) Option

func WithPollInterval added in v1.1.6

func WithPollInterval(pollInterval time.Duration) Option

func WithPrivKey added in v1.1.6

func WithPrivKey(key *ecdsa.PrivateKey) Option

func WithValidPrestateRequired added in v1.9.4

func WithValidPrestateRequired() Option

type System added in v1.9.4

type System interface {
	RollupCfg() *rollup.Config
	L2Genesis() *core.Genesis
	AllocType() e2econfig.AllocType
}

Jump to

Keyboard shortcuts

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