Query editor
withnew_users as (selectto_owner as user, min(block_date) as creation_datefrom tokens_solana.transferswhere token_mint_address = 'So11111111111111111111111111111111111111112'group by 1having min(block_date) >= timestamp'2024-01-01' and min(block_date) < timestamp'2024-02-01'), me_bids_v3 as (selecttx_signer as user, block_time, 'Magic Eden Bid' as actionfrom solana.instruction_callswhere tx_success = trueand block_time >= timestamp'{{start_date}}' and block_time < timestamp'{{end_date}}'and executing_account = 'mmm3XBJg5gk8XJxEKBvdgptZz6SgK4tXvn36sodowMc'-- and tx_id = '3JCxvbP1ZNWo6yXttEFTwnhgWtBpB5ZCoKG1n7yhzHJnuFrmePiHnHhf5sHGUeD16Roh2EUH1PP2W9mS6KhmYuAL'and contains(log_messages, 'Program log: Instruction: SolDepositBuy') -- magic eden bidand tx_signer not in (select user from new_users)), me_bids_v2 as (selecttx_signer as user, block_time, 'Magic Eden Bid' as actionfrom solana.instruction_callswhere tx_success = trueand block_time >= timestamp'{{start_date}}' and block_time < timestamp'{{end_date}}'and executing_account = 'M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K'-- and tx_id = '3JCxvbP1ZNWo6yXttEFTwnhgWtBpB5ZCoKG1n7yhzHJnuFrmePiHnHhf5sHGUeD16Roh2EUH1PP2W9mS6KhmYuAL'and not (contains(log_messages, 'Program log: Instruction: ExecuteSaleV2') or contains(log_messages, 'Program log: Instruction: Mip1ExecuteSaleV2') or contains(log_messages, 'Program log: Instruction: OcpExecuteSaleV2') or contains(log_messages, 'Program log: Instruction: BuyV2'))and contains(log_messages, 'Program log: Instruction: Deposit') -- magic eden bidand tx_signer not in (select user from new_users)), tensor_bids as (selecttx_signer as user, block_time, 'Tensor Bid' as actionfrom solana.instruction_callswhere tx_success = trueand block_time >= timestamp'{{start_date}}' and block_time < timestamp'{{end_date}}'and executing_account = 'TSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN'-- and tx_id = '3JCxvbP1ZNWo6yXttEFTwnhgWtBpB5ZCoKG1n7yhzHJnuFrmePiHnHhf5sHGUeD16Roh2EUH1PP2W9mS6KhmYuAL'and contains(log_messages, 'Program log: Instruction: DepositSol') -- tensor bidand tx_signer not in (select user from new_users)), tensor_bids_cnft as (selecttx_signer as user, block_time, 'Tensor Bid' as action