mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
2c24cb342e
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
47 lines
1 KiB
Go
47 lines
1 KiB
Go
// Code generated by "stringer -type=Hardfork -linecomment"; DO NOT EDIT.
|
|
|
|
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{}
|
|
_ = x[HFDefault-0]
|
|
_ = x[HFAspidochelone-1]
|
|
_ = x[HFBasilisk-2]
|
|
_ = x[HFCockatrice-4]
|
|
_ = x[HFDomovoi-8]
|
|
_ = x[HFEchidna-16]
|
|
_ = x[hfLast-32]
|
|
}
|
|
|
|
const (
|
|
_Hardfork_name_0 = "DefaultAspidocheloneBasilisk"
|
|
_Hardfork_name_1 = "Cockatrice"
|
|
_Hardfork_name_2 = "Domovoi"
|
|
_Hardfork_name_3 = "Echidna"
|
|
_Hardfork_name_4 = "hfLast"
|
|
)
|
|
|
|
var (
|
|
_Hardfork_index_0 = [...]uint8{0, 7, 20, 28}
|
|
)
|
|
|
|
func (i Hardfork) String() string {
|
|
switch {
|
|
case i <= 2:
|
|
return _Hardfork_name_0[_Hardfork_index_0[i]:_Hardfork_index_0[i+1]]
|
|
case i == 4:
|
|
return _Hardfork_name_1
|
|
case i == 8:
|
|
return _Hardfork_name_2
|
|
case i == 16:
|
|
return _Hardfork_name_3
|
|
case i == 32:
|
|
return _Hardfork_name_4
|
|
default:
|
|
return "Hardfork(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|