scottincryptoyearn deployer events
Updated 2021-11-10
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
›
⌄
with vaults as (
select
block_timestamp
, event_inputs:vault::string as vault
, event_inputs:token::string as token
, event_inputs:deployment_id::string as deployment_id
, event_inputs:api_version::string as api_version
from ethereum.events_emitted
where contract_address = '0x50c1a2ea0a861a967d9d0ffe2ae4012c2e053804' --v2 deployer
and event_name = 'NewVault'
and tx_succeeded = 'TRUE'
and event_removed = 'FALSE'
--order by block_timestamp
)
, tokens as (
select distinct
token_address
, symbol
, decimals
from ethereum.token_prices_hourly
where token_address in (select token from vaults)
and decimals is not null
)
select
v.*
, t.symbol as token_symbol
, t.decimals as token_decimals
from vaults v
left join tokens t on (v.token = t.token_address)
Run a query to Download Data