-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: Move x/auth's AccountI and ModuleAccountI interfaces to types package #13937
Conversation
…ita/remove-cyclic-deps-auth
// and a pubkey for authentication purposes. | ||
// | ||
// Many complex conditions can be used in the concrete struct which implements AccountI. | ||
type AccountI interface { |
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.
we should provide an alias here but mark it as deprecated
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.
Are we actually even willing to move given: #13211?
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.
When will that land?
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.
It's up to us when that lands
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.
the issue proposed seems like a large refactor. anyways touched base with likhita on next steps here for leaving the interface here as a wrapper of the interface in types, then we call this one deprecated. I think the issue we can start on, but its unclear how long it will take us
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
// and a pubkey for authentication purposes. | ||
// | ||
// Many complex conditions can be used in the concrete struct which implements AccountI. | ||
type AccountI interface { |
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.
lets leave this as a wrapper of the interface for backwards compatibility for now
This reverts commit 9a9cf2f.
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
…ita/remove-cyclic-deps-auth
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 don't like the name of types/dependencies.go
as it does not convey what there is inside it.
Otherwise, lgtm!
Can you look into the rosetta test failure as well? It seems related to this PR. |
…ita/remove-cyclic-deps-auth
[Cosmos SDK - SimApp] Kudos, SonarCloud Quality Gate passed! |
[Cosmos SDK - Rosetta] Kudos, SonarCloud Quality Gate passed! |
[Cosmos SDK] Kudos, SonarCloud Quality Gate passed! |
Description
ref: #13025
This PR moves
AccountI
andModuleAccountI
interface totypes
package which removes few dependencies fromx/auth
module.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...
!
to the type prefix if API or client breaking changeCHANGELOG.md
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...
!
in the type prefix if API or client breaking change