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

Added new blocks and refresh prompts #11

Merged
merged 13 commits into from
May 12, 2024
1 change: 1 addition & 0 deletions dune/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def get_query_result(queries, query_name, cluster="medium"):
while attempts < 3:
try:
pd = dune.refresh_into_dataframe(query, performance=cluster)
# pd = dune.get_latest_result_dataframe(query.query_id)
return pd
except Exception as err:
attempts += 1
Expand Down
229 changes: 0 additions & 229 deletions dune/process.py

This file was deleted.

14 changes: 13 additions & 1 deletion dune/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,23 @@ def get_queries(start_date: str, end_date: str, sol_start_deposits: float, sol_e
),
"totalStEthInDeFi": QueryBase(
name="totalStEthInDeFi",
query_id=2740414,
query_id=2740000,
params=[
QueryParameter.date_type("digest_start_date", start_date),
QueryParameter.date_type("digest_end_date", end_date),
],
),
"bridgedToCosmos": QueryBase(
name="bridgedToCosmos",
query_id=3215855,
params=[
QueryParameter.date_type("digest_start_date", start_date),
QueryParameter.date_type("digest_end_date", end_date),
],
),
"stethVolumes": QueryBase(
name="stethVolumes",
query_id=2810114
),
}
return queries
Loading
Loading