Skip to content

Commit

Permalink
add immutable mono IMX branded
Browse files Browse the repository at this point in the history
  • Loading branch information
0xa3k5 committed Apr 14, 2024
1 parent c06052d commit 8eb69ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/icon-add.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
run: |
SVG_FILES=$(git diff --name-only HEAD^ HEAD | grep 'packages/core/src/raw-svgs/' | tr '\n' ',')
echo "SVG_FILES=${SVG_FILES%,}" >> $GITHUB_ENV
echo "New SVG Files: $SVG_FILES"
echo "New Token Icons: $newTokenIcons"
echo "New Network Icons: $newNetworkIcons"

- name: Validate New SVG Files
Expand All @@ -52,12 +55,6 @@ jobs:
echo "newNetworkIcons=$newNetworkIcons" >> $GITHUB_ENV
bun run ./packages/utils/src/scripts/update-metadata.ts ${{ env.SVG_FILES }}
- name: Echo SVG Files and Metadata Variables
run: |
echo "New SVG Files: $SVG_FILES"
echo "New Token Icons: $newTokenIcons"
echo "New Network Icons: $newNetworkIcons"
- name: Build Packages
run: |
bun run build:core
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/raw-svgs/networks/mono/immutable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/core/src/raw-svgs/tokens/branded/IMX.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/utils/src/scripts/update-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ const processSVGFile = async (
tokenMetadata.addresses = data.platforms
tokenMetadata.marketCapRank = data.market_cap_rank
await appendToTokensJson(tokenMetadata)
} else {
console.log(`Could not find a token match for ${normalizedFileName}`)
}
} else if (type === 'network') {
const foundNetwork = geckoNetworks.find(
Expand All @@ -136,6 +138,8 @@ const processSVGFile = async (
nativeCoinId: foundNetwork.native_coin_id,
}
await appendToNetworksJson(networkMetadata)
} else {
console.log(`Could not find a network match for ${normalizedFileName}`)
}
}
}
Expand Down

0 comments on commit 8eb69ac

Please sign in to comment.