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

feat: scaffold chain-registry files #4413

Merged
merged 20 commits into from
Jan 13, 2025
Merged

feat: scaffold chain-registry files #4413

merged 20 commits into from
Jan 13, 2025

Conversation

julienrbrt
Copy link
Member

Create a new command for scaffold chain-registry template files.

ignite s chain-registry

It will be useful for this: ignite/apps#140, in order to have the js wallet connect be able to easily add the chain.
Additionally, it is useful when a chain gets to testnet and launching phase, to have those files ready to publish on https://github.com/cosmos/chain-registry

@github-actions github-actions bot added component:ci CI/CD workflow and automated jobs. component:configs component:cmd type:services Service-related issues. labels Nov 19, 2024
@julienrbrt julienrbrt marked this pull request as ready for review January 8, 2025 22:11
@julienrbrt julienrbrt added the backport/v28.x.y Backport to v28.x.y label Jan 8, 2025
ignite/pkg/xgit/xgit.go Outdated Show resolved Hide resolved
ignite/pkg/xgit/xgit.go Outdated Show resolved Hide resolved
ignite/services/scaffolder/chain_registry.go Outdated Show resolved Hide resolved
ignite/services/scaffolder/chain_registry.go Outdated Show resolved Hide resolved
ignite/services/scaffolder/chain_registry.go Outdated Show resolved Hide resolved
Use: "chain-registry",
Short: "Configs for the chain registry",
Long: `Scaffold the chain registry chain.json and assets.json files.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should certain fields should be configurable?

For instance:

c.Flags().String("status", "upcoming", "Chain status (mainnet, testnet, upcoming, etc.)")

and then consumed in scaffoldChainRegistryFiles

status, _ := cmd.Flags().GetString("status")

And passed down to AddChainRegistryFiles

if err = sc.AddChainRegistryFiles(c, cfg, status); err != nil {
    return err
}
``

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't super sure. As youd scaffold this when you need the frontend, and usually it is at devnet. Wanted to keep it KISS. But we can always add if you find it valuable.

@julienrbrt julienrbrt requested a review from salmad3 January 11, 2025 21:03
@julienrbrt julienrbrt merged commit ed3d0b3 into main Jan 13, 2025
43 of 45 checks passed
@julienrbrt julienrbrt deleted the julien/cr branch January 13, 2025 07:43
mergify bot pushed a commit that referenced this pull request Jan 13, 2025
* feat: scaffold chain-registry files

* cl

* cl

* updates

* updates

* typo

* renaming

* finalize chain-registry

* updates

* lint

* lint

* typos

(cherry picked from commit ed3d0b3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v28.x.y Backport to v28.x.y component:ci CI/CD workflow and automated jobs. component:cmd component:configs component:packages type:services Service-related issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants