Monitize AIAI Arena Mint Pass NFT Holders 4
    Updated 2024-07-15
    with claimert as (
    select
    distinct TO_ADDRESS as claimer,
    sum(amount) as claimed_amount
    from arbitrum.core.ez_token_transfers
    where CONTRACT_ADDRESS = lower('0xdadeca1167fe47499e53Eb50F261103630974905')
    and FROM_ADDRESS = lower('0xb063f2af926af95f08515fd9d5f2397ce97148bf')
    and ORIGIN_FUNCTION_SIGNATURE = '0x2f0879f7'
    group by 1
    ),

    g3stakert as (
    select
    distinct FROM_ADDRESS as staker,
    sum(AMOUNT) as staked
    from arbitrum.core.ez_token_transfers
    where To_ADDRESS = lower('0x114Bf223caDFDA4b2F197abf4AdC75006e213131')
    and contract_address = lower('0xc24A365A870821EB83Fd216c9596eDD89479d8d7')
    group by 1
    ),

    GAM3RSt as (
    select
    distinct holder as GAM3RS_holder,
    count(distinct TOKENID) as GAM3RS
    from(
    select
    TOKENID,
    NFT_TO_ADDRESS as holder,
    BLOCK_TIMESTAMP,
    row_number() over (partition by TOKENID order by BLOCK_TIMESTAMP desc) as rank
    from ethereum.nft.ez_nft_transfers
    where nft_address = lower('0xDE76aD8998310dd4C6cA9fdb03a5F20bbf01Ce96')
    )
    where rank = 1
    group by 1
    QueryRunArchived: QueryRun has been archived