Skip to content

Commit

Permalink
replace cosmossdk.io/simapp/params to github.com/cosmos/cosmos-sdk/ty…
Browse files Browse the repository at this point in the history
…pes/module/testutil
  • Loading branch information
Pantani authored and Pantani committed Jul 3, 2023
1 parent d7fd56b commit 380b264
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ignite/templates/app/files/app/sim_bench_test.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

// Profile with:
// /usr/local/go/bin/go test -benchmem -run=^$ cosmossdk.io/simapp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out
// `go test -benchmem -run=^$ -bench ^BenchmarkFullAppSimulation ./app -Commit=true -cpuprofile cpu.out`
func BenchmarkFullAppSimulation(b *testing.B) {
b.ReportAllocs()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/keeper"
"<%= ModulePath %>/x/<%= ModuleName %>/types"
"github.com/cosmos/cosmos-sdk/baseapp"
simappparams "cosmossdk.io/simapp/params"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
)
Expand All @@ -28,7 +28,7 @@ func SimulateMsgCreate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -73,7 +73,7 @@ func SimulateMsgUpdate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -118,7 +118,7 @@ func SimulateMsgDelete<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/keeper"
"<%= ModulePath %>/x/<%= ModuleName %>/types"
"github.com/cosmos/cosmos-sdk/baseapp"
simappparams "cosmossdk.io/simapp/params"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
)
Expand Down Expand Up @@ -39,7 +39,7 @@ func SimulateMsgCreate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -85,7 +85,7 @@ func SimulateMsgUpdate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -131,7 +131,7 @@ func SimulateMsgDelete<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/keeper"
"<%= ModulePath %>/x/<%= ModuleName %>/types"
"github.com/cosmos/cosmos-sdk/baseapp"
simappparams "cosmossdk.io/simapp/params"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
)
Expand All @@ -33,7 +33,7 @@ func SimulateMsgCreate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -72,7 +72,7 @@ func SimulateMsgUpdate<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down Expand Up @@ -111,7 +111,7 @@ func SimulateMsgDelete<%= TypeName.UpperCamel %>(
txCtx := simulation.OperationInput{
R: r,
App: app,
TxGen: simappparams.MakeTestEncodingConfig().TxConfig,
TxGen: moduletestutil.MakeTestEncodingConfig().TxConfig,
Cdc: nil,
Msg: msg,
MsgType: msg.Type(),
Expand Down

0 comments on commit 380b264

Please sign in to comment.