mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-28 11:36:17 +00:00
1815bc8a32
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
35 lines
757 B
Go
35 lines
757 B
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[HFAspidochelone-1]
|
|
_ = x[HFBasilisk-2]
|
|
_ = x[hfLast-4]
|
|
}
|
|
|
|
const (
|
|
_Hardfork_name_0 = "AspidocheloneBasilisk"
|
|
_Hardfork_name_1 = "hfLast"
|
|
)
|
|
|
|
var (
|
|
_Hardfork_index_0 = [...]uint8{0, 13, 21}
|
|
)
|
|
|
|
func (i Hardfork) String() string {
|
|
switch {
|
|
case 1 <= i && i <= 2:
|
|
i -= 1
|
|
return _Hardfork_name_0[_Hardfork_index_0[i]:_Hardfork_index_0[i+1]]
|
|
case i == 4:
|
|
return _Hardfork_name_1
|
|
default:
|
|
return "Hardfork(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|