2020-06-15 09:16:18 +00:00
|
|
|
// 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{}
|
2020-10-01 12:26:51 +00:00
|
|
|
_ = x[None-0]
|
2020-06-15 09:16:18 +00:00
|
|
|
_ = x[CalledByEntry-1]
|
|
|
|
_ = x[CustomContracts-16]
|
|
|
|
_ = x[CustomGroups-32]
|
2021-11-12 10:22:35 +00:00
|
|
|
_ = x[Rules-64]
|
2020-07-29 16:41:15 +00:00
|
|
|
_ = x[Global-128]
|
2020-06-15 09:16:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
2020-10-01 12:26:51 +00:00
|
|
|
_WitnessScope_name_0 = "NoneCalledByEntry"
|
2020-06-15 09:16:18 +00:00
|
|
|
_WitnessScope_name_1 = "CustomContracts"
|
|
|
|
_WitnessScope_name_2 = "CustomGroups"
|
2021-11-12 10:22:35 +00:00
|
|
|
_WitnessScope_name_3 = "Rules"
|
|
|
|
_WitnessScope_name_4 = "Global"
|
2020-06-15 09:16:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2020-10-01 12:26:51 +00:00
|
|
|
_WitnessScope_index_0 = [...]uint8{0, 4, 17}
|
2020-06-15 09:16:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (i WitnessScope) String() string {
|
|
|
|
switch {
|
2021-11-12 10:22:35 +00:00
|
|
|
case 0 <= i && i <= 1:
|
2020-06-15 09:16:18 +00:00
|
|
|
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
|
2021-11-12 10:22:35 +00:00
|
|
|
case i == 64:
|
2020-07-29 16:41:15 +00:00
|
|
|
return _WitnessScope_name_3
|
2021-11-12 10:22:35 +00:00
|
|
|
case i == 128:
|
|
|
|
return _WitnessScope_name_4
|
2020-06-15 09:16:18 +00:00
|
|
|
default:
|
|
|
|
return "WitnessScope(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
}
|