Query editor
with tokens as (-- (select 0x33349b282065b0284d756f0577fb39c158f935e6 as address, 'MPL' as token, 'Maple Finance' as protocol, '#' as underlying, 'ethereum' as chain)-- union all(select 0xfAbA6f8e4a5E8Ab82F62fe7C39859FA577269BE3 as address, 'ONDO' as token, 'Ondo Finance' as protocol, '#' as underlying, 'multi' as chain)union all(select 0xCA30c93B02514f86d5C86a6e375E3A330B435Fb5 as address, 'bIB01' as token, 'Backed Finance' as protocol, '#' as underlying, 'ethereum' as chain)union all(select 0xad6250f0BD49F7a1eB11063af2cE9F25B9597b0F as address, 'TBILL' as token, 'Open Eden' as protocol, '#' as underlying, 'ethereum' as chain)union all(select 0x96F6eF951840721AdBF46Ac996b59E0235CB985C as address, 'USDM' as token, 'Mountain Finance' as protocol, '#' as underlying, 'ethereum' as chain)union all(select 0x530824DA86689C9C17CdC2871Ff29B058345b44a as address, 'STBT' as token, 'Matrixport' as protocol, '#' as underlying, 'ethereum' as chain)),manual_label as ( -- backed related contracts,select *from (values-- Specific contracts('gnosis', 0x9008D19f58AAbD9eD0D60971565AA8510560ab41, 'Cowswap', 'Contract'),-- Bridges('ethereum', 0xa3a7b6f88361f48403514059f1f16c8e78d60eec, 'Arbitrum Bridge', 'Bridge'),-- Liquidity pools('ethereum', 0x999a320976a2db1776a228ff9adde7937c5a193a, 'Uni V3 bCSPX-USDC', 'Liquidity'),('ethereum', 0x33C015E797C503fB3D3c07fDF587ad8d3d9C86FE, 'Uni V3 bCOIN-USDC', 'Liquidity'),('ethereum', 0x840f642C71577F5596c76D60B54DFDd10C4E2759, 'Uni V3 bIB01-USDC', 'Liquidity'),('ethereum', 0x913E8e1eD659C27613E937a6B6119b91D985094c, 'Angle IB01 Vault', 'Contract'),('gnosis', 0x9372C0bDF4e189F17f6E93A160Ba0582b6F48eAc, 'Sushi V2 bIBTA-USDC', 'Liquidity'),('gnosis', 0x8A24dDb6333D2f529c5aDfb84083024525E84121, 'Swapr bIBTA-xDAI', 'Liquidity'),('gnosis', 0x8A3D0C604763b7AA153b27d0aC58f0F896389490, 'Swapr bIB01-USDC', 'Liquidity'),('gnosis', 0x6d75F5A2759b0fBA187F83f0a8Cb6c42e6Af632A, 'Swapr bCSPX-USDC', 'Liquidity'),-- Backed related('ethereum', 0x43624c744a4af40754ab19b00b6f681ca56f1e5b, 'Minter', 'Null'),('ethereum', 0x5F7A4c11bde4f218f0025Ef444c369d838ffa2aD, 'Issuer', 'Null'),('ethereum', 0x0000000000000000000000000000000000000000, 'Null', 'Null'),('gnosis', 0x43624c744a4af40754ab19b00b6f681ca56f1e5b, 'Minter', 'Null'),('gnosis', 0x5F7A4c11bde4f218f0025Ef444c369d838ffa2aD, 'Issuer', 'Null'),('gnosis', 0x0000000000000000000000000000000000000000, 'Null', 'Null')) as t(chain, address, name, category)),ens as (select 'ethereum' as chain, address, namefrom labels.ens ewhere e.blockchain = 'ethereum'and e.address <> 0x0000000000000000000000000000000000000000),contracts as (select blockchain as chain, address, namefrom labels.contractswhere blockchain in ('polygon', 'bnb', 'gnosis', 'ethereum')),multisig as (select blockchain as chain, address,concat(substring(cast(address as varchar) from 1 for 10), '...') as namefrom labels.safewhere blockchain in ('ethereum', 'gnosis')),