Skip to content

Commit f5962c3

Browse files
chore: separate import statements by type (#702)
Co-authored-by: Carlos Rodriguez <crodveg@gmail.com>
1 parent cb9bf5d commit f5962c3

File tree

172 files changed

+267
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+267
-190
lines changed

modules/apps/27-interchain-accounts/controller/client/cli/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package cli
33
import (
44
"fmt"
55

6-
"github.com/spf13/cobra"
7-
86
"github.com/cosmos/cosmos-sdk/client"
97
"github.com/cosmos/cosmos-sdk/client/flags"
108
"github.com/cosmos/cosmos-sdk/version"
9+
"github.com/spf13/cobra"
10+
1111
"github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/types"
1212
)
1313

modules/apps/27-interchain-accounts/host/client/cli/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package cli
33
import (
44
"fmt"
55

6-
"github.com/spf13/cobra"
7-
86
"github.com/cosmos/cosmos-sdk/client"
97
"github.com/cosmos/cosmos-sdk/client/flags"
108
"github.com/cosmos/cosmos-sdk/version"
9+
"github.com/spf13/cobra"
10+
1111
"github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
1212
)
1313

modules/apps/27-interchain-accounts/host/keeper/grpc_query.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package keeper
22

33
import (
44
"context"
5+
56
sdk "github.com/cosmos/cosmos-sdk/types"
7+
68
"github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
79
)
810

modules/apps/27-interchain-accounts/module.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import (
55
"encoding/json"
66
"fmt"
77

8-
"github.com/gorilla/mux"
9-
"github.com/spf13/cobra"
10-
118
"github.com/cosmos/cosmos-sdk/client"
129
"github.com/cosmos/cosmos-sdk/codec"
1310
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
1411
sdk "github.com/cosmos/cosmos-sdk/types"
1512
"github.com/cosmos/cosmos-sdk/types/module"
13+
"github.com/gorilla/mux"
1614
"github.com/grpc-ecosystem/grpc-gateway/runtime"
15+
"github.com/spf13/cobra"
1716
abci "github.com/tendermint/tendermint/abci/types"
1817

1918
"github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/client/cli"

modules/apps/27-interchain-accounts/types/port.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"strings"
77

88
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
9+
910
connectiontypes "github.com/cosmos/ibc-go/v3/modules/core/03-connection/types"
1011
porttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
1112
)

modules/apps/transfer/client/cli/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package cli
33
import (
44
"fmt"
55

6-
"github.com/spf13/cobra"
7-
86
"github.com/cosmos/cosmos-sdk/client"
97
"github.com/cosmos/cosmos-sdk/client/flags"
108
"github.com/cosmos/cosmos-sdk/version"
9+
"github.com/spf13/cobra"
10+
1111
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1212
)
1313

modules/apps/transfer/client/cli/tx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/spf13/cobra"
10-
119
"github.com/cosmos/cosmos-sdk/client"
1210
"github.com/cosmos/cosmos-sdk/client/flags"
1311
"github.com/cosmos/cosmos-sdk/client/tx"
1412
sdk "github.com/cosmos/cosmos-sdk/types"
1513
"github.com/cosmos/cosmos-sdk/version"
14+
"github.com/spf13/cobra"
15+
1616
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1717
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1818
channelutils "github.com/cosmos/ibc-go/v3/modules/core/04-channel/client/utils"

modules/apps/transfer/ibc_module_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"math"
55

66
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
7+
78
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
89
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
910
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"

modules/apps/transfer/keeper/genesis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55

66
sdk "github.com/cosmos/cosmos-sdk/types"
7+
78
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
89
)
910

modules/apps/transfer/keeper/grpc_query.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
"context"
55
"fmt"
66

7-
"google.golang.org/grpc/codes"
8-
"google.golang.org/grpc/status"
9-
107
"github.com/cosmos/cosmos-sdk/store/prefix"
118
sdk "github.com/cosmos/cosmos-sdk/types"
129
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
1310
"github.com/cosmos/cosmos-sdk/types/query"
11+
"google.golang.org/grpc/codes"
12+
"google.golang.org/grpc/status"
13+
1414
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1515
)
1616

