4bd5b2812e
* support VM to pass method and arguments to a script. * added support for type assertions in smartcontracts. * added native vm support for print. * moved VM API packages to vm -> API * reverted the native Print opcode in favor of runtime.Log * added support for registering custom interop hooks in the VM. * Updated README * Updated compiler with @OPTIMIZE tags * Moved more tests to VM package. * optimized and refactored compiler and vm API * updated README with new smartcontract apis * bumped version
19 lines
593 B
Go
19 lines
593 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",
|
|
"Get": "Neo.Storage.Get",
|
|
"Delete": "Neo.Storage.Delete",
|
|
|
|
// Runtime API
|
|
"GetTrigger": "Neo.Runtime.GetTrigger",
|
|
"CheckWitness": "Neo.Runtime.CheckWitness",
|
|
"GetCurrentBlock": "Neo.Runtime.GetCurrentBlock",
|
|
"GetTime": "Neo.Runtime.GetTime",
|
|
"Notify": "Neo.Runtime.Notify",
|
|
"Log": "Neo.Runtime.Log",
|
|
}
|