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-05-17 15:50:37 +00:00
|
|
|
"account": {
|
|
|
|
"GetBalance": "Neo.Account.GetBalance",
|
|
|
|
"GetScriptHash": "Neo.Account.GetScriptHash",
|
|
|
|
"GetVotes": "Neo.Account.GetVotes",
|
|
|
|
"IsStandard": "Neo.Account.IsStandard",
|
|
|
|
},
|
2020-05-17 18:32:07 +00:00
|
|
|
"attribute": {
|
|
|
|
"GetUsage": "Neo.Attribute.GetUsage",
|
|
|
|
"GetData": "Neo.Attribute.GetData",
|
|
|
|
},
|
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": {
|
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": {
|
2020-05-17 20:35:56 +00:00
|
|
|
"GetAccount": "Neo.Blockchain.GetAccount",
|
|
|
|
"GetAsset": "Neo.Blockchain.GetAsset",
|
|
|
|
"GetBlock": "Neo.Blockchain.GetBlock",
|
|
|
|
"GetContract": "Neo.Blockchain.GetContract",
|
|
|
|
"GetHeader": "Neo.Blockchain.GetHeader",
|
|
|
|
"GetHeight": "Neo.Blockchain.GetHeight",
|
|
|
|
"GetTransaction": "Neo.Blockchain.GetTransaction",
|
|
|
|
"GetTransactionHeight": "Neo.Blockchain.GetTransactionHeight",
|
|
|
|
"GetValidators": "Neo.Blockchain.GetValidators",
|
2018-08-22 07:51:35 +00:00
|
|
|
},
|
|
|
|
"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": {
|
2020-05-17 18:16:53 +00:00
|
|
|
"Create": "Neo.Asset.Create",
|
|
|
|
"GetAdmin": "Neo.Asset.GetAdmin",
|
|
|
|
"GetAmount": "Neo.Asset.GetAmount",
|
2018-08-22 07:51:35 +00:00
|
|
|
"GetAssetID": "Neo.Asset.GetAssetID",
|
|
|
|
"GetAssetType": "Neo.Asset.GetAssetType",
|
2020-05-17 18:16:53 +00:00
|
|
|
"GetAvailable": "Neo.Asset.GetAvailable",
|
|
|
|
"GetIssuer": "Neo.Asset.GetIssuer",
|
|
|
|
"GetOwner": "Neo.Asset.GetOwner",
|
|
|
|
"GetPrecision": "Neo.Asset.GetPrecision",
|
2018-08-22 07:51:35 +00:00
|
|
|
"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": {
|
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
|
|
|
}
|