cosmos-sdk/x/params/simulation/proposals.go
Alexander Peters ea908cef68
feat(sims): Add simsx support to modules (#24145)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
2025-04-02 13:23:36 +00:00

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),
),
}
}