Documentation ¶
Index ¶
- Constants
- func AddCommands(rootCmd *cobra.Command, defaultNodeHome string, appCreator types.AppCreator, ...)
- func ConnectTmWS(tmRPCAddr, tmEndpoint string, logger tmlog.Logger) *rpcclient.WSClient
- func Listen(addr string, config *config.Config) (net.Listener, error)
- func MountGRPCWebServices(router *mux.Router, grpcWeb *grpcweb.WrappedGrpcServer, grpcResources []string, ...)
- func NewIndexTxCmd() *cobra.Command
- func OpenIndexerDB(rootDir string, backendType dbm.BackendType) (dbm.DB, error)
- func StartCmd(appCreator types.AppCreator, defaultNodeHome string) *cobra.Command
- func StartJSONRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr, tmEndpoint string, ...) (*http.Server, chan struct{}, error)
- type EVMIndexerService
Constants ¶
View Source
const ( ServiceName = "EVMIndexerService" NewBlockWaitTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
func AddCommands( rootCmd *cobra.Command, defaultNodeHome string, appCreator types.AppCreator, appExport types.AppExporter, addStartFlags types.ModuleInitFlags, )
AddCommands adds server commands
func ConnectTmWS ¶
func Listen ¶ added in v0.19.0
Listen starts a net.Listener on the tcp network on the given address. If there is a specified MaxOpenConnections in the config, it will also set the limitListener.
func MountGRPCWebServices ¶
func NewIndexTxCmd ¶ added in v0.19.0
func OpenIndexerDB ¶ added in v0.19.0
OpenIndexerDB opens the custom eth indexer db, using the same db backend as the main app
Types ¶
type EVMIndexerService ¶ added in v0.19.0
type EVMIndexerService struct { service.BaseService // contains filtered or unexported fields }
EVMIndexerService indexes transactions for json-rpc service.
func NewEVMIndexerService ¶ added in v0.19.0
func NewEVMIndexerService( txIdxr ethermint.EVMTxIndexer, client rpcclient.Client, ) *EVMIndexerService
NewEVMIndexerService returns a new service instance.
func (*EVMIndexerService) OnStart ¶ added in v0.19.0
func (eis *EVMIndexerService) OnStart() error
OnStart implements service.Service by subscribing for new blocks and indexing them by events.
Click to show internal directories.
Click to hide internal directories.