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

refactor(codec): Modularize Address Codec #17099

Merged
merged 13 commits into from
Jul 24, 2023

Conversation

itsdevbear
Copy link
Contributor

Description

Closes: #XXXX


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
  • run make lint and make test
  • 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)

@itsdevbear itsdevbear requested a review from a team as a code owner July 23, 2023 23:03
@itsdevbear itsdevbear marked this pull request as draft July 23, 2023 23:04
@itsdevbear itsdevbear changed the base branch from main to marko/valAddress July 23, 2023 23:06
@itsdevbear
Copy link
Contributor Author

@tac0turtle we can just merge this into your branch if you'd like

@itsdevbear itsdevbear marked this pull request as ready for review July 23, 2023 23:39
@itsdevbear
Copy link
Contributor Author

@tac0turtle we can just merge this into your branch if you'd like

tests/e2e/authz/tx.go Outdated Show resolved Hide resolved
tests/e2e/staking/suite.go Outdated Show resolved Hide resolved
tests/e2e/staking/test_helpers.go Outdated Show resolved Hide resolved
tests/e2e/staking/test_helpers.go Outdated Show resolved Hide resolved
x/genutil/collect_test.go Outdated Show resolved Hide resolved
@@ -185,9 +184,9 @@ func NewDelegateCmd() *cobra.Command {
fmt.Sprintf(`Delegate an amount of liquid coins to a validator from your wallet.

Example:
$ %s tx staking delegate %s1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --from mykey
$ %s tx staking delegate cosmoss1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 1000stake --from mykey
Copy link
Member

Choose a reason for hiding this comment

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

Should be a cosmosvaloper address here.

@@ -229,9 +226,9 @@ func NewRedelegateCmd() *cobra.Command {
fmt.Sprintf(`Redelegate an amount of illiquid staking tokens from one validator to another.

Example:
$ %s tx staking redelegate %s1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj %s1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 100stake --from mykey
$ %s tx staking redelegate cosmoss1gghjut3ccd8ay0zduzj64hwre2fxs9ldmqhffj cosmoss1l2rsakp388kuv9k8qzq6lrm9taddae7fpx59wm 100stake --from mykey
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

tac0turtle and others added 5 commits July 24, 2023 11:20
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
@tac0turtle tac0turtle merged commit 1a89049 into cosmos:marko/valAddress Jul 24, 2023
40 of 45 checks passed
@@ -600,7 +600,7 @@ func (s *E2ETestSuite) TestSimMultiSigTx() {
val1.Address,
addr,
sdk.NewCoins(coins),
addresscodec.NewBech32Codec("cosmos"),
addresscodec.NewBech32Codec("cosmosvaloper"),
Copy link
Member

Choose a reason for hiding this comment

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

Should be reverted

@tac0turtle tac0turtle deleted the modular-addr-codec branch July 24, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants