manager.go 434 Bytes
Newer Older
obscuren's avatar
obscuren committed
1 2 3
package core

import (
4
	"github.com/ethereum/go-ethereum/accounts"
obscuren's avatar
obscuren committed
5
	"github.com/ethereum/go-ethereum/common"
obscuren's avatar
obscuren committed
6 7 8
	"github.com/ethereum/go-ethereum/event"
)

9
// TODO move this to types?
10
type Backend interface {
11
	AccountManager() *accounts.Manager
obscuren's avatar
obscuren committed
12 13 14
	BlockProcessor() *BlockProcessor
	ChainManager() *ChainManager
	TxPool() *TxPool
obscuren's avatar
obscuren committed
15 16
	BlockDb() common.Database
	StateDb() common.Database
17
	ExtraDb() common.Database
obscuren's avatar
obscuren committed
18 19
	EventMux() *event.TypeMux
}