github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/tests/init.go (about)

     1  package tests
     2  
     3  import (
     4  	"fmt"
     5  	"math/big"
     6  
     7  	"github.com/neatio-net/neatio/params"
     8  )
     9  
    10  var Forks = map[string]*params.ChainConfig{
    11  	"Frontier": {
    12  		ChainId: big.NewInt(1),
    13  	},
    14  	"Homestead": {
    15  		ChainId:        big.NewInt(1),
    16  		HomesteadBlock: big.NewInt(0),
    17  	},
    18  	"EIP150": {
    19  		ChainId:        big.NewInt(1),
    20  		HomesteadBlock: big.NewInt(0),
    21  		EIP150Block:    big.NewInt(0),
    22  	},
    23  	"EIP158": {
    24  		ChainId:        big.NewInt(1),
    25  		HomesteadBlock: big.NewInt(0),
    26  		EIP150Block:    big.NewInt(0),
    27  		EIP155Block:    big.NewInt(0),
    28  		EIP158Block:    big.NewInt(0),
    29  	},
    30  	"Byzantium": {
    31  		ChainId:        big.NewInt(1),
    32  		HomesteadBlock: big.NewInt(0),
    33  		EIP150Block:    big.NewInt(0),
    34  		EIP155Block:    big.NewInt(0),
    35  		EIP158Block:    big.NewInt(0),
    36  		ByzantiumBlock: big.NewInt(0),
    37  	},
    38  	"Constantinople": {
    39  		ChainId:             big.NewInt(1),
    40  		HomesteadBlock:      big.NewInt(0),
    41  		EIP150Block:         big.NewInt(0),
    42  		EIP155Block:         big.NewInt(0),
    43  		EIP158Block:         big.NewInt(0),
    44  		ByzantiumBlock:      big.NewInt(0),
    45  		ConstantinopleBlock: big.NewInt(0),
    46  		PetersburgBlock:     big.NewInt(0),
    47  	},
    48  	"ConstantinopleFix": {
    49  		ChainId:             big.NewInt(1),
    50  		HomesteadBlock:      big.NewInt(0),
    51  		EIP150Block:         big.NewInt(0),
    52  		EIP155Block:         big.NewInt(0),
    53  		EIP158Block:         big.NewInt(0),
    54  		ByzantiumBlock:      big.NewInt(0),
    55  		ConstantinopleBlock: big.NewInt(0),
    56  		PetersburgBlock:     big.NewInt(0),
    57  	},
    58  	"Istanbul": {
    59  		ChainId:             big.NewInt(1),
    60  		HomesteadBlock:      big.NewInt(0),
    61  		EIP150Block:         big.NewInt(0),
    62  		EIP155Block:         big.NewInt(0),
    63  		EIP158Block:         big.NewInt(0),
    64  		ByzantiumBlock:      big.NewInt(0),
    65  		ConstantinopleBlock: big.NewInt(0),
    66  		PetersburgBlock:     big.NewInt(0),
    67  		IstanbulBlock:       big.NewInt(0),
    68  	},
    69  	"FrontierToHomesteadAt5": {
    70  		ChainId:        big.NewInt(1),
    71  		HomesteadBlock: big.NewInt(5),
    72  	},
    73  	"HomesteadToEIP150At5": {
    74  		ChainId:        big.NewInt(1),
    75  		HomesteadBlock: big.NewInt(0),
    76  		EIP150Block:    big.NewInt(5),
    77  	},
    78  	"HomesteadToDaoAt5": {
    79  		ChainId:        big.NewInt(1),
    80  		HomesteadBlock: big.NewInt(0),
    81  	},
    82  	"EIP158ToByzantiumAt5": {
    83  		ChainId:        big.NewInt(1),
    84  		HomesteadBlock: big.NewInt(0),
    85  		EIP150Block:    big.NewInt(0),
    86  		EIP155Block:    big.NewInt(0),
    87  		EIP158Block:    big.NewInt(0),
    88  		ByzantiumBlock: big.NewInt(5),
    89  	},
    90  }
    91  
    92  type UnsupportedForkError struct {
    93  	Name string
    94  }
    95  
    96  func (e UnsupportedForkError) Error() string {
    97  	return fmt.Sprintf("unsupported fork %q", e.Name)
    98  }