2018-08-20 07:07:08 +00:00
|
|
|
package compiler
|
|
|
|
|
2018-08-22 07:51:35 +00:00
|
|
|
var syscalls = map[string]map[string]string{
|
2020-07-07 18:57:51 +00:00
|
|
|
"binary": {
|
|
|
|
"Serialize": "System.Binary.Serialize",
|
|
|
|
"Deserialize": "System.Binary.Deserialize",
|
|
|
|
},
|
2020-03-23 09:44:23 +00:00
|
|
|
"crypto": {
|
|
|
|
"ECDsaVerify": "Neo.Crypto.ECDsaVerify",
|
|
|
|
},
|
2020-05-18 10:20:49 +00:00
|
|
|
"enumerator": {
|
2020-06-10 08:49:39 +00:00
|
|
|
"Concat": "System.Enumerator.Concat",
|
|
|
|
"Create": "System.Enumerator.Create",
|
|
|
|
"Next": "System.Enumerator.Next",
|
|
|
|
"Value": "System.Enumerator.Value",
|
2020-05-18 10:20:49 +00:00
|
|
|
},
|
2020-06-15 08:08:23 +00:00
|
|
|
"json": {
|
|
|
|
"Serialize": "System.Json.Serialize",
|
|
|
|
"Deserialize": "System.Json.Deserialize",
|
|
|
|
},
|
2018-08-22 07:51:35 +00:00
|
|
|
"storage": {
|
2020-06-10 08:55:56 +00:00
|
|
|
"ConvertContextToReadOnly": "System.Storage.AsReadOnly",
|
|
|
|
"Delete": "System.Storage.Delete",
|
|
|
|
"Find": "System.Storage.Find",
|
|
|
|
"Get": "System.Storage.Get",
|
|
|
|
"GetContext": "System.Storage.GetContext",
|
|
|
|
"GetReadOnlyContext": "System.Storage.GetReadOnlyContext",
|
|
|
|
"Put": "System.Storage.Put",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"runtime": {
|
2020-06-16 08:54:48 +00:00
|
|
|
"GetScriptContainer": "System.Runtime.GetScriptContainer",
|
|
|
|
"GetCallingScriptHash": "System.Runtime.GetCallingScriptHash",
|
|
|
|
"GetEntryScriptHash": "System.Runtime.GetEntryScriptHash",
|
|
|
|
"GetExecutingScriptHash": "System.Runtime.GetExecutingScriptHash",
|
2020-06-16 09:30:25 +00:00
|
|
|
"GetNotifications": "System.Runtime.GetNotifications",
|
2020-06-16 09:47:42 +00:00
|
|
|
"GetInvocationCounter": "System.Runtime.GetInvocationCounter",
|
2020-06-16 08:54:48 +00:00
|
|
|
|
2020-06-16 09:04:08 +00:00
|
|
|
"GasLeft": "System.Runtime.GasLeft",
|
2020-06-10 08:49:39 +00:00
|
|
|
"GetTrigger": "System.Runtime.GetTrigger",
|
|
|
|
"CheckWitness": "System.Runtime.CheckWitness",
|
|
|
|
"Notify": "System.Runtime.Notify",
|
|
|
|
"Log": "System.Runtime.Log",
|
|
|
|
"GetTime": "System.Runtime.GetTime",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"blockchain": {
|
2020-06-09 10:18:32 +00:00
|
|
|
"GetBlock": "System.Blockchain.GetBlock",
|
2020-06-10 09:12:31 +00:00
|
|
|
"GetContract": "System.Blockchain.GetContract",
|
|
|
|
"GetHeight": "System.Blockchain.GetHeight",
|
2020-06-09 09:18:08 +00:00
|
|
|
"GetTransaction": "System.Blockchain.GetTransaction",
|
|
|
|
"GetTransactionFromBlock": "System.Blockchain.GetTransactionFromBlock",
|
|
|
|
"GetTransactionHeight": "System.Blockchain.GetTransactionHeight",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"contract": {
|
2020-06-10 11:07:26 +00:00
|
|
|
"Create": "System.Contract.Create",
|
|
|
|
"Destroy": "System.Contract.Destroy",
|
|
|
|
"Update": "System.Contract.Update",
|
2020-06-17 08:38:32 +00:00
|
|
|
|
|
|
|
"IsStandard": "System.Contract.IsStandard",
|
|
|
|
"CreateStandardAccount": "System.Contract.CreateStandardAccount",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
2018-08-31 08:23:57 +00:00
|
|
|
"iterator": {
|
2020-06-10 08:49:39 +00:00
|
|
|
"Concat": "System.Iterator.Concat",
|
|
|
|
"Create": "System.Iterator.Create",
|
|
|
|
"Key": "System.Iterator.Key",
|
|
|
|
"Keys": "System.Iterator.Keys",
|
|
|
|
"Next": "System.Enumerator.Next",
|
|
|
|
"Value": "System.Enumerator.Value",
|
|
|
|
"Values": "System.Iterator.Values",
|
2018-08-31 08:23:57 +00:00
|
|
|
},
|
2018-08-20 07:07:08 +00:00
|
|
|
}
|