Skip to content

Commit d90f261

Browse files
committed
feat: add Hoodi testnet config
1 parent c1291b6 commit d90f261

File tree

5 files changed

+35
-17
lines changed

5 files changed

+35
-17
lines changed

.env.hoodi

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export REACT_APP_IS_MAINNET=false
2+
export REACT_APP_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
3+
export REACT_APP_ETH_REQUIREMENT=524288
4+
export REACT_APP_ETH_DEPOSIT_OFFSET=0
5+
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Hoodi
6+
export REACT_APP_GENESIS_FORK_VERSION=0x10000910
7+
export REACT_APP_RPC_URL=https://rpc.hoodi.ethpandaops.io
8+
export REACT_APP_BEACONCHAIN_URL=https://dora.hoodi.ethpandaops.io/
9+
export REACT_APP_EL_EXPLORER_URL=https://explorer.hoodi.ethpandaops.io
10+
export REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/hoodi
11+
export REACT_APP_FAUCET_URL=https://hoodi-faucet.pk910.de/
12+
export REACT_APP_MIN_GENESIS_TIME=1742213400000

.env.template

+7-13
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,22 @@ REACT_APP_TEKU_INSTALLATION_URL=https://docs.teku.consensys.io/get-started/insta
3939
# true, false
4040
REACT_APP_IS_MAINNET=false
4141
# string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website)
42-
REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
42+
REACT_APP_TESTNET_LAUNCHPAD_NAME=Hoodi
4343
# string
4444
REACT_APP_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
4545
# string
46-
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
46+
REACT_APP_RPC_URL=https://rpc.hoodi.ethpandaops.io
4747
# string
48-
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
48+
REACT_APP_BEACONCHAIN_URL=https://hoodi.beaconcha.in
4949
# string
50-
REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in
51-
# string
52-
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
50+
REACT_APP_EL_EXPLORER_URL=https://hoodi.beaconcha.in
5351
# number
5452
REACT_APP_ETH_DEPOSIT_OFFSET=0
5553
# string
56-
REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/
57-
# string
58-
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
54+
REACT_APP_FAUCET_URL=https://hoodi-faucet.pk910.de/
5955
# string
60-
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
56+
REACT_APP_BEACONCHAIN_URL=https://dora.hoodi.ethpandaops.io/
6157
# string
62-
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
63-
# number
64-
REACT_APP_ETH_DEPOSIT_OFFSET=0
58+
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/hoodi
6559
# number
6660
REACT_APP_MIN_GENESIS_TIME=1695902400000

netlify.toml

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
REACT_APP_IS_MERGE = "true"
88
REACT_APP_COMPOUNDING_CONTRACT_ADDRESS = "0x0000BBdDc7CE488642fb579F8B00f3a590007251"
99
REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS = "0x00000961Ef480Eb55e80D19ad83579A64c007002"
10+
REACT_APP_TESTNET_LAUNCHPAD_NAME = "Hoodi"
11+
REACT_APP_EL_EXPLORER_URL = "https://explorer.hoodi.ethpandaops.io"
12+
REACT_APP_GENESIS_FORK_VERSION = "0x10000910"
13+
REACT_APP_RPC_URL = "https://rpc.hoodi.ethpandaops.io"
14+
REACT_APP_BEACONCHAIN_URL = "https://dora.hoodi.ethpandaops.io/"
15+
REACT_APP_FAUCET_URL = "https://hoodi-faucet.pk910.de/"
16+
REACT_APP_MIN_GENESIS_TIME = "1742213400000"
1017
[context.branch-deploy.environment]
1118
NODE_VERSION = "14.19.2"
1219
[context.dev.environment]

src/pages/ConnectWallet/web3Utils.ts

+5
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ export enum NetworkChainId {
1818
'Mainnet' = 1,
1919
'Sepolia' = 11155111,
2020
'Holesky' = 17000,
21+
'Hoodi' = 560048,
2122
}
2223

