cosmos-sdk/x/auth/types
Changhyun, Park 42e28e294b
feat: Add cli for listing all module accounts (#9812)
## Description

This PR adds a CLI for querying all module accounts, `module-accounts`, in the auth module. 
Using this command would display all the account information, including human readable name of the module, module account address, account number, permissions, etc. 

This command would be especially useful for developers using cosmos-sdk as there are lots of instances where a developer would have to look into the module account, but only to do so by getting the module account address after getting the module name, hashing it and bech32fying it in the status quo. By using this command, users would be able to get a quick look on the list of all module accounts' information.


---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [x] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [x] reviewed tests and test coverage
- [x] manually tested (if applicable)
2021-08-02 18:47:43 +00:00
..
account.go adr-028 address generation (#8415) 2021-02-15 15:32:51 +00:00
account_retriever.go various linter fixes (#8666) 2021-02-23 08:46:01 +00:00
account_retriever_test.go feat: simd runs in-process testnet by default (#9246) 2021-06-29 10:41:55 +00:00
account_test.go Update tm pubkey references (#7102) 2020-08-28 16:02:38 +00:00
auth.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
codec.go refactor: Rename x/{mod}/legacy to x/{mod}/migrations (#9628) 2021-07-05 14:55:51 +00:00
common_test.go refactor!: Remove `clientCtx.JSONCodec` and rename `EncodingConfig.Marshaler` to `Codec` (#9521) 2021-07-01 08:52:38 +00:00
expected_keepers.go Move ModuleAccount to x/auth (#6029) 2020-04-20 19:32:10 +00:00
genesis.go codec: Rename codec and marshaler interfaces (#9226) 2021-04-29 10:46:22 +00:00
genesis.pb.go Update gogo proto deps with v1.3.2 security fixes (#8350) 2021-01-15 19:45:34 +00:00
genesis_test.go Migrate BaseAccount PubKey to use Any (#7268) 2020-09-25 08:41:16 +00:00
keys.go Merge PR #5702: Add Param Querying to x/auth 2020-02-26 10:33:56 -05:00
params.go Enable secp256r1 (#8786) 2021-03-04 21:31:42 +00:00
params_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
permissions.go Move ModuleAccount to x/auth (#6029) 2020-04-20 19:32:10 +00:00
permissions_test.go Move ModuleAccount to x/auth (#6029) 2020-04-20 19:32:10 +00:00
querier.go proto: Consistent naming for Params (#6803) 2020-07-21 14:04:51 +00:00
query.go Add cli test for query Account (#6973) 2020-08-17 13:47:31 +01:00
query.pb.go feat: Add cli for listing all module accounts (#9812) 2021-08-02 18:47:43 +00:00
query.pb.gw.go feat: Add cli for listing all module accounts (#9812) 2021-08-02 18:47:43 +00:00