2022-04-28 07:43:39 +00:00
|
|
|
package simulation
|
|
|
|
|
|
|
|
// DONTCOVER
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"math/rand"
|
|
|
|
|
2022-09-07 06:36:11 +00:00
|
|
|
"github.com/cerc-io/laconicd/x/evm/types"
|
2022-04-28 07:43:39 +00:00
|
|
|
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
keyExtraEIPs = "ExtraEIPs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ParamChanges defines the parameters that can be modified by param change proposals
|
|
|
|
// on the simulation.
|
|
|
|
func ParamChanges(r *rand.Rand) []simtypes.ParamChange {
|
|
|
|
return []simtypes.ParamChange{
|
|
|
|
simulation.NewSimParamChange(types.ModuleName, keyExtraEIPs,
|
|
|
|
func(r *rand.Rand) string {
|
|
|
|
return fmt.Sprintf("\"%d\"", genExtraEIPs(r))
|
|
|
|
},
|
|
|
|
),
|
|
|
|
}
|
|
|
|
}
|