Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bye bye shroom #5351

Merged
merged 4 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ def onchain(self):
`prices`: Get token historical prices with volume and market cap, and average price. [Source: Ethplorer]\n
`prices_chart`: Display token historical prices with volume and market cap, and average price.\n
`query`: Get query data\n
`query_chart`: Display query results from shroom\n
`query_graph`: Helper methods for querying graphql api. [Source: https://bitquery.io/]\n
`th`: Get info about token historical transactions. [Source: Ethplorer]\n
`th_chart`: Display info about token history. [Source: Ethplorer]\n
Expand Down
3 changes: 0 additions & 3 deletions openbb_terminal/core/sdk/models/crypto_sdk_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ class CryptoOnChain(Category):
`prices`: Get token historical prices with volume and market cap, and average price. [Source: Ethplorer]\n
`prices_chart`: Display token historical prices with volume and market cap, and average price.\n
`query`: Get query data\n
`query_chart`: Display query results from shroom\n
`query_graph`: Helper methods for querying graphql api. [Source: https://bitquery.io/]\n
`th`: Get info about token historical transactions. [Source: Ethplorer]\n
`th_chart`: Display info about token history. [Source: Ethplorer]\n
Expand Down Expand Up @@ -517,8 +516,6 @@ def __init__(self):
self.prices_chart = (
lib.crypto_onchain_ethplorer_view.display_token_historical_prices
)
self.query = lib.crypto_onchain_shroom_model.get_query_data
self.query_chart = lib.crypto_onchain_shroom_view.display_query
self.query_graph = lib.crypto_onchain_bitquery_model.query_graph
self.th = lib.crypto_onchain_ethplorer_model.get_token_history
self.th_chart = lib.crypto_onchain_ethplorer_view.display_token_history
Expand Down
2 changes: 0 additions & 2 deletions openbb_terminal/core/sdk/models/keys_sdk_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class KeysRoot(Category):
`rh`: Set Robinhood key\n
`santiment`: Set Santiment key.\n
`set_keys`: Set API keys in bundle.\n
`shroom`: Set Shroom key\n
`smartstake`: Set Smartstake key.\n
`stocksera`: Set Stocksera key.\n
`tokenterminal`: Set Token Terminal key.\n
Expand Down Expand Up @@ -78,7 +77,6 @@ def __init__(self):
self.rh = lib.keys_model.set_rh_key
self.santiment = lib.keys_model.set_santiment_key
self.set_keys = lib.keys_model.set_keys
self.shroom = lib.keys_model.set_shroom_key
self.smartstake = lib.keys_model.set_smartstake_key
self.stocksera = lib.keys_model.set_stocksera_key
self.tokenterminal = lib.keys_model.set_tokenterminal_key
Expand Down
2 changes: 0 additions & 2 deletions openbb_terminal/core/sdk/sdk_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,6 @@
ethplorer_view as crypto_onchain_ethplorer_view,
whale_alert_model as crypto_onchain_whale_alert_model,
whale_alert_view as crypto_onchain_whale_alert_view,
shroom_model as crypto_onchain_shroom_model,
shroom_view as crypto_onchain_shroom_view,
topledger_model as crypto_onchain_topledger_model,
topledger_view as crypto_onchain_topledger_view,
)
Expand Down
2 changes: 0 additions & 2 deletions openbb_terminal/core/sdk/trail_map.csv
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ crypto.onchain.hr,crypto_dd_glassnode_model.get_hashrate,crypto_dd_glassnode_vie
crypto.onchain.info,crypto_onchain_ethplorer_model.get_token_info,crypto_onchain_ethplorer_view.display_token_info
crypto.onchain.lt,crypto_onchain_bitquery_model.get_dex_trades_by_exchange,crypto_onchain_bitquery_view.display_dex_trades
crypto.onchain.prices,crypto_onchain_ethplorer_model.get_token_historical_price,crypto_onchain_ethplorer_view.display_token_historical_prices
crypto.onchain.query,crypto_onchain_shroom_model.get_query_data,crypto_onchain_shroom_view.display_query
crypto.onchain.query_graph,crypto_onchain_bitquery_model.query_graph,
crypto.onchain.th,crypto_onchain_ethplorer_model.get_token_history,crypto_onchain_ethplorer_view.display_token_history
crypto.onchain.token_decimals,crypto_onchain_ethplorer_model.get_token_decimals,
Expand Down Expand Up @@ -307,7 +306,6 @@ keys.reddit,keys_model.set_reddit_key,
keys.rh,keys_model.set_rh_key,
keys.santiment,keys_model.set_santiment_key,
keys.set_keys,keys_model.set_keys,
keys.shroom,keys_model.set_shroom_key,
keys.smartstake,keys_model.set_smartstake_key,
keys.stocksera,keys_model.set_stocksera_key,
keys.tokenterminal,keys_model.set_tokenterminal_key,
Expand Down
40 changes: 0 additions & 40 deletions openbb_terminal/cryptocurrency/onchain/onchain_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
ethgasstation_view,
ethplorer_model,
ethplorer_view,
shroom_view,
topledger_model,
topledger_view,
whale_alert_model,
Expand Down Expand Up @@ -83,7 +82,6 @@ class OnchainController(BaseController):
"btccp",
"btcct",
"btcblockdata",
"query",
"topledger",
]

Expand Down Expand Up @@ -120,7 +118,6 @@ def print_help(self):
mt.add_cmd("ueat")
mt.add_cmd("ttcp")
mt.add_cmd("baas")
mt.add_cmd("query")
mt.add_raw("\n")
mt.add_param("_address", self.address or "")
mt.add_param("_type", self.address_type or "")
Expand All @@ -137,43 +134,6 @@ def print_help(self):
mt.add_cmd("tx", self.address_type == "tx")
console.print(text=mt.menu_text, menu="Cryptocurrency - Onchain")

@log_start_end(log=logger)
def call_query(self, other_args: List[str]):
"""Process query command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="query",
description="""
Make any flipsidecrypto query
[Source:https://docs.flipsidecrypto.com/]
""",
)

parser.add_argument(
"-q",
"--query",
dest="query",
type=str,
nargs="+",
required=not any(["-h" in other_args, "--help" in other_args]),
help="Query to make",
)

if other_args and other_args[0][0] != "-":
other_args.insert(0, "-q")

ns_parser = self.parse_known_args_and_warn(
parser, other_args, EXPORT_BOTH_RAW_DATA_AND_FIGURES, limit=10
)

if ns_parser:
shroom_view.display_query(
query=" ".join(ns_parser.query),
export=ns_parser.export,
limit=ns_parser.limit,
)

@log_start_end(log=logger)
def call_btcct(self, other_args: List[str]):
"""Process btcct command"""
Expand Down
259 changes: 0 additions & 259 deletions openbb_terminal/cryptocurrency/onchain/shroom_model.py

This file was deleted.

Loading