6.5 KiB
6.5 KiB
Changelog
[Unreleased]
v0.2.0-rc.1 - 2024-12-18
Features
- #20087 add
MaxVoteOptionsLen - #19592 Add custom tally function.
- #19304 Add
MsgSudoExecfor allowing executing any message as a sudo. - #19101 Add message based params configuration.
- #18532 Add SPAM vote to proposals.
- #18532 Add proposal types to proposals.
- #18620 Add optimistic proposals.
- #18762 Add multiple choice proposals.
Improvements
- #22832 Ensure the governance module has at least as many tokens as are deposited at genesis import.
- #20521 Legacy proposals can now access the
appmodule.Environmentpresent in thecontext.Contextof the handler. This is useful when migrating to server/v2 and removing the sdk context dependency. - #19741 Add
ExpeditedQuorumparameter specifying a minimum quorum for expedited proposals, that can differ from the regular quorum. - #19352
TallyResultinclude vote options counts. Those counts replicates the now deprecated (but not removed) yes, no, abstain and veto count fields. - #18976 Log and send an event when a proposal deposit refund or burn has failed.
- #18856 Add
ProposalCancelMaxPeriodparameter for modifying how long a proposal can be cancelled after it has been submitted. - #19167 Add
YesQuorumparameter specifying a minimum of yes vote in the total proposal voting power for the proposal to pass. - #18445 Extend gov config.
- #18532 Repurpose
govcliutils.NormalizeProposalTypeto work for gov v1 proposal types.
State Machine Breaking
- #19101 Add message based params configuration.
- #18532 Add SPAM vote to proposals.
- #18532 Add proposal types to proposals.
- #18620 Add optimistic proposals.
- #18762 Add multiple choice proposals.
- #18856 Add
ProposalCancelMaxPeriodparameters. - #19167 Add
YesQuorumparameter. - #20348 Limit gov execution of proposals to a max gas limit. The limit was added to parameters and can be modified. With this version the default is set to 10 million gas. Before it was infinite gas.
Client Breaking Changes
- #19101 Querying specific params types was deprecated in gov/v1 and has been removed. gov/v1beta1 rest unchanged.
- #22775 Refactored interactive proposal prompts to use
client/v2/autocli/promptpackage.
API Breaking Changes
- #19850 Removes the use of Accounts String method:
NewDeposit,NewMsgDeposit,NewMsgVote,NewMsgVoteWeighted,NewVote,NewProposal,NewMsgSubmitProposalnow take a string as an argument instead of ansdk.AccAddress.PromptandPromptMetadatatake an address.Codec as arguments.SetProposertakes a String as an argument instead of afmt.Stringer.
- #19481 Migrate module to use
appmodule.Environment;NewKeepernow takesappmodule.Environmentinstead of a store service and nobaseapp.MessageRouteranymore. - #19481 v1beta1 proposal handlers now take a
context.Contextinstead of ansdk.Context. - #19592
types.Configandtypes.DefaultConfighave been moved to the keeper package in order to support the custom tallying function. - #19349 Simplify state management in
x/gov. Notek.VotingPeriodProposalsandk.SetProposalare no longer needed and have been removed. - #18532 All functions that were taking an expedited bool parameter now take a
ProposalTypeparameter instead. - #17496 in
x/gov/types/v1beta1/vote.goNewVotewas removed, constructing the struct is required for this type. - #19101 Move
QueryProposalVotesParamsandQueryVoteParamsfrom thetypes/v1package toutilsand remove unusedquerier.gofile. - #19740
InitGenesisandExportGenesismodule code and keeper code do not panic but return errors.
Deprecated
- #18532 The field
v1.Proposal.Expeditedis deprecated and will be removed in the next release.