csp88gmint MOON
    Updated 2024-09-02
    WITH mint as (select DISTINCT BLOCK_TIMESTAMP,
    TX_HASH,
    MEMO,
    AMOUNT_PRECISE as mint_moon_amount,
    to_address as player,
    from near.core.ez_token_transfers
    /*where memo not in ('Harvest','Referral','Migration','Migrate')*/
    where /*memo not in ('')
    and */block_timestamp::date >= '2024-04-01'
    and block_timestamp::date < '2024-04-06'
    and CONTRACT_ADDRESS = 'aa-harvest-moon.near'
    /*and player = 'csp88.near'*/
    /*and player = 'system'*/
    ),

    mint_harvest as (select DISTINCT *,
    from mint
    where memo = 'Harvest'
    ),

    mint_referral as (select DISTINCT *,
    from mint
    where memo = 'Referral'
    ),

    mint_migration as (select DISTINCT *,
    from mint
    where memo in ('Migration','Migrate')
    ),

    mint_exchange as (select DISTINCT *,
    from mint
    where memo LIKE 'Exchanged%Moon'
    ),

    mint_reward as (select DISTINCT *,
    QueryRunArchived: QueryRun has been archived