challenger

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DummyPermissionedPrestate = "0x000000000000000000000000000000000000000000000000000000000000dead"

DummyPermissionedPrestate is a placeholder absolute prestate for the PermissionedCannon game type. The legacy fault-proof program is no longer wired into devstack, so PermissionedCannon games are configured with a dummy prestate and never executed by the challenger — permissioned games skip prestate validation and only trusted actors participate, so they resolve without reaching step().

Variables

This section is empty.

Functions

func LocateKonaHost added in v1.19.1

func LocateKonaHost(ctx context.Context) (string, error)

LocateKonaHost ensures the kona-host native binary is built and returns its path.

func NewInteropChallengerConfig

func NewInteropChallengerConfig(ctx context.Context, dir string, l1Endpoint string, l1Beacon string, supervisorEndpoint string, l2Endpoints []string, options ...Option) (*config.Config, error)

func NewPreInteropChallengerConfig

func NewPreInteropChallengerConfig(ctx context.Context, dir string, l1Endpoint string, l1Beacon string, rollupEndpoint string, l2Endpoint string, options ...Option) (*config.Config, error)

Types

type Option

type Option func(ctx context.Context, cfg *config.Config) error

func WithCannonKonaConfig

func WithCannonKonaConfig(rollupCfgs []*rollup.Config, l1Genesis *core.Genesis, l2Geneses []*core.Genesis) Option

func WithCannonKonaGameType

func WithCannonKonaGameType() Option

func WithCannonKonaInteropConfig

func WithCannonKonaInteropConfig(rollupCfgs []*rollup.Config, l1Genesis *core.Genesis, l2Geneses []*core.Genesis) Option

func WithFactoryAddress

func WithFactoryAddress(addr common.Address) Option

func WithFastGames

func WithFastGames() Option

func WithPermissionedCannonConfig added in v1.19.1

func WithPermissionedCannonConfig(rollupCfgs []*rollup.Config, l1Genesis *core.Genesis, l2Geneses []*core.Genesis) Option

WithPermissionedCannonConfig wires the Cannon VM config used by the PermissionedCannon game type. The legacy fault-proof program is no longer referenced — the prestate is a dummy and the server is unused.

func WithPermissionedGameType

func WithPermissionedGameType() Option

func WithPrivKey

func WithPrivKey(key *ecdsa.PrivateKey) Option

func WithSuperCannonKonaGameType

func WithSuperCannonKonaGameType() Option

Jump to

Keyboard shortcuts

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