challenger

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChallengerConfig added in v1.1.4

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

Types

type EndpointProvider added in v1.5.1

type EndpointProvider interface {
	NodeEndpoint(name string) string
	L1BeaconEndpoint() string
}

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 (*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)

type Option

type Option func(config2 *config.Config)

func WithAlphabet added in v1.1.6

func WithAlphabet(rollupEndpoint string) Option

func WithCannon added in v1.1.6

func WithCannon(
	t *testing.T,
	rollupCfg *rollup.Config,
	l2Genesis *core.Genesis,
	rollupEndpoint string,
	l2Endpoint string,
) Option

func WithFactoryAddress added in v1.1.6

func WithFactoryAddress(addr common.Address) Option

func WithGameAddress added in v1.1.6

func WithGameAddress(addr common.Address) 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

Jump to

Keyboard shortcuts

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