Documentation ¶
Index ¶
- func FindMonorepoRoot(t *testing.T) string
- func NewChallengerConfig(t *testing.T, sys EndpointProvider, l2NodeName string, options ...Option) *config.Config
- type CapturingMetrics
- type EndpointProvider
- type GameAddr
- type Helper
- func (h *Helper) Close() error
- func (h *Helper) VerifyGameDataExists(games ...GameAddr)
- func (h *Helper) WaitForGameDataDeletion(ctx context.Context, games ...GameAddr)
- func (h *Helper) WaitForHighestActedL1Block(ctx context.Context, head uint64)
- func (h *Helper) WaitL1HeadActedOn(ctx context.Context, client *ethclient.Client)
- type Option
- func WithAlphabet() Option
- func WithCannon(t *testing.T, rollupCfg *rollup.Config, l2Genesis *core.Genesis) Option
- func WithFactoryAddress(addr common.Address) Option
- func WithFastGames() Option
- func WithGameAddress(addr common.Address) Option
- func WithPollInterval(pollInterval time.Duration) Option
- func WithPrivKey(key *ecdsa.PrivateKey) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMonorepoRoot ¶
FindMonorepoRoot finds the relative path to the monorepo root Different tests might be nested in subdirectories of the op-e2e dir.
func NewChallengerConfig ¶
Types ¶
type CapturingMetrics ¶
type CapturingMetrics struct { metrics.NoopMetricsImpl HighestActedL1Block atomic.Uint64 }
func NewCapturingMetrics ¶
func NewCapturingMetrics() *CapturingMetrics
func (*CapturingMetrics) RecordActedL1Block ¶
func (c *CapturingMetrics) RecordActedL1Block(block uint64)
type EndpointProvider ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
func NewChallenger ¶
func (*Helper) VerifyGameDataExists ¶
func (*Helper) WaitForGameDataDeletion ¶
func (*Helper) WaitForHighestActedL1Block ¶
type Option ¶
func WithAlphabet ¶
func WithAlphabet() Option
func WithCannon ¶
func WithFactoryAddress ¶
func WithFastGames ¶
func WithFastGames() Option
func WithGameAddress ¶
func WithPollInterval ¶
func WithPrivKey ¶
func WithPrivKey(key *ecdsa.PrivateKey) Option
Click to show internal directories.
Click to hide internal directories.