From 2a4ad6b90fd06b05a3ba58f1191ea663b97e9eec Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Wed, 12 Apr 2023 13:53:28 +0200 Subject: [PATCH] migrate simulation See https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md#simulation --- x/ccv/consumer/module.go | 12 ------------ x/ccv/provider/module.go | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/x/ccv/consumer/module.go b/x/ccv/consumer/module.go index 2e22e151a1..ff22d2378d 100644 --- a/x/ccv/consumer/module.go +++ b/x/ccv/consumer/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "math/rand" abci "github.com/cometbft/cometbft/abci/types" "github.com/gorilla/mux" @@ -211,17 +210,6 @@ func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.V func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } -// ProposalContents doesn't return any content functions for governance proposals. -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { - return nil -} - -// RandomizedParams creates randomized consumer param changes for the simulator. -// TODO -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return nil -} - // RegisterStoreDecoder registers a decoder for consumer module's types // TODO func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { diff --git a/x/ccv/provider/module.go b/x/ccv/provider/module.go index e4cd27ba7c..1e55d99fce 100644 --- a/x/ccv/provider/module.go +++ b/x/ccv/provider/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "fmt" - "math/rand" abci "github.com/cometbft/cometbft/abci/types" "github.com/cosmos/cosmos-sdk/client" @@ -173,16 +172,6 @@ func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.V func (AppModule) GenerateGenesisState(simState *module.SimulationState) { } -// ProposalContents doesn't return any content functions for governance proposals. -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { - return nil -} - -// RandomizedParams creates randomized provider param changes for the simulator. -func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange { - return nil -} - // RegisterStoreDecoder registers a decoder for provider module's types func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) { }