Skip to content

Commit

Permalink
Added new blocks and refresh prompts (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
thelazyliz committed May 12, 2024
1 parent 95a691a commit 9b16559
Show file tree
Hide file tree
Showing 10 changed files with 931 additions and 367 deletions.
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

0 comments on commit 9b16559

Please sign in to comment.