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