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",
|
|
|
|
},
|
2018-08-22 07:51:35 +00:00
|
|
|
"storage": {
|
2018-10-17 17:19:01 +00:00
|
|
|
"GetContext": "Neo.Storage.GetContext",
|
|
|
|
"Put": "Neo.Storage.Put",
|
|
|
|
"Get": "Neo.Storage.Get",
|
|
|
|
"Delete": "Neo.Storage.Delete",
|
|
|
|
"Find": "Neo.Storage.Find",
|
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": {
|
2018-10-17 17:19:01 +00:00
|
|
|
"GetHeight": "Neo.Blockchain.GetHeight",
|
|
|
|
"GetHeader": "Neo.Blockchain.GetHeader",
|
|
|
|
"GetBlock": "Neo.Blockchain.GetBlock",
|
|
|
|
"GetTransaction": "Neo.Blockchain.GetTransaction",
|
|
|
|
"GetContract": "Neo.Blockchain.GetContract",
|
2018-08-22 07:51:35 +00:00
|
|
|
"GetAccount": "Neo.Blockchain.GetAccount",
|
|
|
|
"GetValidators": "Neo.Blockchain.GetValidators",
|
|
|
|
"GetAsset": "Neo.Blockchain.GetAsset",
|
|
|
|
},
|
|
|
|
"header": {
|
2018-10-17 17:19:01 +00:00
|
|
|
"GetIndex": "Neo.Header.GetIndex",
|
|
|
|
"GetHash": "Neo.Header.GetHash",
|
|
|
|
"GetPrevHash": "Neo.Header.GetPrevHash",
|
|
|
|
"GetTimestamp": "Neo.Header.GetTimestamp",
|
2018-08-22 07:51:35 +00:00
|
|
|
"GetVersion": "Neo.Header.GetVersion",
|
|
|
|
"GetMerkleRoot": "Neo.Header.GetMerkleRoot",
|
|
|
|
"GetConsensusData": "Neo.Header.GetConsensusData",
|
|
|
|
"GetNextConsensus": "Neo.Header.GetNextConsensus",
|
|
|
|
},
|
|
|
|
"block": {
|
2018-10-17 17:19:01 +00:00
|
|
|
"GetTransactionCount": "Neo.Block.GetTransactionCount",
|
|
|
|
"GetTransactions": "Neo.Block.GetTransactions",
|
|
|
|
"GetTransaction": "Neo.Block.GetTransaction",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"transaction": {
|
2018-10-23 08:23:03 +00:00
|
|
|
"GetHash": "Neo.Transaction.GetHash",
|
2018-08-22 07:51:35 +00:00
|
|
|
"GetType": "Neo.Transaction.GetType",
|
|
|
|
"GetAttributes": "Neo.Transaction.GetAttributes",
|
|
|
|
"GetInputs": "Neo.Transaction.GetInputs",
|
|
|
|
"GetOutputs": "Neo.Transaction.GetOutputs",
|
|
|
|
"GetReferences": "Neo.Transaction.GetReferences",
|
|
|
|
"GetUnspentCoins": "Neo.Transaction.GetUnspentCoins",
|
|
|
|
"GetScript": "Neo.Transaction.GetScript",
|
|
|
|
},
|
|
|
|
"asset": {
|
|
|
|
"GetAssetID": "Neo.Asset.GetAssetID",
|
|
|
|
"GetAssetType": "Neo.Asset.GetAssetType",
|
|
|
|
"GetAmount": "Neo.Asset.GetAmount",
|
|
|
|
"Create": "Neo.Asset.Create",
|
|
|
|
"Renew": "Neo.Asset.Renew",
|
|
|
|
},
|
|
|
|
"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",
|
|
|
|
},
|
|
|
|
"input": {
|
|
|
|
"GetHash": "Neo.Input.GetHash",
|
|
|
|
"GetIndex": "Neo.Input.GetIndex",
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"GetAssetID": "Neo.Output.GetAssetID",
|
|
|
|
"GetValue": "Neo.Output.GetValue",
|
|
|
|
"GetScriptHash": "Neo.Output.GetScriptHash",
|
|
|
|
},
|
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": {
|
|
|
|
"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
|
|
|
}
|