29 lines
855 B
Go
29 lines
855 B
Go
package simulation
|
|
|
|
import (
|
|
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
|
)
|
|
|
|
// will be removed in the future
|
|
const (
|
|
// OpWeightSubmitParamChangeProposal app params key for param change proposal
|
|
OpWeightSubmitParamChangeProposal = "op_weight_submit_param_change_proposal"
|
|
DefaultWeightParamChangeProposal = 5
|
|
)
|
|
|
|
// ProposalContents defines the module weighted proposals' contents
|
|
//
|
|
// will be removed in the future
|
|
//
|
|
//nolint:staticcheck // used for legacy testing
|
|
func ProposalContents(paramChanges []simtypes.LegacyParamChange) []simtypes.WeightedProposalContent {
|
|
return []simtypes.WeightedProposalContent{
|
|
simulation.NewWeightedProposalContent(
|
|
OpWeightSubmitParamChangeProposal,
|
|
DefaultWeightParamChangeProposal,
|
|
SimulateParamChangeProposalContent(paramChanges),
|
|
),
|
|
}
|
|
}
|