defaultevm

package
v0.0.0-...-24e5678 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanTransfer

func CanTransfer(db vm.StateDB, addr common.Address, amount *big.Int) bool

CanTransfer checks whether 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 DefaultEVM

func DefaultEVM(statedb istate.IStateDB, tracer vm.EVMLogger) *vm.EVM

Default EVM with statedb

func DefaultEVMWithConfig

func DefaultEVMWithConfig(statedb istate.IStateDB, config *params.ChainConfig, tracer vm.EVMLogger) *vm.EVM

Default EVM with statedb and config

func Transfer

func Transfer(db vm.StateDB, sender, recipient common.Address, amount *big.Int)

Transfer subtracts amount from sender and adds amount to recipient using the given Db

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL