Skip to content

Commit

Permalink
Merge pull request #427 from alephium/update-bridged-assets
Browse files Browse the repository at this point in the history
Update bridge assets
  • Loading branch information
polarker authored Nov 5, 2024
2 parents b5a442e + 323aefc commit 6070a0c
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 15 deletions.
1 change: 1 addition & 0 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface TokenInfo {
description: string
logoURI: string
originChain?: string
unchainedLogoURI?: string
}

export type NetworkId = 'mainnet' | 'testnet'
File renamed without changes
Binary file added logos/USDCbsc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added logos/USDCeth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added logos/USDTbsc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added logos/USDTeth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions test/token-list/token-list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ describe('TokenList', function () {
'decimals',
'description',
'logoURI',
'originChain'
'originChain',
'unchainedLogoURI'
]
tokenLists.forEach((tokenList) => {
tokenList.tokens.forEach((token) => {
Expand Down Expand Up @@ -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)
Expand All @@ -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`)
)
}
}
})
30 changes: 17 additions & 13 deletions tokens/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1508,4 +1512,4 @@
"logoURI": "https://raw.githubusercontent.com/alephium/token-list/master/logos/PNUT.png"
}
]
}
}

0 comments on commit 6070a0c

Please sign in to comment.