Skip to content

Commit

Permalink
Support all lukso clients (#256)
Browse files Browse the repository at this point in the history
* Support all lukso clients

* Add Teku Lukso TLS cert

* Fix deleted client
  • Loading branch information
dsimog01 authored Aug 8, 2023
1 parent 4c45f1f commit 922cc74
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/brain/src/modules/envs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,24 @@ export function loadStakerConfig(): {
beaconchainUrl = `http://beacon-chain.lighthouse-lukso.dappnode:3500`;
validatorUrl = `http://validator.lighthouse-lukso.dappnode:3500`;
break;
case "teku-lukso.dnp.dappnode.eth":
token = `cd4892ca35d2f5d3e2301a65fc7aa660`;
beaconchainUrl = `http://beacon-chain.teku-lukso.dappnode:3500`;
validatorUrl = `https://validator.teku-lukso.dappnode:3500`;
tlsCert = fs.readFileSync(
path.join(certDir, "lukso", "teku_client_keystore.p12")
);
break;
case "lodestar-lukso.dnp.dappnode.eth":
token = `api-token-0x7fd16fff6453982a5d8bf14617e7823b68cd18ade59985befe64e0a659300e7d`;
beaconchainUrl = `http://beacon-chain.lodestar-lukso.dappnode:3500`;
validatorUrl = `http://validator.lodestar-lukso.dappnode:3500`;
break;
case "nimbus-lukso.dnp.dappnode.eth":
token = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.MxwOozSH-TLbW_XKepjyYDHm2IT8Ki0tD3AHuajfNMg`;
beaconchainUrl = `http://beacon-validator.nimbus-lukso.dappnode:4500`;
validatorUrl = `http://beacon-validator.nimbus-lukso.dappnode:3500`;
break;
default:
throw Error(
`Unknown consensus client for network ${network}: ${consensusClient}`
Expand Down
Binary file added packages/brain/tls/lukso/teku_client_keystore.p12
Binary file not shown.
1 change: 1 addition & 0 deletions packages/brain/tls/lukso/teku_keystore_password.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dappnode
5 changes: 5 additions & 0 deletions packages/common/src/types/network/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,16 @@ export type SignerLukso = typeof signerLukso;
export const consensusClientsLukso = [
"prysm-lukso.dnp.dappnode.eth",
"lighthouse-lukso.dnp.dappnode.eth",
"teku-lukso.dnp.dappnode.eth",
"nimbus-lukso.dnp.dappnode.eth",
"lodestar-lukso.dnp.dappnode.eth",
] as const;
export type ConsensusClientLukso = (typeof consensusClientsLukso)[number];

export const executionClientsLukso = [
"lukso-geth.dnp.dappnode.eth",
"lukso-erigon.dnp.dappnode.eth",
"lukso-nethermind.dnp.dappnode.eth",
"lukso-besu.dnp.dappnode.eth",
] as const;
export type ExecutionClientLukso = (typeof executionClientsLukso)[number];
5 changes: 5 additions & 0 deletions packages/ui/src/components/StakerConfig/StakerConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ export default function StakerConfig({
// TODO: Add Lukso logos (now mainnet)
"lukso-geth.dnp.dappnode.eth": "/assets/geth.png",
"lukso-erigon.dnp.dappnode.eth": "/assets/erigon.png",
"lukso-besu.dnp.dappnode.eth": "/assets/besu.png",
"lukso-nethermind.dnp.dappnode.eth": "/assets/nethermind.png",
"prysm-lukso.dnp.dappnode.eth": "/assets/prysm.png",
"lighthouse-lukso.dnp.dappnode.eth": "/assets/lighthouse.png",
"teku-lukso.dnp.dappnode.eth": "/assets/teku.png",
"nimbus-lukso.dnp.dappnode.eth": "/assets/nimbus.png",
"lodestar-lukso.dnp.dappnode.eth": "/assets/lodestar.png",

// Default logo until we have a package for them
default: "/assets/dappnode_logo_clean.png",
Expand Down

0 comments on commit 922cc74

Please sign in to comment.