From 114614bac36e9411ff12876a3120a3afd35c1b13 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 86a2d1ff14..b3a620589f 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" @@ -214,17 +213,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) { }