mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 13:58:05 +00:00
9875799893
See neo-project/neo#2622. The implementation is somewhat asymmetric (and not very efficient) for binary/JSON encoding/decoding, but it should be sufficient.
46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
// Code generated by "stringer -type=WitnessScope -output=witness_scope_string.go"; DO NOT EDIT.
|
|
|
|
package transaction
|
|
|
|
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[None-0]
|
|
_ = x[CalledByEntry-1]
|
|
_ = x[CustomContracts-16]
|
|
_ = x[CustomGroups-32]
|
|
_ = x[Rules-64]
|
|
_ = x[Global-128]
|
|
}
|
|
|
|
const (
|
|
_WitnessScope_name_0 = "NoneCalledByEntry"
|
|
_WitnessScope_name_1 = "CustomContracts"
|
|
_WitnessScope_name_2 = "CustomGroups"
|
|
_WitnessScope_name_3 = "Rules"
|
|
_WitnessScope_name_4 = "Global"
|
|
)
|
|
|
|
var (
|
|
_WitnessScope_index_0 = [...]uint8{0, 4, 17}
|
|
)
|
|
|
|
func (i WitnessScope) String() string {
|
|
switch {
|
|
case 0 <= i && i <= 1:
|
|
return _WitnessScope_name_0[_WitnessScope_index_0[i]:_WitnessScope_index_0[i+1]]
|
|
case i == 16:
|
|
return _WitnessScope_name_1
|
|
case i == 32:
|
|
return _WitnessScope_name_2
|
|
case i == 64:
|
|
return _WitnessScope_name_3
|
|
case i == 128:
|
|
return _WitnessScope_name_4
|
|
default:
|
|
return "WitnessScope(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|