6.2 KiB
6.2 KiB
Changelog
[Unreleased]
v0.2.0-rc.1 - 2024-12-18
Improvements
- #22832 Ensure the distribution module has at least as many tokens as outstanding rewards at genesis import
- #20790
x/distributiondoes not depend onx/protocolpoolanymore, nowx/distributiononly does token transfers andx/protocolpooldoes the rest. - #18636
CalculateDelegationRewardsandDelegationTotalRewardsmethods no longer panics on any sanity checks and instead returns appropriate errors.
API Breaking Changes
- #20790
x/distributiondoes not depend onx/protocolpoolanymore, meaning NewAppModule and NewKeeper do not take it as an argument. - #20588
x/distributionnow takes cometService in order to get consensus related information. - #19868 Removes Accounts String method
NewMsgSetWithdrawAddressnow takes strings as argument instead ofsdk.AccAddress.NewGenesisStatenow takes a string as argument instead ofsdk.ConsAddress.
- #19445
appmodule.Environmentis received on the Keeper to get access to different application services - #17115 Use collections for
PreviousProposerandValidatorSlashEvents:- remove from
Keeper:GetPreviousProposerConsAddr,SetPreviousProposerConsAddr,GetValidatorHistoricalReferenceCount,GetValidatorSlashEvent,SetValidatorSlashEvent.
- remove from
- #16483 use collections for
DelegatorStartingInfostate management:- remove
Keeper:IterateDelegatorStartingInfo,GetDelegatorStartingInfo,SetDelegatorStartingInfo,DeleteDelegatorStartingInfo,HasDelegatorStartingInfo
- remove
- #16571 use collections for
ValidatorAccumulatedCommissionstate management:- remove
Keeper:IterateValidatorAccumulatedCommission,GetValidatorAccumulatedCommission,SetValidatorAccumulatedCommission,DeleteValidatorAccumulatedCommission
- remove
- #16590 use collections for
ValidatorOutstandingRewardsstate management:- remove
Keeper:IterateValidatorOutstandingRewards,GetValidatorOutstandingRewards,SetValidatorOutstandingRewards,DeleteValidatorOutstandingRewards
- remove
- #16607 use collections for
ValidatorHistoricalRewardsstate management:- remove
Keeper:IterateValidatorHistoricalRewards,GetValidatorHistoricalRewards,SetValidatorHistoricalRewards,DeleteValidatorHistoricalRewards,DeleteValidatorHistoricalReward,DeleteAllValidatorHistoricalRewards
- remove
- #17657 The
FundCommunityPoolandDistributeFromFeePoolkeeper methods are now removed from x/distribution. - #16440 use collections for
DelegatorWithdrawAddresState:- remove
Keeper:SetDelegatorWithdrawAddr,DeleteDelegatorWithdrawAddr,IterateDelegatorWithdrawAddrs.
- remove
- #16459 use collections for
ValidatorCurrentRewardsstate management:- remove
Keeper:IterateValidatorCurrentRewards,GetValidatorCurrentRewards,SetValidatorCurrentRewards,DeleteValidatorCurrentRewards
- remove
- #17657 ~The distribution module keeper now takes a new argument
PoolKeeperin addition.~ Reverted on #20790 - #17670
AllocateTokenstakescomet.VoteInfosinstead of[]abci.VoteInfo - #19740
InitGenesisandExportGenesismodule code and keeper code do not panic but return errors.
CLI Breaking Changes
- #17963
appd tx distribution withdraw-rewardsnow only withdraws rewards for the delegator's own delegations. For withdrawing validators commission, useappd tx distribution withdraw-validator-commission.
State Machine Breaking
- #20735 Remove PreviousProposer from the state machine.
- #17657 Migrate community pool funds from
x/distributiontox/protocolpool. - #17115 Migrate
PreviousProposerto collections. - #18539 Introduce
FeePool.DecimalPoolto replaceFeePool.CommunityPool, which temporarily holds fractional rewards until they are distributed to the community pool every 1000 blocks.
Client Breaking Changes
- #17657 Deprecate
CommunityPoolandFundCommunityPoolrpc methods. Usex/protocolpoolmodule's rpc methods instead.
Bug Fixes
- #19301 Fix vulnerability in
incrementReferenceCountin distribution.