From 8eb69acb05abf99296a7f7b0dfe9c49e2e45bae7 Mon Sep 17 00:00:00 2001 From: ak Date: Mon, 15 Apr 2024 00:49:44 +0300 Subject: [PATCH] add immutable mono IMX branded --- .github/workflows/icon-add.yml | 9 +++------ packages/core/src/raw-svgs/networks/mono/immutable.svg | 3 +++ packages/core/src/raw-svgs/tokens/branded/IMX.svg | 3 +++ packages/utils/src/scripts/update-metadata.ts | 4 ++++ 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 packages/core/src/raw-svgs/networks/mono/immutable.svg create mode 100644 packages/core/src/raw-svgs/tokens/branded/IMX.svg diff --git a/.github/workflows/icon-add.yml b/.github/workflows/icon-add.yml index 17bed9dc8..905dafb13 100644 --- a/.github/workflows/icon-add.yml +++ b/.github/workflows/icon-add.yml @@ -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 @@ -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 diff --git a/packages/core/src/raw-svgs/networks/mono/immutable.svg b/packages/core/src/raw-svgs/networks/mono/immutable.svg new file mode 100644 index 000000000..30427a58d --- /dev/null +++ b/packages/core/src/raw-svgs/networks/mono/immutable.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/core/src/raw-svgs/tokens/branded/IMX.svg b/packages/core/src/raw-svgs/tokens/branded/IMX.svg new file mode 100644 index 000000000..f07ecc67e --- /dev/null +++ b/packages/core/src/raw-svgs/tokens/branded/IMX.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/utils/src/scripts/update-metadata.ts b/packages/utils/src/scripts/update-metadata.ts index edf1a5a34..ba02cd5fa 100644 --- a/packages/utils/src/scripts/update-metadata.ts +++ b/packages/utils/src/scripts/update-metadata.ts @@ -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( @@ -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}`) } } }