Skip to content

Commit

Permalink
add berachain mainnet tokens (#1754)
Browse files Browse the repository at this point in the history
* add berachain mainnet tokens

* fix tags

* fix workflow

* fix validation for berachain
  • Loading branch information
Max-3-7 authored Feb 5, 2025
1 parent b5e6499 commit 50da727
Show file tree
Hide file tree
Showing 10 changed files with 119 additions and 12 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Check Allowed 'chainId' Values
run: |
ALLOWED_CHAIN_IDS=(1 43113 43114 42161 42161 421613 56 97)
ALLOWED_CHAIN_IDS=(1 43113 43114 42161 42161 421613 56 97 80094)
# Convert bash array to jq array format
JQ_ALLOWED_CHAIN_IDS=$(printf "[%s]" "$(IFS=, ; echo "${ALLOWED_CHAIN_IDS[*]}")")
Expand Down Expand Up @@ -80,8 +80,9 @@ jobs:
ETH_ADDRESS_PATTERN="^0x[a-fA-F0-9]{40}$"
UPPERCASE_PATTERN="[A-F]"
# First check main logos directory
for folder in "$LOGOS_DIR"/*; do
if [[ -d "$folder" ]]; then
if [[ -d "$folder" ]] && [[ "$(basename "$folder")" != "berachain" ]]; then
folder_name=$(basename "$folder")
if [[ ! $folder_name =~ $ETH_ADDRESS_PATTERN ]]; then
Expand All @@ -92,12 +93,39 @@ jobs:
exit 1
fi
# Check if the logo.png file exists in the folder
if [[ ! -f "$folder/logo.png" ]]; then
echo "Missing (or wrongly named) logo.png file in folder: $folder_name"
exit 1
fi
fi
done
# Then check berachain logos directory
BERACHAIN_DIR="$LOGOS_DIR/berachain"
if [[ -d "$BERACHAIN_DIR" ]]; then
for folder in "$BERACHAIN_DIR"/*; do
if [[ -d "$folder" ]]; then
folder_name=$(basename "$folder")
if [[ ! $folder_name =~ $ETH_ADDRESS_PATTERN ]]; then
echo "Invalid folder name in berachain: $folder_name is not a valid ETH address."
exit 1
fi
# Skip checksum check for 0x6969696969696969696969696969696969696969
if [[ "$folder_name" != "0x6969696969696969696969696969696969696969" ]]; then
if [[ ! $folder_name =~ $UPPERCASE_PATTERN ]]; then
echo "Invalid folder name in berachain: $folder_name isn't checksummed address."
exit 1
fi
fi
if [[ ! -f "$folder/logo.png" ]]; then
echo "Missing (or wrongly named) logo.png file in berachain folder: $folder_name"
exit 1
fi
fi
done
fi
echo "Every folder has a valid name and contains logo.png."
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 88 additions & 9 deletions mc.tokenlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,6 @@
},
{
"chainId": 43114,

"address": "0x8c8d2a7d8d9CF26F5ee1BbFc0bA56e93F4A4A7aC",
"decimals": 18,
"name": "AIvalanche DeFAI Agents",
Expand All @@ -2755,9 +2754,7 @@
],
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0x8c8d2a7d8d9CF26F5ee1BbFc0bA56e93F4A4A7aC/logo.png"
},

{

"chainId": 43114,
"address": "0x24dE8771bC5DdB3362Db529Fc3358F2df3A0E346",
"decimals": 18,
Expand All @@ -2781,7 +2778,6 @@
},
{
"chainId": 43114,

"address": "0xe684F692bdf5B3B0DB7E8e31a276DE8A2E9F0025",
"decimals": 18,
"name": "Yak Milk Suzaku Restaked BTC.b",
Expand All @@ -2791,8 +2787,7 @@
],
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xe684F692bdf5B3B0DB7E8e31a276DE8A2E9F0025/logo.png"
},
{

{
"chainId": 43114,
"address": "0x1c7c53aa86B49A28C627B6450091998e447A42f9",
"decimals": 18,
Expand All @@ -2813,9 +2808,93 @@
"AI"
],
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0x73831E7c5577859FB0583aF97C9C68F96A43fcB6/logo.png"


},
{
"chainId": 80094,
"address": "0x6969696969696969696969696969696969696969",
"decimals": 18,
"name": "Wrapped Bera",
"symbol": "WBERA",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x6969696969696969696969696969696969696969/logo.png",
"tags": [
"Top"
]
},
{
"chainId": 80094,
"address": "0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce",
"decimals": 18,
"name": "HONEY",
"symbol": "HONEY",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0xFCBD14DC51f0A4d49d5E53C2E0950e0bC26d0Dce/logo.png",
"tags": [
"Stablecoins"
]
},
{
"chainId": 80094,
"address": "0x549943e04f40284185054145c6E4e9568C1D3241",
"decimals": 6,
"name": "USD Coin",
"symbol": "USDC",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x549943e04f40284185054145c6E4e9568C1D3241/logo.png",
"tags": [
"Stablecoins"
]
},
{
"chainId": 80094,
"address": "0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590",
"decimals": 18,
"name": "Wrapped Ether",
"symbol": "WETH",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590/logo.png",
"tags": [
"Top"
]
},
{
"chainId": 80094,
"address": "0x779Ded0c9e1022225f8E0630b35a9b54bE713736",
"decimals": 6,
"name": "Tether USD",
"symbol": "USDT",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x779Ded0c9e1022225f8E0630b35a9b54bE713736/logo.png",
"tags": [
"Stablecoins"
]
},
{
"chainId": 80094,
"address": "0x1cE0a25D13CE4d52071aE7e02Cf1F6606F4C79d3",
"decimals": 18,
"name": "NECTAR",
"symbol": "NECT",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x1cE0a25D13CE4d52071aE7e02Cf1F6606F4C79d3/logo.png",
"tags": [
"Stablecoins"
]
},
{
"chainId": 80094,
"address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c",
"decimals": 8,
"name": "Wrapped BTC",
"symbol": "WBTC",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x0555E30da8f98308EdB960aa94C0Db47230d2B9c/logo.png",
"tags": [
"Top"
]
},
{
"chainId": 80094,
"address": "0x28e0e3B9817012b356119dF9e217c25932D609c2",
"decimals": 18,
"name": "NECTAR",
"symbol": "NECT",
"logoURI": "https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/berachain/0x28e0e3B9817012b356119dF9e217c25932D609c2/logo.png",
"tags": []
}
],
"timestamp": "2024-02-01T00:00:00+00:00"
}
}

0 comments on commit 50da727

Please sign in to comment.