neoneo-go/pkg/vm/syscall.go
Anthony De Meulemeester de3395fb51
Refactor of imports + lots of sweet stuff (#30)
* implemented global variables.

* refactored imports + lots and lots of other sweet stuff + fix #28.

* Implemented the VM interop runtime API (GetTrigger, CheckWitness, ...)
2018-02-25 13:26:56 +01:00

20 lines
622 B
Go

package vm
// Syscalls is a mapping between the syscall function name
// and the registerd VM interop API.
var Syscalls = map[string]string{
// Storage API
"GetContext": "Neo.Storage.GetContext",
"Put": "Neo.Storage.Put",
"GetInt": "Neo.Storage.Get",
"GetString": "Neo.Storage.Get",
"Delete": "Neo.Storage.Delete",
// Runtime
"GetTrigger": "Neo.Runtime.GetTrigger",
"CheckWitness": "Neo.Runtime.CheckWitness",
"GetCurrentBlock": "Neo.Runtime.GetCurrentBlock",
"GetTime": "Neo.Runtime.GetTime",
"Notify": "Neo.runtime.Notify",
"Log": "Neo.Runtime.Log",
}