-
Notifications
You must be signed in to change notification settings - Fork 4.2k
refactor(x/authz)!: use router service #19637
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,20 +25,17 @@ Ref: https://keepachangelog.com/en/1.0.0/ | |||||||||||||||||
|
|
||||||||||||||||||
| ## [Unreleased] | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Consens Breaking Changes | ||||||||||||||||||
|
|
||||||||||||||||||
| * [#19188](https://github.com/cosmos/cosmos-sdk/pull/19188) Remove creation of `BaseAccount` when sending a message to an account that does not exist | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Features | ||||||||||||||||||
|
|
||||||||||||||||||
| * [#18737](https://github.com/cosmos/cosmos-sdk/pull/18737) Added a limit of 200 grants pruned per `BeginBlock` and the `PruneExpiredGrants` message that prunes 75 expired grants on every run. | ||||||||||||||||||
|
|
||||||||||||||||||
| ### Improvements | ||||||||||||||||||
|
|
||||||||||||||||||
| ### API Breaking Changes | ||||||||||||||||||
|
|
||||||||||||||||||
| * [#19490](https://github.com/cosmos/cosmos-sdk/pull/19490) `appmodule.Environment` is received on the Keeper to get access to different application services | ||||||||||||||||||
| * [#19637](https://github.com/cosmos/cosmos-sdk/pull/19637) `NewKeeper` doesn't take a message router anymore. Set the message router in the `appmodule.Environment` instead. | ||||||||||||||||||
| * [#19490](https://github.com/cosmos/cosmos-sdk/pull/19490) `appmodule.Environment` is received on the Keeper to get access to different application services. | ||||||||||||||||||
| * [#18737](https://github.com/cosmos/cosmos-sdk/pull/18737) Update the keeper method `DequeueAndDeleteExpiredGrants` to take a limit argument for the number of grants to prune. | ||||||||||||||||||
| * [#16509](https://github.com/cosmos/cosmos-sdk/pull/16509) `AcceptResponse` has been moved to sdk/types/authz and the `Updated` field is now of the type `sdk.Msg` instead of `authz.Authorization`. | ||||||||||||||||||
|
Comment on lines
+34
to
37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding more descriptive text to clarify the impact of the API breaking changes for developers. While the technical terms and references are correctly used, a brief explanation of why these changes were made and how developers can adapt would enhance the documentation. For instance: + * [#19637](https://github.com/cosmos/cosmos-sdk/pull/19637) The `NewKeeper` function signature has been updated: it no longer requires a message router parameter. Developers should now set the message router directly in the `appmodule.Environment`.
+ * [#19490](https://github.com/cosmos/cosmos-sdk/pull/19490) The `appmodule.Environment` is now explicitly passed to the Keeper, allowing access to various application services more directly.This approach provides clearer guidance to developers on adapting to the new changes. Committable suggestion
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| ### Bug Fixes | ||||||||||||||||||
| ### Consensus Breaking Changes | ||||||||||||||||||
|
|
||||||||||||||||||
| * [#19188](https://github.com/cosmos/cosmos-sdk/pull/19188) Remove creation of `BaseAccount` when sending a message to an account that does not exist. | ||||||||||||||||||
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.
If we merge this first I'll go update the api usage in the gov pr.