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: Make a Denoms method on sdk.Coins #12627

Merged
merged 5 commits into from
Jul 19, 2022
Merged

feat: Make a Denoms method on sdk.Coins #12627

merged 5 commits into from
Jul 19, 2022

Conversation

ratankaliani
Copy link
Contributor

@ratankaliani ratankaliani commented Jul 19, 2022

Description

Closes: #12538

Adds a Denoms method to sdk.Coins to return a string array of all denoms in Coins & adds simple testing on Denoms.


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 in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • 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...

  • confirmed the correct type prefix in the PR title
  • 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
  • reviewed tests and test coverage
  • manually tested (if applicable)

@ratankaliani ratankaliani marked this pull request as ready for review July 19, 2022 08:52
@ratankaliani ratankaliani requested a review from a team as a code owner July 19, 2022 08:52
Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

can we add a changelog entry please

@@ -42,6 +42,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (cli) [#12028](https://github.com/cosmos/cosmos-sdk/pull/12028) Add the `tendermint key-migrate` to perform Tendermint v0.35 DB key migration.
* (query) [#12253](https://github.com/cosmos/cosmos-sdk/pull/12253) Add `GenericFilteredPaginate` to the `query` package to improve UX.
* (telemetry) [#12405](https://github.com/cosmos/cosmos-sdk/pull/12405) Add _query_ calls metric to telemetry.
* (sdk.Coins) [#12627](https://github.com/cosmos/cosmos-sdk/pull/12627) Make a Denoms method on sdk.Coins.
Copy link
Contributor Author

@ratankaliani ratankaliani Jul 19, 2022

Choose a reason for hiding this comment

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

linked! my bad

Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #12627 (774a7d2) into main (b025917) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #12627      +/-   ##
==========================================
- Coverage   65.24%   65.20%   -0.04%     
==========================================
  Files         697      693       -4     
  Lines       72075    71822     -253     
==========================================
- Hits        47026    46834     -192     
+ Misses      22406    22355      -51     
+ Partials     2643     2633      -10     
Impacted Files Coverage Δ
types/coin.go 93.69% <100.00%> (+0.08%) ⬆️
x/group/keeper/keeper.go 58.26% <0.00%> (-0.40%) ⬇️
errors/stacktrace.go
errors/handle.go
errors/abci.go
errors/errors.go
crypto/keys/internal/ecdsa/privkey.go 83.01% <0.00%> (+1.88%) ⬆️
x/distribution/simulation/operations.go 90.42% <0.00%> (+9.57%) ⬆️

@tac0turtle tac0turtle added the A:automerge Automatically merge PR once all prerequisites pass. label Jul 19, 2022
@mergify mergify bot merged commit da32265 into cosmos:main Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make a Denoms method on sdk.Coins
3 participants