Skip to content

Commit

Permalink
refactor: Remove RandomizedParams from AppModuleSimulation interface
Browse files Browse the repository at this point in the history
  • Loading branch information
poorphd committed Jul 9, 2024
1 parent cce1043 commit 447a4d7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
6 changes: 0 additions & 6 deletions x/epochs/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"math/rand"

"github.com/cosmos/cosmos-sdk/baseapp"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
Expand Down Expand Up @@ -165,11 +164,6 @@ func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.We
return []simtypes.WeightedProposalContent{}
}

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

// RegisterStoreDecoder registers a decoder for supply module's types
func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry) {
}
Expand Down
5 changes: 0 additions & 5 deletions x/erc20/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"math/rand"

"github.com/Canto-Network/Canto/v7/x/erc20/simulation"
abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -163,10 +162,6 @@ func (am AppModule) ProposalContents(simState module.SimulationState) []simtypes
return []simtypes.WeightedProposalContent{}
}

func (am AppModule) RandomizedParams(r *rand.Rand) []simtypes.LegacyParamChange {
return []simtypes.LegacyParamChange{}
}

func (am AppModule) RegisterStoreDecoder(decoderRegistry simtypes.StoreDecoderRegistry) {
}

Expand Down
8 changes: 0 additions & 8 deletions x/govshuttle/module_simulation.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package govshuttle

import (
"math/rand"

//"github.com/Canto-Network/Canto/v2/testutil/sample"
govshuttlesimulation "github.com/Canto-Network/Canto/v7/x/govshuttle/simulation"
"github.com/Canto-Network/Canto/v7/x/govshuttle/types"
Expand Down Expand Up @@ -44,12 +42,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(_ simtypes.StoreDecoderRegistry) {}

Expand Down
6 changes: 0 additions & 6 deletions x/inflation/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"math/rand"

"github.com/Canto-Network/Canto/v7/x/inflation/simulation"
abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -178,11 +177,6 @@ func (AppModule) ProposalMsgs(simState module.SimulationState) []simtypes.Weight
return simulation.ProposalMsgs()
}

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

// RegisterStoreDecoder registers a decoder for inflation module's types.
func (am AppModule) RegisterStoreDecoder(decoderRegistry simtypes.StoreDecoderRegistry) {
}
Expand Down
5 changes: 0 additions & 5 deletions x/onboarding/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
"math/rand"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
Expand Down Expand Up @@ -140,10 +139,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return []simtypes.WeightedProposalContent{}
}

func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.LegacyParamChange {
return []simtypes.LegacyParamChange{}
}

func (AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry) {
}

Expand Down

0 comments on commit 447a4d7

Please sign in to comment.