From ecffcbfe1eb1db71a775f2df6671362a7c51be9d Mon Sep 17 00:00:00 2001 From: GigaHierz <55887077+GigaHierz@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:28:05 +0700 Subject: [PATCH] Add celo to networks (#980) --- packages/hardhat/hardhat.config.ts | 8 ++++++++ packages/nextjs/utils/scaffold-eth/networks.ts | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index b4016739f..7c6e72dfd 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -123,6 +123,14 @@ const config: HardhatUserConfig = { url: "https://sepolia.publicgoods.network", accounts: [deployerPrivateKey], }, + celo: { + url: "https://forno.celo.org", + accounts: [deployerPrivateKey], + }, + celoAlfajores: { + url: "https://alfajores-forno.celo-testnet.org", + accounts: [deployerPrivateKey], + }, }, // configuration for harhdat-verify plugin etherscan: { diff --git a/packages/nextjs/utils/scaffold-eth/networks.ts b/packages/nextjs/utils/scaffold-eth/networks.ts index 39b41913c..96b779866 100644 --- a/packages/nextjs/utils/scaffold-eth/networks.ts +++ b/packages/nextjs/utils/scaffold-eth/networks.ts @@ -31,6 +31,8 @@ export const RPC_CHAIN_NAMES: Record = { [chains.base.id]: "base-mainnet", [chains.baseGoerli.id]: "base-goerli", [chains.baseSepolia.id]: "base-sepolia", + [chains.celo.id]: "celo-mainnet", + [chains.celoAlfajores.id]: "celo-alfajores", }; export const getAlchemyHttpUrl = (chainId: number) => { @@ -81,6 +83,12 @@ export const NETWORKS_EXTRA_DATA: Record = { [chains.scrollSepolia.id]: { color: "#fbebd4", }, + [chains.celo.id]: { + color: "#FCFF52", + }, + [chains.celoAlfajores.id]: { + color: "#476520", + }, }; /**