Skip to content

Commit

Permalink
refactor: namespace otterscan query engine
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Apr 19, 2024
1 parent 79ff1f7 commit c9ad5cd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/ape_geth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from .provider import Geth as GethProvider
from .provider import GethConfig, GethDev, GethNetworkConfig
from .query import OTSQueryEngine


@plugins.register(plugins.Config)
Expand All @@ -19,8 +18,3 @@ def providers():
yield "ethereum", network_name, GethProvider

yield "ethereum", LOCAL_NETWORK_NAME, GethDev


@plugins.register(plugins.QueryPlugin)
def query_engines():
yield OTSQueryEngine
7 changes: 7 additions & 0 deletions src/ape_otterscan/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from ape import plugins
from ape_otterscan.query import OTSQueryEngine


@plugins.register(plugins.QueryPlugin)
def query_engines():
yield OTSQueryEngine
File renamed without changes.

0 comments on commit c9ad5cd

Please sign in to comment.