Query editor
-- GHO: supply diário na Ethereum (mint − burn acumulado), desde o lançamento (jul/2023)-- mint = transferência vinda do endereço zero; burn = transferência para o endereço zerowith movimentos as (selectdate_trunc('day', evt_block_time) as dia,sum(case when "from" = 0x0000000000000000000000000000000000000000 then value / 1e18 else 0 end) as mintado,sum(case when "to" = 0x0000000000000000000000000000000000000000 then value / 1e18 else 0 end) as queimadofrom erc20_ethereum.evt_Transferwhere contract_address = 0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f -- GHOand evt_block_time >= timestamp '2023-07-15'and ("from" = 0x0000000000000000000000000000000000000000or "to" = 0x0000000000000000000000000000000000000000)group by 1)selectdia,mintado,queimado,mintado - queimado as liquido,sum(mintado - queimado) over (order by dia) as supply_ghofrom movimentosorder by dia