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

Add cli for MsgRegisterAccount #2136

Merged
merged 18 commits into from
Aug 30, 2022

Conversation

Anmol1696
Copy link
Contributor

Description

Add client cmd for MsgRegisterAccount, similar to inter-tx, but making appropriate changes to make it consistent with other ibc modules.

Improvements

Maybe we can better have description for the flags as well as client help/usage statements. Do let me know if we can add more clarity here.

closes: #2061


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@Anmol1696 Anmol1696 marked this pull request as ready for review August 27, 2022 08:26
@codecov-commenter
Copy link

codecov-commenter commented Aug 28, 2022

Codecov Report

Merging #2136 (b040263) into main (4b8e534) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2136   +/-   ##
=======================================
  Coverage   79.28%   79.28%           
=======================================
  Files         170      170           
  Lines       11855    11855           
=======================================
  Hits         9399     9399           
  Misses       2040     2040           
  Partials      416      416           
Impacted Files Coverage Δ
modules/apps/27-interchain-accounts/module.go 56.62% <0.00%> (ø)

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice work!

Comment on lines +58 to +59
cmd.Flags().String(flagVersion, "", "Controller chain channel version")
flags.AddTxFlagsToCmd(cmd)
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be nice if we added documentation on how to create versions with ics29 enabled. Maybe in the long section

Copy link
Contributor

Choose a reason for hiding this comment

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

I would be fine with doing this in a later PR when we can test everything out e2e

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can create an issue for this and add it later too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great ideas y'all. Lets open an issue

Copy link
Contributor

@seantking seantking left a comment

Choose a reason for hiding this comment

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

Fantastic work! Thank you

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

followup ACK. Thank you :)

Comment on lines +58 to +59
cmd.Flags().String(flagVersion, "", "Controller chain channel version")
flags.AddTxFlagsToCmd(cmd)
Copy link
Contributor

Choose a reason for hiding this comment

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

Great ideas y'all. Lets open an issue

@mergify mergify bot merged commit 5e78a23 into cosmos:main Aug 30, 2022
mergify bot pushed a commit that referenced this pull request Aug 30, 2022
## Description

Add client cmd for `MsgRegisterAccount`, similar to [inter-tx](https://github.com/cosmos/interchain-accounts-demo/blob/master/x/inter-tx/client/cli/tx.go#L36), but making appropriate changes to make it consistent with other ibc modules.

### Improvements
Maybe we can better have description for the flags as well as client help/usage statements. Do let me know if we can add more clarity here.

closes: #2061

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 5e78a23)
@Anmol1696 Anmol1696 deleted the anmol/register-account-cli branch August 31, 2022 07:45
colin-axner pushed a commit that referenced this pull request Aug 31, 2022
## Description

Add client cmd for `MsgRegisterAccount`, similar to [inter-tx](https://github.com/cosmos/interchain-accounts-demo/blob/master/x/inter-tx/client/cli/tx.go#L36), but making appropriate changes to make it consistent with other ibc modules.

### Improvements
Maybe we can better have description for the flags as well as client help/usage statements. Do let me know if we can add more clarity here.

closes: #2061

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 5e78a23)

Co-authored-by: Anmol <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CLI for new ics27 RegisterAccount rpc
6 participants