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

Implement chain details lookup from RPC status endpoint or Cosmos Registry instead of requiring configs #30

Open
pharr117 opened this issue Nov 1, 2023 · 0 comments

Comments

@pharr117
Copy link
Collaborator

pharr117 commented Nov 1, 2023

We can eliminate some of the required config values by looking up chain details using one (or both depending on what we want to pull in) of the following methods:

  1. /status endpoint RPC - contains result.node_info.network showing the chain ID value
  2. Chain Registry for the particular chain:
    • Contains bech32_prefix for the address prefix usable by message parsers
    • Subfolders do not match network name, we would need to most likely hit the RPC and get the chain subfolder by matching on the network name

Doing this will have some implications, mainly with what chain we store in the database. The database can contain multiple chains and we denote them using the network name.

We will then be able to eliminate the hard-coded config values for ChainID and account prefix from the [probe] block

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