mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
26 lines
532 B
Go
26 lines
532 B
Go
package simulation
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
|
|
"github.com/cosmos/cosmos-sdk/x/simulation"
|
|
|
|
"github.com/0glabs/0g-chain/x/bep3/types"
|
|
)
|
|
|
|
const (
|
|
keyAssetParams = "AssetParams"
|
|
)
|
|
|
|
// ParamChanges defines the parameters that can be modified by param change proposals
|
|
func ParamChanges(r *rand.Rand) []simulation.ParamChange {
|
|
return []simulation.ParamChange{
|
|
simulation.NewSimParamChange(types.ModuleName, keyAssetParams,
|
|
func(r *rand.Rand) string {
|
|
return fmt.Sprintf("\"%s\"", GenSupportedAssets(r))
|
|
},
|
|
),
|
|
}
|
|
}
|