Skip to content

Commit

Permalink
ADD: Holesky Testnet Support
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays committed Aug 30, 2023
1 parent 4cb2c55 commit 028b4b7
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 5 deletions.
8 changes: 4 additions & 4 deletions launcher/src/backend/ServiceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1214,12 +1214,12 @@ export class ServiceManager {
}
if (service.service === "FlashbotsMevBoostService") {
command = service.entrypoint;
let index = command.findIndex((c) => /^-(mainnet|prater|goerli$)/.test(c));
let index = command.findIndex((c) => /^-(mainnet|prater|goerli|sepolia|holesky$)/.test(c));
command[index] = "-" + newNetwork;
index = command.findIndex((c) => c === "-relays") + 1;
command[index] = '""';
} else if (service.service === "PrysmBeaconService") {
let index = command.findIndex((c) => /--(mainnet|prater|goerli)/.test(c));
let index = command.findIndex((c) => /--(mainnet|prater|goerli|sepolia|holesky)/.test(c));
command[index] = "--" + newNetwork;
if (newNetwork === "mainnet" && command.includes("--genesis-state=/opt/app/genesis/prysm-prater-genesis.ssz")) {
command.splice(command.indexOf("--genesis-state=/opt/app/genesis/prysm-prater-genesis.ssz"), 1);
Expand All @@ -1231,8 +1231,8 @@ export class ServiceManager {
}
} else {
command = command.map((c) => {
if (/mainnet|prater|goerli/.test(c)) {
c = c.replace(/mainnet|prater|goerli/, newNetwork);
if (/mainnet|prater|goerli|sepolia|holesky/.test(c)) {
c = c.replace(/mainnet|prater|goerli|sepolia|holesky/, newNetwork);
}
return c;
});
Expand Down
2 changes: 1 addition & 1 deletion launcher/src/backend/ValidatorAccountManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export class ValidatorAccountManager {
await this.nodeConnection.sshService.exec(
`chown 2000:2000 ${validatorsDir}/${pubkey}/exit_password.txt && chmod 700 ${validatorsDir}/${pubkey}/exit_password.txt`
);
const exitNimbusCmd = `docker run -v ${validatorsDir}:/validators --network=stereum sigp/lighthouse:latest lighthouse account validator exit --keystore=/validators/${pubkey}/keystore.json --password-file=/validators/${pubkey}/exit_password.txt --network=goerli --beacon-node=${client.dependencies.consensusClients[0] ? client.dependencies.consensusClients[0].buildConsensusClientHttpEndpointUrl() : "http:stereum-" + client.id + ":5052"} --no-confirmation`;
const exitNimbusCmd = `docker run -v ${validatorsDir}:/validators --network=stereum sigp/lighthouse:latest lighthouse account validator exit --keystore=/validators/${pubkey}/keystore.json --password-file=/validators/${pubkey}/exit_password.txt --network=${client.network} --beacon-node=${client.dependencies.consensusClients[0] ? client.dependencies.consensusClients[0].buildConsensusClientHttpEndpointUrl() : "http:stereum-" + client.id + ":5052"} --no-confirmation`;
result = await this.nodeConnection.sshService.exec(exitNimbusCmd);
await this.nodeConnection.sshService.exec(
`rm ${validatorsDir}/${pubkey}/exit_password.txt`
Expand Down
4 changes: 4 additions & 0 deletions launcher/src/backend/ethereum-services/NodeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const networks = {
sepolia: {
name: "sepolia",
dataEndpoint: "https://sepolia.beaconcha.in/api/v1",
},
holesky: {
name: "holesky",
dataEndpoint: "https://holesky.beaconcha.in/api/v1",
}
};

Expand Down
1 change: 1 addition & 0 deletions launcher/src/components/UI/node-manage/SidebarManage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default {
case "goerli":
return (item) => this.archFilter(item.service);
case "sepolia":
case "holesky":
return (item) => item.service != "SSVNetworkService" && this.archFilter(item.service);
case "gnosis":
return (item) =>
Expand Down
9 changes: 9 additions & 0 deletions launcher/src/components/UI/the-node/NodeTutorial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ export default {
icon: "/img/icon/click-installation/testnet-icon.png",
},
],
holesky: [
{
title: this.$t("nodeSidebarVideo.stake"),
guide: "",
video: "https://www.youtube.com/embed/Cbu58ee_Wj4",
written: "https://stereum.net/ethereum-node-setup/eth-solo-staking-step-by-step-guide/",
icon: "/img/icon/click-installation/testnet-icon.png",
},
],
gnosis: [
{
title: this.$t("nodeSidebarVideo.gnoStake"),
Expand Down
1 change: 1 addition & 0 deletions launcher/src/store/clickInstallation.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export const useClickInstall = defineStore("clickInstallation", {
url: "https://checkpoint.gnosischain.com/",
},
],
holesky: [],
};
},
actions: {},
Expand Down
9 changes: 9 additions & 0 deletions launcher/src/store/nodeManage.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ export const useNodeManage = defineStore("nodeManage", {
dataEndpoint: "https://beacon.gnosischain.com/api/v1",
support: ["staking", "stereum on arm"],
},
{
id: 5,
name: "Holesky Testnet",
network: "holesky",
icon: "/img/icon/click-installation/testnet-icon.png",
currencyIcon: "/img/icon/control/goETH_Currency_Symbol.png",
dataEndpoint: "https://holesky.beaconcha.in/api/v1",
support: ["staking", "stereum on arm", "mev boost"],
},
],
currentNetwork: {},
configNetwork: {},
Expand Down

0 comments on commit 028b4b7

Please sign in to comment.