2018-02-24 09:06:48 +00:00
|
|
|
package vm
|
|
|
|
|
2018-03-02 15:49:10 +00:00
|
|
|
// Syscalls are a mapping between the syscall function name
|
2018-02-24 09:06:48 +00:00
|
|
|
// 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",
|
2018-02-25 12:26:56 +00:00
|
|
|
|
|
|
|
// Runtime
|
|
|
|
"GetTrigger": "Neo.Runtime.GetTrigger",
|
|
|
|
"CheckWitness": "Neo.Runtime.CheckWitness",
|
|
|
|
"GetCurrentBlock": "Neo.Runtime.GetCurrentBlock",
|
|
|
|
"GetTime": "Neo.Runtime.GetTime",
|
2018-02-27 09:04:24 +00:00
|
|
|
"Notify": "Neo.Runtime.Notify",
|
2018-02-25 12:26:56 +00:00
|
|
|
"Log": "Neo.Runtime.Log",
|
2018-02-24 09:06:48 +00:00
|
|
|
}
|