Skip to content

Commit

Permalink
refactor: remove RandomizedParams from appmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpioborn committed Jan 24, 2024
1 parent 9c5eae0 commit 9fd1ebb
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 37 deletions.
5 changes: 0 additions & 5 deletions x/bet/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return betsimulation.ParamChanges(r)
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = betsimulation.NewDecodeStore(am.cdc)
Expand Down
6 changes: 0 additions & 6 deletions x/house/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package house

import (
//#nosec
"math/rand"

"github.com/cosmos/cosmos-sdk/baseapp"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
Expand Down Expand Up @@ -35,11 +34,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return housesimulation.ParamChanges(r)
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = housesimulation.NewDecodeStore(am.cdc)
Expand Down
5 changes: 0 additions & 5 deletions x/market/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return marketsimulation.ParamChanges(r)
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = marketsimulation.NewDecodeStore(am.cdc)
Expand Down
6 changes: 0 additions & 6 deletions x/mint/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package mint

import (
//#nosec
"math/rand"

"github.com/cosmos/cosmos-sdk/baseapp"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
Expand Down Expand Up @@ -35,11 +34,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return mintsimulation.ParamChanges(r)
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = mintsimulation.NewDecodeStore(am.cdc)
Expand Down
5 changes: 0 additions & 5 deletions x/orderbook/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return orderbooksimulation.ParamChanges(r)
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = orderbooksimulation.NewDecodeStore(am.cdc)
Expand Down
5 changes: 0 additions & 5 deletions x/ovm/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.LegacyParamChange {
return []simtypes.LegacyParamChange{}
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = ovmsimulation.NewDecodeStore(am.cdc)
Expand Down
5 changes: 0 additions & 5 deletions x/reward/module_simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
}

// RandomizedParams creates randomized param changes for the simulator
func (am AppModule) RandomizedParams(_ *rand.Rand) []simtypes.LegacyParamChange {
return []simtypes.LegacyParamChange{}
}

// RegisterStoreDecoder registers a decoder
func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {}

Expand Down

0 comments on commit 9fd1ebb

Please sign in to comment.