forked from TrueCloudLab/neoneo-go
05cd2775e2
Imported from CityOfZion/neo-storm (d022d46cd851de78ee041851a80dc34e3b3b68d1).
22 lines
702 B
Go
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 }
|