zakkisyedENS Delegated
Updated 2021-12-08
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
⌄
/*select t1.tx_to_address, t2.balance, symbol, t2.amount_usd
--count(tx_from_address)
--count(distinct(TX_FROM_ADDRESS)) as addresses_claimed
from ethereum.events_emitted as t1
INNER JOIN ethereum.erc20_balances as t2
ON t1.contract_address = t2.contract_address
where t1.contract_address = '0xc18360217d8f7ab5e7c516566761ea12ce7f9d72'
and t1.event_name ='Claimed'
and t1.event_removed = 'FALSE'
--and t2.symbol = 'ens'
--and block_timestamp > '21-10-31'
--limit
--order by contract_name
*/
with T1 as
(
select
((event_inputs :toDelegate :: string )) as delegated_accounts,
((event_inputs :delegator :: string )) as delegator_accounts
from ethereum.events_emitted
where contract_address = '0xc18360217d8f7ab5e7c516566761ea12ce7f9d72'
and event_name = 'DelegateChanged'
and event_removed = 'FALSE'
--or event_name ='DelegateVotesChanged'
--and block_timestamp between '21-11-01' and '21-11-07'
and block_timestamp > CURRENT_DATE - 60
)
Run a query to Download Data