Giter Club home page Giter Club logo

cosmos-upgrades's Introduction

cosmos-upgrades

cosmos-upgrades is a powerful tool developed by Defiant Labs to search for scheduled Cosmos upgrades. This tool aims to streamline the process of tracking and managing upgrades in the Cosmos ecosystem.

๐ŸŒŒ Introduction

The Cosmos ecosystem is vast and ever-evolving. With frequent upgrades and enhancements, it becomes crucial for stakeholders to keep track of scheduled upgrades. cosmos-upgrades bridges this gap by providing a centralized solution to fetch and monitor these upgrades.

๐Ÿ›  Problem Statement

Keeping track of scheduled upgrades in a decentralized ecosystem can be challenging. Missing an upgrade can lead to potential downtimes, security vulnerabilities, and missed opportunities. cosmos-upgrades addresses this challenge by offering a reliable and up-to-date source of information for all scheduled Cosmos upgrades.

Certainly! Here's the expanded section about the chain-registry:


๐Ÿ“š Chain-Registry Deep Dive

The chain-registry is more than just a repository of chain details; it's the backbone that powers the cosmos-upgrades tool. Each chain specified in the request is mapped to its corresponding JSON file within the chain-registry. This mapping allows the tool to look up vital information, such as endpoints, for each chain.

For instance, when you specify "akash" in your request, the tool refers to the akash/chain.json file in the chain-registry to fetch the necessary details.

Why is the Chain-Registry Essential?

  1. Accuracy & Reliability: By centralizing the details of all chains in the chain-registry, we ensure that the data fetched by cosmos-upgrades is always accurate and up-to-date.
  2. Extensibility: The design of the chain-registry allows for easy additions of new chains or updates to existing ones.
  3. Community Collaboration: The chain-registry is open-source, fostering a collaborative environment. If a user notices a missing chain or outdated information, they can contribute by submitting a PR with the correct details.

What if a Network is Missing?

If a particular network or chain is not present in the chain-registry, the cosmos-upgrades tool won't be able to provide information about it. In such cases, we strongly encourage users to:

  • Reach out to the protocol leads to inform them about the omission.
  • Take a proactive approach by submitting a PR to the chain-registry with the correct information.

By doing so, not only do you enhance the tool's capabilities, but you also contribute to the broader Cosmos community.


๐Ÿš€ Making Requests

To fetch the scheduled upgrades, you can use the following curl command:

curl -s -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "MAINNETS": ["akash"],
    "TESTNETS": ["cosmoshubtestnet"]
  }' \
  https://cosmos-upgrades.apis.defiantlabs.net/fetch

Note: The testnet and mainnet names provided in the request payload should match one-for-one with the names of the chains in the chain-registry.

Response Format:

The response will be in JSON format containing details of the scheduled upgrades. Here's a sample response:

[
  {
    "latest_block_height": 12593557,
    "network": "akash",
    "rpc_server": "https://akash-rpc.lavenderfive.com:443",
    "source": "current_upgrade_plan",
    "type": "mainnet",
    "upgrade_block_height": 12606074,
    "upgrade_found": true,
    "version": "0.24.0"
  },
  {
    "latest_block_height": 17550150,
    "network": "cosmoshubtestnet",
    "rpc_server": "https://rpc-theta.osmotest5.osmosis.zone/",
    "source": "",
    "type": "testnet",
    "upgrade_block_height": null,
    "upgrade_found": false,
    "version": ""
  }
]

Key Fields:

  • latest_block_height: The latest block height of the chain.
  • network: The name of the network (e.g., "akash" or "cosmoshubtestnet").
  • rpc_server: The RPC server that provided the response.
  • source: The source from which the upgrade information was fetched.
  • type: Specifies whether it's a "mainnet" or "testnet".
  • upgrade_block_height: The block height at which the upgrade is scheduled.
  • upgrade_found: A boolean indicating if an upgrade was found.
  • version: The version of the upgrade.

Note: Chains with scheduled upgrades are displayed first in the response.

cosmos-upgrades's People

Contributors

clemensgg avatar danbryan avatar pharr117 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.