-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter Change Proposal #3565
Comments
Hi, |
@mossid is there any progress on this? |
Example possible parameter change proposals:
|
This was referenced Apr 16, 2019
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add
ParameterChangeProposal
to params proposal type.type Proposal
is already defined as aninterface
, andTextProposal
implements it without doing actual state transition, so we can define additional proposal types by embeddingTextProposal
.To apply the proposal to the state, we can add
type ProposalHandler
. Modules who wants to add new proposal type can definefunc NewProposalHandler(k Keeper) ProposalHandler
, which can be registered togov.Keeper
. When a new proposal has been passed, the keeper will pass the proposal into the handler, where then the other keepers modify the state.type Proposal
will moved intotypes
so the modules who want to define newProposal
type can just importtypes
notgov
.The text was updated successfully, but these errors were encountered: