neoneo-go/pkg/vm/smartcontract/storage/storage.go
Anthony De Meulemeester b6b8542caf
Compiler (#37)
* refactored structs so the scope is not needed anymore + fix passing struct in func arguments.

* implemented byte arrays and added runtime tests

* Added sc examples in compiler README + added quick nested if test.

* Updated README

* Changed import paths to interop layer
2018-03-02 16:49:10 +01:00

16 lines
528 B
Go

package storage
// GetContext ..
func GetContext() interface{} { return 0 }
// Put stores a value in to the storage.
func Put(ctx interface{}, key interface{}, value interface{}) int { return 0 }
// GetInt returns the value as an integer.
func GetInt(ctx interface{}, key interface{}) int { return 0 }
// GetString returns the value as an string.
func GetString(ctx interface{}, key interface{}) string { return "" }
// Delete removes a stored key value pair.
func Delete(ctx interface{}, key interface{}) int { return 0 }