faultproofs

package
v1.16.11 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InteropL1ChainID = new(big.Int).SetUint64(900100)

Functions

func RunTestAcrossVmTypes

func RunTestAcrossVmTypes(t *testing.T, test VMTest, opts ...VMTestOption[any])

RunTestAcrossVmTypes Runs a single test case across multiple vm types

func RunTestsAcrossVmTypes

func RunTestsAcrossVmTypes[T any](t *testing.T, testCases []T, test VMTestCase[T], opts ...VMTestOption[T])

RunTestsAcrossVmTypes Runs a set of testCases, each testCase is run across multiple vm types

func SendKZGPointEvaluationTx

func SendKZGPointEvaluationTx(t *testing.T, sys *e2esys.System, l2Node string, privateKey *ecdsa.PrivateKey) *types.Receipt

func StartFaultDisputeSystem

func StartFaultDisputeSystem(t *testing.T, opts ...faultDisputeConfigOpts) (*e2esys.System, *ethclient.Client)

func StartInteropFaultDisputeSystem

func StartInteropFaultDisputeSystem(t *testing.T, opts ...faultDisputeConfigOpts) (interop.SuperSystem, *disputegame.FactoryHelper, *ethclient.Client)

func WithAllocType

func WithAllocType(allocType config.AllocType) faultDisputeConfigOpts

func WithBatcherStopped

func WithBatcherStopped() faultDisputeConfigOpts

func WithBlobBatches

func WithBlobBatches() faultDisputeConfigOpts

func WithEcotone

func WithEcotone() faultDisputeConfigOpts

func WithLatestFork

func WithLatestFork() faultDisputeConfigOpts

func WithSequencerWindowSize

func WithSequencerWindowSize(size uint64) faultDisputeConfigOpts

Types

type VMTest

type VMTest func(t *testing.T, allocType config.AllocType)

type VMTestCase

type VMTestCase[T any] func(t *testing.T, allocType config.AllocType, testcase T)

type VMTestOption

type VMTestOption[T any] func(*vmTestOptions[T])

func WithNextVMOnly

func WithNextVMOnly[T any]() VMTestOption[T]

func WithTestName

func WithTestName[T any](testName func(vmName string, _ T) string) VMTestOption[T]

func WithTestNamePrefix

func WithTestNamePrefix[T any](prefix string) VMTestOption[T]

Jump to

Keyboard shortcuts

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