diff --git a/app/encoding_test.go b/app/encoding_test.go index 092ff63e..0ebd85dc 100644 --- a/app/encoding_test.go +++ b/app/encoding_test.go @@ -1,11 +1,12 @@ package app_test import ( + "github.com/terra-money/core/v2/app" + "github.com/terra-money/core/v2/app/test_helpers" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/terra-money/core/v2/app" - "github.com/terra-money/core/v2/app/test_helpers" ) type AppCodecsTestSuite struct { @@ -16,7 +17,7 @@ func (acts *AppCodecsTestSuite) TestCodecs() { // Setting up the app acts.Setup() - // generating the encoding config to assert agains + // generating the encoding config to assert against encCfg := app.MakeEncodingConfig() // Validate the encoding config have been configured as expected for the App diff --git a/app/genesis_test.go b/app/genesis_test.go index 9ec8bc3a..33c245ad 100644 --- a/app/genesis_test.go +++ b/app/genesis_test.go @@ -10,9 +10,10 @@ import ( abci "github.com/cometbft/cometbft/abci/types" "github.com/cometbft/cometbft/libs/log" + "github.com/terra-money/core/v2/app/test_helpers" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/terra-money/core/v2/app/test_helpers" ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee" "github.com/golang/mock/gomock" @@ -55,6 +56,7 @@ import ( "github.com/CosmWasm/wasmd/x/wasm" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" tmtypes "github.com/cometbft/cometbft/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" diff --git a/app/post/mocks/post_mock.go b/app/post/mocks/post_mock.go index c2de3e16..1c817f56 100644 --- a/app/post/mocks/post_mock.go +++ b/app/post/mocks/post_mock.go @@ -11,8 +11,9 @@ package mocks import ( reflect "reflect" - types "github.com/cosmos/cosmos-sdk/types" gomock "go.uber.org/mock/gomock" + + types "github.com/cosmos/cosmos-sdk/types" ) // MockAnteDecorator is a mock of AnteDecorator interface. diff --git a/app/simulation_test.go b/app/simulation_test.go index 0a1906d2..8f9e6e9a 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -12,6 +12,7 @@ import ( "github.com/terra-money/core/v2/app/keepers" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation" "github.com/cosmos/cosmos-sdk/x/simulation" diff --git a/cmd/terrad/config.go b/cmd/terrad/config.go index 3f1a6a22..422d5d7d 100644 --- a/cmd/terrad/config.go +++ b/cmd/terrad/config.go @@ -2,6 +2,7 @@ package main import ( wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + serverconfig "github.com/cosmos/cosmos-sdk/server/config" ) diff --git a/x/feeshare/post/post_test.go b/x/feeshare/post/post_test.go index 065c457e..c15c58c7 100644 --- a/x/feeshare/post/post_test.go +++ b/x/feeshare/post/post_test.go @@ -200,7 +200,7 @@ func (suite *AnteTestSuite) TestCalculateFee() { func (suite *AnteTestSuite) TestPostHandler() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl) @@ -234,7 +234,7 @@ func (suite *AnteTestSuite) TestPostHandler() { // Remove all events from the context to assert the events being added correctly. suite.Ctx = suite.Ctx.WithEventManager(sdk.NewEventManager()) - // Assert the next hanlder is called once + // Assert the next handler is called once mockedPostDecorator. EXPECT(). PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()). @@ -294,7 +294,7 @@ func (suite *AnteTestSuite) TestPostHandler() { func (suite *AnteTestSuite) TestDisabledPostHandle() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl) @@ -319,7 +319,7 @@ func (suite *AnteTestSuite) TestDisabledPostHandle() { suite.App.Keepers.WasmKeeper, ) - // Assert the next hanlder is called once + // Assert the next handler is called once mockedPostDecorator. EXPECT(). PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()). @@ -341,7 +341,7 @@ func (suite *AnteTestSuite) TestDisabledPostHandle() { func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl) @@ -355,7 +355,7 @@ func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() { suite.App.Keepers.WasmKeeper, ) - // Assert the next hanlder is called once + // Assert the next handler is called once mockedPostDecorator. EXPECT(). PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()). @@ -377,7 +377,7 @@ func (suite *AnteTestSuite) TestWithZeroFeesPostHandle() { func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl) @@ -405,7 +405,7 @@ func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() { suite.App.Keepers.WasmKeeper, ) - // Assert the next hanlder is called once + // Assert the next handler is called once mockedPostDecorator. EXPECT(). PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()). @@ -427,7 +427,7 @@ func (suite *AnteTestSuite) TestPostHandlerWithEmptySmartContractStore() { func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl) @@ -459,7 +459,7 @@ func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() { suite.App.Keepers.WasmKeeper, ) - // Assert the next hanlder is called once + // Assert the next handler is called once mockedPostDecorator. EXPECT(). PostHandle(gomock.Any(), gomock.Any(), false, true, gomock.Any()). @@ -481,7 +481,7 @@ func (suite *AnteTestSuite) TestPostHandlerNoSmartContractExecuted() { func (suite *AnteTestSuite) TestPostHandlerWithInvalidContractAddrOnExecution() { suite.Setup() - // Create a mocked next post hanlder to assert the function being called. + // Create a mocked next post handler to assert the function being called. ctrl := gomock.NewController(suite.T()) mockedPostDecorator := mocks.NewMockPostDecorator(ctrl)