-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added claim queries * added new queries
- Loading branch information
1 parent
a3b9799
commit 4fd2aa6
Showing
7 changed files
with
81 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
query_ids: | ||
- 3988562 | ||
- 3988572 | ||
- 4333164 | ||
- 3393781 | ||
- 3397059 | ||
- 3397026 | ||
- 4333079 | ||
- 3999276 | ||
- 3393781 | ||
- 3397026 | ||
- 3988562 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
dune-euphrates/queries/euphrates_claims_total___4333164.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- part of a query repo | ||
-- query name: euphrates_claims_total | ||
-- query link: https://dune.com/queries/4333164 | ||
|
||
|
||
SELECT | ||
DATE_TRUNC('week', timestamp) AS day, | ||
SUM(amount_ui) as aca_amount, | ||
SUM(SUM(amount_ui)) OVER (ORDER BY DATE_TRUNC('week', timestamp)) as cumulative_aca | ||
FROM query_4333079 /* euphrates claims v3 */ | ||
WHERE reward_type = 0x0000000000000000000100000000000000000000 | ||
GROUP BY 1 | ||
ORDER BY 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- part of a query repo | ||
-- query name: euphrates_claims_v3 | ||
-- query link: https://dune.com/queries/4333079 | ||
|
||
|
||
SELECT | ||
FROM_ISO8601_TIMESTAMP("timestamp") AS "timestamp", | ||
block_number, | ||
pool_id, | ||
amount, | ||
amount_ui, | ||
reward_type, | ||
CASE | ||
WHEN reward_type = 0x0000000000000000000100000000000000000000 THEN 'aca' | ||
WHEN reward_type = 0x892ddd9387dbdecedaef878bd7acf8603109227f THEN 'tai' | ||
ELSE '???' | ||
END AS reward, | ||
recipient, | ||
tx_hash | ||
FROM dune.euphrates.dataset_euphrates_claims_v3 | ||
ORDER BY 1 DESC |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters