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-03-23 09:44:23 +00:00
|
|
|
"crypto": {
|
|
|
|
"ECDsaVerify": "Neo.Crypto.ECDsaVerify",
|
|
|
|
},
|
2020-05-18 10:20:49 +00:00
|
|
|
"enumerator": {
|
|
|
|
"Concat": "Neo.Enumerator.Concat",
|
|
|
|
"Create": "Neo.Enumerator.Create",
|
|
|
|
"Next": "Neo.Enumerator.Next",
|
|
|
|
"Value": "Neo.Enumerator.Value",
|
|
|
|
},
|
2018-08-22 07:51:35 +00:00
|
|
|
"storage": {
|
2020-05-18 15:13:45 +00:00
|
|
|
"ConvertContextToReadOnly": "Neo.StorageContext.AsReadOnly",
|
|
|
|
"Delete": "Neo.Storage.Delete",
|
|
|
|
"Find": "Neo.Storage.Find",
|
|
|
|
"Get": "Neo.Storage.Get",
|
|
|
|
"GetContext": "Neo.Storage.GetContext",
|
|
|
|
"GetReadOnlyContext": "Neo.Storage.GetReadOnlyContext",
|
|
|
|
"Put": "Neo.Storage.Put",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"runtime": {
|
2018-10-17 17:19:01 +00:00
|
|
|
"GetTrigger": "Neo.Runtime.GetTrigger",
|
|
|
|
"CheckWitness": "Neo.Runtime.CheckWitness",
|
|
|
|
"Notify": "Neo.Runtime.Notify",
|
|
|
|
"Log": "Neo.Runtime.Log",
|
|
|
|
"GetTime": "Neo.Runtime.GetTime",
|
|
|
|
"Serialize": "Neo.Runtime.Serialize",
|
|
|
|
"Deserialize": "Neo.Runtime.Deserialize",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"blockchain": {
|
2020-06-09 10:18:32 +00:00
|
|
|
"GetBlock": "System.Blockchain.GetBlock",
|
2020-06-09 09:18:08 +00:00
|
|
|
"GetContract": "Neo.Blockchain.GetContract",
|
|
|
|
"GetHeight": "Neo.Blockchain.GetHeight",
|
|
|
|
"GetTransaction": "System.Blockchain.GetTransaction",
|
|
|
|
"GetTransactionFromBlock": "System.Blockchain.GetTransactionFromBlock",
|
|
|
|
"GetTransactionHeight": "System.Blockchain.GetTransactionHeight",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"contract": {
|
|
|
|
"GetScript": "Neo.Contract.GetScript",
|
|
|
|
"IsPayable": "Neo.Contract.IsPayable",
|
|
|
|
"Create": "Neo.Contract.Create",
|
|
|
|
"Destroy": "Neo.Contract.Destroy",
|
|
|
|
"Migrate": "Neo.Contract.Migrate",
|
|
|
|
"GetStorageContext": "Neo.Contract.GetStorageContext",
|
|
|
|
},
|
2018-08-22 08:08:06 +00:00
|
|
|
"engine": {
|
2018-10-20 05:11:50 +00:00
|
|
|
"GetScriptContainer": "System.ExecutionEngine.GetScriptContainer",
|
|
|
|
"GetCallingScriptHash": "System.ExecutionEngine.GetCallingScriptHash",
|
|
|
|
"GetEntryScriptHash": "System.ExecutionEngine.GetEntryScriptHash",
|
|
|
|
"GetExecutingScriptHash": "System.ExecutionEngine.GetExecutingScriptHash",
|
2018-08-22 08:08:06 +00:00
|
|
|
},
|
2018-08-31 08:23:57 +00:00
|
|
|
"iterator": {
|
2020-05-18 12:38:11 +00:00
|
|
|
"Concat": "Neo.Iterator.Concat",
|
2018-08-31 08:23:57 +00:00
|
|
|
"Create": "Neo.Iterator.Create",
|
|
|
|
"Key": "Neo.Iterator.Key",
|
|
|
|
"Keys": "Neo.Iterator.Keys",
|
2020-03-26 13:34:54 +00:00
|
|
|
"Next": "Neo.Iterator.Next",
|
|
|
|
"Value": "Neo.Iterator.Value",
|
2018-08-31 08:23:57 +00:00
|
|
|
"Values": "Neo.Iterator.Values",
|
|
|
|
},
|
2018-08-20 07:07:08 +00:00
|
|
|
}
|