Query editor
-- transfer topic0 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef-- chainflip 1 0xF5e10380213880111522dd0efD3dbb45b9f62Bccselectcast(varbinary_ltrim(l.topic2) as varchar) as bridge_to_address, l.tx_hash, l.contract_address as token_address, t.symbol as token_symbol, t.decimals as token_decimals, varbinary_to_uint256(l.data) as raw_amount, cast(varbinary_to_uint256(l.data) as double) / power(10, t.decimals) as adjusted_amount, cast('{{lowerAmount}}' as double) as var_lowerAmount, cast('{{upperAmount}}' as double) as var_upperAmount, {{lowerAmount}} as lowerAmount, {{upperAmount}} as upperAmount, l.*from evms.logs lleft join tokens.erc20 t on t.contract_address = l.contract_addresswhere block_date = cast('{{date}}' as date)and topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef -- Transfer-- and topic1 = 0x000000000000000000000000f5e10380213880111522dd0efd3dbb45b9f62bcc -- ChainFlip 1 contractand topic1 = 0x0000000000000000000000000000000000000000000000000000000000000000 -- mint/burn addressand t.blockchain = 'ethereum'-- and t.symbol = 'WBTC'and cast(varbinary_to_uint256(l.data) as double) / power(10, t.decimals) between cast('{{lowerAmount}}' as double) and cast('{{upperAmount}}' as double)order by l.block_time desc