rajsCopy of Liquid Staking Platforms
    Updated 2022-09-05
    with txs as
    (
    SELECT
    'LIDO' as platform,
    tokenflow_eth.hextoint(substr(data,3,64)) / pow (10,18) as deposit_amount,
    '0x' || substr(topics[1],27,40) as depositor,
    tx_hash
    from ethereum.core.fact_event_logs
    where contract_address = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'
    and topics[0] = '0x96a25c8ce0baabc1fdefd93e9ed25d8e092a3332f3aa9a41722b5697231d1d1a'

    UNION

    SELECT
    'Rocketpool' as platform,
    tokenflow_eth.hextoint(substr(data,3,64)) / pow (10,18) as deposit_amount,
    '0x' || substr(topics[1],27,40) as depositor,
    tx_hash
    from ethereum.core.fact_event_logs
    where contract_address = '0x4d05e3d48a938db4b7a9a59a802d5b45011bde58'
    and topics[0] = '0x7aa1a8eb998c779420645fc14513bf058edb347d95c2fc2e6845bdc22f888631'

    UNION

    SELECT
    'Rocketpool Nodes' as platform,
    tokenflow_eth.hextoint(substr(data,3,64)) / pow (10,18) as deposit_amount,
    '0x' || substr(topics[1],27,40) as depositor,
    tx_hash
    from ethereum.core.fact_event_logs
    where contract_address = '0xdcd51fc5cd918e0461b9b7fb75967fdfd10dae2f'
    and topics[0] = '0x7aa1a8eb998c779420645fc14513bf058edb347d95c2fc2e6845bdc22f888631'

    UNION

    SELECT
    Run a query to Download Data