Giter Site home page Giter Site logo

graphops / graphcast-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 203 KB

CLI for Graphcast

Home Page: https://docs.graphops.xyz/graphcast/radios/graphcast-cli

License: Apache License 2.0

Dockerfile 4.24% Shell 2.20% Rust 93.55%
cli graph-protocol graphcast indexers the-graph

graphcast-cli's People

Contributors

hopeyen avatar petkodes avatar

Watchers

 avatar

graphcast-cli's Issues

[Feat.Req] subcommands

Problem statement

After renaming one-shot-cli to graphcast-cli, we can consider a boarder scope for what the CLI can do

Expectation proposal

  • move sending upgrade intent message into a subcommand graphcast send upgradeIntentMessage subgraph_id ...
  • add simple commands relevant to upgrade presync functionality
    • query a list of indexers who has active allocation for the existing subgraph deployment
    • get public status APIs for a list of indexers
    • query indexingStatus from the public status APIs for the new deployment
    • summarize status

Add banner to Subgraph Studio to advertise Graphcast CLI

Migrated from graphops/subgraph-radio#21 by @axiomatic-aardvark

Expectation proposal
We should add a banner to Subgraph Studio that lets subgraph developers know that they can use our one-shot CLI to send messages about when they plan to publish a new version of their subgraph(s). That banner should direct them to our docs where we lay out the steps they need to take to send a message.

Alternative considerations
We could think of ways to integrate the one-shot CLI into Subgraph Studio itself, but that would require enormous effort since we would need to either 1. somehow wrap the existing one-shot CLI in WASM and create bindings for JS (which includes bundling the Go and C compilers) or 2. create a JS clone of one-shot CLI (using js-waku)

  • Prioritize after User Improvement Issue, communicate with E&N subgraph studio team so the integration can be timed appropriately
  • Add usage section in docs.graphops.xyz using the current README

Rename to graphcast-cli

Problem statement

More straightforward naming

Expectation proposal

  • rename in codebase
  • rename in docs

[Feat.Req] User Improvement

moved from @axiomatic-aardvark graphops/subgraph-radio#20

Problem statement
The current one-shot CLI is perfect for sending one-off subgraph versioning update messages (as well as any message really, with a few tweaks), but we need it to be more user-friendly. This means possibly changing its name and adding a script that runs it within Docker, eliminating the need for users to install all pre-requisites like Go, Clang, etc. We also need to extract it to a separate repo.

Expectation proposal
Users (subgraph devs) should ideally be able to pull a Docker image (GHCR package) and run it with custom arguments.

Alternative considerations
We could also skip this and instead wait for graphcast-web to be functional before recommending the subgraph versioning feature to subgraph developers, but that will take a lot longer and getting early feedback is vital.

[Feat.Req] update subcommand categories

subcommand

  • send: for all commands that send various messages, such as upgrade-presync -> send upgrade-intent
  • monitor: for all commands that monitor for a certain status, such as indexing-status -> monitor indexing-status
    • can add one on monitor indexer-version

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.