-
Notifications
You must be signed in to change notification settings - Fork 628
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
E2E Upgrade Part 2 - Human Readable IBC Denom #4649
Conversation
…://github.com/cosmos/ibc-go into cian/issue#4216-add-v7-to-v8-e2e-upgrade-test
…n/issue#4645-v7-to-v8-upgrade-test-part-2
@@ -103,6 +103,10 @@ func (s *TransferTestSuite) TestMsgTransfer_Succeeds_Nonincentivized() { | |||
|
|||
expected := testvalues.IBCTransferAmount | |||
s.Require().Equal(expected, actualBalance.Int64()) | |||
|
|||
if testvalues.HumanReadableDenomFeatureReleases.IsSupported(chainBVersion) { | |||
s.AssertHumanReadableDenom(ctx, chainB, chainADenom, channelA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put together both assertions (check metadata is stored, check that balance returns the human readable denom). I hope that's ok, @chatton.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
e2e/testvalues/values.go
Outdated
@@ -108,3 +108,8 @@ var LocalhostClientFeatureReleases = semverutil.FeatureReleases{ | |||
"v7.1", | |||
}, | |||
} | |||
|
|||
// HumanReadableDenomFeatureReleases represents the releases the human readable denom feature was released in. | |||
var HumanReadableDenomFeatureReleases = semverutil.FeatureReleases{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could also call this DenomMetadataFeatureReleases
might be the tiniest bit less wordy, but whatever, happy with this too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll maybe do the rename in #4660 to avoid needing to do a full re-run of the upgrades here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm the upgrade test failed anyway :D
@damiannolan, I accidentally reverted a change I made previously. I updated the test to upgrade chain B (so we can test for the denom on chain B based on how we did the ibc transfer) |
@@ -394,3 +383,30 @@ func (s *E2ETestSuite) QueryGranterGrants(ctx context.Context, chain *cosmos.Cos | |||
|
|||
return grants.Grants, nil | |||
} | |||
|
|||
// QueryBalances returns all the balances on the given chain for the provided address. | |||
func (s *E2ETestSuite) QueryAllBalances(ctx context.Context, chain ibc.Chain, address string, resolveDenom bool) (sdk.Coins, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this down here to keep both usages of the bank query client together.
e2e/testvalues/values.go
Outdated
@@ -48,11 +48,6 @@ func SolomachineClientID(id int) string { | |||
return fmt.Sprintf("06-solomachine-%d", id) | |||
} | |||
|
|||
// TokenMetadataFeatureReleases represents the releases the token metadata was released in. | |||
var TokenMetadataFeatureReleases = semverutil.FeatureReleases{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted this and used the one @chatton added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops I missed this and deleted the one I added and use the one you used 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @chatton!
@@ -71,7 +71,7 @@ jobs: | |||
chain-binary: simd | |||
chain-a-tag: v7.0.0 | |||
chain-b-tag: v7.0.0 | |||
chain-upgrade-tag: pr-4591 # TODO: update this to a real tag once v8 is released | |||
chain-upgrade-tag: main # TODO: update this to a real tag once v8 is released |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened #4674.
Description
closes: #4216
This PR adds a helper fn which asserts the human readable denom is present
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.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.