KuramaNFL.ALLDAY.Q1-2 - Sales previous
    Updated 2022-09-14
    with allday_minted as (
    select tx_id, block_timestamp, event_index, event_type,
    event_data:editionID as edition_id,
    event_data:id as id,
    event_data:serialNumber as serial_number
    from flow.core.fact_events
    where event_contract = 'A.e4cf4bdc1751c65d.AllDay'
    and event_type = 'MomentNFTMinted'
    ),

    allday_deposits as (
    select tx_id, block_timestamp, event_index, event_type,
    event_data:id as id,
    event_data:to as to_address
    from flow.core.fact_events
    where event_contract = 'A.e4cf4bdc1751c65d.AllDay'
    and event_type = 'Deposit'
    ),

    allday_withdraw as (
    select tx_id, block_timestamp, event_index, event_type,
    event_data:id as id,
    event_data:from as from_address
    from flow.core.fact_events
    where event_contract = 'A.e4cf4bdc1751c65d.AllDay'
    and event_type = 'Withdraw'
    ),

    allday_burned as (
    select tx_id, block_timestamp, event_index, event_type,
    event_data:id as id
    from flow.core.fact_events
    where event_contract = 'A.e4cf4bdc1751c65d.AllDay'
    and event_type = 'MomentNFTBurned'
    ),

    Run a query to Download Data