diff --git a/lib/types.ts b/lib/types.ts index 0732f03d..05078413 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -29,6 +29,7 @@ export interface TokenInfo { description: string logoURI: string originChain?: string + unchainedLogoURI?: string } export type NetworkId = 'mainnet' | 'testnet' diff --git a/logos/USDCbs.png b/logos/USDCbsc-unchained.png similarity index 100% rename from logos/USDCbs.png rename to logos/USDCbsc-unchained.png diff --git a/logos/USDCbsc.png b/logos/USDCbsc.png new file mode 100644 index 00000000..597a69bb Binary files /dev/null and b/logos/USDCbsc.png differ diff --git a/logos/USDCet.png b/logos/USDCeth-unchained.png similarity index 100% rename from logos/USDCet.png rename to logos/USDCeth-unchained.png diff --git a/logos/USDCeth.png b/logos/USDCeth.png new file mode 100644 index 00000000..eee3cb4e Binary files /dev/null and b/logos/USDCeth.png differ diff --git a/logos/USDTbs.png b/logos/USDTbsc-unchained.png similarity index 100% rename from logos/USDTbs.png rename to logos/USDTbsc-unchained.png diff --git a/logos/USDTbsc.png b/logos/USDTbsc.png new file mode 100644 index 00000000..017f0b39 Binary files /dev/null and b/logos/USDTbsc.png differ diff --git a/logos/USDTet.png b/logos/USDTeth-unchained.png similarity index 100% rename from logos/USDTet.png rename to logos/USDTeth-unchained.png diff --git a/logos/USDTeth.png b/logos/USDTeth.png new file mode 100644 index 00000000..31de1d28 Binary files /dev/null and b/logos/USDTeth.png differ diff --git a/test/token-list/token-list.test.ts b/test/token-list/token-list.test.ts index 9438ee35..a975359b 100644 --- a/test/token-list/token-list.test.ts +++ b/test/token-list/token-list.test.ts @@ -90,7 +90,8 @@ describe('TokenList', function () { 'decimals', 'description', 'logoURI', - 'originChain' + 'originChain', + 'unchainedLogoURI' ] tokenLists.forEach((tokenList) => { tokenList.tokens.forEach((token) => { @@ -145,7 +146,7 @@ describe('TokenList', function () { } const tokensWithSymbolVariant = ['ALF', 'ANS', 'USDT', 'USDC'] - const originChains = ['BSC', 'Ethereum'] + const originChains = ['ETH', 'BSC'] function checkMetadata(metadata: FungibleTokenMetaData, token: TokenInfoJson) { expect(hexToString(metadata.name)).toEqual(token.nameOnChain ?? token.name) @@ -158,6 +159,12 @@ describe('TokenList', function () { if (token.originChain !== undefined) { expect(originChains.includes(token.originChain)).toBe(true) + expect(token.logoURI).toMatch( + new RegExp(`https://raw.githubusercontent.com/alephium/token-list/master/logos/${token.symbol}.png`) + ) + expect(token.unchainedLogoURI).toMatch( + new RegExp(`https://raw.githubusercontent.com/alephium/token-list/master/logos/${token.symbol}-unchained.png`) + ) } } }) diff --git a/tokens/mainnet.json b/tokens/mainnet.json index 11110588..06346716 100644 --- a/tokens/mainnet.json +++ b/tokens/mainnet.json @@ -103,45 +103,49 @@ "id": "556d9582463fe44fbd108aedc9f409f69086dc78d994b88ea6c9e65f8bf98e00", "name": "Tether USD (Ethereum via AlphBridge)", "nameOnChain": "Tether USD (AlphBridge)", - "symbol": "USDTet", + "symbol": "USDTeth", "symbolOnChain": "USDT", "decimals": 6, "description": "USDT Bridged to Alephium from Ethereum via Alephium Bridge", - "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTet.png", - "originChain": "Ethereum" + "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTeth.png", + "originChain": "ETH", + "unchainedLogoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTeth-unchained.png" }, { "id": "7ff5e72636f640eb2c28056df3b6879e4c86933505abebf566518ad396335700", "name": "Tether USD (BSC via AlphBridge)", "nameOnChain": "Tether USD (AlphBridge)", - "symbol": "USDTbs", + "symbol": "USDTbsc", "symbolOnChain": "USDT", "decimals": 18, "description": "USDT Bridged to Alephium from BSC via Alephium Bridge", - "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTbs.png", - "originChain": "BSC" + "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTbsc.png", + "originChain": "BSC", + "unchainedLogoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDTbsc-unchained.png" }, { "id": "722954d9067c5a5ad532746a024f2a9d7a18ed9b90e27d0a3a504962160b5600", "name": "USD Coin (Ethereum via AlphBridge)", "nameOnChain": "USD Coin (AlphBridge)", - "symbol": "USDCet", + "symbol": "USDCeth", "symbolOnChain": "USDC", "decimals": 6, "description": "USDC Bridged to Alephium from Ethereum via Alephium Bridge", - "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCet.png", - "originChain": "Ethereum" + "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCeth.png", + "originChain": "ETH", + "unchainedLogoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCeth-unchained.png" }, { "id": "75e1e9f91468616a371fe416430819bf5386a3e6a258864c574271a404ec8900", "name": "USD Coin (BSC via AlphBridge)", "nameOnChain": "USD Coin (AlphBridge)", - "symbol": "USDCbs", + "symbol": "USDCbsc", "symbolOnChain": "USDC", "decimals": 18, "description": "USDC Bridged to Alephium from BSC via Alephium Bridge", - "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCbs.png", - "originChain": "BSC" + "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCbsc.png", + "originChain": "BSC", + "unchainedLogoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/USDCbsc-unchained.png" }, { "id": "3d0a1895108782acfa875c2829b0bf76cb586d95ffa4ea9855982667cc73b700", @@ -1508,4 +1512,4 @@ "logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/PNUT.png" } ] -} \ No newline at end of file +}