validations

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorDescription

func ErrorDescription(code string) string

func ValidatorAddress

func ValidatorAddress(chainID uint64, version string) (common.Address, error)

Types

type BaseValidator

type BaseValidator struct {
	// contains filtered or unexported fields
}

func NewV180Validator

func NewV180Validator(client *rpc.Client) *BaseValidator

func NewV200Validator

func NewV200Validator(client *rpc.Client) *BaseValidator

func NewV300Validator added in v1.13.4

func NewV300Validator(client *rpc.Client) *BaseValidator

func NewV400Validator added in v1.13.4

func NewV400Validator(client *rpc.Client) *BaseValidator

func (*BaseValidator) Validate

func (v *BaseValidator) Validate(ctx context.Context, input BaseValidatorInput) ([]string, error)

type BaseValidatorInput

type BaseValidatorInput struct {
	ProxyAdminAddress   common.Address
	SystemConfigAddress common.Address
	AbsolutePrestate    common.Hash
	L2ChainID           *big.Int
}

type Output

type Output struct {
	Errors []string
}

func (*Output) AsMarkdown

func (o *Output) AsMarkdown() string

type Validator

type Validator interface {
	Validate(ctx context.Context, input BaseValidatorInput) ([]string, error)
}

Jump to

Keyboard shortcuts

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