Query editor
withcoin_list as (select 'Glossier' as brand_name, 0x6d7f22438b7b4394d97c14d942833e639a6d5a14 as token_address union allselect 'Rare Beauty' as brand_name, 0x4cc5d6ac79b9e1b525236c7affa9ab350a4aca57 as token_address union allselect 'Topicals' as brand_name, 0xf08fa6d30734e76918c1d2c2522a6ff60adec66a as token_address union allselect 'Dieux' as brand_name, 0x9e25b78dc7998dbb9be1089dc5679150132d098a as token_address union allselect 'OUAI' as brand_name, 0x3e0b07b47917a296f5ad92637551838fb6ebde50 as token_address union allselect 'Cult Gaia' as brand_name, 0x99843411020e898f08fded7f48eef49de3e1d6e0 as token_address union allselect 'The Outset' as brand_name, 0xbe9b3eb446f1e3321465ec61d44f23b09cc3306b as token_address union allselect 'Mario Badescu' as brand_name, 0xbc6c33bb0c2c6c08756d4350c7c7e08aa4cdb8c4 as token_address union allselect 'Skinfix' as brand_name, 0x339fe79302e8952adb375891f6a040deca66dad4 as token_address union allselect 'TSC' as brand_name, 0x38cb16cb771505ca866def2052653515c831c4be as token_address union allselect 'Urban Outfitters' as brand_name, 0x47f5339460e362599ef5191528e9e18eff8a2b49 as token_address union allselect 'Loops' as brand_name, 0xe0adce2d42cb3cc1290ecccd8d8a019406e9329d as token_address union allselect 'Bubble' as brand_name, 0x40bc2fd80f6810c2431031b2832c717d53f39d94 as token_address union allselect 'BYOMA' as brand_name, 0x59debe24b18d272aae97c2cd60db9afdb8cb9784 as token_address),collection_list as (select 'Glossier' as brand_name, 0xac3f47c5a31b804e6db75027df2495acda456c21 as collection_address, 'G Collective 1' as collection_name union allselect 'Rare Beauty' as brand_name, 0x134ce3f6ec482099ade689bb9a666e40da71d13c as collection_address, 'Rare Friend' as collection_name union allselect 'BYOMA' as brand_name, 0x9c426ecc0c0403d36bb4030e2bef017ffab9c39e as collection_address, 'Creamy Jelly Cleanser Token' as collection_name union allselect 'Mario Badescu' as brand_name, 0x28f1af69f83ae564a65d52bf19a6cc00790bb075 as collection_address, 'Rosewater Collective' as collection_name union allselect 'Bubble' as brand_name, 0x6ca218c67fdebb1cf67fa3572d71fddbd2f40ce0 as collection_address, 'The Bubble League' as collection_name union allselect 'Dieux' as brand_name, 0x8f2a70770e3d85b87aef2e7d0ccc14de94adf0d5 as collection_address, 'Angels Only II' as collection_name union allselect 'The Outset' as brand_name, 0x53f4a783c31bebe473db082c744866b797fdb054 as collection_address, 'Hydration Hero' as collection_name union allselect 'Loops' as brand_name, 0x5dd3a806fef2826c738ad0a4eabb3fcde351beb6 as collection_address, 'LOOPS ONLY' as collection_name union allselect 'Urban Outfitters' as brand_name, 0xdab5f2a6113d7d55c1017e95cb633b37f68f460d as collection_address, 'Explorer' as collection_name union allselect 'Skinfix' as brand_name, 0xbb96cce89ea501e7a6137e5ce1a3f3b91192171f as collection_address, 'Barrier Buds' as collection_name union allselect 'TSC' as brand_name, 0x1d50319f6366c8172069910f9cf341fe61b90bae as collection_address, 'TSC Community' as collection_name union allselect 'Cult Gaia' as brand_name, 0x91fcd23063df772ac7c0fe5aeaa0c5009ac0b3f4 as collection_address, 'The Cult' as collection_name union allselect 'OUAI' as brand_name, 0x29d8ae179408fb03000b9d6a711c9cce8b8dadcd as collection_address,'OUAI TO GO BAG' as collection_name union allselect 'Topicals' as brand_name, 0x434335ca5950d5c07dbcd6fa4753ce90b30dae99 as collection_address, 'Topicals Spottie Hotties' as collection_name),contract_creation as (selecttx_hash,contract_address,topic0,data,varbinary_substring(data,13,20) as addressfromavalanche_c.logswhere1=1and contract_address in (0xcc5c8f202f8f9c756d6bfecc5b348495c1a229a9,0x5ffb513e7653e24bb7c7d3effe2fa27b20edcb13)and topic0 in (0xa9505db3831ef08d89c9b4183e5d453ee8ddb3c077c192776dc54b2c97bd4a52,0x0932763e5a18f9be5bc3fb4ab7811741698b07a6b017eed8f9e6e0c5738f28ce)),coin_contracts as (selectaddress as coin_addressfromcontract_creationwherecontract_address=0xcc5c8f202f8f9c756d6bfecc5b348495c1a229a9 and topic0=0xa9505db3831ef08d89c9b4183e5d453ee8ddb3c077c192776dc54b2c97bd4a52and address in (select token_address from coin_list)