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: improve set-env CLI cmd #6001

Merged
merged 3 commits into from
Aug 9, 2023
Merged

feat: improve set-env CLI cmd #6001

merged 3 commits into from
Aug 9, 2023

Conversation

czarcas7ic
Copy link
Member

@czarcas7ic czarcas7ic commented Aug 8, 2023

Closes: #XXX

What is the purpose of the change

Screen.Recording.2023-08-08.at.6.24.17.PM.mov

Getting started with osmosis is not very user friendly. The set-env command was a step in the right direction, but it still doesn't feel useable out of the box.

With this PR, a user can go from having no .osmosisd folder to querying the chain with a single command.

Additionally, it fills out the chain-id in the client.toml, so the only flag a user should have to pass in is gas flags (you could 100 percent add this as well, but I wasn't quite sure what default gas values should be used).

Edit: last minute addition, allows you to add a chain ID to the set-env for localnet. If no chainID for localnet is provided, it default to localosmosis chain ID.

Testing and Verifying

Tested against mainnet, testnet, and local env.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@czarcas7ic czarcas7ic added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v16.x backport patches to v16.x branch labels Aug 8, 2023
@czarcas7ic
Copy link
Member Author

@devbot-wizard help

@devbot-wizard
Copy link
Collaborator

Hi! I'm DevBot, a bot that helps with common tasks in the development process. Commands:

  • devbot fix: Fix basic errors in the PR. (e.g. imports, changelog conflicts, go mod conflicts)
  • devbot merge base: Merge the base branch into the PR branch.
  • devbot add changelog [misc/feat/bug/api/sec] [message]: Add a changelog entry to the PR. (e.g. devbot add changelog feat Added a new feature)
    • If message is blank, defaults to PR title.
  • devbot re-pr: Re-PR the PR, useful for external contributors where we have no edit perms.

@czarcas7ic
Copy link
Member Author

devbot add changelog misc

@czarcas7ic czarcas7ic marked this pull request as ready for review August 8, 2023 23:28
@czarcas7ic czarcas7ic added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks and removed A:backport/v16.x backport patches to v16.x branch V:state/compatible/backport State machine compatible PR, should be backported labels Aug 9, 2023
@czarcas7ic czarcas7ic merged commit c3129e0 into main Aug 9, 2023
1 check passed
@czarcas7ic czarcas7ic deleted the adam/improve-set-env branch August 9, 2023 03:36
p0mvn pushed a commit that referenced this pull request Aug 29, 2023
* improve set-env CLI cmd

* update changelog

* add optional chain id to localnet

---------

Co-authored-by: devbot-wizard <[email protected]>
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants