Query editor
with agent_created as (selecthash,block_time,"from",bytearray_to_int256(substring(data from 5 for 32)) as idfrom base.transactionswhere substring(data from 1 for 4) in (0xb2c0212d, 0xaa3d000a)and successorder by 4 asc),virtual_seeded as (selectevt_tx_hash as hash, value/1e18 as virtual_seededfrom erc20_base.evt_transferwhere contract_address = 0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1bgroup by 1,2--and evt_tx_hash = 0x3badde0bf78ae57baffcdcef51f2d29dd1d9b9f52bb37b6708874a3be8a557ee),lp_created as (selecttx_hash as hash,substring(data from 13 for 20) as lp_pool,CASEWHEN SUBSTRING(topic1 FROM 13 FOR 20) = 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b THEN SUBSTRING(topic2 FROM 13 FOR 20)WHEN SUBSTRING(topic2 FROM 13 FOR 20) = 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b THEN SUBSTRING(topic1 FROM 13 FOR 20)END AS tokenfrom base.logswhere contract_address = 0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6and topic0 = 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9--group by 1,2--and tx_hash = 0x3badde0bf78ae57baffcdcef51f2d29dd1d9b9f52bb37b6708874a3be8a557ee),----------------------------- add virtual.fun data -----------------tokens_launched as (selectblock_time,"from" as deployer,hash as tx_hash,bytearray_to_int256(substring(data from 197 for 32))/1e18 as virtual_spent, --amount spentfrom_utf8(substring(data from 261 for 32)) as name,from_utf8(substring(data from 325 for 32)) as tickerfrom base.transactionswhere "to" = 0xF66DeA7b3e897cD44A5a231c61B6B4423d613259and substring(data from 1 for 4) = 0x3c0b93aaand successand block_time > cast('2024-10-01' as timestamp)--limit 100),mints as (selectevt_tx_hash as tx_hash,contract_address as tokenfrom erc20_base.evt_transferwhere "from" = 0x0000000000000000000000000000000000000000and evt_block_time > cast('2024-10-01' as timestamp)),ownership as (select