challenger

package
v0.0.0-...-86af830 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChallengerConfig

func NewChallengerConfig(t *testing.T, l1Endpoint string, options ...Option) *config.Config

Types

type GameAddr

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

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

func (*Helper) WaitForGameDataDeletion

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

type Option

type Option func(config2 *config.Config)

func WithAgreeProposedOutput

func WithAgreeProposedOutput(agree bool) Option

func WithAlphabet

func WithAlphabet(alphabet string) Option

func WithCannon

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

func WithFactoryAddress

func WithFactoryAddress(addr common.Address) Option

func WithGameAddress

func WithGameAddress(addr common.Address) Option

func WithOutputCannon

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

func WithPollInterval

func WithPollInterval(pollInterval time.Duration) Option

func WithPrivKey

func WithPrivKey(key *ecdsa.PrivateKey) Option

Jump to

Keyboard shortcuts

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