Versions in this module Expand all Collapse all v0 v0.0.2 Aug 10, 2023 Changes in this version + func InnerAccountChanged(account0 *InnerAccount, account1 *InnerAccount) bool + type AccessList struct + func NewAccessList() *AccessList + func (al *AccessList) AddAddress(address types.Address) bool + func (al *AccessList) AddSlot(address types.Address, slot types.Hash) (bool, bool) + func (al *AccessList) Contains(addr types.Address, slot types.Hash) (bool, bool) + func (al *AccessList) ContainsAddress(addr types.Address) bool + func (al *AccessList) Copy() *AccessList + func (al *AccessList) DeleteAddress(address types.Address) + func (al *AccessList) DeleteSlot(address types.Address, slot types.Hash) + type AccessTuple struct + Address types.Address + StorageKeys []types.Hash + type AccessTupleList []AccessTuple + func (al AccessTupleList) StorageKeys() int + type ChainLedger interface + Close func() + GetBlock func(height uint64) (*types.Block, error) + GetBlockByHash func(hash *types.Hash) (*types.Block, error) + GetBlockHash func(height uint64) *types.Hash + GetBlockSign func(height uint64) ([]byte, error) + GetChainMeta func() *types.ChainMeta + GetReceipt func(hash *types.Hash) (*types.Receipt, error) + GetTransaction func(hash *types.Hash) (*types.Transaction, error) + GetTransactionCount func(height uint64) (uint64, error) + GetTransactionMeta func(hash *types.Hash) (*types.TransactionMeta, error) + LoadChainMeta func() (*types.ChainMeta, error) + PersistExecutionResult func(block *types.Block, receipts []*types.Receipt) error + RollbackBlockChain func(height uint64) error + UpdateChainMeta func(*types.ChainMeta) + type IAccount interface + AddBalance func(amount *big.Int) + AddState func(key []byte, value []byte) + Code func() []byte + CodeHash func() []byte + GetAddress func() *types.Address + GetBalance func() *big.Int + GetCommittedState func(key []byte) []byte + GetNonce func() uint64 + GetState func(key []byte) (bool, []byte) + IsEmpty func() bool + Query func(prefix string) (bool, [][]byte) + SetBalance func(balance *big.Int) + SetCodeAndHash func(code []byte) + SetNonce func(nonce uint64) + SetState func(key []byte, value []byte) + SetSuicided func(bool) + SubBalance func(amount *big.Int) + Suicided func() bool + type InnerAccount struct + Balance *big.Int + CodeHash []byte + Nonce uint64 + func CopyOrNewIfEmpty(o *InnerAccount) *InnerAccount + func (o *InnerAccount) Marshal() ([]byte, error) + func (o *InnerAccount) Unmarshal(data []byte) error + type StateAccessor interface + AddState func(*types.Address, []byte, []byte) + Clear func() + Commit func(height uint64, accounts map[string]IAccount, stateRoot *types.Hash) error + FlushDirtyData func() (map[string]IAccount, *types.Hash) + GetAccount func(*types.Address) IAccount + GetBalance func(*types.Address) *big.Int + GetCode func(*types.Address) []byte + GetNonce func(*types.Address) uint64 + GetOrCreateAccount func(*types.Address) IAccount + GetState func(*types.Address, []byte) (bool, []byte) + QueryByPrefix func(address *types.Address, prefix string) (bool, [][]byte) + SetBalance func(*types.Address, *big.Int) + SetCode func(*types.Address, []byte) + SetNonce func(*types.Address, uint64) + SetState func(*types.Address, []byte, []byte) + SetTxContext func(thash *types.Hash, txIndex int) + type StateDB interface + AddAddressToEVMAccessList func(addr common.Address) + AddEVMBalance func(common.Address, *big.Int) + AddEVMLog func(log *types2.Log) + AddEVMPreimage func(common.Hash, []byte) + AddEVMRefund func(uint64) + AddSlotToEVMAccessList func(addr common.Address, slot common.Hash) + AddressInEVMAccessList func(addr common.Address) bool + CreateEVMAccount func(common.Address) + EmptyEVM func(common.Address) bool + ExistEVM func(common.Address) bool + GetEVMBalance func(common.Address) *big.Int + GetEVMCode func(common.Address) []byte + GetEVMCodeHash func(common.Address) common.Hash + GetEVMCodeSize func(common.Address) int + GetEVMCommittedState func(common.Address, common.Hash) common.Hash + GetEVMNonce func(common.Address) uint64 + GetEVMRefund func() uint64 + GetEVMState func(common.Address, common.Hash) common.Hash + GetEVMTransientState func(addr common.Address, key common.Hash) common.Hash + HasSuisideEVM func(common.Address) bool + PrepareEVM func(rules params.Rules, sender, coinbase common.Address, dest *common.Address, ...) + RevertToSnapshot func(int) + SetEVMCode func(common.Address, []byte) + SetEVMNonce func(common.Address, uint64) + SetEVMState func(common.Address, common.Hash, common.Hash) + SetEVMTransientState func(addr common.Address, key, value common.Hash) + SlotInEVMAceessList func(addr common.Address, slot common.Hash) (addressOk bool, slotOk bool) + Snapshot func() int + SubEVMBalance func(common.Address, *big.Int) + SubEVMRefund func(uint64) + SuisideEVM func(common.Address) bool + type StateLedger interface + AddEvent func(*types.Event) + AddLog func(log *types.EvmLog) + ClearChangerAndRefund func() + Close func() + Copy func() StateLedger + Events func(txHash string) []*types.Event + Finalise func(bool) + GetLogs func(types.Hash, uint64, *types.Hash) []*types.EvmLog + PrepareBlock func(*types.Hash, uint64) + RollbackState func(height uint64) error + Version func() uint64