Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVM ¶
type EVM interface { // Call another contract Call(caller vm.ContractRef, addr common.Address, data []byte, quota uint64, value *big.Int) ([]byte, uint64, error) // Take another's contract code and execute within our own context CallCode(caller vm.ContractRef, addr common.Address, data []byte, quota uint64, value *big.Int) ([]byte, uint64, error) // Same as CallCode except sender and value is propagated from parent to child scope DelegateCall(caller vm.ContractRef, addr common.Address, data []byte, quota uint64) ([]byte, uint64, error) // Create a new contract Create(caller vm.ContractRef, data []byte, quota uint64, value *big.Int) ([]byte, common.Address, uint64, error) }
EVM provides a basic interface for the EVM calling conventions. The EVM EVM depends on this context being implemented for doing subcalls and initialising new EVM contracts.
Click to show internal directories.
Click to hide internal directories.