Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextRef ¶
type ContextRef interface { PushContext(context *Context) CurrentContext() *Context CallingContext() *Context EntryContext() *Context PopContext() CheckWitness(address common.Address) bool PushNotifications(notifications []*event.NotifyEventInfo) NewExecuteEngine(code []byte, txtype types.TransactionType) (Engine, error) CheckUseGas(gas uint64) bool GetGasInfo() (gasLeft uint64, gasPrice uint64) CheckExecStep() bool GetCallerAddress() []common.Address SetInternalErr() IsInternalErr() bool PutCrossStateHashes(hashes []common.Uint256) }
ContextRef is a interface of smart context when need call a contract, push current context to smart contract contexts when execute smart contract finish, pop current context from smart contract contexts when need to check authorization, use CheckWitness when smart contract execute trigger event, use PushNotifications push it to smart contract notifications when need to invoke a smart contract, use AppCall to invoke it
Click to show internal directories.
Click to hide internal directories.