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 GRPc Query for Upgrade #3491

Merged

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Apr 19, 2023

Description

for review after #3456 is merged

closes: #3481

Commit Message / Changelog Entry

N/A feature branch


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 and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

colin-axner and others added 30 commits April 13, 2023 10:50
…e-basic-functions' into cian/issue#3451-add-verifiable-upgrade-type-and-validate-basic-functions
…ype' of https://github.com/cosmos/ibc-go into cian/issue#3447-modify-upgradeinit-to-use-new-upgrade-type
…ype' into cian/issue#3481-grpc-query-for-type.upgrade
@chatton chatton changed the title Add GRPc uery for Upgrade Add GRPc Query for Upgrade Apr 19, 2023
@chatton chatton added this to the 04-channel upgrades alpha milestone Apr 19, 2023
@chatton chatton changed the base branch from cian/issue#3447-modify-upgradeinit-to-use-new-upgrade-type to 04-channel-upgrades April 19, 2023 12:23
@chatton chatton changed the base branch from 04-channel-upgrades to cian/issue#3447-modify-upgradeinit-to-use-new-upgrade-type April 19, 2023 12:24
Base automatically changed from cian/issue#3447-modify-upgradeinit-to-use-new-upgrade-type to 04-channel-upgrades April 19, 2023 14:30
@chatton chatton marked this pull request as ready for review April 19, 2023 14:36
@crodriguezvega crodriguezvega removed this from the 04-channel upgrades alpha milestone Apr 19, 2023
modules/core/04-channel/client/cli/query.go Show resolved Hide resolved
modules/core/04-channel/client/cli/query.go Outdated Show resolved Hide resolved
modules/core/04-channel/keeper/grpc_query.go Show resolved Hide resolved
@colin-axner colin-axner requested a review from charleenfei April 24, 2023 15:37
@@ -11,6 +11,7 @@ import (
"github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
ibctesting "github.com/cosmos/ibc-go/v7/testing"
"github.com/cosmos/ibc-go/v7/testing/mock"
)

const doesnotexist = "doesnotexist"
Copy link
Contributor

Choose a reason for hiding this comment

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

this is unrelated to this PR i guess, but this const is a bit random here if we are just using string values in all the rest of the tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

diff would be quite large if I changed all of these here

}
},
false,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add one more test for querying an upgrade on a channel that hasn't initiated an upgrade yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test is actually just directly setting the upgrade in state, the upgrade isn't being set in the ChanUpgradeInit function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually we can still do this by just deleting the key 👍

Copy link
Contributor

@charleenfei charleenfei left a comment

Choose a reason for hiding this comment

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

one nit but otherwise nice work!

@chatton chatton enabled auto-merge (squash) April 26, 2023 14:39
@chatton chatton merged commit 123152f into 04-channel-upgrades Apr 26, 2023
@chatton chatton deleted the cian/issue#3481-grpc-query-for-type.upgrade branch April 26, 2023 14:44
@damiannolan damiannolan mentioned this pull request May 16, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants