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

[Feature]: Specify if chain enabled for /lavanet/lava/spec/show_all_chains endpoint #1896

Open
RuslanGlaznyov opened this issue Jan 7, 2025 · 0 comments

Comments

@RuslanGlaznyov
Copy link
Contributor

Summary

The /lavanet/lava/spec/show_all_chains endpoint didn't provide information of if chain enabled or not. We can find this data from request /lavanet/lava/spec/spec, but this request is heavy and takes time for respond especially when a lot specs are added to the chain.

Problem Definition

I use this endpoint in /lavanet/lava/spec/show_all_chains for restake dashboard, but it does not return data if the spec is enabled. I need this data to filter the disabled spec and not show it to the user bc, the disabled spec doesn't have any provider to restake it does not return

Proposed Feature

Need to add field enabled for example:

[
  {
    "chainName": "axelar mainnet",
    "enabled": true,
    "chainID": "AXELAR",
    "enabledApiInterfaces": [
      "grpc",
      "rest",
      "tendermintrpc"
    ],
    "api_count": "510"
  },
  {
    "chainName": "cosmos SDK",
    "enabled": false,
    "chainID": "COSMOSSDK",
    "enabledApiInterfaces": [
      "grpc",
      "rest",
      "tendermintrpc"
    ],
    "api_count": "357"
  }
]
@RuslanGlaznyov RuslanGlaznyov changed the title [Feature]: Specify is chain enabled true or false for /lavanet/lava/spec/show_all_chains endpoints [Feature]: Specify if chain enabled for /lavanet/lava/spec/show_all_chains endpoint Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant