Documentation ¶
Index ¶
- func NewContext(logger *log.Logger, node *consensus.Node, feePool *fees.Store, ...) rpctypes.Web3Context
- func RegisterApis(src *rpc.Server, apis map[string]rpctypes.Web3Service) error
- type Context
- func (ctx *Context) GetAccountKeeper() balance.AccountKeeper
- func (ctx *Context) GetBlockStore() *store.BlockStore
- func (ctx *Context) GetConfig() *config.Server
- func (ctx *Context) GetConsensusReactor() *cs.Reactor
- func (ctx *Context) GetContractStore() *evm.ContractStore
- func (ctx *Context) GetEventBus() *types.EventBus
- func (ctx *Context) GetFeePool() *fees.Store
- func (ctx *Context) GetGenesisDoc() *types.GenesisDoc
- func (ctx *Context) GetLogger() *log.Logger
- func (ctx *Context) GetMempool() mempool.Mempool
- func (ctx *Context) GetNode() *consensus.Node
- func (ctx *Context) GetNodeContext() *node.Context
- func (ctx *Context) GetSwitch() *p2p.Switch
- func (ctx *Context) GetTxIndexer() txindex.TxIndexer
- func (ctx *Context) RegisterService(name string, service rpctypes.Web3Service)
- func (ctx *Context) ServiceList() map[string]rpctypes.Web3Service
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func NewContext( logger *log.Logger, node *consensus.Node, feePool *fees.Store, nodeContext *node.Context, cfg *config.Server, chainstate *storage.ChainState, currencies *balance.CurrencySet, ) rpctypes.Web3Context
NewContext Initializing context with properties
func RegisterApis ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context set up for service processing
func (*Context) GetAccountKeeper ¶
func (ctx *Context) GetAccountKeeper() balance.AccountKeeper
func (*Context) GetBlockStore ¶
func (ctx *Context) GetBlockStore() *store.BlockStore
func (*Context) GetConsensusReactor ¶
func (*Context) GetContractStore ¶
func (ctx *Context) GetContractStore() *evm.ContractStore
func (*Context) GetEventBus ¶
func (*Context) GetFeePool ¶
func (*Context) GetGenesisDoc ¶
func (ctx *Context) GetGenesisDoc() *types.GenesisDoc
func (*Context) GetMempool ¶
func (*Context) GetNodeContext ¶
func (*Context) GetTxIndexer ¶
func (*Context) RegisterService ¶
func (ctx *Context) RegisterService(name string, service rpctypes.Web3Service)
RegisterService used to register service. NOTE: Must be called by service
func (*Context) ServiceList ¶
func (ctx *Context) ServiceList() map[string]rpctypes.Web3Service
ServiceList represents a cuurent list of registered servises
Click to show internal directories.
Click to hide internal directories.