Documentation ¶
Index ¶
- func CreateChainConfig() *kernal.ChainConfig
- func CreateExecuteContext(caller kernal.Address) kernal.Context
- func CreateExecuteRuntime(caller kernal.Address) *kernal.EVM
- func CreateLogTracer() *kernal.StructLogger
- func CreateVMDefaultConfig() kernal.Config
- type ETHChainHandler
- type MockStateDB
- func (MockStateDB) AddBalance(kernal.Address, *big.Int)
- func (MockStateDB) AddLog(*kernal.Log)
- func (MockStateDB) AddPreimage(kernal.Hash, []byte)
- func (MockStateDB) AddRefund(uint64)
- func (MockStateDB) CreateAccount(kernal.Address)
- func (MockStateDB) Empty(kernal.Address) bool
- func (MockStateDB) Exist(kernal.Address) bool
- func (MockStateDB) ForEachStorage(kernal.Address, func(kernal.Hash, kernal.Hash) bool)
- func (MockStateDB) GetBalance(kernal.Address) *big.Int
- func (mockstatedb MockStateDB) GetCode(address kernal.Address) []byte
- func (MockStateDB) GetCodeHash(kernal.Address) kernal.Hash
- func (mockstatedb MockStateDB) GetCodeSize(address kernal.Address) int
- func (MockStateDB) GetNonce(kernal.Address) uint64
- func (MockStateDB) GetRefund() uint64
- func (MockStateDB) GetState(kernal.Address, kernal.Hash) kernal.Hash
- func (MockStateDB) HasSuicided(kernal.Address) bool
- func (MockStateDB) HaveSufficientBalance(kernal.Address, *big.Int) bool
- func (MockStateDB) RevertToSnapshot(int)
- func (mockstatedb MockStateDB) SetCode(address kernal.Address, data []byte)
- func (MockStateDB) SetNonce(kernal.Address, uint64)
- func (MockStateDB) SetState(kernal.Address, kernal.Hash, kernal.Hash)
- func (MockStateDB) Snapshot() int
- func (MockStateDB) SubBalance(kernal.Address, *big.Int)
- func (MockStateDB) Suicide(kernal.Address) bool
- func (MockStateDB) TransferBalance(kernal.Address, kernal.Address, *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChainConfig ¶
func CreateChainConfig() *kernal.ChainConfig
func CreateLogTracer ¶
func CreateLogTracer() *kernal.StructLogger
func CreateVMDefaultConfig ¶
Types ¶
type ETHChainHandler ¶
type ETHChainHandler struct{}
func (*ETHChainHandler) GetBlockHeaderHash ¶
func (ethChainHandler *ETHChainHandler) GetBlockHeaderHash(uint64) kernal.Hash
type MockStateDB ¶
type MockStateDB struct {
// contains filtered or unexported fields
}
func MakeNewMockStateDB ¶
func MakeNewMockStateDB() *MockStateDB
func (MockStateDB) AddBalance ¶
func (MockStateDB) AddBalance(kernal.Address, *big.Int)
func (MockStateDB) AddLog ¶
func (MockStateDB) AddLog(*kernal.Log)
func (MockStateDB) AddPreimage ¶
func (MockStateDB) AddPreimage(kernal.Hash, []byte)
func (MockStateDB) AddRefund ¶
func (MockStateDB) AddRefund(uint64)
func (MockStateDB) CreateAccount ¶
func (MockStateDB) CreateAccount(kernal.Address)
func (MockStateDB) ForEachStorage ¶
func (MockStateDB) GetBalance ¶
func (MockStateDB) GetBalance(kernal.Address) *big.Int
func (MockStateDB) GetCodeHash ¶
func (MockStateDB) GetCodeHash(kernal.Address) kernal.Hash
func (MockStateDB) GetCodeSize ¶
func (mockstatedb MockStateDB) GetCodeSize(address kernal.Address) int
func (MockStateDB) GetRefund ¶
func (MockStateDB) GetRefund() uint64
func (MockStateDB) HasSuicided ¶
func (MockStateDB) HasSuicided(kernal.Address) bool
func (MockStateDB) HaveSufficientBalance ¶
func (MockStateDB) RevertToSnapshot ¶
func (MockStateDB) RevertToSnapshot(int)
func (MockStateDB) SetCode ¶
func (mockstatedb MockStateDB) SetCode(address kernal.Address, data []byte)
func (MockStateDB) Snapshot ¶
func (MockStateDB) Snapshot() int
func (MockStateDB) SubBalance ¶
func (MockStateDB) SubBalance(kernal.Address, *big.Int)
func (MockStateDB) TransferBalance ¶
Click to show internal directories.
Click to hide internal directories.