manager.go 407 B

123456789101112131415161718
  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. EventMux() *event.TypeMux
  16. }