mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 03:58:06 +00:00
b6b8542caf
* 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
20 lines
623 B
Go
20 lines
623 B
Go
package vm
|
|
|
|
// Syscalls are 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",
|
|
}
|