Versions in this module Expand all Collapse all v0 v0.0.38 May 15, 2024 Changes in this version + var AccessListKey = []byte + var AccountCreated = []byte + var AccountDeleted = []byte + var CoinbaseAddressPrefix = []byte("evm_coinbase") + var GasRefundKey = []byte + var LogsKey = []byte + var SdkUseiToSweiMultiplier = sdk.NewIntFromBigInt(UseiToSweiMultiplier) + var UseiToSweiMultiplier = big.NewInt(1_000_000_000_000) + func GetCoinbaseAddress(txIdx int) sdk.AccAddress + func SplitUseiWeiAmount(amt *big.Int) (sdk.Int, sdk.Int) + func TransferWithoutEvents(db vm.StateDB, sender, recipient common.Address, amount *big.Int) + type DBImpl struct + func NewDBImpl(ctx sdk.Context, k EVMKeeper, simulation bool) *DBImpl + func (s *DBImpl) AddAddressToAccessList(addr common.Address) + func (s *DBImpl) AddBalance(evmAddr common.Address, amt *big.Int, reason tracing.BalanceChangeReason) + func (s *DBImpl) AddLog(l *ethtypes.Log) + func (s *DBImpl) AddPreimage(_ common.Hash, _ []byte) + func (s *DBImpl) AddRefund(gas uint64) + func (s *DBImpl) AddSlotToAccessList(addr common.Address, slot common.Hash) + func (s *DBImpl) AddSurplus(surplus sdk.Int) + func (s *DBImpl) AddressInAccessList(addr common.Address) bool + func (s *DBImpl) Commit(uint64, bool) (common.Hash, error) + func (s *DBImpl) Copy() vm.StateDB + func (s *DBImpl) CreateAccount(acc common.Address) + func (s *DBImpl) Created(acc common.Address) bool + func (s *DBImpl) Ctx() sdk.Context + func (s *DBImpl) DisableEvents() + func (s *DBImpl) Empty(addr common.Address) bool + func (s *DBImpl) EnableEvents() + func (s *DBImpl) Err() error + func (s *DBImpl) Error() error + func (s *DBImpl) Exist(addr common.Address) bool + func (s *DBImpl) Finalise(bool) + func (s *DBImpl) Finalize() (surplus sdk.Int, err error) + func (s *DBImpl) GetAllLogs() []*ethtypes.Log + func (s *DBImpl) GetBalance(evmAddr common.Address) *big.Int + func (s *DBImpl) GetCode(addr common.Address) []byte + func (s *DBImpl) GetCodeHash(addr common.Address) common.Hash + func (s *DBImpl) GetCodeSize(addr common.Address) int + func (s *DBImpl) GetCommittedState(addr common.Address, hash common.Hash) common.Hash + func (s *DBImpl) GetLogs(common.Hash, uint64, common.Hash) []*ethtypes.Log + func (s *DBImpl) GetNonce(addr common.Address) uint64 + func (s *DBImpl) GetPrecompileError() error + func (s *DBImpl) GetRefund() uint64 + func (s *DBImpl) GetState(addr common.Address, hash common.Hash) common.Hash + func (s *DBImpl) GetStorageRoot(common.Address) common.Hash + func (s *DBImpl) GetTransientState(addr common.Address, key common.Hash) common.Hash + func (s *DBImpl) HasSelfDestructed(acc common.Address) bool + func (s *DBImpl) IntermediateRoot(bool) common.Hash + func (s *DBImpl) MarkAccount(acc common.Address, status []byte) + func (s *DBImpl) Preimages() map[common.Hash][]byte + func (s *DBImpl) Prepare(_ params.Rules, sender, coinbase common.Address, dest *common.Address, ...) + func (s *DBImpl) RevertToSnapshot(rev int) + func (s *DBImpl) SelfDestruct(acc common.Address) + func (s *DBImpl) Selfdestruct6780(acc common.Address) + func (s *DBImpl) SetBalance(evmAddr common.Address, amt *big.Int, reason tracing.BalanceChangeReason) + func (s *DBImpl) SetCode(addr common.Address, code []byte) + func (s *DBImpl) SetEVM(evm *vm.EVM) + func (s *DBImpl) SetLogger(logger *tracing.Hooks) + func (s *DBImpl) SetNonce(addr common.Address, nonce uint64) + func (s *DBImpl) SetPrecompileError(err error) + func (s *DBImpl) SetState(addr common.Address, key common.Hash, val common.Hash) + func (s *DBImpl) SetStorage(addr common.Address, states map[common.Hash]common.Hash) + func (s *DBImpl) SetTransientState(addr common.Address, key, val common.Hash) + func (s *DBImpl) SetTxContext(common.Hash, int) + func (s *DBImpl) SlotInAccessList(addr common.Address, slot common.Hash) (addressOk bool, slotOk bool) + func (s *DBImpl) Snapshot() int + func (s *DBImpl) SubBalance(evmAddr common.Address, amt *big.Int, reason tracing.BalanceChangeReason) + func (s *DBImpl) SubRefund(gas uint64) + func (s *DBImpl) TxIndex() int + func (s *DBImpl) WithCtx(ctx sdk.Context) + func (s *DBImpl) WithErr(err error) + type EVMKeeper interface + AccountKeeper func() *authkeeper.AccountKeeper + BankKeeper func() bankkeeper.Keeper + DeleteAddressMapping func(sdk.Context, sdk.AccAddress, common.Address) + GetBaseDenom func(sdk.Context) string + GetCode func(sdk.Context, common.Address) []byte + GetCodeHash func(sdk.Context, common.Address) common.Hash + GetCodeSize func(sdk.Context, common.Address) int + GetFeeCollectorAddress func(sdk.Context) (common.Address, error) + GetNonce func(sdk.Context, common.Address) uint64 + GetSeiAddress func(sdk.Context, common.Address) (sdk.AccAddress, bool) + GetSeiAddressOrDefault func(ctx sdk.Context, evmAddress common.Address) sdk.AccAddress + GetState func(sdk.Context, common.Address, common.Hash) common.Hash + PrefixStore func(sdk.Context, []byte) sdk.KVStore + PrepareReplayedAddr func(ctx sdk.Context, addr common.Address) + PurgePrefix func(sdk.Context, []byte) + SetCode func(sdk.Context, common.Address, []byte) + SetNonce func(sdk.Context, common.Address, uint64) + SetState func(sdk.Context, common.Address, common.Hash, common.Hash) + type Logs struct + Ls []*ethtypes.Log + type TemporaryState struct + func NewTemporaryState() *TemporaryState