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 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 GetTime(ic *interop.Context) error
- func GetTrigger(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 )
Variables ¶
This section is empty.
Functions ¶
func CheckHashedWitness ¶
CheckHashedWitness checks given hash against current list of script hashes for verifying in the interop context.
func CheckKeyedWitness ¶
CheckKeyedWitness checks hash of signature check contract with a given public key against current list of script hashes for verifying in the interop context.
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 current contract was invoked during current tx execution.
func GetNetwork ¶ added in v0.96.0
GetNetwork returns chain network number.
func GetNotifications ¶
GetNotifications returns notifications emitted by current contract execution.
func GetRandom ¶ added in v0.96.0
GetRandom returns pseudo-random number which depends on block nonce and transaction hash.
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.
Types ¶
This section is empty.