2018-08-20 11:22:46 +00:00
|
|
|
package storage
|
|
|
|
|
2018-08-21 10:57:48 +00:00
|
|
|
// Package storage provides function signatures that can be used inside
|
2018-08-21 11:39:35 +00:00
|
|
|
// smart contracts that are written in the neo-storm framework.
|
2018-08-21 10:57:48 +00:00
|
|
|
|
2018-08-20 11:22:46 +00:00
|
|
|
// Context represents the storage context
|
2018-08-21 07:11:25 +00:00
|
|
|
type Context struct{}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// GetContext returns the storage context
|
2018-08-21 07:11:25 +00:00
|
|
|
func GetContext() Context { return Context{} }
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Put value at given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Put(ctx Context, key interface{}, value interface{}) {}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Get value matching given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Get(ctx Context, key interface{}) interface{} { return 0 }
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Delete key value pair from storage
|
2018-08-21 07:11:25 +00:00
|
|
|
func Delete(ctx Context, key interface{}) {}
|
2018-08-20 11:22:46 +00:00
|
|
|
|
|
|
|
// Find values stored on keys partially matching given key
|
2018-08-21 07:11:25 +00:00
|
|
|
func Find(ctx Context, key interface{}) interface{} { return 0 }
|