-
Notifications
You must be signed in to change notification settings - Fork 32
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
DAO refactoring: bring submit proposal to neutron msg #69
Conversation
/// * **proposal** is struct which contains proposal that should change network parameter | ||
pub fn submit_param_change_proposal(proposal: ParamChangeProposal) -> Self { | ||
NeutronMsg::SubmitProposal { | ||
proposals: Proposals { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mb it's Proposal
and not Proposals
?
@@ -110,6 +110,8 @@ pub enum NeutronMsg { | |||
timeout_timestamp: u64, | |||
fee: IbcFee, | |||
}, | |||
/// SubmitProposal sends a proposal to neutron's Admin module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rename to SubmitAdminProposal
- Write a comment that explicitly states that this type of messages can only be executed by the Neutron DAO
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] | ||
#[serde(rename_all = "snake_case")] | ||
/// Proposals defines the struct for various proposals which neutron may accept (currently only parameter change) | ||
pub struct Proposals { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rename to AdminProposal
- Add a comment that currently only param change proposals are implemented, but new types of admin proposals might be implemented in the future
@@ -110,6 +110,9 @@ pub enum NeutronMsg { | |||
timeout_timestamp: u64, | |||
fee: IbcFee, | |||
}, | |||
/// SubmitAdminProposal sends a proposal to neutron's Admin module. | |||
/// This type of messages can be only executed by Neutron DAO. | |||
SubmitProposal { admin_proposal: AdminProposal }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename to SubmitAdminProposal.
@@ -110,6 +110,9 @@ pub enum NeutronMsg { | |||
timeout_timestamp: u64, | |||
fee: IbcFee, | |||
}, | |||
/// SubmitAdminProposal sends a proposal to neutron's Admin module. | |||
/// This type of messages can be only executed by Neutron DAO. | |||
SubmitAdminProposal { admin_proposal: AdminProposal }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could be a good idea to hide the variant by some feature flag, lets say "dao", and hide other admin/dao specific types and functions as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's an interesting but not really useful idea. I'd discuss whether we really need it and, if yes, made it as a separate task
Required by this PR