smartcontract: add AllowStates call flag

This commit is contained in:
Evgenii Stratonikov 2020-06-10 10:49:18 +03:00
parent 5fed409ea7
commit ebbf0321b2

View file

@ -6,9 +6,10 @@ type CallFlag byte
// Default flags.
const (
NoneFlag CallFlag = 0
AllowModifyStates CallFlag = 1 << iota
AllowStates CallFlag = 1 << iota
AllowModifyStates
AllowCall
AllowNotify
ReadOnly = AllowCall | AllowNotify
All = AllowModifyStates | AllowCall | AllowNotify
ReadOnly = AllowStates | AllowCall | AllowNotify
All = ReadOnly | AllowModifyStates
)