modules/apps/transfer/keeper/grpc_query_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55

66
sdk "github.com/cosmos/cosmos-sdk/types"
77
"github.com/cosmos/cosmos-sdk/types/query"
8+
89
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
910
)
1011

modules/apps/transfer/keeper/keeper.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package keeper
22

33
import (
4-
tmbytes "github.com/tendermint/tendermint/libs/bytes"
5-
"github.com/tendermint/tendermint/libs/log"
6-
74
"github.com/cosmos/cosmos-sdk/codec"
85
"github.com/cosmos/cosmos-sdk/store/prefix"
96
sdk "github.com/cosmos/cosmos-sdk/types"
107
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
118
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
129
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
1310
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
11+
tmbytes "github.com/tendermint/tendermint/libs/bytes"
12+
"github.com/tendermint/tendermint/libs/log"
13+
1414
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1515
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"
1616
)

modules/apps/transfer/keeper/keeper_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package keeper_test
33
import (
44
"testing"
55

6+
"github.com/cosmos/cosmos-sdk/baseapp"
7+
sdk "github.com/cosmos/cosmos-sdk/types"
68
"github.com/stretchr/testify/suite"
79
"github.com/tendermint/tendermint/crypto"
810

9-
"github.com/cosmos/cosmos-sdk/baseapp"
10-
sdk "github.com/cosmos/cosmos-sdk/types"
1111
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1212
ibctesting "github.com/cosmos/ibc-go/v3/testing"
1313
)

modules/apps/transfer/keeper/mbt_relay_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"strconv"
1212
"strings"
1313

14-
"github.com/tendermint/tendermint/crypto"
15-
1614
sdk "github.com/cosmos/cosmos-sdk/types"
1715
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
16+
"github.com/tendermint/tendermint/crypto"
17+
1818
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1919
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
2020
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"

modules/apps/transfer/keeper/msg_server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
sdk "github.com/cosmos/cosmos-sdk/types"
7+
78
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
89
)
910

modules/apps/transfer/keeper/params.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package keeper
22

33
import (
44
sdk "github.com/cosmos/cosmos-sdk/types"
5+
56
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
67
)
78

modules/apps/transfer/keeper/relay_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package keeper_test
33
import (
44
"fmt"
55

6-
"github.com/cosmos/ibc-go/v3/testing/simapp"
7-
86
sdk "github.com/cosmos/cosmos-sdk/types"
7+
98
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
109
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1110
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
1211
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"
1312
ibctesting "github.com/cosmos/ibc-go/v3/testing"
13+
"github.com/cosmos/ibc-go/v3/testing/simapp"
1414
)
1515

1616
// test sending from chainA to chainB using both coin that orignate on

modules/apps/transfer/simulation/decoder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66

77
"github.com/cosmos/cosmos-sdk/types/kv"
8+
89
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
910
)
1011

modules/apps/transfer/simulation/decoder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"testing"
66

7+
"github.com/cosmos/cosmos-sdk/types/kv"
78
"github.com/stretchr/testify/require"
89

9-
"github.com/cosmos/cosmos-sdk/types/kv"
1010
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/simulation"
1111
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1212
"github.com/cosmos/ibc-go/v3/testing/simapp"

modules/apps/transfer/simulation/genesis.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88

99
"github.com/cosmos/cosmos-sdk/types/module"
1010
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
11+
1112
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1213
)
1314

modules/apps/transfer/simulation/genesis_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"math/rand"
66
"testing"
77

8-
"github.com/stretchr/testify/require"
9-
108
"github.com/cosmos/cosmos-sdk/codec"
119
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
1210
"github.com/cosmos/cosmos-sdk/types/module"
1311
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
12+
"github.com/stretchr/testify/require"
13+
1414
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/simulation"
1515
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1616
)

modules/apps/transfer/simulation/params.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import (
44
"fmt"
55
"math/rand"
66

7-
gogotypes "github.com/gogo/protobuf/types"
8-
7+
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
98
"github.com/cosmos/cosmos-sdk/x/simulation"
9+
gogotypes "github.com/gogo/protobuf/types"
1010

11-
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
1211
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1312
)
1413

