Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
3.9 KiB
3.9 KiB
Changelog
[Unreleased]
Improvements
- #21632
NewKeepernow takesaddress.Codecinstead ofauthKeeper.
v0.2.0-rc.1 - 2024-12-18
Features
- #18737 Added a limit of 200 grants pruned per
BeginBlockand thePruneExpiredGrantsmessage that prunes 75 expired grants on every run. - #20161 Added
RevokeAllmethod to revoke all grants at once. - #20687 Prevent user to grant authz MsgGrant to other accounts. Preventing user from accidentally authorizing their entire account to a different account.
Improvements
- #18070 Use clientCtx address codecs in cli.
API Breaking Changes
- #21044
k.DispatchActionsreturns a slice of byte slices of proto marshaled anys instead of a slice of byte slices ofsdk.Result.Data. - #20502
Accepton theAuthorizationinterface now expects the authz environment in thecontext.Context. This is already done whenAcceptis called byk.DispatchActions, but should be done manually ifAcceptis called directly. - #19783 Removes the use of Accounts String() method
NewMsgExec,NewMsgGrantandNewMsgRevokenow takes strings as arguments instead ofsdk.AccAddress.ExportGenesisalso returns an error.IterateGrantsreturns an error, its handler function also returns an error.
- #19637
NewKeeperdoesn't take a message router anymore. Set the message router in theappmodule.Environmentinstead.Execno longer emits duplicate events containing a "authz_msg_index" attribute.
- #19490
appmodule.Environmentis received on the Keeper to get access to different application services. - #18737 Update the keeper method
DequeueAndDeleteExpiredGrantsto take a limit argument for the number of grants to prune. - #16509
AcceptResponsehas been moved to sdk/types/authz and theUpdatedfield is now of the typesdk.Msginstead ofauthz.Authorization. - #19740
InitGenesisandExportGenesismodule code and keeper code do not panic but return errors.
Consensus Breaking Changes
- #19188 Remove creation of
BaseAccountwhen sending a message to an account that does not exist.
Bug Fixes
- #19874 Now when querying transaction events (cosmos.tx.v1beta1.Service/GetTxsEvent) the response will contain only UTF-8 characters