Fantom-foundation / Aida

Aida is a block-processing testing infrastructure for EVM-compatible chains.
GNU Lesser General Public License v3.0
4 stars 12 forks source link

Support new statedb facades in tracer and profiler #1122

Closed wsodsong closed 1 month ago

wsodsong commented 2 months ago

Support new operation id in tracer, profiler and stochastic.

New functions

CreateContract(common.Address)
GetStorageRoot(addr common.Address) common.Hash
Selfdestruct6780(common.Address)
GetTransientState(addr common.Address, key common.Hash) common.Hash
SetTransientState(addr common.Address, key, value common.Hash)

Modified functions

SubBalance(common.Address, *uint256.Int, tracing.BalanceChangeReason)
AddBalance(common.Address, *uint256.Int, tracing.BalanceChangeReason)
GetBalance(common.Address) *uint256.Int 
Prepare(rules params.Rules, sender, coinbase common.Address, dest *common.Address, precompiles []common.Address, txAccesses types.AccessList)// renamed from PrepareAccessList
GetLogs(common.Hash, uint64, common.Hash) []*types.Log