diff --git a/.env.hoodi b/.env.hoodi new file mode 100644 index 00000000..b29d58ee --- /dev/null +++ b/.env.hoodi @@ -0,0 +1,12 @@ +export REACT_APP_IS_MAINNET=false +export REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa +export REACT_APP_ETH_REQUIREMENT=524288 +export REACT_APP_ETH_DEPOSIT_OFFSET=0 +export REACT_APP_TESTNET_LAUNCHPAD_NAME=Hoodi +export REACT_APP_GENESIS_FORK_VERSION=0x10000910 +export REACT_APP_RPC_URL=https://rpc.hoodi.ethpandaops.io +export REACT_APP_BEACONCHAIN_URL=https://dora.hoodi.ethpandaops.io/ +export REACT_APP_EL_EXPLORER_URL=https://explorer.hoodi.ethpandaops.io +export REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/hoodi +export REACT_APP_FAUCET_URL=https://hoodi-faucet.pk910.de/ +export REACT_APP_MIN_GENESIS_TIME=1742213400000 \ No newline at end of file diff --git a/.env.template b/.env.template index 5a5ff394..4fe19109 100644 --- a/.env.template +++ b/.env.template @@ -39,28 +39,22 @@ REACT_APP_TEKU_INSTALLATION_URL=https://docs.teku.consensys.io/get-started/insta # true, false REACT_APP_IS_MAINNET=false # string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website) -REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky +REACT_APP_TESTNET_LAUNCHPAD_NAME=Hoodi # string -REACT_APP_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242 -# string -REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io +REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa # string -REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in +REACT_APP_RPC_URL=https://rpc.hoodi.ethpandaops.io # string -REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in +REACT_APP_BEACONCHAIN_URL=https://hoodi.beaconcha.in # string -REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky +REACT_APP_EL_EXPLORER_URL=https://hoodi.beaconcha.in # number REACT_APP_ETH_DEPOSIT_OFFSET=0 # string -REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/ -# string -REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io +REACT_APP_FAUCET_URL=https://hoodi-faucet.pk910.de/ # string -REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in +REACT_APP_BEACONCHAIN_URL=https://dora.hoodi.ethpandaops.io/ # string -REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky -# number -REACT_APP_ETH_DEPOSIT_OFFSET=0 +REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/hoodi # number REACT_APP_MIN_GENESIS_TIME=1695902400000 diff --git a/netlify.toml b/netlify.toml index 43a88a46..e84ce24f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,9 +4,6 @@ NODE_VERSION = "14.19.2" [context.deploy-preview.environment] NODE_VERSION = "14.19.2" - REACT_APP_IS_MERGE = "true" - REACT_APP_COMPOUNDING_CONTRACT_ADDRESS = "0x0000BBdDc7CE488642fb579F8B00f3a590007251" - REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS = "0x00000961Ef480Eb55e80D19ad83579A64c007002" [context.branch-deploy.environment] NODE_VERSION = "14.19.2" [context.dev.environment] diff --git a/src/pages/ConnectWallet/web3Utils.ts b/src/pages/ConnectWallet/web3Utils.ts index 1b34ac6c..90c17d31 100644 --- a/src/pages/ConnectWallet/web3Utils.ts +++ b/src/pages/ConnectWallet/web3Utils.ts @@ -18,12 +18,14 @@ export enum NetworkChainId { 'Mainnet' = 1, 'Sepolia' = 11155111, 'Holesky' = 17000, + 'Hoodi' = 560048, } export const NetworkChainIdDict: { [id: string]: number } = { Mainnet: 1, Sepolia: 11155111, Holesky: 17000, + Hoodi: 560048, }; /* @@ -35,11 +37,13 @@ const supportedNetworks = [ NetworkChainId.Mainnet, NetworkChainId.Sepolia, NetworkChainId.Holesky, + NetworkChainId.Hoodi, ]; enum Testnet { 'Sepolia', 'Holesky', + 'Hoodi', } enum Mainnet { @@ -50,6 +54,7 @@ export const NetworkNameToChainId: { [key: string]: NetworkChainId } = { Holesky: NetworkChainId.Holesky, Mainnet: NetworkChainId.Mainnet, Sepolia: NetworkChainId.Sepolia, + Hoodi: NetworkChainId.Hoodi, }; export const TARGET_NETWORK_CHAIN_ID = IS_MAINNET diff --git a/src/utils/envVars.ts b/src/utils/envVars.ts index 88b08f10..85d632f2 100644 --- a/src/utils/envVars.ts +++ b/src/utils/envVars.ts @@ -1,11 +1,11 @@ export const IS_MAINNET = Boolean(process.env.REACT_APP_IS_MAINNET !== 'false'); // If REACT_APP_IS_MAINNET is unset, set it to true by default export const IS_NON_INFURA_TESTNET = !IS_MAINNET && process.env.REACT_APP_RPC_URL -export const TESTNET_LAUNCHPAD_NAME = process.env.REACT_APP_TESTNET_LAUNCHPAD_NAME || 'Holesky'; +export const TESTNET_LAUNCHPAD_NAME = process.env.REACT_APP_TESTNET_LAUNCHPAD_NAME || 'Hoodi'; // private vars (or derived from) export const INFURA_PROJECT_ID = process.env.REACT_APP_INFURA_PROJECT_ID || ''; export const ENABLE_RPC_FEATURES = Boolean(INFURA_PROJECT_ID && INFURA_PROJECT_ID !== ''); -export const RPC_URL = process.env.REACT_APP_RPC_URL || (`https://${IS_MAINNET ? "mainnet" : "holesky"}.infura.io/v3/${INFURA_PROJECT_ID}`); +export const RPC_URL = process.env.REACT_APP_RPC_URL || (`https://${IS_MAINNET ? "mainnet" : "hoodi"}.infura.io/v3/${INFURA_PROJECT_ID}`); // public export const NETWORK_NAME = IS_MAINNET ? 'Mainnet' : TESTNET_LAUNCHPAD_NAME; @@ -25,7 +25,7 @@ export const LODESTAR_INSTALLATION_URL = process.env.REACT_APP_LODESTAR_INSTALL export const MAINNET_LAUNCHPAD_URL = 'https://launchpad.ethereum.org/' export const TESTNET_LAUNCHPAD_URL = `https://${TESTNET_LAUNCHPAD_NAME.toLowerCase()}.launchpad.ethereum.org/` -let elExplorerURL = 'https://holesky.etherscan.io'; +let elExplorerURL = 'https://hoodi.etherscan.io'; if (IS_NON_INFURA_TESTNET && process.env.REACT_APP_EL_EXPLORER_URL) { elExplorerURL = process.env.REACT_APP_EL_EXPLORER_URL; } else if (IS_MAINNET) { @@ -35,7 +35,7 @@ export const EL_EXPLOER_URL = elExplorerURL export const EL_TRANSACTION_URL = `${elExplorerURL}/tx` -export const FAUCET_URL = process.env.REACT_APP_FAUCET_URL || 'https://www.holeskyfaucet.io/' +export const FAUCET_URL = process.env.REACT_APP_FAUCET_URL || 'https://hoodi-faucet.pk910.de/' export const TUTORIAL_URL = process.env.REACT_APP_TUTORIAL_URL || null; if(process.env.REACT_APP_ETH_REQUIREMENT && Number.isNaN(Number(process.env.REACT_APP_ETH_REQUIREMENT))) {