feat(logos): point network and gas-native tokens at d-bis.org marks
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m24s
CI/CD Pipeline / Security Scanning (push) Successful in 2m18s
CI/CD Pipeline / Lint and Format (push) Failing after 37s
CI/CD Pipeline / Terraform Validation (push) Failing after 19s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 23s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 25s
Validation / validate-genesis (push) Successful in 27s
Validation / validate-terraform (push) Failing after 21s
Validation / validate-kubernetes (push) Failing after 8s
Validation / validate-smart-contracts (push) Failing after 8s
Validation / validate-security (push) Failing after 1m16s
Validation / validate-documentation (push) Failing after 16s
Verify Deployment / Verify Deployment (push) Failing after 50s
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m24s
CI/CD Pipeline / Security Scanning (push) Successful in 2m18s
CI/CD Pipeline / Lint and Format (push) Failing after 37s
CI/CD Pipeline / Terraform Validation (push) Failing after 19s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 23s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 25s
Validation / validate-genesis (push) Successful in 27s
Validation / validate-terraform (push) Failing after 21s
Validation / validate-kubernetes (push) Failing after 8s
Validation / validate-smart-contracts (push) Failing after 8s
Validation / validate-security (push) Failing after 1m16s
Validation / validate-documentation (push) Failing after 16s
Verify Deployment / Verify Deployment (push) Failing after 50s
Replace explorer API logo fallbacks for WETH, LINK, and gas-native c* symbols with hosted d-bis.org SVG URLs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -977,22 +977,19 @@ const IPFS_GATEWAY = 'https://ipfs.io/ipfs';
|
||||
export const DBIS_BRAND_LOGO_BASE = 'https://d-bis.org';
|
||||
const GRU_LOGO_BASE =
|
||||
'https://raw.githubusercontent.com/Order-of-Hospitallers/proxmox-cp/main/token-lists/logos/gru';
|
||||
const ETH_LOGO = '/api/v1/report/logo/ETH';
|
||||
|
||||
export function dbisBrandLogoUrl(symbol: string): string {
|
||||
if (symbol.startsWith('Li')) return `${DBIS_BRAND_LOGO_BASE}/li/${symbol.toLowerCase()}.svg`;
|
||||
return `${DBIS_BRAND_LOGO_BASE}/tokens/${symbol.toLowerCase()}.svg`;
|
||||
}
|
||||
const LINK_LOGO = '/api/v1/report/logo/LINK';
|
||||
const GAS_NATIVE_LOGO_BY_CODE: Record<string, string> = {
|
||||
ETH: ETH_LOGO,
|
||||
BNB: '/api/v1/report/logo/BNB',
|
||||
POL: '/api/v1/report/logo/POL',
|
||||
AVAX: '/api/v1/report/logo/AVAX',
|
||||
CRO: '/api/v1/report/logo/CRO',
|
||||
XDAI: '/api/v1/report/logo/XDAI',
|
||||
CELO: '/api/v1/report/logo/CELO',
|
||||
WEMIX: '/api/v1/report/logo/WEMIX',
|
||||
ETH: dbisBrandLogoUrl('cETH'),
|
||||
BNB: dbisBrandLogoUrl('cBNB'),
|
||||
POL: dbisBrandLogoUrl('cPOL'),
|
||||
AVAX: dbisBrandLogoUrl('cAVAX'),
|
||||
CRO: dbisBrandLogoUrl('cCRO'),
|
||||
XDAI: dbisBrandLogoUrl('cXDAI'),
|
||||
CELO: dbisBrandLogoUrl('cCELO'),
|
||||
WEMIX: dbisBrandLogoUrl('cWEMIX'),
|
||||
};
|
||||
const USDC_LOGO = dbisBrandLogoUrl('cUSDC');
|
||||
const USDT_LOGO = dbisBrandLogoUrl('cUSDT');
|
||||
@@ -1023,10 +1020,18 @@ const LOGO_BY_SYMBOL: Record<string, string> = {
|
||||
cWCADC: dbisBrandLogoUrl('cWCADC'),
|
||||
cWXAUC: dbisBrandLogoUrl('cWXAUC'),
|
||||
cWXAUT: dbisBrandLogoUrl('cWXAUT'),
|
||||
cWEMIX: GAS_NATIVE_LOGO_BY_CODE.WEMIX,
|
||||
WETH: ETH_LOGO,
|
||||
WETH10: ETH_LOGO,
|
||||
LINK: LINK_LOGO,
|
||||
cWEMIX: dbisBrandLogoUrl('cWEMIX'),
|
||||
cETH: dbisBrandLogoUrl('cETH'),
|
||||
cETHL2: dbisBrandLogoUrl('cETHL2'),
|
||||
cBNB: dbisBrandLogoUrl('cBNB'),
|
||||
cPOL: dbisBrandLogoUrl('cPOL'),
|
||||
cAVAX: dbisBrandLogoUrl('cAVAX'),
|
||||
cCRO: dbisBrandLogoUrl('cCRO'),
|
||||
cXDAI: dbisBrandLogoUrl('cXDAI'),
|
||||
cCELO: dbisBrandLogoUrl('cCELO'),
|
||||
WETH: dbisBrandLogoUrl('WETH'),
|
||||
WETH10: dbisBrandLogoUrl('WETH10'),
|
||||
LINK: dbisBrandLogoUrl('LINK'),
|
||||
cEURC: dbisBrandLogoUrl('cEURC'),
|
||||
cEURT: dbisBrandLogoUrl('cEURT'),
|
||||
cGBPC: dbisBrandLogoUrl('cGBPC'),
|
||||
@@ -1074,7 +1079,7 @@ export function getLogoUriForSpec(spec: CanonicalTokenSpec): string {
|
||||
const base = spec.symbol.replace(/^(vd|sd)c/, 'c');
|
||||
return getLogoUriForSpec(CANONICAL_TOKENS.find((t) => t.symbol === base) || spec);
|
||||
}
|
||||
return ETH_LOGO;
|
||||
return dbisBrandLogoUrl('WETH');
|
||||
}
|
||||
|
||||
export function getTokenRegistryFamily(spec: Pick<CanonicalTokenSpec, 'currencyCode' | 'registryFamily'>): TokenRegistryFamily {
|
||||
|
||||
Reference in New Issue
Block a user