modules/apps/transfer/transfer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package transfer_test
33
import (
44
"testing"
55

6+
sdk "github.com/cosmos/cosmos-sdk/types"
67
"github.com/stretchr/testify/suite"
78

8-
sdk "github.com/cosmos/cosmos-sdk/types"
99
"github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
1010
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1111
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"

modules/apps/transfer/types/expected_keepers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
sdk "github.com/cosmos/cosmos-sdk/types"
55
"github.com/cosmos/cosmos-sdk/x/auth/types"
66
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
7+
78
connectiontypes "github.com/cosmos/ibc-go/v3/modules/core/03-connection/types"
89
channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"
910
ibcexported "github.com/cosmos/ibc-go/v3/modules/core/exported"

modules/apps/transfer/types/msgs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55

66
sdk "github.com/cosmos/cosmos-sdk/types"
77
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
8+
89
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
910
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"
1011
)

modules/apps/transfer/types/msgs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/stretchr/testify/require"
8-
97
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
108
sdk "github.com/cosmos/cosmos-sdk/types"
9+
"github.com/stretchr/testify/require"
10+
1111
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1212
)
1313

modules/apps/transfer/types/trace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"sort"
88
"strings"
99

10+
sdk "github.com/cosmos/cosmos-sdk/types"
11+
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
1012
tmbytes "github.com/tendermint/tendermint/libs/bytes"
1113
tmtypes "github.com/tendermint/tendermint/types"
1214

13-
sdk "github.com/cosmos/cosmos-sdk/types"
14-
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
1515
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"
1616
)
1717

modules/core/02-client/abci.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package client
22

33
import (
44
sdk "github.com/cosmos/cosmos-sdk/types"
5+
56
"github.com/cosmos/ibc-go/v3/modules/core/02-client/keeper"
67
"github.com/cosmos/ibc-go/v3/modules/core/exported"
78
ibctmtypes "github.com/cosmos/ibc-go/v3/modules/light-clients/07-tendermint/types"

modules/core/02-client/abci_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package client_test
33
import (
44
"testing"
55

6+
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
67
"github.com/stretchr/testify/suite"
78
abci "github.com/tendermint/tendermint/abci/types"
89
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
910

10-
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
1111
client "github.com/cosmos/ibc-go/v3/modules/core/02-client"
1212
"github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1313
"github.com/cosmos/ibc-go/v3/modules/core/exported"

modules/core/02-client/client/cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package cli
22

33
import (
4+
"github.com/cosmos/cosmos-sdk/client"
45
"github.com/spf13/cobra"
56

6-
"github.com/cosmos/cosmos-sdk/client"
77
"github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
88
)
99

modules/core/02-client/client/cli/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"errors"
55
"fmt"
66

7-
"github.com/spf13/cobra"
8-
97
"github.com/cosmos/cosmos-sdk/client"
108
"github.com/cosmos/cosmos-sdk/client/flags"
119
"github.com/cosmos/cosmos-sdk/version"
10+
"github.com/spf13/cobra"
11+
1212
"github.com/cosmos/ibc-go/v3/modules/core/02-client/client/utils"
1313
"github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
1414
host "github.com/cosmos/ibc-go/v3/modules/core/24-host"

modules/core/02-client/client/cli/tx.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import (
55
"io/ioutil"
66
"strconv"
77

8-
"github.com/pkg/errors"
9-
"github.com/spf13/cobra"
10-
118
"github.com/cosmos/cosmos-sdk/client"
129
"github.com/cosmos/cosmos-sdk/client/flags"
1310
"github.com/cosmos/cosmos-sdk/client/tx"
@@ -17,6 +14,9 @@ import (
1714
govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli"
1815
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
1916
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
17+
"github.com/pkg/errors"
18+
"github.com/spf13/cobra"
19+
2020
"github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
2121
"github.com/cosmos/ibc-go/v3/modules/core/exported"
2222
)

modules/core/02-client/client/proposal_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/cosmos/cosmos-sdk/types/rest"
88
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
99
govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest"
10+
1011
"github.com/cosmos/ibc-go/v3/modules/core/02-client/client/cli"
1112
)
1213

0 commit comments

Comments
 (0)