github.com/tacshi/go-ethereum@v0.0.0-20230616113857-84a434e20921/eth/backend_arbitrum.go (about) 1 package eth 2 3 import ( 4 "context" 5 6 "github.com/tacshi/go-ethereum/core" 7 "github.com/tacshi/go-ethereum/core/state" 8 "github.com/tacshi/go-ethereum/core/types" 9 "github.com/tacshi/go-ethereum/core/vm" 10 "github.com/tacshi/go-ethereum/eth/tracers" 11 "github.com/tacshi/go-ethereum/ethdb" 12 ) 13 14 func NewArbEthereum( 15 blockchain *core.BlockChain, 16 chainDb ethdb.Database, 17 ) *Ethereum { 18 return &Ethereum{ 19 blockchain: blockchain, 20 chainDb: chainDb, 21 } 22 } 23 24 func (eth *Ethereum) StateAtTransaction(ctx context.Context, block *types.Block, txIndex int, reexec uint64) (*core.Message, vm.BlockContext, *state.StateDB, tracers.StateReleaseFunc, error) { 25 return eth.stateAtTransaction(ctx, block, txIndex, reexec) 26 }