run

package
v0.0.0-...-1cbaea7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChainConfig

func CreateChainConfig() *kernal.ChainConfig

func CreateExecuteContext

func CreateExecuteContext(caller kernal.Address) kernal.Context

func CreateExecuteRuntime

func CreateExecuteRuntime(caller kernal.Address) *kernal.EVM

func CreateLogTracer

func CreateLogTracer() *kernal.StructLogger

func CreateVMDefaultConfig

func CreateVMDefaultConfig() kernal.Config

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) Empty

func (MockStateDB) Empty(kernal.Address) bool

func (MockStateDB) Exist

func (MockStateDB) Exist(kernal.Address) bool

func (MockStateDB) ForEachStorage

func (MockStateDB) ForEachStorage(kernal.Address, func(kernal.Hash, kernal.Hash) bool)

func (MockStateDB) GetBalance

func (MockStateDB) GetBalance(kernal.Address) *big.Int

func (MockStateDB) GetCode

func (mockstatedb MockStateDB) GetCode(address kernal.Address) []byte

func (MockStateDB) GetCodeHash

func (MockStateDB) GetCodeHash(kernal.Address) kernal.Hash

func (MockStateDB) GetCodeSize

func (mockstatedb MockStateDB) GetCodeSize(address kernal.Address) int

func (MockStateDB) GetNonce

func (MockStateDB) GetNonce(kernal.Address) uint64

func (MockStateDB) GetRefund

func (MockStateDB) GetRefund() uint64

func (MockStateDB) GetState

func (MockStateDB) HasSuicided

func (MockStateDB) HasSuicided(kernal.Address) bool

func (MockStateDB) HaveSufficientBalance

func (MockStateDB) HaveSufficientBalance(kernal.Address, *big.Int) bool

func (MockStateDB) RevertToSnapshot

func (MockStateDB) RevertToSnapshot(int)

func (MockStateDB) SetCode

func (mockstatedb MockStateDB) SetCode(address kernal.Address, data []byte)

func (MockStateDB) SetNonce

func (MockStateDB) SetNonce(kernal.Address, uint64)

func (MockStateDB) SetState

func (MockStateDB) Snapshot

func (MockStateDB) Snapshot() int

func (MockStateDB) SubBalance

func (MockStateDB) SubBalance(kernal.Address, *big.Int)

func (MockStateDB) Suicide

func (MockStateDB) Suicide(kernal.Address) bool

func (MockStateDB) TransferBalance

func (MockStateDB) TransferBalance(kernal.Address, kernal.Address, *big.Int)

Jump to

Keyboard shortcuts

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