From 6034c4d6590682fb3189e086eceecb99cbdbbdd0 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Wed, 20 Dec 2023 07:10:16 +0700 Subject: [PATCH] lint all things together --- app/ante/ante.go | 2 +- app/app.go | 4 ++-- app/ibctesting/simapp/app.go | 7 ++++--- app/keepers/keepers.go | 2 +- app/upgrades/types.go | 2 +- cmd/centaurid/cmd/root.go | 2 +- cmd/centaurid/main.go | 2 +- x/transfermiddleware/keeper/genesis_test.go | 2 +- x/transfermiddleware/types/excepted_keepers.go | 2 +- x/transfermiddleware/types/genesis.go | 2 +- x/transfermiddleware/types/info.go | 2 +- x/transfermiddleware/types/params.go | 2 +- x/tx-boundary/types/genesis.go | 2 +- 13 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/ante/ante.go b/app/ante/ante.go index a25d6281e..e0ff01df2 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" servertypes "github.com/cosmos/cosmos-sdk/server/types" sdk "github.com/cosmos/cosmos-sdk/types" - ante "github.com/cosmos/cosmos-sdk/x/auth/ante" + "github.com/cosmos/cosmos-sdk/x/auth/ante" "github.com/cosmos/cosmos-sdk/x/auth/signing" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/app/app.go b/app/app.go index 19ff7e095..8345f8b4b 100644 --- a/app/app.go +++ b/app/app.go @@ -15,7 +15,7 @@ import ( "github.com/notional-labs/composable/v6/app/ante" "github.com/notional-labs/composable/v6/app/keepers" "github.com/notional-labs/composable/v6/app/prepare" - upgrades "github.com/notional-labs/composable/v6/app/upgrades" + "github.com/notional-labs/composable/v6/app/upgrades" v4 "github.com/notional-labs/composable/v6/app/upgrades/v4" v5 "github.com/notional-labs/composable/v6/app/upgrades/v5" v6 "github.com/notional-labs/composable/v6/app/upgrades/v6" @@ -26,7 +26,7 @@ import ( minttypes "github.com/notional-labs/composable/v6/x/mint/types" ratelimitmodule "github.com/notional-labs/composable/v6/x/ratelimit" ratelimitmoduletypes "github.com/notional-labs/composable/v6/x/ratelimit/types" - transfermiddleware "github.com/notional-labs/composable/v6/x/transfermiddleware" + "github.com/notional-labs/composable/v6/x/transfermiddleware" transfermiddlewaretypes "github.com/notional-labs/composable/v6/x/transfermiddleware/types" txBoundary "github.com/notional-labs/composable/v6/x/tx-boundary" txBoundaryTypes "github.com/notional-labs/composable/v6/x/tx-boundary/types" diff --git a/app/ibctesting/simapp/app.go b/app/ibctesting/simapp/app.go index 5180ffad0..43027380c 100644 --- a/app/ibctesting/simapp/app.go +++ b/app/ibctesting/simapp/app.go @@ -13,11 +13,12 @@ import ( simappupgrades "github.com/notional-labs/composable/v6/app/ibctesting/simapp/upgrades" v6 "github.com/notional-labs/composable/v6/app/ibctesting/simapp/upgrades/v6" v7 "github.com/notional-labs/composable/v6/app/ibctesting/simapp/upgrades/v7" + // TODO: mint module not complete yet, "github.com/notional-labs/composable/v6/x/mint" mintkeeper "github.com/notional-labs/composable/v6/x/mint/keeper" minttypes "github.com/notional-labs/composable/v6/x/mint/types" - transfermiddleware "github.com/notional-labs/composable/v6/x/transfermiddleware" + "github.com/notional-labs/composable/v6/x/transfermiddleware" transfermiddlewarekeeper "github.com/notional-labs/composable/v6/x/transfermiddleware/keeper" transfermiddlewaretypes "github.com/notional-labs/composable/v6/x/transfermiddleware/types" "github.com/rakyll/statik/fs" @@ -51,7 +52,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/auth/vesting" vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - authz "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/cosmos/cosmos-sdk/x/authz" authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" "github.com/cosmos/cosmos-sdk/x/bank" @@ -117,7 +118,7 @@ import ( ibcfee "github.com/cosmos/ibc-go/v7/modules/apps/29-fee" ibcfeekeeper "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/keeper" ibcfeetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types" - transfer "github.com/cosmos/ibc-go/v7/modules/apps/transfer" + "github.com/cosmos/ibc-go/v7/modules/apps/transfer" ibctransferkeeper "github.com/cosmos/ibc-go/v7/modules/apps/transfer/keeper" ibctransfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v7/modules/core" diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 6b8b4b0fd..1a5a69a4f 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -18,7 +18,7 @@ import ( ratelimitmodule "github.com/notional-labs/composable/v6/x/ratelimit" ratelimitmodulekeeper "github.com/notional-labs/composable/v6/x/ratelimit/keeper" ratelimitmoduletypes "github.com/notional-labs/composable/v6/x/ratelimit/types" - transfermiddleware "github.com/notional-labs/composable/v6/x/transfermiddleware" + "github.com/notional-labs/composable/v6/x/transfermiddleware" transfermiddlewarekeeper "github.com/notional-labs/composable/v6/x/transfermiddleware/keeper" transfermiddlewaretypes "github.com/notional-labs/composable/v6/x/transfermiddleware/types" txBoundaryKeeper "github.com/notional-labs/composable/v6/x/tx-boundary/keeper" diff --git a/app/upgrades/types.go b/app/upgrades/types.go index dd081c7ba..63574d10b 100644 --- a/app/upgrades/types.go +++ b/app/upgrades/types.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - types "github.com/cometbft/cometbft/proto/tendermint/types" + "github.com/cometbft/cometbft/proto/tendermint/types" ) // BaseAppParamManager defines an interrace that BaseApp is expected to fullfil diff --git a/cmd/centaurid/cmd/root.go b/cmd/centaurid/cmd/root.go index fa9391c08..a2a01a3c8 100644 --- a/cmd/centaurid/cmd/root.go +++ b/cmd/centaurid/cmd/root.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/cobra" "github.com/cosmos/cosmos-sdk/client" - config "github.com/cosmos/cosmos-sdk/client/config" + "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" diff --git a/cmd/centaurid/main.go b/cmd/centaurid/main.go index a0c071ec2..ed34b002c 100644 --- a/cmd/centaurid/main.go +++ b/cmd/centaurid/main.go @@ -4,7 +4,7 @@ import ( "os" "github.com/notional-labs/composable/v6/app" - cmd "github.com/notional-labs/composable/v6/cmd/centaurid/cmd" + "github.com/notional-labs/composable/v6/cmd/centaurid/cmd" cmdcfg "github.com/notional-labs/composable/v6/cmd/centaurid/config" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" diff --git a/x/transfermiddleware/keeper/genesis_test.go b/x/transfermiddleware/keeper/genesis_test.go index fd28313f1..a7bbd1ab3 100644 --- a/x/transfermiddleware/keeper/genesis_test.go +++ b/x/transfermiddleware/keeper/genesis_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - helpers "github.com/notional-labs/composable/v6/app/helpers" + "github.com/notional-labs/composable/v6/app/helpers" "github.com/notional-labs/composable/v6/x/transfermiddleware/types" "github.com/stretchr/testify/require" ) diff --git a/x/transfermiddleware/types/excepted_keepers.go b/x/transfermiddleware/types/excepted_keepers.go index 3d81cdc5f..4016ce87b 100644 --- a/x/transfermiddleware/types/excepted_keepers.go +++ b/x/transfermiddleware/types/excepted_keepers.go @@ -1,7 +1,7 @@ package types import ( - context "context" + "context" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/transfermiddleware/types/genesis.go b/x/transfermiddleware/types/genesis.go index d33a1a2f8..fbbe80601 100644 --- a/x/transfermiddleware/types/genesis.go +++ b/x/transfermiddleware/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - fmt "fmt" + "fmt" ) // DefaultGenesisState returns a GenesisState with "transfer" as the default PortID. diff --git a/x/transfermiddleware/types/info.go b/x/transfermiddleware/types/info.go index 38fa4b802..fbaf167ff 100644 --- a/x/transfermiddleware/types/info.go +++ b/x/transfermiddleware/types/info.go @@ -1,7 +1,7 @@ package types import ( - fmt "fmt" + "fmt" "strconv" ) diff --git a/x/transfermiddleware/types/params.go b/x/transfermiddleware/types/params.go index 5b252f053..7ba51b649 100644 --- a/x/transfermiddleware/types/params.go +++ b/x/transfermiddleware/types/params.go @@ -1,7 +1,7 @@ package types import ( - fmt "fmt" + "fmt" "time" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" diff --git a/x/tx-boundary/types/genesis.go b/x/tx-boundary/types/genesis.go index f690a7c9d..b7b822706 100644 --- a/x/tx-boundary/types/genesis.go +++ b/x/tx-boundary/types/genesis.go @@ -1,6 +1,6 @@ package types -import fmt "fmt" +import "fmt" var ( DefaultDelegateBoundary = Boundary{