From 1c8e7e6636e01a808c6de5590be66a66691b4b8e Mon Sep 17 00:00:00 2001 From: brown Date: Thu, 9 Jan 2025 11:56:00 -0500 Subject: [PATCH] chore(repo): remove aws token logo links from repo Refs BFE-453 --- apps/honey/next.config.mjs | 6 ------ apps/hub/next.config.mjs | 6 ------ apps/lend/next.config.mjs | 6 ------ apps/lend/src/app/dashboard/user-deposits.tsx | 5 ++--- apps/perp/next.config.mjs | 6 ------ packages/berajs/src/utils/tokenWrapping.ts | 9 ++++++--- packages/wagmi/src/constants/beraToken.ts | 5 ++--- packages/wagmi/src/constants/wberaToken.ts | 5 ++--- secrets | 2 +- 9 files changed, 13 insertions(+), 37 deletions(-) diff --git a/apps/honey/next.config.mjs b/apps/honey/next.config.mjs index 0b0ce7941..7d1e765dc 100755 --- a/apps/honey/next.config.mjs +++ b/apps/honey/next.config.mjs @@ -50,12 +50,6 @@ export const config = { port: "", pathname: "/coins/images/**", }, - { - protocol: "https", - hostname: "artio-static-asset-public.s3.ap-southeast-1.amazonaws.com", - port: "", - pathname: "/assets/**", - }, ], }, output: process.env.NEXT_PUBLIC_HOST === "ipfs" ? "export" : undefined, diff --git a/apps/hub/next.config.mjs b/apps/hub/next.config.mjs index 2adaed0c1..2c8351d00 100755 --- a/apps/hub/next.config.mjs +++ b/apps/hub/next.config.mjs @@ -49,12 +49,6 @@ const config = { port: "", pathname: "/coins/images/**", }, - { - protocol: "https", - hostname: "artio-static-asset-public.s3.ap-southeast-1.amazonaws.com", - port: "", - pathname: "/assets/**", - }, ], }, }; diff --git a/apps/lend/next.config.mjs b/apps/lend/next.config.mjs index af90ded85..c63c9bfe6 100755 --- a/apps/lend/next.config.mjs +++ b/apps/lend/next.config.mjs @@ -49,12 +49,6 @@ const config = { port: "", pathname: "/coins/images/**", }, - { - protocol: "https", - hostname: "artio-static-asset-public.s3.ap-southeast-1.amazonaws.com", - port: "", - pathname: "/assets/**", - }, ], }, output: process.env.NEXT_PUBLIC_HOST === "ipfs" ? "export" : undefined, diff --git a/apps/lend/src/app/dashboard/user-deposits.tsx b/apps/lend/src/app/dashboard/user-deposits.tsx index 5a5f1acdd..57ffd9731 100755 --- a/apps/lend/src/app/dashboard/user-deposits.tsx +++ b/apps/lend/src/app/dashboard/user-deposits.tsx @@ -1,6 +1,6 @@ import React from "react"; import { usePollWalletBalances, type BalanceToken } from "@bera/berajs"; -import { aHoneyTokenAddress } from "@bera/config"; +import { aHoneyTokenAddress, cloudinaryUrl } from "@bera/config"; import { FormattedNumber, TokenIcon, Tooltip } from "@bera/shared-ui"; import { Badge } from "@bera/ui/badge"; import { Card } from "@bera/ui/card"; @@ -13,8 +13,7 @@ export default function UserDeposits() { address: "0x8Ce5C1c42CD58B7aE61512790e514a82d84375Ed" as `0x${string}`, decimals: 18, symbol: "WETH", - logoURI: - "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/eth.png", + logoURI: `${cloudinaryUrl}/src/assets/eth.png`, name: "wrapped ether atoken (deprecated)", }; diff --git a/apps/perp/next.config.mjs b/apps/perp/next.config.mjs index b1ca30cde..b6986ef28 100755 --- a/apps/perp/next.config.mjs +++ b/apps/perp/next.config.mjs @@ -49,12 +49,6 @@ const config = { port: "", pathname: "/coins/images/**", }, - { - protocol: "https", - hostname: "artio-static-asset-public.s3.ap-southeast-1.amazonaws.com", - port: "", - pathname: "/assets/**", - }, ], }, trailingSlash: true, diff --git a/packages/berajs/src/utils/tokenWrapping.ts b/packages/berajs/src/utils/tokenWrapping.ts index 855ed874f..202f37a81 100644 --- a/packages/berajs/src/utils/tokenWrapping.ts +++ b/packages/berajs/src/utils/tokenWrapping.ts @@ -1,4 +1,8 @@ -import { beraTokenAddress, nativeTokenAddress } from "@bera/config"; +import { + beraTokenAddress, + cloudinaryUrl, + nativeTokenAddress, +} from "@bera/config"; // FIXME: this import is not possible in beraJS, we could move this into hub but we need it here too... // import { wBeraToken } from "@bera/wagmi"; @@ -8,8 +12,7 @@ export const wBeraToken: any = { decimals: 18, name: "WBera", symbol: "WBERA", - logoURI: - "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/wbera.png", + logoURI: `${cloudinaryUrl}/src/assets/wbera.png`, }; type BaseToken = { diff --git a/packages/wagmi/src/constants/beraToken.ts b/packages/wagmi/src/constants/beraToken.ts index 2369adaf7..16f400290 100755 --- a/packages/wagmi/src/constants/beraToken.ts +++ b/packages/wagmi/src/constants/beraToken.ts @@ -1,11 +1,10 @@ // import { Token } from "@bera/berajs"; -import { nativeTokenAddress } from "@bera/config"; +import { cloudinaryUrl, nativeTokenAddress } from "@bera/config"; export const beraToken: any = { address: nativeTokenAddress, decimals: 18, name: "Bera", symbol: "BERA", - logoURI: - "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/bera.png", + logoURI: `${cloudinaryUrl}/src/assets/bera.png`, }; diff --git a/packages/wagmi/src/constants/wberaToken.ts b/packages/wagmi/src/constants/wberaToken.ts index cd83e16e8..d95ac661e 100755 --- a/packages/wagmi/src/constants/wberaToken.ts +++ b/packages/wagmi/src/constants/wberaToken.ts @@ -1,11 +1,10 @@ // import { type Token } from "@bera/berajs"; -import { beraTokenAddress } from "@bera/config"; +import { beraTokenAddress, cloudinaryUrl } from "@bera/config"; export const wBeraToken: any = { address: beraTokenAddress, decimals: 18, name: "WBera", symbol: "WBERA", - logoURI: - "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/wbera.png", + logoURI: `${cloudinaryUrl}/src/assets/wbera.png`, }; diff --git a/secrets b/secrets index 00dbef920..6f9d1dbcf 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 00dbef920070fcd1bc61084e81597940506e5319 +Subproject commit 6f9d1dbcf8c2a838e782bc59f58ecd038659844e