From fc7a011f766b76b90b8bc45d7ce44e8e2c3334de Mon Sep 17 00:00:00 2001 From: james-a-morris Date: Tue, 14 Jan 2025 11:35:02 -0500 Subject: [PATCH] improve: remove codename Signed-off-by: james-a-morris --- package.json | 6 +++--- scripts/chain-configs/soneium/index.ts | 2 +- src/constants/chains/configs.ts | 27 ++++++++++++----------- src/constants/chains/index.ts | 2 +- src/utils/constants.ts | 2 +- yarn.lock | 30 +++++++++++++------------- 6 files changed, 35 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 26d50f323..b7436f92a 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "private": true, "license": "AGPL-3.0-only", "dependencies": { - "@across-protocol/constants": "^3.1.28", - "@across-protocol/contracts": "^3.0.23", + "@across-protocol/constants": "^3.1.30", + "@across-protocol/contracts": "^3.0.25", "@across-protocol/contracts-v3.0.6": "npm:@across-protocol/contracts@3.0.6", - "@across-protocol/sdk": "^3.4.11", + "@across-protocol/sdk": "^3.4.12", "@amplitude/analytics-browser": "^2.3.5", "@balancer-labs/sdk": "1.1.6-beta.16", "@emotion/react": "^11.13.0", diff --git a/scripts/chain-configs/soneium/index.ts b/scripts/chain-configs/soneium/index.ts index 48a8cee33..6977bf0c4 100644 --- a/scripts/chain-configs/soneium/index.ts +++ b/scripts/chain-configs/soneium/index.ts @@ -4,7 +4,7 @@ import { ChainConfig } from "../types"; const { getDeployedAddress, getDeployedBlockNumber } = sdkUtils; -const chainId = CHAIN_IDs.CHER; +const chainId = CHAIN_IDs.SONEIUM; const chainInfoBase = PUBLIC_NETWORKS[chainId]; export default { diff --git a/src/constants/chains/configs.ts b/src/constants/chains/configs.ts index e1256d4ff..f3b8fe03c 100644 --- a/src/constants/chains/configs.ts +++ b/src/constants/chains/configs.ts @@ -105,10 +105,10 @@ import sepoliaGrayscaleLogo from "assets/chain-logos/sepolia-grayscale.svg"; import { ReactComponent as sepoliaLogoSvg } from "assets/chain-logos/sepolia.svg"; import { ReactComponent as sepoliaGrayscaleLogoSvg } from "assets/chain-logos/sepolia-grayscale.svg"; -import cherLogo from "assets/chain-logos/soneium.svg"; -import cherGrayscaleLogo from "assets/chain-logos/soneium-grayscale.svg"; -import { ReactComponent as cherLogoSvg } from "assets/chain-logos/soneium.svg"; -import { ReactComponent as cherGrayscaleLogoSvg } from "assets/chain-logos/soneium-grayscale.svg"; +import soneiumLogo from "assets/chain-logos/soneium.svg"; +import soneiumGrayscaleLogo from "assets/chain-logos/soneium-grayscale.svg"; +import { ReactComponent as soneiumLogoSvg } from "assets/chain-logos/soneium.svg"; +import { ReactComponent as soneiumGrayscaleLogoSvg } from "assets/chain-logos/soneium-grayscale.svg"; import worldChainLogo from "assets/chain-logos/world-chain.svg"; import worldChainGrayscaleLogo from "assets/chain-logos/world-chain-grayscale.svg"; @@ -478,17 +478,18 @@ export const sepolia = { pollingInterval: 15000, }; -export const cher = { - name: "Cher", - fullName: "Cher", +export const soneium = { + name: "soneium", + fullName: "soneium", chainId: 1868, - logoURI: cherLogo, - grayscaleLogoURI: cherGrayscaleLogo, - logoSvg: cherLogoSvg, - grayscaleLogoSvg: cherGrayscaleLogoSvg, + logoURI: soneiumLogo, + grayscaleLogoURI: soneiumGrayscaleLogo, + logoSvg: soneiumLogoSvg, + grayscaleLogoSvg: soneiumGrayscaleLogoSvg, rpcUrl: "https://rpc.soneium.org", explorerUrl: "", - constructExplorerLink: (txHash: string) => `${cher.explorerUrl}/tx/${txHash}`, + constructExplorerLink: (txHash: string) => + `${soneium.explorerUrl}/tx/${txHash}`, nativeCurrencySymbol: "ETH", customRpcUrl: process.env.REACT_APP_CHAIN_1868_PROVIDER_URL, pollingInterval: 2000, @@ -566,7 +567,7 @@ export const chainConfigs = [ redstone, scroll, sepolia, - cher, + soneium, worldChain, zkSync, zora, diff --git a/src/constants/chains/index.ts b/src/constants/chains/index.ts index 39f5d16fd..4b7d85252 100644 --- a/src/constants/chains/index.ts +++ b/src/constants/chains/index.ts @@ -26,7 +26,7 @@ const orderedEnabledChainIds = [ CHAIN_IDs.WORLD_CHAIN, CHAIN_IDs.ALEPH_ZERO, CHAIN_IDs.INK, - CHAIN_IDs.CHER, + CHAIN_IDs.SONEIUM, // testnet CHAIN_IDs.SEPOLIA, CHAIN_IDs.BASE_SEPOLIA, diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 5cf60005a..ae82d34da 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -125,7 +125,7 @@ export const rewardPrograms: Record = { ChainId.INK, ChainId.WORLD_CHAIN, ChainId.LISK, - ChainId.CHER, + ChainId.SONEIUM, ], }, "arb-rebates": { diff --git a/yarn.lock b/yarn.lock index 75d6f5d35..b45c687ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,10 +16,10 @@ "@uma/common" "^2.17.0" hardhat "^2.9.3" -"@across-protocol/constants@^3.1.28": - version "3.1.28" - resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.28.tgz#0540f5a44b085b0951a853898afe174ea113db3a" - integrity sha512-rnI1pQgkJ6+hPIQNomsi8eQreVfWKfFn9i9Z39U0fAnoXodZklW0eqj5N0cXlEfahp5j2u1RCs7s6fQ9megCdw== +"@across-protocol/constants@^3.1.30": + version "3.1.30" + resolved "https://registry.yarnpkg.com/@across-protocol/constants/-/constants-3.1.30.tgz#b5bb82b5efcf3f63658332eece240ecdb645c0bc" + integrity sha512-1lEhQmYiqcMKg05fnPfSeCk9QTRaHdVykD+Wcr5tcsyPYgOMtXOXvxxvtSOe9FK+ckpRypp4ab2WUN2iitnzpw== "@across-protocol/constants@^3.1.9": version "3.1.13" @@ -55,12 +55,12 @@ "@openzeppelin/contracts" "4.1.0" "@uma/core" "^2.18.0" -"@across-protocol/contracts@^3.0.23": - version "3.0.23" - resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-3.0.23.tgz#42decf1db2c0ac1c3da82ae2fc63c8ae59f426c1" - integrity sha512-212dLJj9LCiqAruoFIQUyEFyTFvpacPeQLZLU+h6skkf+K67lUjHYjVykWg3u22k/4fuBs3UMHDA6kqUUvldNQ== +"@across-protocol/contracts@^3.0.25": + version "3.0.25" + resolved "https://registry.yarnpkg.com/@across-protocol/contracts/-/contracts-3.0.25.tgz#733771bb3d40e111bd14b8be9b4526595ccba0a7" + integrity sha512-OwBxylXAzujUJCGbENyBki0yUryJJAb4v7i69nri+psyJr8MA8LhiiOIVhw+jIUeukBeY8uKF+AI7fzlewwFvA== dependencies: - "@across-protocol/constants" "^3.1.28" + "@across-protocol/constants" "^3.1.30" "@coral-xyz/anchor" "^0.30.1" "@defi-wonderland/smock" "^2.3.4" "@eth-optimism/contracts" "^0.5.40" @@ -83,14 +83,14 @@ yargs "^17.7.2" zksync-web3 "^0.14.3" -"@across-protocol/sdk@^3.4.11": - version "3.4.11" - resolved "https://registry.yarnpkg.com/@across-protocol/sdk/-/sdk-3.4.11.tgz#f84056355bd529419bf9ff6fd80363acdefdf603" - integrity sha512-26C9pit1jNWG+1kx3Dk9L2hoTeS+o4Ouy2DR5K8NGGeso7MInI0/1OrRb2bxJU0xTJGD5q50+qmeMeHrCblvuw== +"@across-protocol/sdk@^3.4.12": + version "3.4.12" + resolved "https://registry.yarnpkg.com/@across-protocol/sdk/-/sdk-3.4.12.tgz#2944f41d51a2cd889a4d1882435149a32e5441c8" + integrity sha512-Bc4hpvl0CysisOLk+WQLbSUwhRhJ/NPyHwocA/Qo5ERne+zmN8P8dsmVQLgsIxay3Nu+VLVcNLoSKWewiom46w== dependencies: "@across-protocol/across-token" "^1.0.0" - "@across-protocol/constants" "^3.1.28" - "@across-protocol/contracts" "^3.0.23" + "@across-protocol/constants" "^3.1.30" + "@across-protocol/contracts" "^3.0.25" "@eth-optimism/sdk" "^3.3.1" "@ethersproject/bignumber" "^5.7.0" "@pinata/sdk" "^2.1.0"