tests

package
v0.13.7-acp-118-handlers Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: GPL-3.0, LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Forks = map[string]*params.ChainConfig{
	"Frontier": {
		ChainID: big.NewInt(1),
	},
	"Homestead": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
	},
	"EIP150": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(0),
	},
	"EIP158": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(0),
		EIP155Block:    big.NewInt(0),
		EIP158Block:    big.NewInt(0),
	},
	"Byzantium": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(0),
		EIP155Block:    big.NewInt(0),
		EIP158Block:    big.NewInt(0),
		DAOForkBlock:   big.NewInt(0),
		ByzantiumBlock: big.NewInt(0),
	},
	"Constantinople": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		DAOForkBlock:        big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(0),
		PetersburgBlock:     big.NewInt(10000000),
	},
	"ConstantinopleFix": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		DAOForkBlock:        big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(0),
		PetersburgBlock:     big.NewInt(0),
	},
	"Istanbul": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		DAOForkBlock:        big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(0),
		PetersburgBlock:     big.NewInt(0),
		IstanbulBlock:       big.NewInt(0),
	},
	"MuirGlacier": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		DAOForkBlock:        big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(0),
		PetersburgBlock:     big.NewInt(0),
		IstanbulBlock:       big.NewInt(0),
		MuirGlacierBlock:    big.NewInt(0),
	},
	"FrontierToHomesteadAt5": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(5),
	},
	"HomesteadToEIP150At5": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(5),
	},
	"HomesteadToDaoAt5": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		DAOForkBlock:   big.NewInt(5),
		DAOForkSupport: true,
	},
	"EIP158ToByzantiumAt5": {
		ChainID:        big.NewInt(1),
		HomesteadBlock: big.NewInt(0),
		EIP150Block:    big.NewInt(0),
		EIP155Block:    big.NewInt(0),
		EIP158Block:    big.NewInt(0),
		ByzantiumBlock: big.NewInt(5),
	},
	"ByzantiumToConstantinopleAt5": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(5),
	},
	"ByzantiumToConstantinopleFixAt5": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(5),
		PetersburgBlock:     big.NewInt(5),
	},
	"ConstantinopleFixToIstanbulAt5": {
		ChainID:             big.NewInt(1),
		HomesteadBlock:      big.NewInt(0),
		EIP150Block:         big.NewInt(0),
		EIP155Block:         big.NewInt(0),
		EIP158Block:         big.NewInt(0),
		ByzantiumBlock:      big.NewInt(0),
		ConstantinopleBlock: big.NewInt(0),
		PetersburgBlock:     big.NewInt(0),
		IstanbulBlock:       big.NewInt(5),
	},
	"ApricotPhase1": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
	},
	"ApricotPhase2": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		MuirGlacierBlock:            big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
	},
	"ApricotPhase3": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		MuirGlacierBlock:            big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
	},
	"ApricotPhase4": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		MuirGlacierBlock:            big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
	},
	"ApricotPhase5": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
		ApricotPhase5BlockTimestamp: utils.NewUint64(0),
	},
	"Banff": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
		ApricotPhase5BlockTimestamp: utils.NewUint64(0),
		BanffBlockTimestamp:         utils.NewUint64(0),
	},
	"Cortina": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
		ApricotPhase5BlockTimestamp: utils.NewUint64(0),
		BanffBlockTimestamp:         utils.NewUint64(0),
		CortinaBlockTimestamp:       utils.NewUint64(0),
	},
	"Durango": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
		ApricotPhase5BlockTimestamp: utils.NewUint64(0),
		BanffBlockTimestamp:         utils.NewUint64(0),
		CortinaBlockTimestamp:       utils.NewUint64(0),
		DurangoBlockTimestamp:       utils.NewUint64(0),
	},
	"Cancun": {
		ChainID:                     big.NewInt(1),
		HomesteadBlock:              big.NewInt(0),
		EIP150Block:                 big.NewInt(0),
		EIP155Block:                 big.NewInt(0),
		EIP158Block:                 big.NewInt(0),
		ByzantiumBlock:              big.NewInt(0),
		ConstantinopleBlock:         big.NewInt(0),
		PetersburgBlock:             big.NewInt(0),
		IstanbulBlock:               big.NewInt(0),
		ApricotPhase1BlockTimestamp: utils.NewUint64(0),
		ApricotPhase2BlockTimestamp: utils.NewUint64(0),
		ApricotPhase3BlockTimestamp: utils.NewUint64(0),
		ApricotPhase4BlockTimestamp: utils.NewUint64(0),
		ApricotPhase5BlockTimestamp: utils.NewUint64(0),
		BanffBlockTimestamp:         utils.NewUint64(0),
		CortinaBlockTimestamp:       utils.NewUint64(0),
		DurangoBlockTimestamp:       utils.NewUint64(0),
		CancunTime:                  utils.NewUint64(0),
	},
}

Forks table defines supported forks and their chain config.

Functions

func AvailableForks added in v0.5.0

func AvailableForks() []string

AvailableForks returns the set of defined fork names

Types

type UnsupportedForkError added in v0.5.0

type UnsupportedForkError struct {
	Name string
}

UnsupportedForkError is returned when a test requests a fork that isn't implemented.

func (UnsupportedForkError) Error added in v0.5.0

func (e UnsupportedForkError) Error() string

Jump to

Keyboard shortcuts

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