neoneo-go/interop/storage/storage.go
Anthony De Meulemeester 05cd2775e2 renamed path to match the new project name (CityOfZion/neo-storm#8)
Imported from CityOfZion/neo-storm (d022d46cd851de78ee041851a80dc34e3b3b68d1).
2019-08-14 19:14:04 +03:00

22 lines
702 B
Go

package storage
// Package storage provides function signatures that can be used inside
// smart contracts that are written in the neo-storm framework.
// Context represents the storage context
type Context struct{}
// GetContext returns the storage context
func GetContext() Context { return Context{} }
// Put value at given key
func Put(ctx Context, key interface{}, value interface{}) {}
// Get value matching given key
func Get(ctx Context, key interface{}) interface{} { return 0 }
// Delete key value pair from storage
func Delete(ctx Context, key interface{}) {}
// Find values stored on keys partially matching given key
func Find(ctx Context, key interface{}) interface{} { return 0 }