2022-05-26 11:04:23 +00:00
|
|
|
// Code generated by "stringer -type=Hardfork -linecomment"; DO NOT EDIT.
|
2022-05-06 12:19:17 +00:00
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
|
|
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{}
|
2024-04-08 11:29:44 +00:00
|
|
|
_ = x[HFDefault-0]
|
2022-05-26 11:04:23 +00:00
|
|
|
_ = x[HFAspidochelone-1]
|
2023-08-03 16:48:55 +00:00
|
|
|
_ = x[HFBasilisk-2]
|
2024-04-08 16:19:34 +00:00
|
|
|
_ = x[HFCockatrice-4]
|
2024-06-04 10:25:21 +00:00
|
|
|
_ = x[HFDomovoi-8]
|
2024-06-04 10:25:21 +00:00
|
|
|
_ = x[HFEchidna-16]
|
|
|
|
_ = x[hfLast-32]
|
2022-05-06 12:19:17 +00:00
|
|
|
}
|
|
|
|
|
2023-10-18 20:21:47 +00:00
|
|
|
const (
|
2024-04-08 11:29:44 +00:00
|
|
|
_Hardfork_name_0 = "DefaultAspidocheloneBasilisk"
|
2024-04-08 16:19:34 +00:00
|
|
|
_Hardfork_name_1 = "Cockatrice"
|
2024-06-04 10:25:21 +00:00
|
|
|
_Hardfork_name_2 = "Domovoi"
|
2024-06-04 10:25:21 +00:00
|
|
|
_Hardfork_name_3 = "Echidna"
|
|
|
|
_Hardfork_name_4 = "hfLast"
|
2023-10-18 20:21:47 +00:00
|
|
|
)
|
2022-05-06 12:19:17 +00:00
|
|
|
|
2023-10-18 20:21:47 +00:00
|
|
|
var (
|
2024-04-08 11:29:44 +00:00
|
|
|
_Hardfork_index_0 = [...]uint8{0, 7, 20, 28}
|
2023-10-18 20:21:47 +00:00
|
|
|
)
|
2022-05-06 12:19:17 +00:00
|
|
|
|
|
|
|
func (i Hardfork) String() string {
|
2023-10-18 20:21:47 +00:00
|
|
|
switch {
|
2024-04-08 11:29:44 +00:00
|
|
|
case i <= 2:
|
2023-10-18 20:21:47 +00:00
|
|
|
return _Hardfork_name_0[_Hardfork_index_0[i]:_Hardfork_index_0[i+1]]
|
|
|
|
case i == 4:
|
|
|
|
return _Hardfork_name_1
|
2024-04-08 16:19:34 +00:00
|
|
|
case i == 8:
|
|
|
|
return _Hardfork_name_2
|
2024-06-04 10:25:21 +00:00
|
|
|
case i == 16:
|
|
|
|
return _Hardfork_name_3
|
2024-06-04 10:25:21 +00:00
|
|
|
case i == 32:
|
|
|
|
return _Hardfork_name_4
|
2023-10-18 20:21:47 +00:00
|
|
|
default:
|
|
|
|
return "Hardfork(" + strconv.FormatInt(int64(i), 10) + ")"
|
2022-05-06 12:19:17 +00:00
|
|
|
}
|
|
|
|
}
|