manager.go 434 B

12345678910111213141516171819
  1. package core
  2. import (
  3. "github.com/ethereum/go-ethereum/accounts"
  4. "github.com/ethereum/go-ethereum/common"
  5. "github.com/ethereum/go-ethereum/event"
  6. )
  7. // TODO move this to types?
  8. type Backend interface {
  9. AccountManager() *accounts.Manager
  10. BlockProcessor() *BlockProcessor
  11. ChainManager() *ChainManager
  12. TxPool() *TxPool
  13. BlockDb() common.Database
  14. StateDb() common.Database
  15. ExtraDb() common.Database
  16. EventMux() *event.TypeMux
  17. }