Documentation ¶
Index ¶
- func CanTransfer(db vm.StateDB, addr common.Address, amount *big.Int) bool
- func GetHashFn(ref *types.Header, chain ChainContext) func(n uint64) common.Hash
- func NewEVMContext(msg IMessage, author *common.Address, height uint64) vm.Context
- func Transfer(db vm.StateDB, sender, recipient common.Address, amount *big.Int)
- type ChainContext
- type FooChainContext
- type IMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanTransfer ¶
CanTransfer checks wether there are enough funds in the address' account to make a transfer. This does not take the necessary gas in to account to make the transfer valid.
func NewEVMContext ¶
NewEVMContext creates a new context for use in the EVM.
Types ¶
type ChainContext ¶
type ChainContext interface { // GetHeader returns the hash corresponding to their hash. GetHeader(common.Hash, uint64) *types.Header }
ChainContext supports retrieving headers and consensus parameters from the current blockchain to be used during transaction processing.
type FooChainContext ¶
type FooChainContext struct{}
Click to show internal directories.
Click to hide internal directories.