2020-03-29 19:50:32 +00:00
|
|
|
package simulation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
"github.com/cosmos/cosmos-sdk/types/module"
|
|
|
|
|
2020-04-27 18:19:05 +00:00
|
|
|
"github.com/kava-labs/kava/x/committee/types"
|
2020-03-29 19:50:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// RandomizedGenState generates a random GenesisState for the module
|
|
|
|
func RandomizedGenState(simState *module.SimulationState) {
|
|
|
|
|
|
|
|
// TODO implement this fully
|
|
|
|
// - randomly generating the genesis params
|
|
|
|
// - overwriting with genesis provided to simulation
|
|
|
|
genesisState := types.DefaultGenesisState()
|
|
|
|
|
|
|
|
fmt.Printf("Selected randomly generated %s parameters:\n%s\n", types.ModuleName, codec.MustMarshalJSONIndent(simState.Cdc, genesisState))
|
|
|
|
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(genesisState)
|
|
|
|
}
|