Skip to content

Commit

Permalink
try removing simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jun 24, 2022
1 parent 9d0f3cc commit 5a06bf1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 235 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/make -f

PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
Expand Down
37 changes: 2 additions & 35 deletions x/mint/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/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
Expand All @@ -16,19 +15,16 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"

"github.com/osmosis-labs/osmosis/v7/x/mint/client/cli"
"github.com/osmosis-labs/osmosis/v7/x/mint/client/rest"
"github.com/osmosis-labs/osmosis/v7/x/mint/keeper"
"github.com/osmosis-labs/osmosis/v7/x/mint/simulation"
"github.com/osmosis-labs/osmosis/v7/x/mint/types"
)

var (
_ module.AppModule = AppModule{}
_ module.AppModuleBasic = AppModuleBasic{}
_ module.AppModuleSimulation = AppModule{}
_ module.AppModule = AppModule{}
_ module.AppModuleBasic = AppModuleBasic{}
)

// AppModuleBasic defines the basic application module used by the mint module.
Expand Down Expand Up @@ -162,34 +158,5 @@ func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.Validato
return []abci.ValidatorUpdate{}
}

// ___________________________________________________________________________

// AppModuleSimulation functions

// GenerateGenesisState creates a randomized GenState of the mint module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
simulation.RandomizedGenState(simState)
}

// ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent {
return nil
}

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

// RegisterStoreDecoder registers a decoder for mint module's types.
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry) {
sdr[types.StoreKey] = simulation.NewDecodeStore(am.cdc)
}

// WeightedOperations doesn't return any mint module operation.
func (AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation {
return nil
}

// ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) ConsensusVersion() uint64 { return 1 }
27 changes: 0 additions & 27 deletions x/mint/simulation/decoder.go

This file was deleted.

48 changes: 0 additions & 48 deletions x/mint/simulation/decoder_test.go

This file was deleted.

50 changes: 0 additions & 50 deletions x/mint/simulation/genesis.go

This file was deleted.

74 changes: 0 additions & 74 deletions x/mint/simulation/genesis_test.go

This file was deleted.

0 comments on commit 5a06bf1

Please sign in to comment.