21 lines
727 B
Go
21 lines
727 B
Go
|
package simulation
|
||
|
|
||
|
import (
|
||
|
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
|
||
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
||
|
)
|
||
|
|
||
|
// OpWeightSubmitParamChangeProposal app params key for param change proposal
|
||
|
const OpWeightSubmitParamChangeProposal = "op_weight_submit_param_change_proposal"
|
||
|
|
||
|
// ProposalContents defines the module weighted proposals' contents
|
||
|
func ProposalContents(paramChanges []simulation.ParamChange) []simulation.WeightedProposalContent {
|
||
|
return []simulation.WeightedProposalContent{
|
||
|
{
|
||
|
AppParamsKey: OpWeightSubmitParamChangeProposal,
|
||
|
DefaultWeight: simappparams.DefaultWeightParamChangeProposal,
|
||
|
ContentSimulatorFn: SimulateParamChangeProposalContent(paramChanges),
|
||
|
},
|
||
|
}
|
||
|
}
|