2020-03-19 15:52:37 +00:00
|
|
|
package smartcontract
|
|
|
|
|
|
|
|
// CallFlag represents call flag.
|
|
|
|
type CallFlag byte
|
|
|
|
|
|
|
|
// Default flags.
|
|
|
|
const (
|
2020-06-10 07:49:18 +00:00
|
|
|
NoneFlag CallFlag = 0
|
|
|
|
AllowStates CallFlag = 1 << iota
|
|
|
|
AllowModifyStates
|
2020-03-19 15:52:37 +00:00
|
|
|
AllowCall
|
|
|
|
AllowNotify
|
2020-06-10 07:49:18 +00:00
|
|
|
ReadOnly = AllowStates | AllowCall | AllowNotify
|
|
|
|
All = ReadOnly | AllowModifyStates
|
2020-03-19 15:52:37 +00:00
|
|
|
)
|