mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAddress    common.Address = common.BigToAddress(big.NewInt(100))
	EmptyCodeHash                = crypto.Keccak256(nil)
)

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

type EVMKeeper

type EVMKeeper struct {
	// contains filtered or unexported fields
}

func NewEVMKeeper

func NewEVMKeeper() *EVMKeeper

func (EVMKeeper) Clone

func (k EVMKeeper) Clone() *EVMKeeper

func (EVMKeeper) DeleteAccount

func (k EVMKeeper) DeleteAccount(_ sdk.Context, addr common.Address) error

func (EVMKeeper) DeleteCode

func (k EVMKeeper) DeleteCode(_ sdk.Context, codeHash []byte)

func (EVMKeeper) DeleteState

func (k EVMKeeper) DeleteState(_ sdk.Context, addr common.Address, key common.Hash)

func (EVMKeeper) ForEachStorage

func (k EVMKeeper) ForEachStorage(_ sdk.Context, addr common.Address, cb func(key, value common.Hash) bool)

func (EVMKeeper) GetAccount

func (k EVMKeeper) GetAccount(_ sdk.Context, addr common.Address) *statedb.Account

func (EVMKeeper) GetCode

func (k EVMKeeper) GetCode(_ sdk.Context, codeHash common.Hash) []byte

func (EVMKeeper) GetState

func (k EVMKeeper) GetState(_ sdk.Context, addr common.Address, key common.Hash) common.Hash

func (EVMKeeper) KVStoreKeys

func (k EVMKeeper) KVStoreKeys() map[string]*storetypes.KVStoreKey

func (EVMKeeper) SetAccount

func (k EVMKeeper) SetAccount(_ sdk.Context, addr common.Address, account statedb.Account) error

func (EVMKeeper) SetCode

func (k EVMKeeper) SetCode(_ sdk.Context, codeHash []byte, code []byte)

func (EVMKeeper) SetState

func (k EVMKeeper) SetState(_ sdk.Context, addr common.Address, key common.Hash, value []byte)

Jump to

Keyboard shortcuts

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