You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create some flags and helper functions for commands to use when the command is for submitting a governance proposal.
Problem Definition
With the changes in the gov module, specifically the deprecation of modules adding sub-commands to tx gov, having CLI commands to submit specific governance proposals is left to each module. But all of them will need a common set of options, e.g. deposit, and will always need a MsgSubmitProposal with those fields.
Proposal
Create public flag variables for deposit, metadata, title, and summary.
Create a helper function that adds them to a command (similar to AddPaginationFlagsToCmd).
Create a helper function that reads the flags them and returns a MsgSubmitProposal with appropriate fields populated (similar to ReadPageRequest). This should also populate the proposer field using the --from flag.
The text was updated successfully, but these errors were encountered:
Summary
Create some flags and helper functions for commands to use when the command is for submitting a governance proposal.
Problem Definition
With the changes in the gov module, specifically the deprecation of modules adding sub-commands to
tx gov
, having CLI commands to submit specific governance proposals is left to each module. But all of them will need a common set of options, e.g.deposit
, and will always need aMsgSubmitProposal
with those fields.Proposal
deposit
,metadata
,title
, andsummary
.AddPaginationFlagsToCmd
).MsgSubmitProposal
with appropriate fields populated (similar toReadPageRequest
). This should also populate theproposer
field using the--from
flag.The text was updated successfully, but these errors were encountered: