mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-01-13 16:55:17 +00:00
33 lines
811 B
Go
33 lines
811 B
Go
package simulation
|
|
|
|
// import (
|
|
// "fmt"
|
|
// "math/rand"
|
|
|
|
// "github.com/cosmos/cosmos-sdk/x/simulation"
|
|
|
|
// "github.com/0glabs/0g-chain/x/swap/types"
|
|
// )
|
|
|
|
// const (
|
|
// keyAllowedPools = "AllowedPools"
|
|
// keySwapFee = "SwapFee"
|
|
// )
|
|
|
|
// // ParamChanges defines the parameters that can be modified by param change proposals
|
|
// // on the simulation
|
|
// func ParamChanges(r *rand.Rand) []simulation.ParamChange {
|
|
// return []simulation.ParamChange{
|
|
// simulation.NewSimParamChange(types.ModuleName, keyAllowedPools,
|
|
// func(r *rand.Rand) string {
|
|
// return fmt.Sprintf("\"%s\"", GenAllowedPools(r))
|
|
// },
|
|
// ),
|
|
// simulation.NewSimParamChange(types.ModuleName, keySwapFee,
|
|
// func(r *rand.Rand) string {
|
|
// return fmt.Sprintf("\"%s\"", GenSwapFee(r))
|
|
// },
|
|
// ),
|
|
// }
|
|
// }
|