cosmos-sdk/x/authz/CHANGELOG.md
github-actions[bot] 9013a76bbf
chore: fix spelling errors (#23004)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-12-19 12:15:23 +00:00

3.9 KiB

Changelog

[Unreleased]

Improvements

  • #21632 NewKeeper now takes address.Codec instead of authKeeper.

v0.2.0-rc.1 - 2024-12-18

Features

  • #18737 Added a limit of 200 grants pruned per BeginBlock and the PruneExpiredGrants message that prunes 75 expired grants on every run.
  • #20161 Added RevokeAll method 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.DispatchActions returns a slice of byte slices of proto marshaled anys instead of a slice of byte slices of sdk.Result.Data.
  • #20502 Accept on the Authorization interface now expects the authz environment in the context.Context. This is already done when Accept is called by k.DispatchActions, but should be done manually if Accept is called directly.
  • #19783 Removes the use of Accounts String() method
    • NewMsgExec, NewMsgGrant and NewMsgRevoke now takes strings as arguments instead of sdk.AccAddress.
    • ExportGenesis also returns an error.
    • IterateGrants returns an error, its handler function also returns an error.
  • #19637 NewKeeper doesn't take a message router anymore. Set the message router in the appmodule.Environment instead.
    • Exec no longer emits duplicate events containing a "authz_msg_index" attribute.
  • #19490 appmodule.Environment is received on the Keeper to get access to different application services.
  • #18737 Update the keeper method DequeueAndDeleteExpiredGrants to take a limit argument for the number of grants to prune.
  • #16509 AcceptResponse has been moved to sdk/types/authz and the Updated field is now of the type sdk.Msg instead of authz.Authorization.
  • #19740 InitGenesis and ExportGenesis module code and keeper code do not panic but return errors.

Consensus Breaking Changes

  • #19188 Remove creation of BaseAccount when 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