4.0 KiB
4.0 KiB
Changelog
[Unreleased]
v0.2.0-rc.1 - 2024-12-18
Features
- #17569 Introduce a new message type,
MsgBurn, to burn coins. - #20014 Support app wiring for
SendRestrictionFn.
Improvements
- #18636
SendCoinsFromModuleToAccount,SendCoinsFromModuleToModule,SendCoinsFromAccountToModule,DelegateCoinsFromAccountToModule,UndelegateCoinsFromModuleToAccount,MintCoinsandBurnCoinsmethods now returns an error instead of panicking if any module accounts does not exist or unauthorized. - #20517
SendCoinsnow checks forSendRestrictionsbefore instead of after deducting coins usingsubUnlockedCoins. - #20354 Reduce the number of
ValidateDenomcalls inbank.SendCoins. - #21976 Resolve a footgun by swapping send restrictions check in
InputOutputCoinsbefore coin deduction.
Bug Fixes
- #21407 Fix handling of negative spendable balances.
- The
SpendableBalancesquery now correctly reports spendable balances when one or more denoms are negative (used to report all zeros). Also, this query now looks up only the balances for the requested page. - The
SpendableCoinskeeper method now returns the positive spendable balances even when one or more denoms have more locked than available (used to return an emptyCoins). - The
SpendableCoinkeeper method now returns a zero coin if there's more locked than available (used to return a negative coin).
- The
- #22543 Fix
DenomMetadatarpc allow value with slashes
API Breaking Changes
- #19954 Removal of the Address.String() method and related changes:
- Changed
NewInput,NewOutput,NewQueryBalanceRequest,NewQueryAllBalancesRequest,NewQuerySpendableBalancesRequestto accept a string instead of anAccAddress. - Added an address codec as an argument to
NewSendAuthorization. - Added an address codec as an argument to
SanitizeGenesisBalanceswhich also returns an error. - (simulation)
RandomGenesisBalancesalso returns an error.
- Changed
- #17569
BurnCoinstakes an address instead of a module name - #19477
appmodule.Environmentis passed to bankNewKeeper - #19627 The genesis api has been updated to match
appmodule.HasGenesis. - #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