Documentation
¶
Index ¶
- 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 MinimalT
- type Option
- func WithAlphabet() Option
- func WithCannon(t *testing.T, system System) Option
- func WithDepset(t *testing.T, ds *depset.StaticConfigDependencySet) Option
- func WithFactoryAddress(addr common.Address) Option
- func WithFastGames() Option
- func WithGameAddress(addr common.Address) Option
- func WithInvalidCannonPrestate() Option
- func WithPermissioned(t *testing.T, system System) Option
- func WithPollInterval(pollInterval time.Duration) Option
- func WithPrivKey(key *ecdsa.PrivateKey) Option
- func WithSuperCannon(t *testing.T, system System) Option
- func WithValidPrestateRequired() Option
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 WithDepset ¶
func WithDepset(t *testing.T, ds *depset.StaticConfigDependencySet) Option
func WithFactoryAddress ¶
func WithFastGames ¶
func WithFastGames() Option
func WithGameAddress ¶
func WithInvalidCannonPrestate ¶
func WithInvalidCannonPrestate() Option
func WithPollInterval ¶
func WithPrivKey ¶
func WithPrivKey(key *ecdsa.PrivateKey) Option
func WithValidPrestateRequired ¶
func WithValidPrestateRequired() Option
Click to show internal directories.
Click to hide internal directories.