2020-03-30 15:02:43 +00:00
|
|
|
package simulation
|
|
|
|
|
|
|
|
import (
|
2020-04-12 03:54:45 +00:00
|
|
|
"fmt"
|
2020-03-30 15:02:43 +00:00
|
|
|
"math/rand"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
2020-04-12 03:54:45 +00:00
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
"github.com/0glabs/0g-chain/x/bep3/types"
|
2020-04-12 03:54:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-08-17 15:06:59 +00:00
|
|
|
keyAssetParams = "AssetParams"
|
2020-03-30 15:02:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ParamChanges defines the parameters that can be modified by param change proposals
|
|
|
|
func ParamChanges(r *rand.Rand) []simulation.ParamChange {
|
2020-04-12 03:54:45 +00:00
|
|
|
return []simulation.ParamChange{
|
2020-08-17 15:06:59 +00:00
|
|
|
simulation.NewSimParamChange(types.ModuleName, keyAssetParams,
|
2020-04-12 03:54:45 +00:00
|
|
|
func(r *rand.Rand) string {
|
2020-08-17 15:06:59 +00:00
|
|
|
return fmt.Sprintf("\"%s\"", GenSupportedAssets(r))
|
2020-04-12 03:54:45 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
}
|
2020-03-30 15:02:43 +00:00
|
|
|
}
|