Skip to content

Commit 83faa43

Browse files
authored
feat: support hoodi (#178)
* chore: add hoodi * update readme * chore: fix semver * fix: semver
1 parent be23bf0 commit 83faa43

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ At all times, refer to the `mainnet`, `testnet`, and `preprod` git tags to under
88

99
| Environment | Version |
1010
| -------------- | ------------- |
11-
| Mainnet | [1.3.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.3.0) |
12-
| Testnet | [1.3.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.3.0) |
13-
| Preprod | [1.3.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.3.0) |
11+
| Mainnet | [1.3.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.3.0) |
12+
| Testnet(Hoodi & Holesky)| [1.4.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.4.0) |
13+
| Preprod | [1.3.0](https://github.com/Layr-Labs/eigenpod-proofs-generation/releases/tag/1.3.0) |
1414

1515
# Introduction
1616

cli-tool

23.7 MB
Binary file not shown.

cli/commands/completeAllWithdrawals.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ type TCompleteWithdrawalArgs struct {
2727

2828
func DelegationManager(chainId *big.Int) common.Address {
2929
data := map[uint64]string{
30-
1: "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A", // mainnet
31-
17000: "0xA44151489861Fe9e3055d95adC98FbD462B948e7", // holesky testnet
30+
1: "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A", // mainnet
31+
17000: "0xA44151489861Fe9e3055d95adC98FbD462B948e7", // holesky testnet
32+
560048: "0x867837a9722C512e0862d8c2E15b8bE220E8b87d", // hoodi testnet
3233
}
3334
contract, ok := data[chainId.Uint64()]
3435
if !ok {

cli/core/findStalePods.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ import (
2525

2626
func PodManagerContracts() map[uint64]string {
2727
return map[uint64]string{
28-
1: "0x91E677b07F7AF907ec9a428aafA9fc14a0d3A338",
29-
17000: "0x30770d7E3e71112d7A6b7259542D1f680a70e315", //testnet holesky
28+
1: "0x91E677b07F7AF907ec9a428aafA9fc14a0d3A338",
29+
17000: "0x30770d7E3e71112d7A6b7259542D1f680a70e315", //testnet holesky
30+
560048: "0xcd1442415Fc5C29Aa848A49d2e232720BE07976c", //testnet hoodi
3031
}
3132
}
3233

cli/core/utils/utils.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ func IsAwaitingWithdrawalCredentialProof(validatorInfo EigenPod.IEigenPodTypesVa
442442
func ForkVersions() map[uint64]string {
443443
return map[uint64]string{
444444
11155111: "90000069", //sepolia (https://github.com/eth-clients/sepolia/blob/main/README.md?plain=1#L66C26-L66C36)
445+
560048: "10000910", //hoodi (https://github.com/eth-clients/hoodi/blob/main/README.md)
445446
17000: "01017000", //holesky (https://github.com/eth-clients/holesky/blob/main/README.md)
446447
1: "00000000", // mainnet (https://github.com/eth-clients/mainnet)
447448
}
@@ -458,8 +459,8 @@ func GetEthClient(ctx context.Context, node string) (*ethclient.Client, *big.Int
458459
return nil, nil, fmt.Errorf("failed to fetch chain id: %w", err)
459460
}
460461

461-
if chainId == nil || (chainId.Int64() != 17000 && chainId.Int64() != 1) {
462-
return nil, nil, errors.New("this tool only supports the Holesky and Mainnet Ethereum Networks")
462+
if chainId == nil || (chainId.Int64() != 17000 && chainId.Int64() != 1 && chainId.Int64() != 560048) {
463+
return nil, nil, errors.New("this tool only supports the Holesky, Hoodi, and Mainnet Ethereum Networks")
463464
}
464465
return eth, chainId, nil
465466
}

eigen_pod_proofs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type EigenPodProofs struct {
3030
// chainID is the chain ID of the chain that the EigenPodProofs instance will be used for.
3131
// oracleStateCacheExpirySeconds is the expiry time for the oracle state cache in seconds. After this time caches of beacon state roots, validator trees and validator balances trees will be evicted.
3232
func NewEigenPodProofs(chainID uint64, oracleStateCacheExpirySeconds int) (*EigenPodProofs, error) {
33-
if chainID != 1 && chainID != 17000 {
33+
if chainID != 1 && chainID != 17000 && chainID != 560048 {
3434
return nil, errors.New("chainID not supported")
3535
}
3636

0 commit comments

Comments
 (0)