neo-go/pkg/vm/api/storage/storage.go
Anthony De Meulemeester d77354db66
Add missing compiler interop API functions (#93)
* 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
2018-08-19 20:47:10 +02:00

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 }