mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-30 09:33:36 +00:00
ac527650eb
But don't change the way we process/store transactions and blocks. Effectively it's just an interface for smart contracts that replaces old syscalls. Transaction definition is moved temporarily to runtime package and Block definition is removed (till we solve #1691 properly).
110 lines
5.1 KiB
Go
110 lines
5.1 KiB
Go
package interopnames
|
|
|
|
// Names of all used interops.
|
|
const (
|
|
SystemBinaryAtoi = "System.Binary.Atoi"
|
|
SystemBinaryBase58Decode = "System.Binary.Base58Decode"
|
|
SystemBinaryBase58Encode = "System.Binary.Base58Encode"
|
|
SystemBinaryBase64Decode = "System.Binary.Base64Decode"
|
|
SystemBinaryBase64Encode = "System.Binary.Base64Encode"
|
|
SystemBinaryDeserialize = "System.Binary.Deserialize"
|
|
SystemBinaryItoa = "System.Binary.Itoa"
|
|
SystemBinarySerialize = "System.Binary.Serialize"
|
|
SystemCallbackCreate = "System.Callback.Create"
|
|
SystemCallbackCreateFromMethod = "System.Callback.CreateFromMethod"
|
|
SystemCallbackCreateFromSyscall = "System.Callback.CreateFromSyscall"
|
|
SystemCallbackInvoke = "System.Callback.Invoke"
|
|
SystemContractCall = "System.Contract.Call"
|
|
SystemContractCallNative = "System.Contract.CallNative"
|
|
SystemContractCreateStandardAccount = "System.Contract.CreateStandardAccount"
|
|
SystemContractIsStandard = "System.Contract.IsStandard"
|
|
SystemContractGetCallFlags = "System.Contract.GetCallFlags"
|
|
SystemContractNativeOnPersist = "System.Contract.NativeOnPersist"
|
|
SystemContractNativePostPersist = "System.Contract.NativePostPersist"
|
|
SystemIteratorCreate = "System.Iterator.Create"
|
|
SystemIteratorNext = "System.Iterator.Next"
|
|
SystemIteratorValue = "System.Iterator.Value"
|
|
SystemJSONDeserialize = "System.Json.Deserialize"
|
|
SystemJSONSerialize = "System.Json.Serialize"
|
|
SystemRuntimeCheckWitness = "System.Runtime.CheckWitness"
|
|
SystemRuntimeGasLeft = "System.Runtime.GasLeft"
|
|
SystemRuntimeGetCallingScriptHash = "System.Runtime.GetCallingScriptHash"
|
|
SystemRuntimeGetEntryScriptHash = "System.Runtime.GetEntryScriptHash"
|
|
SystemRuntimeGetExecutingScriptHash = "System.Runtime.GetExecutingScriptHash"
|
|
SystemRuntimeGetInvocationCounter = "System.Runtime.GetInvocationCounter"
|
|
SystemRuntimeGetNotifications = "System.Runtime.GetNotifications"
|
|
SystemRuntimeGetScriptContainer = "System.Runtime.GetScriptContainer"
|
|
SystemRuntimeGetTime = "System.Runtime.GetTime"
|
|
SystemRuntimeGetTrigger = "System.Runtime.GetTrigger"
|
|
SystemRuntimeLog = "System.Runtime.Log"
|
|
SystemRuntimeNotify = "System.Runtime.Notify"
|
|
SystemRuntimePlatform = "System.Runtime.Platform"
|
|
SystemStorageDelete = "System.Storage.Delete"
|
|
SystemStorageFind = "System.Storage.Find"
|
|
SystemStorageGet = "System.Storage.Get"
|
|
SystemStorageGetContext = "System.Storage.GetContext"
|
|
SystemStorageGetReadOnlyContext = "System.Storage.GetReadOnlyContext"
|
|
SystemStoragePut = "System.Storage.Put"
|
|
SystemStoragePutEx = "System.Storage.PutEx"
|
|
SystemStorageAsReadOnly = "System.Storage.AsReadOnly"
|
|
NeoCryptoVerifyWithECDsaSecp256r1 = "Neo.Crypto.VerifyWithECDsaSecp256r1"
|
|
NeoCryptoVerifyWithECDsaSecp256k1 = "Neo.Crypto.VerifyWithECDsaSecp256k1"
|
|
NeoCryptoCheckMultisigWithECDsaSecp256r1 = "Neo.Crypto.CheckMultisigWithECDsaSecp256r1"
|
|
NeoCryptoCheckMultisigWithECDsaSecp256k1 = "Neo.Crypto.CheckMultisigWithECDsaSecp256k1"
|
|
NeoCryptoSHA256 = "Neo.Crypto.SHA256"
|
|
NeoCryptoRIPEMD160 = "Neo.Crypto.RIPEMD160"
|
|
)
|
|
|
|
var names = []string{
|
|
SystemBinaryAtoi,
|
|
SystemBinaryBase58Decode,
|
|
SystemBinaryBase58Encode,
|
|
SystemBinaryBase64Decode,
|
|
SystemBinaryBase64Encode,
|
|
SystemBinaryDeserialize,
|
|
SystemBinaryItoa,
|
|
SystemBinarySerialize,
|
|
SystemCallbackCreate,
|
|
SystemCallbackCreateFromMethod,
|
|
SystemCallbackCreateFromSyscall,
|
|
SystemCallbackInvoke,
|
|
SystemContractCall,
|
|
SystemContractCallNative,
|
|
SystemContractCreateStandardAccount,
|
|
SystemContractIsStandard,
|
|
SystemContractGetCallFlags,
|
|
SystemContractNativeOnPersist,
|
|
SystemContractNativePostPersist,
|
|
SystemIteratorCreate,
|
|
SystemIteratorNext,
|
|
SystemIteratorValue,
|
|
SystemJSONDeserialize,
|
|
SystemJSONSerialize,
|
|
SystemRuntimeCheckWitness,
|
|
SystemRuntimeGasLeft,
|
|
SystemRuntimeGetCallingScriptHash,
|
|
SystemRuntimeGetEntryScriptHash,
|
|
SystemRuntimeGetExecutingScriptHash,
|
|
SystemRuntimeGetInvocationCounter,
|
|
SystemRuntimeGetNotifications,
|
|
SystemRuntimeGetScriptContainer,
|
|
SystemRuntimeGetTime,
|
|
SystemRuntimeGetTrigger,
|
|
SystemRuntimeLog,
|
|
SystemRuntimeNotify,
|
|
SystemRuntimePlatform,
|
|
SystemStorageDelete,
|
|
SystemStorageFind,
|
|
SystemStorageGet,
|
|
SystemStorageGetContext,
|
|
SystemStorageGetReadOnlyContext,
|
|
SystemStoragePut,
|
|
SystemStoragePutEx,
|
|
SystemStorageAsReadOnly,
|
|
NeoCryptoVerifyWithECDsaSecp256r1,
|
|
NeoCryptoVerifyWithECDsaSecp256k1,
|
|
NeoCryptoCheckMultisigWithECDsaSecp256r1,
|
|
NeoCryptoCheckMultisigWithECDsaSecp256k1,
|
|
NeoCryptoSHA256,
|
|
NeoCryptoRIPEMD160,
|
|
}
|