-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Param Proposal Simulation Messages; Minting Params Fix #4244
Conversation
@@ -76,24 +92,6 @@ func SimulateSubmittingVotingAndSlashingForProposal(k gov.Keeper) simulation.Ope | |||
} | |||
} | |||
|
|||
// SimulateMsgSubmitProposal simulates a msg Submit Proposal | |||
// Note: Currently doesn't ensure that the proposal txt is in JSON form | |||
func SimulateMsgSubmitProposal(k gov.Keeper) simulation.Operation { |
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.
dead code
Codecov Report
@@ Coverage Diff @@
## master #4244 +/- ##
==========================================
- Coverage 60.42% 60.42% -0.01%
==========================================
Files 218 218
Lines 15421 15426 +5
==========================================
+ Hits 9318 9321 +3
- Misses 5452 5454 +2
Partials 651 651 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4244 +/- ##
==========================================
- Coverage 60.42% 60.42% -0.01%
==========================================
Files 218 218
Lines 15421 15426 +5
==========================================
+ Hits 9318 9321 +3
- Misses 5452 5454 +2
Partials 651 651 |
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.
A few comments, structure looks fine.
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.
overall LGTM, some minor comments only for consistency
@@ -197,11 +198,11 @@ func appStateRandomizedFn(r *rand.Rand, accs []simulation.Account, genesisTimest | |||
slashingGenesis := slashing.GenesisState{ |
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.
ditto
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.
Unfortunately, slashing has no such function. Separate PR.
@@ -6,6 +6,8 @@ import ( | |||
"github.com/cosmos/cosmos-sdk/x/params" | |||
) | |||
|
|||
var minterKey = []byte{0x00} // the one key to use for the keeper store | |||
|
|||
const ( | |||
// ModuleName is the name of the module | |||
ModuleName = "minting" |
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.
this differs with the module name (?)
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.
indeed. I didn't write this module -- it should be changed. Separate PR though.
|
||
// Implements params.ParamSet | ||
func (p *Params) ParamSetPairs() params.ParamSetPairs { | ||
return params.ParamSetPairs{ |
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.
it'd be cool to use params.NewParamSetPairs
here
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 don't think we need New*
constructor for slice literals, but certainly their contents.
Addressed your comments @fedekunze |
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.
LGTM
params.ParamSet
so we can set params with their respective unique keys individuallycloses: #4235
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
clog add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: