Documentation ¶
Index ¶
- Constants
- Variables
- func ContextAsReadOnly(ic *interop.Context) error
- func Delete(ic *interop.Context) error
- func Find(ic *interop.Context) error
- func Get(ic *interop.Context) error
- func GetContext(ic *interop.Context) error
- func GetReadOnlyContext(ic *interop.Context) error
- func Put(ic *interop.Context) error
- type Context
- type Iterator
Constants ¶
View Source
const ( FindDefault = 0 FindKeysOnly = 1 << 0 FindRemovePrefix = 1 << 1 FindValuesOnly = 1 << 2 FindDeserialize = 1 << 3 FindPick0 = 1 << 4 FindPick1 = 1 << 5 FindBackwards = 1 << 7 FindAll = FindDefault | FindKeysOnly | FindRemovePrefix | FindValuesOnly | FindDeserialize | FindPick0 | FindPick1 | FindBackwards )
Storage iterator options.
Variables ¶
View Source
var ( // ErrGasLimitExceeded is returned from interops when there is not enough // GAS left in the execution context to complete the action. ErrGasLimitExceeded = errors.New("gas limit exceeded") )
Functions ¶
func ContextAsReadOnly ¶ added in v0.99.1
ContextAsReadOnly sets given context to read-only mode.
func GetContext ¶ added in v0.99.1
GetContext returns storage context for the currently executing contract.
func GetReadOnlyContext ¶ added in v0.99.1
GetReadOnlyContext returns read-only storage context for the currently executing contract.
Types ¶
type Context ¶ added in v0.99.1
Context contains contract ID and read/write flag, it's used as a context for storage manipulation functions.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is an iterator state representation.
func NewIterator ¶
NewIterator creates a new Iterator with the given options for the given channel of store.Seek results.
Click to show internal directories.
Click to hide internal directories.