Skip to content

Commit

Permalink
Fix missing config for network ephimery
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomendezroyo committed Oct 21, 2024
1 parent 7008ecb commit c4b1162
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 9 deletions.
25 changes: 25 additions & 0 deletions packages/db/src/stakerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,28 @@ export const mevBoostLukso = interceptGlobalEnvOnSet(
dbMain.staticKey<boolean>(MEVBOOST_LUKSO, false),
Object.keys({ MEVBOOST_LUKSO })[0]
);

// Ephemery

const CONSENSUS_CLIENT_EPHEMERY = "consensus-client-ephemery";
const EXECUTION_CLIENT_EPHEMERY = "execution-client-ephemery";
const MEVBOOST_EPHEMERY = "mevboost-ephemery";

// Null means not set
// Undefined means its set but the user has not selected any value
export const consensusClientEphemery = interceptGlobalEnvOnSet(
dbMain.staticKey<string | undefined | null>(CONSENSUS_CLIENT_EPHEMERY, null),
Object.keys({ CONSENSUS_CLIENT_EPHEMERY })[0]
);

// Null means not set
// Undefined means its set but the user has not selected any value
export const executionClientEphemery = interceptGlobalEnvOnSet(
dbMain.staticKey<string | undefined | null>(EXECUTION_CLIENT_EPHEMERY, null),
Object.keys({ EXECUTION_CLIENT_EPHEMERY })[0]
);

export const mevBoostEphemery = interceptGlobalEnvOnSet(
dbMain.staticKey<boolean>(MEVBOOST_EPHEMERY, false),
Object.keys({ MEVBOOST_EPHEMERY })[0]
);
3 changes: 2 additions & 1 deletion packages/params/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ export const params = {
[Network.Holesky]: "holesky_network",
[Network.Prater]: "prater_network",
[Network.Gnosis]: "gnosis_network",
[Network.Lukso]: "lukso_network"
[Network.Lukso]: "lukso_network",
[Network.Ephemery]: "ephemery_network"
},
DOCKER_LEGACY_DNS: "172.33.1.2",
BIND_IP: "172.33.1.2", // "10.20.0.2"
Expand Down
7 changes: 2 additions & 5 deletions packages/stakers/src/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ export class Execution extends StakerComponent {
{ dnpName: ExecutionClientHolesky.Nethermind, minVersion: "0.1.0" },
{ dnpName: ExecutionClientHolesky.Besu, minVersion: "0.1.0" }
],
[Network.Lukso]: [
{ dnpName: ExecutionClientLukso.Geth, minVersion: "0.1.0" }
],
[Network.Ephemery]: [
{ dnpName: ExecutionClientEphemery.Besu, minVersion: "0.1.0" }]
[Network.Lukso]: [{ dnpName: ExecutionClientLukso.Geth, minVersion: "0.1.0" }],
[Network.Ephemery]: [{ dnpName: ExecutionClientEphemery.Geth, minVersion: "0.1.0" }]
};

constructor(dappnodeInstaller: DappnodeInstaller) {
Expand Down
6 changes: 4 additions & 2 deletions packages/stakers/src/mevBoost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class MevBoost extends StakerComponent {
[Network.Gnosis]: db.mevBoostGnosis,
[Network.Prater]: db.mevBoostPrater,
[Network.Holesky]: db.mevBoostHolesky,
[Network.Lukso]: db.mevBoostLukso
[Network.Lukso]: db.mevBoostLukso,
[Network.Ephemery]: db.mevBoostEphemery
};

protected static readonly CompatibleMevBoost: Record<Network, { dnpName: string; minVersion: string } | null> = {
Expand All @@ -29,7 +30,8 @@ export class MevBoost extends StakerComponent {
dnpName: MevBoostHolesky.Mevboost,
minVersion: "0.1.0"
},
[Network.Lukso]: null
[Network.Lukso]: null,
[Network.Ephemery]: null
};

constructor(dappnodeInstaller: DappnodeInstaller) {
Expand Down
17 changes: 16 additions & 1 deletion packages/types/src/stakers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export enum Network {
Prater = "prater",
Gnosis = "gnosis",
Lukso = "lukso",
Holesky = "holesky"
Holesky = "holesky",
Ephemery = "ephemery"
}

// MAINNET
Expand All @@ -32,6 +33,20 @@ export enum MevBoostMainnet {
Mevboost = "mev-boost.dnp.dappnode.eth"
}

// EPHEMERY
export enum ConsensusClientEphemery {
Lodestar = "lodestar-ephemery.dnp.dappnode.eth",
Teku = "teku-ephemery.dnp.dappnode.eth"
}

export enum ExecutionClientEphemery {
Geth = "ephemery-geth.dnp.dappnode.eth"
}

export enum SignerEphemery {
Web3signer = "web3signer-ephemery.dnp.dappnode.eth"
}

// PRATER
export enum ConsensusClientPrater {
Prysm = "prysm-prater.dnp.dappnode.eth",
Expand Down

0 comments on commit c4b1162

Please sign in to comment.