mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 21:10:36 +00:00
d77354db66
* added runtime serialize and deserialize functions * removed getCurrentBlock from runtime functions * Added block and header stdlib interop functions * added transaction interop api * added asset interop api * bumped version * Added missing storage.Find storage API function * Fixed wrong example in the compiler README * updated the compiler README to be more accurate on compiler features
19 lines
604 B
Go
19 lines
604 B
Go
package storage
|
|
|
|
// Context represents the storage context.
|
|
type Context interface{}
|
|
|
|
// GetContext returns the storage context.
|
|
func GetContext() interface{} { return nil }
|
|
|
|
// Put stores a value in to the storage.
|
|
func Put(ctx interface{}, key interface{}, value interface{}) {}
|
|
|
|
// Get returns the value from the storage.
|
|
func Get(ctx interface{}, key interface{}) interface{} { return 0 }
|
|
|
|
// Delete removes a stored key value pair.
|
|
func Delete(ctx interface{}, key interface{}) {}
|
|
|
|
// Find entrys somewhat matching the given key.
|
|
func Find(ctx interface{}, key interface{}) interface{} { return 0 }
|