Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Chain Chain Block *block.Block Tx *transaction.Transaction VM *EVM // contains filtered or unexported fields }
Context represents context in which interops are executed.
func NewContext ¶
func (Context) Container ¶
func (c Context) Container() *transaction.Transaction
func (Context) PersistingBlock ¶
type NativeContract ¶
type NativeContract interface { RequiredGas(ic native.InteropContext, input []byte) uint64 Run(ic native.InteropContext, input []byte) ([]byte, error) }
Click to show internal directories.
Click to hide internal directories.