Versions in this module Expand all Collapse all v0 v0.18.15 May 17, 2022 Changes in this version + const BloomBitLength + const BloomByteLength + const TxGas + const TxGasContractCreationGas + var DefaultBlockGasLimit uint64 = math.MaxInt64 + var DefaultDifficulty *big.Int = big.NewInt(1) + var DefaultGasPrice *big.Int = big.NewInt(1_000_000_000) + var RefundQuotientFrankenstein uint64 = 3 + var SimulationBlockGasLimit uint64 = 100_000_000 + func Bloom9(data []byte) []byte + func BloomLookup(bin Bloom, topic bytesBacked) bool + func CopyCommitStateDB(from, to *CommitStateDB) + func EthereumConfig(chainID string) *ethparams.ChainConfig + func GetHashFn(s *CommitStateDB, header *abci.Header) ethvm.GetHashFunc + func IntrinsicGas(data []byte, accessList ethtypes.AccessList, isContractCreation bool) (uint64, error) + func IsEmptyHash(hash string) bool + func IsZeroAmount(amount *big.Int) bool + func LogsBloom(logs []*ethtypes.Log) []byte + type Bloom [BloomByteLength]byte + func BytesToBloom(b []byte) Bloom + func (b *Bloom) Add(d []byte, buf []byte) + func (b *Bloom) SetBytes(d []byte) + func (b *Bloom) UnmarshalText(input []byte) error + func (b Bloom) Big() *big.Int + func (b Bloom) Bytes() []byte + func (b Bloom) MarshalText() ([]byte, error) + func (b Bloom) Test(topic []byte) bool + type CommitStateDB struct + func NewCommitStateDB(cs *evm.ContractStore, ak balance.AccountKeeper, logger *log.Logger) *CommitStateDB + func (s *CommitStateDB) AddAddressToAccessList(addr ethcmn.Address) + func (s *CommitStateDB) AddBalance(addr ethcmn.Address, amount *big.Int) + func (s *CommitStateDB) AddLog(log *ethtypes.Log) + func (s *CommitStateDB) AddPreimage(hash ethcmn.Hash, preimage []byte) + func (s *CommitStateDB) AddRefund(gas uint64) + func (s *CommitStateDB) AddSlotToAccessList(addr ethcmn.Address, slot ethcmn.Hash) + func (s *CommitStateDB) AddressInAccessList(addr ethcmn.Address) bool + func (s *CommitStateDB) Copy() *CommitStateDB + func (s *CommitStateDB) CreateAccount(addr ethcmn.Address) + func (s *CommitStateDB) Empty(addr ethcmn.Address) bool + func (s *CommitStateDB) Enabled() bool + func (s *CommitStateDB) Error() error + func (s *CommitStateDB) Exist(addr ethcmn.Address) bool + func (s *CommitStateDB) Finalise(deleteEmptyObjects bool) error + func (s *CommitStateDB) Finality(events []abci.Event) + func (s *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, value ethcmn.Hash) bool) error + func (s *CommitStateDB) GetAccountKeeper() balance.AccountKeeper + func (s *CommitStateDB) GetAvailableGas() uint64 + func (s *CommitStateDB) GetBalance(addr ethcmn.Address) *big.Int + func (s *CommitStateDB) GetBlockHash(height uint64) ethcmn.Hash + func (s *CommitStateDB) GetBlockStore() *store.BlockStore + func (s *CommitStateDB) GetBloomEvent() *types.Event + func (s *CommitStateDB) GetCode(addr ethcmn.Address) []byte + func (s *CommitStateDB) GetCodeHash(addr ethcmn.Address) ethcmn.Hash + func (s *CommitStateDB) GetCodeSize(addr ethcmn.Address) int + func (s *CommitStateDB) GetCommittedState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (s *CommitStateDB) GetContractStore() *evm.ContractStore + func (s *CommitStateDB) GetNonce(addr ethcmn.Address) uint64 + func (s *CommitStateDB) GetOrNewStateObject(addr ethcmn.Address) StateObject + func (s *CommitStateDB) GetRefund() uint64 + func (s *CommitStateDB) GetState(addr ethcmn.Address, hash ethcmn.Hash) ethcmn.Hash + func (s *CommitStateDB) GetTxLogs() []*ethtypes.Log + func (s *CommitStateDB) HasSuicided(addr ethcmn.Address) bool + func (s *CommitStateDB) Prepare(thash ethcmn.Hash) + func (s *CommitStateDB) PrepareAccessList(sender ethcmn.Address, dst *ethcmn.Address, precompiles []ethcmn.Address, ...) + func (s *CommitStateDB) PrintState() + func (s *CommitStateDB) Reset() + func (s *CommitStateDB) RevertToSnapshot(revID int) + func (s *CommitStateDB) SetBlockHash(hash ethcmn.Hash) + func (s *CommitStateDB) SetBlockStore(blockStore *store.BlockStore) + func (s *CommitStateDB) SetCode(addr ethcmn.Address, code []byte) + func (s *CommitStateDB) SetNonce(addr ethcmn.Address, nonce uint64) + func (s *CommitStateDB) SetState(addr ethcmn.Address, key, value ethcmn.Hash) + func (s *CommitStateDB) SlotInAccessList(addr ethcmn.Address, slot ethcmn.Hash) (bool, bool) + func (s *CommitStateDB) Snapshot() int + func (s *CommitStateDB) SubBalance(addr ethcmn.Address, amount *big.Int) + func (s *CommitStateDB) SubRefund(gas uint64) + func (s *CommitStateDB) Suicide(addr ethcmn.Address) bool + func (s *CommitStateDB) WithState(state *storage.State) *CommitStateDB + type EVMTransaction struct + func NewEVMTransaction(stateDB *CommitStateDB, gaspool *ethcore.GasPool, header *abci.Header, ...) *EVMTransaction + func (etx *EVMTransaction) AccessList() ethtypes.AccessList + func (etx *EVMTransaction) Apply() (*ExecutionResult, error) + func (etx *EVMTransaction) Data() []byte + func (etx *EVMTransaction) From() ethcmn.Address + func (etx *EVMTransaction) Gas() uint64 + func (etx *EVMTransaction) GasPrice() *big.Int + func (etx *EVMTransaction) IsFake() bool + func (etx *EVMTransaction) NewEVM() *ethvm.EVM + func (etx *EVMTransaction) Nonce() uint64 + func (etx *EVMTransaction) SetVMDebug(debug bool) + func (etx *EVMTransaction) To() *ethcmn.Address + func (etx *EVMTransaction) Value() *big.Int + type ExecutionResult struct + ContractAddress ethcmn.Address + Err error + ReturnData []byte + UsedGas uint64 + func ApplyMessage(evm *ethvm.EVM, msg *EVMTransaction, gp *ethcore.GasPool) (*ExecutionResult, error) + func (result *ExecutionResult) Failed() bool + func (result *ExecutionResult) Return() []byte + func (result *ExecutionResult) Revert() []byte + func (result *ExecutionResult) Unwrap() error + type Message interface + AccessList func() ethtypes.AccessList + Apply func() (*ExecutionResult, error) + Data func() []byte + From func() ethcmn.Address + Gas func() uint64 + GasPrice func() *big.Int + IsFake func() bool + Nonce func() uint64 + To func() *ethcmn.Address + Value func() *big.Int + type RLPLog struct + Address common.Address + BlockHash common.Hash + BlockNumber uint64 + Data []byte + Index uint + Removed bool + Topics []common.Hash + TxHash common.Hash + TxIndex uint + func RLPLogConvert(log types.Log) *RLPLog + func (l *RLPLog) Decode(data []byte) (*types.Log, error) + func (l *RLPLog) Encode() ([]byte, error) + type State struct + Key string + Value string + func NewState(key, value ethcmn.Hash) State + type StateObject interface + AddBalance func(amount *big.Int) + Address func() ethcmn.Address + Balance func() *big.Int + Code func(db ethstate.Database) []byte + CodeHash func() []byte + GetCommittedState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + GetState func(db ethstate.Database, key ethcmn.Hash) ethcmn.Hash + Nonce func() uint64 + ReturnGas func(gas *big.Int) + SetBalance func(amount *big.Int) + SetCode func(codeHash ethcmn.Hash, code []byte) + SetNonce func(nonce uint64) + SetState func(db ethstate.Database, key, value ethcmn.Hash) + SubBalance func(amount *big.Int) + type StateTransition struct + func NewStateTransition(evm *ethvm.EVM, msg *EVMTransaction, gp *ethcore.GasPool) *StateTransition + func (st *StateTransition) TransitionDb() (*ExecutionResult, error) + type Storage []State + func (s Storage) Copy() Storage + func (s Storage) String() string