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 01/10] 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", + }, }; /** From 302499240aa056d106ebe56bc3c3a2e171f47bbf Mon Sep 17 00:00:00 2001 From: Rinat Date: Thu, 21 Nov 2024 10:51:32 +0100 Subject: [PATCH 02/10] fix: Input components in form tag (#992) --- .../components/scaffold-eth/Address/AddressCopyIcon.tsx | 2 +- packages/nextjs/components/scaffold-eth/Balance.tsx | 1 + .../nextjs/components/scaffold-eth/Input/Bytes32Input.tsx | 5 +++-- packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx | 5 +++-- packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx | 1 + .../nextjs/components/scaffold-eth/Input/IntegerInput.tsx | 1 + 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx index 48fbe1f0b..2632e642f 100644 --- a/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx +++ b/packages/nextjs/components/scaffold-eth/Address/AddressCopyIcon.tsx @@ -14,7 +14,7 @@ export const AddressCopyIcon = ({ className, address }: { className?: string; ad }, 800); }} > - } /> ); diff --git a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx index 695e65050..f2f9b4cb1 100644 --- a/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx @@ -15,12 +15,13 @@ export const BytesInput = ({ value, onChange, name, placeholder, disabled }: Com onChange={onChange} disabled={disabled} suffix={ -
# -
+ } /> ); diff --git a/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx b/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx index 0ab366410..0fcbdbbda 100644 --- a/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Input/EtherInput.tsx @@ -117,6 +117,7 @@ export const EtherInput = ({ className="btn btn-primary h-[2.2rem] min-h-[2.2rem]" onClick={toggleDisplayUsdMode} disabled={!displayUsdMode && !nativeCurrencyPrice} + type="button" >