Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaru Wang committed Aug 7, 2023
1 parent 94d9144 commit 9ece874
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
3 changes: 2 additions & 1 deletion x/ccv/consumer/client/cli/query.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cli

import (
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
"github.com/spf13/cobra"
)

// NewQueryCmd returns a root CLI command handler for all x/ccv/provider query commands.
Expand Down
11 changes: 6 additions & 5 deletions x/ccv/consumer/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ package keeper
import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

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

Check failure on line 9 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
"github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
)

var _ types.QueryServer = Keeper{}

func (k Keeper) QueryNextFeeDistribution(c context.Context,
req *types.QueryNextFeeDistributionEstimateRequest,
req *types.QueryNextFeeDistributionEstimateRequest,

Check failure on line 16 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
) (*types.QueryNextFeeDistributionEstimateResponse, error) {
ctx := sdk.UnwrapSDKContext(c)

Expand All @@ -26,7 +27,7 @@ func (k Keeper) QueryNextFeeDistribution(c context.Context,
}

func (k Keeper) QueryParams(c context.Context,
req *types.QueryParamsRequest,
req *types.QueryParamsRequest,

Check failure on line 30 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
) (*types.QueryParamsResponse, error) {
ctx := sdk.UnwrapSDKContext(c)

Expand All @@ -40,7 +41,7 @@ func (k Keeper) QueryParams(c context.Context,
}

func (k Keeper) QueryProviderChainInfo(c context.Context,
req *types.QueryProviderInfoRequest,
req *types.QueryProviderInfoRequest,

Check failure on line 44 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
) (*types.QueryProviderInfoResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
if req == nil {
Expand Down
2 changes: 2 additions & 0 deletions x/ccv/consumer/keeper/provider_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"

Check failure on line 4 in x/ccv/consumer/keeper/provider_info.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)

ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"

"github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
ccvtypes "github.com/cosmos/interchain-security/v3/x/ccv/types"
)
Expand Down
21 changes: 12 additions & 9 deletions x/ccv/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ import (
"time"

Check failure on line 6 in x/ccv/types/expected_keepers.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
"cosmossdk.io/math"

abci "github.com/cometbft/cometbft/abci/types"

Check failure on line 9 in x/ccv/types/expected_keepers.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)

sdk "github.com/cosmos/cosmos-sdk/types"
auth "github.com/cosmos/cosmos-sdk/x/auth/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"

Check failure on line 18 in x/ccv/types/expected_keepers.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
conntypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types"
Expand Down Expand Up @@ -69,13 +72,13 @@ type ChannelKeeper interface {
GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
SendPacket(
ctx sdk.Context,
chanCap *capabilitytypes.Capability,
sourcePort string,
sourceChannel string,
timeoutHeight clienttypes.Height,
timeoutTimestamp uint64,
data []byte,
ctx sdk.Context,

Check failure on line 75 in x/ccv/types/expected_keepers.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
chanCap *capabilitytypes.Capability,
sourcePort string,
sourceChannel string,
timeoutHeight clienttypes.Height,
timeoutTimestamp uint64,
data []byte,
) (sequence uint64, err error)
WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, acknowledgement ibcexported.Acknowledgement) error
ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
Expand Down Expand Up @@ -132,8 +135,8 @@ type IBCTransferKeeper interface {
// channel
type IBCCoreKeeper interface {
ChannelOpenInit(
goCtx context.Context,
msg *channeltypes.MsgChannelOpenInit,
goCtx context.Context,

Check failure on line 138 in x/ccv/types/expected_keepers.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
msg *channeltypes.MsgChannelOpenInit,
) (*channeltypes.MsgChannelOpenInitResponse, error)
}

Expand Down

0 comments on commit 9ece874

Please sign in to comment.