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
|
2019-02-09 15:53:58 +00:00
|
|
|
// and the registered VM interop API.
|
2018-02-24 09:06:48 +00:00
|
|
|
var Syscalls = map[string]string{
|
|
|
|
// Storage API
|
|
|
|
"GetContext": "Neo.Storage.GetContext",
|
|
|
|
"Put": "Neo.Storage.Put",
|
2018-04-10 09:45:31 +00:00
|
|
|
"Get": "Neo.Storage.Get",
|
2018-02-24 09:06:48 +00:00
|
|
|
"Delete": "Neo.Storage.Delete",
|
2018-02-25 12:26:56 +00:00
|
|
|
|
2018-04-10 09:45:31 +00:00
|
|
|
// Runtime API
|
2018-02-25 12:26:56 +00:00
|
|
|
"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
|
|
|
}
|