ethergo/backends/anvil/hardfork_string.go
// Code generated by "stringer -type=Hardfork -linecomment"; DO NOT EDIT.
package anvil
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Frontier-1]
_ = x[Homestead-2]
_ = x[DAO-3]
_ = x[Tangerine-4]
_ = x[Spurious-5]
_ = x[Byzantium-6]
_ = x[Constantinople-7]
_ = x[Petersburg-8]
_ = x[Istanbul-9]
_ = x[MuirGlacier-10]
_ = x[Berlin-11]
_ = x[London-12]
_ = x[ArrowGlacier-13]
_ = x[GrayGlacier-14]
_ = x[Latest-15]
}
const _Hardfork_name = "frontierhomesteaddaotangerinespuriousdragonbyzantiumconstantinoplepetersburgistanbulmuirglacierberlinlondonarrowglaciergrayglacierlatest"
var _Hardfork_index = [...]uint8{0, 8, 17, 20, 29, 43, 52, 66, 76, 84, 95, 101, 107, 119, 130, 136}
func (i Hardfork) String() string {
i -= 1
if i >= Hardfork(len(_Hardfork_index)-1) {
return "Hardfork(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _Hardfork_name[_Hardfork_index[i]:_Hardfork_index[i+1]]
}