2324
export const NetworkChainIdDict: { [id: string]: number } = {
2425
Mainnet: 1,
2526
Sepolia: 11155111,
2627
Holesky: 17000,
28+
Hoodi: 560048,
2729
};
2830

2931
/*
@@ -35,11 +37,13 @@ const supportedNetworks = [
3537
NetworkChainId.Mainnet,
3638
NetworkChainId.Sepolia,
3739
NetworkChainId.Holesky,
40+
NetworkChainId.Hoodi,
3841
];
3942

4043
enum Testnet {
4144
'Sepolia',
4245
'Holesky',
46+
'Hoodi',
4347
}
4448

4549
enum Mainnet {
@@ -50,6 +54,7 @@ export const NetworkNameToChainId: { [key: string]: NetworkChainId } = {
5054
Holesky: NetworkChainId.Holesky,
5155
Mainnet: NetworkChainId.Mainnet,
5256
Sepolia: NetworkChainId.Sepolia,
57+
Hoodi: NetworkChainId.Hoodi,
5358
};
5459

5560
export const TARGET_NETWORK_CHAIN_ID = IS_MAINNET

src/utils/envVars.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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
22
export const IS_NON_INFURA_TESTNET = !IS_MAINNET && process.env.REACT_APP_RPC_URL
3-
export const TESTNET_LAUNCHPAD_NAME = process.env.REACT_APP_TESTNET_LAUNCHPAD_NAME || 'Holesky';
3+
export const TESTNET_LAUNCHPAD_NAME = process.env.REACT_APP_TESTNET_LAUNCHPAD_NAME || 'Hoodi';
44

55
// private vars (or derived from)
66
export const INFURA_PROJECT_ID = process.env.REACT_APP_INFURA_PROJECT_ID || '';
77
export const ENABLE_RPC_FEATURES = Boolean(INFURA_PROJECT_ID && INFURA_PROJECT_ID !== '');
8-
export const RPC_URL = process.env.REACT_APP_RPC_URL || (`https://${IS_MAINNET ? "mainnet" : "holesky"}.infura.io/v3/${INFURA_PROJECT_ID}`);
8+
export const RPC_URL = process.env.REACT_APP_RPC_URL || (`https://${IS_MAINNET ? "mainnet" : "hoodi"}.infura.io/v3/${INFURA_PROJECT_ID}`);
99

1010
// public
1111
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
2525
export const MAINNET_LAUNCHPAD_URL = 'https://launchpad.ethereum.org/'
2626
export const TESTNET_LAUNCHPAD_URL = `https://${TESTNET_LAUNCHPAD_NAME.toLowerCase()}.launchpad.ethereum.org/`
2727

28-
let elExplorerURL = 'https://holesky.etherscan.io';
28+
let elExplorerURL = 'https://hoodi.etherscan.io';
2929
if (IS_NON_INFURA_TESTNET && process.env.REACT_APP_EL_EXPLORER_URL) {
3030
elExplorerURL = process.env.REACT_APP_EL_EXPLORER_URL;
3131
} else if (IS_MAINNET) {
@@ -35,7 +35,7 @@ export const EL_EXPLOER_URL = elExplorerURL
3535
export const EL_TRANSACTION_URL = `${elExplorerURL}/tx`
3636

3737

38-
export const FAUCET_URL = process.env.REACT_APP_FAUCET_URL || 'https://www.holeskyfaucet.io/'
38+
export const FAUCET_URL = process.env.REACT_APP_FAUCET_URL || 'https://hoodi-faucet.pk910.de/'
3939
export const TUTORIAL_URL = process.env.REACT_APP_TUTORIAL_URL || null;
4040

4141
if(process.env.REACT_APP_ETH_REQUIREMENT && Number.isNaN(Number(process.env.REACT_APP_ETH_REQUIREMENT))) {

0 commit comments

Comments
 (0)