graphprotocol / graphprotocol/indexer

Support setting a default protocolNetwork in indexer-cli

Open
#708 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement indexer-cli p2
Dominant language
TypeScript
Stars
262
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Allow the user to provide a default protocolNetwork for their indexer-cli work session; after defining it they would no longer need to provide protocolNetwork with every indexer-cli command.

This could potentially be added to the config file that currently holds connection information (generated using indexer connect command).

### Tasks
- [ ] Support setting a default protocolNetwork in indexer-cli
- [ ] Use the default protocolNetwork value (if set) in all relevant indexer-cli commands

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the indexer-cli command entry points and the connection config generated by the indexer connect command. Trace how commands currently obtain protocolNetwork, then verify that a configured default is used across all relevant commands when no value is provided.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.