Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a library language-agnostic to contain metadata shared accross staker agents #590

Open
pablomendezroyo opened this issue Jul 31, 2023 · 1 comment

Comments

@pablomendezroyo
Copy link
Contributor

pablomendezroyo commented Jul 31, 2023

Staker agents (such as staker packages, dappmanager and dappnodesdk) have the following hardcoded metadata. Would be interesting to have a single point of data and then use it where needed. Consider using a universal data format like JSON.

{
  "mainnet": {
    "executionClients": {
      "geth.dnp.dappnode.eth": {
        "engineApi": "http://get.dappnode:8545"
      },
      ...
    },
    "consensusClients": {
      "prysm.dnp.dappnode.eth": {
        "beacon": { 
          "api": "http://prysm.beacon-chain.dappnode:3500",
          "jwt": "7ad9cfdec75eceb662f5e48f5765701c17f51a5233a60fbcfa5f9e495fa99d19"
        },
        "validator": {
          "keystoresApi": "http://prysm.validator.dappnode:3500",
          "authToken": "b5bbbaf533b625a93741978857f13d7adeca58445a1fb00ecf3373420b92776c
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.MxwOozSH-TLbW_XKepjyYDHm2IT8Ki0tD3AHuajfNMg",
        }
      },
      ...
    },
    "signer": {
      "keystoreApi": "http://web3signer.dappnode:9000"
    },
    "mevBoost": {
      "builderApi": "http://mev-boost.dappnode:18550"
    }
  }
}
  • This library could be used in:

    • dappnode packages entrypoints
    • dappmanager
    • sdk
    • ?
  • This library must have a release section

Another interesting approach would be to distribute a binary that with a given input returns all the specs.

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the bot:stale label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant