challenger

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 20 Imported by: 2

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, l1Endpoint string, options ...Option) *config.Config

Types

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, l1Endpoint string, 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(alphabet string) Option

func WithCannon added in v1.1.6

func WithCannon(
	t *testing.T,
	rollupCfg *rollup.Config,
	l2Genesis *core.Genesis,
	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 WithOutputCannon added in v1.4.2

func WithOutputCannon(
	t *testing.T,
	rollupCfg *rollup.Config,
	l2Genesis *core.Genesis,
	rollupEndpoint string,
	l2Endpoint string) 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