Documentation ¶
Index ¶
- Constants
- func BurnGas(ic *interop.Context) error
- func CheckHashedWitness(ic *interop.Context, hash util.Uint160) (bool, error)
- func CheckKeyedWitness(ic *interop.Context, key *keys.PublicKey) (bool, error)
- func CheckWitness(ic *interop.Context) error
- func GasLeft(ic *interop.Context) error
- func GetAddressVersion(ic *interop.Context) error
- func GetCallingScriptHash(ic *interop.Context) error
- func GetEntryScriptHash(ic *interop.Context) error
- func GetExecutingScriptHash(ic *interop.Context) error
- func GetInvocationCounter(ic *interop.Context) error
- func GetNetwork(ic *interop.Context) error
- func GetNotifications(ic *interop.Context) error
- func GetRandom(ic *interop.Context) error
- func GetScriptContainer(ic *interop.Context) error
- func GetTime(ic *interop.Context) error
- func GetTrigger(ic *interop.Context) error
- func LoadScript(ic *interop.Context) error
- func Log(ic *interop.Context) error
- func Notify(ic *interop.Context) error
- func Platform(ic *interop.Context) error
Constants ¶
const ( // MaxEventNameLen is the maximum length of a name for event. MaxEventNameLen = 32 // MaxNotificationSize is the maximum length of a runtime log message. MaxNotificationSize = 1024 // SystemRuntimeLogMessage represents log entry message used for output // of the System.Runtime.Log syscall. SystemRuntimeLogMessage = "runtime log" )
Variables ¶
This section is empty.
Functions ¶
func CheckHashedWitness ¶
CheckHashedWitness checks the given hash against the current list of script hashes for verifying in the interop context.
func CheckKeyedWitness ¶
CheckKeyedWitness checks the hash of the signature check contract with the given public key against the current list of script hashes for verifying in the interop context.
func GetAddressVersion ¶ added in v0.99.0
GetAddressVersion returns the address version of the current protocol.
func GetCallingScriptHash ¶ added in v0.92.0
GetCallingScriptHash returns calling script hash. While Executing and Entry script hashes are always valid for non-native contracts, Calling hash is set explicitly when native contracts are used, because when switching from one native to another, no operations are performed on invocation stack.
func GetEntryScriptHash ¶ added in v0.92.0
GetEntryScriptHash returns entry script hash.
func GetExecutingScriptHash ¶ added in v0.92.0
GetExecutingScriptHash returns executing script hash.
func GetInvocationCounter ¶
GetInvocationCounter returns how many times the current contract has been invoked during the current tx execution.
func GetNetwork ¶ added in v0.96.0
GetNetwork returns chain network number.
func GetNotifications ¶
GetNotifications returns notifications emitted in the current execution context.
func GetRandom ¶ added in v0.96.0
GetRandom returns pseudo-random number which depends on block nonce and transaction hash.
func GetScriptContainer ¶ added in v0.99.1
GetScriptContainer returns transaction or block that contains the script being run.
func GetTime ¶ added in v0.92.0
GetTime returns timestamp of the block being verified, or the latest one in the blockchain if no block is given to Context.
func GetTrigger ¶ added in v0.92.0
GetTrigger returns the script trigger.
func LoadScript ¶ added in v0.100.0
LoadScript takes a script and arguments from the stack and loads it into the VM.
Types ¶
This section is empty.