Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hanna committed Sep 12, 2024
1 parent b6b92ed commit 2957c95
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 26 deletions.
3 changes: 1 addition & 2 deletions ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package ante
import (
errorsmod "cosmossdk.io/errors"

atomoneerrors "github.com/cosmos/cosmos-sdk/types/errors"

"github.com/atomone-hub/atomone/codec"
sdk "github.com/atomone-hub/atomone/types"
atomoneerrors "github.com/atomone-hub/atomone/types/errors"
"github.com/atomone-hub/atomone/x/auth/ante"
stakingkeeper "github.com/atomone-hub/atomone/x/staking/keeper"
)
Expand Down
4 changes: 1 addition & 3 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import (
db "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/libs/log"

authtypes "github.com/atomone-hub/atomone/x/auth/types"
govtypes "github.com/atomone-hub/atomone/x/gov/types"

atomone "github.com/atomone-hub/atomone/app"
atomonehelpers "github.com/atomone-hub/atomone/app/helpers"
authtypes "github.com/atomone-hub/atomone/x/auth/types"
govtypes "github.com/atomone-hub/atomone/x/gov/types"
)

Expand Down
14 changes: 7 additions & 7 deletions app/gov_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/tx"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/version"
paramscutils "github.com/cosmos/cosmos-sdk/x/params/client/utils"
paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
"github.com/cosmos/cosmos-sdk/x/upgrade/plan"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

"github.com/atomone-hub/atomone/client"
"github.com/atomone-hub/atomone/client/tx"
sdk "github.com/atomone-hub/atomone/types"
govclient "github.com/atomone-hub/atomone/x/gov/client"
"github.com/atomone-hub/atomone/x/gov/client/cli"
govv1beta1 "github.com/atomone-hub/atomone/x/gov/types/v1beta1"
paramscutils "github.com/atomone-hub/atomone/x/params/client/utils"
paramproposal "github.com/atomone-hub/atomone/x/params/types/proposal"
"github.com/atomone-hub/atomone/x/upgrade/plan"
upgradetypes "github.com/atomone-hub/atomone/x/upgrade/types"
)

var (
Expand Down
2 changes: 0 additions & 2 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ import (
"github.com/atomone-hub/atomone/x/mint"
minttypes "github.com/atomone-hub/atomone/x/mint/types"
sdkparams "github.com/atomone-hub/atomone/x/params"
paramsclient "github.com/atomone-hub/atomone/x/params/client"
paramstypes "github.com/atomone-hub/atomone/x/params/types"
"github.com/atomone-hub/atomone/x/slashing"
slashingtypes "github.com/atomone-hub/atomone/x/slashing/types"
"github.com/atomone-hub/atomone/x/staking"
stakingtypes "github.com/atomone-hub/atomone/x/staking/types"
"github.com/atomone-hub/atomone/x/upgrade"
upgradeclient "github.com/atomone-hub/atomone/x/upgrade/client"
upgradetypes "github.com/atomone-hub/atomone/x/upgrade/types"
)

Expand Down
1 change: 1 addition & 0 deletions core/internal/testpb/test.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions x/gov/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ import (
authkeeper "github.com/atomone-hub/atomone/x/auth/keeper"
authtypes "github.com/atomone-hub/atomone/x/auth/types"
bankkeeper "github.com/atomone-hub/atomone/x/bank/keeper"
"github.com/atomone-hub/atomone/x/gov/keeper"
"github.com/atomone-hub/atomone/x/gov/types"
v1 "github.com/atomone-hub/atomone/x/gov/types/v1"
"github.com/atomone-hub/atomone/x/gov/types/v1beta1"
stakingkeeper "github.com/atomone-hub/atomone/x/staking/keeper"
stakingtypes "github.com/atomone-hub/atomone/x/staking/types"

"github.com/atomone-hub/atomone/x/gov/keeper"
"github.com/atomone-hub/atomone/x/gov/types"
v1 "github.com/atomone-hub/atomone/x/gov/types/v1"
"github.com/atomone-hub/atomone/x/gov/types/v1beta1"
)

var (
Expand Down
4 changes: 1 addition & 3 deletions x/gov/keeper/tally_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import (

simtestutil "github.com/atomone-hub/atomone/testutil/sims"
sdk "github.com/atomone-hub/atomone/types"
v1 "github.com/atomone-hub/atomone/x/gov/types/v1"
stakingtypes "github.com/atomone-hub/atomone/x/staking/types"

"github.com/atomone-hub/atomone/x/gov/keeper"
v1 "github.com/atomone-hub/atomone/x/gov/types/v1"
stakingtypes "github.com/atomone-hub/atomone/x/staking/types"
)

type tallyFixture struct {
Expand Down
5 changes: 1 addition & 4 deletions x/gov/simulation/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ import (
"github.com/atomone-hub/atomone/crypto/keys/ed25519"
sdk "github.com/atomone-hub/atomone/types"
moduletestutil "github.com/atomone-hub/atomone/types/module/testutil"
"github.com/atomone-hub/atomone/x/gov/types"
"github.com/atomone-hub/atomone/x/gov/types/v1beta1"
"github.com/cosmos/cosmos-sdk/types/kv"

"github.com/atomone-hub/atomone/x/gov"
"github.com/atomone-hub/atomone/x/gov/simulation"
"github.com/atomone-hub/atomone/x/gov/types"
"github.com/atomone-hub/atomone/x/gov/types/v1beta1"
"github.com/cosmos/cosmos-sdk/types/kv"
)

var (
Expand Down
7 changes: 7 additions & 0 deletions x/gov/types/v1beta1/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ type HandlerRoute struct {

// IsManyPerContainerType implements the depinject.ManyPerContainerType interface.
func (HandlerRoute) IsManyPerContainerType() {}

// WrapHandler converts a Cosmos SDK gov Handler to GovGen gov Handler
func WrapSDKHandler(sdkHandler Handler) Handler {
return func(ctx sdk.Context, content Content) error {
return sdkHandler(ctx, content)
}
}

0 comments on commit 2957c95

Please sign in to comment.