Skip to content

Commit

Permalink
Fix imports order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taztingo committed Apr 17, 2024
1 parent a0aeca9 commit f33c3f3
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 27 deletions.
5 changes: 3 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import (
"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
abci "github.com/cometbft/cometbft/abci/types"
cmtos "github.com/cometbft/cometbft/libs/os"
"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"
"github.com/spf13/cast"
"github.com/spf13/viper"

abci "github.com/cometbft/cometbft/abci/types"
cmtos "github.com/cometbft/cometbft/libs/os"

"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"
storetypes "cosmossdk.io/store/types"
Expand Down
5 changes: 3 additions & 2 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import (
"testing"
"time"

"github.com/rs/zerolog"
"github.com/stretchr/testify/require"

abci "github.com/cometbft/cometbft/abci/types"
cmtjson "github.com/cometbft/cometbft/libs/json"
cmttmtypes "github.com/cometbft/cometbft/proto/tendermint/types"
cmttypes "github.com/cometbft/cometbft/types"
"github.com/rs/zerolog"
"github.com/stretchr/testify/require"

"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"
Expand Down
3 changes: 2 additions & 1 deletion cmd/provenanced/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import (
"strings"
"time"

"github.com/spf13/cobra"

cmtos "github.com/cometbft/cometbft/libs/os"
cmtrand "github.com/cometbft/cometbft/libs/rand"
cmttypes "github.com/cometbft/cometbft/types"
"github.com/spf13/cobra"

cerrs "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
Expand Down
3 changes: 2 additions & 1 deletion cmd/provenanced/cmd/pre_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"errors"
"fmt"

cmtconfig "github.com/cometbft/cometbft/config"
"github.com/spf13/cobra"

cmtconfig "github.com/cometbft/cometbft/config"

serverconfig "github.com/cosmos/cosmos-sdk/server/config"

cmderrors "github.com/provenance-io/provenance/cmd/errors"
Expand Down
5 changes: 3 additions & 2 deletions cmd/provenanced/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import (
"path/filepath"
"time"

cmtconfig "github.com/cometbft/cometbft/config"
cmtcli "github.com/cometbft/cometbft/libs/cli"
"github.com/rs/zerolog"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

cmtconfig "github.com/cometbft/cometbft/config"
cmtcli "github.com/cometbft/cometbft/libs/cli"

"cosmossdk.io/log"
"cosmossdk.io/store"
"cosmossdk.io/store/snapshots"
Expand Down
3 changes: 2 additions & 1 deletion cmd/provenanced/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ import (
"path/filepath"
"time"

"github.com/spf13/cobra"

cmtconfig "github.com/cometbft/cometbft/config"
cmtos "github.com/cometbft/cometbft/libs/os"
cmtrand "github.com/cometbft/cometbft/libs/rand"
cmttime "github.com/cometbft/cometbft/types/time"
"github.com/spf13/cobra"

sdkmath "cosmossdk.io/math"

Expand Down
3 changes: 2 additions & 1 deletion cmd/provenanced/config/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"os"
"time"

cmtconfig "github.com/cometbft/cometbft/config"
"github.com/spf13/cobra"
"github.com/spf13/viper"

cmtconfig "github.com/cometbft/cometbft/config"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server"
Expand Down
1 change: 1 addition & 0 deletions internal/provwasm/query_plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/CosmWasm/wasmd/x/wasm"
wasmvmtypes "github.com/CosmWasm/wasmvm/types"

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

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down
3 changes: 2 additions & 1 deletion testutil/assertions/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"fmt"
"strings"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/stretchr/testify/assert"

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

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

Expand Down
3 changes: 2 additions & 1 deletion testutil/ibc/testchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"testing"
"time"

cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/suite"

cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down
3 changes: 2 additions & 1 deletion x/attribute/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/exchange/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

sdkclient "github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/hold/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"context"
"fmt"

dbm "github.com/cometbft/cometbft-db"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

dbm "github.com/cometbft/cometbft-db"

storetypes "cosmossdk.io/store/types"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
3 changes: 2 additions & 1 deletion x/hold/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

sdkclient "github.com/cosmos/cosmos-sdk/client"
Expand Down
1 change: 1 addition & 0 deletions x/ibchooks/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"

"github.com/cometbft/cometbft/crypto/tmhash"

sdkerrors "cosmossdk.io/errors"
Expand Down
3 changes: 2 additions & 1 deletion x/ibchooks/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/ibcratelimit/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/marker/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"
feegrantkeeper "cosmossdk.io/x/feegrant/keeper"

Expand Down
3 changes: 2 additions & 1 deletion x/metadata/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/msgfees/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"encoding/json"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"
cerrs "cosmossdk.io/errors"

Expand Down
2 changes: 1 addition & 1 deletion x/msgfees/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetMsgFeeKey(msgType string) []byte {
}

var (
//MsgFeeKeyPrefix prefix for msgfee entry
// MsgFeeKeyPrefix prefix for msgfee entry
MsgFeeKeyPrefix = []byte{0x00}
// ParamStoreKey key for msgfees module's params
ParamStoreKey = []byte{0x01}
Expand Down
3 changes: 2 additions & 1 deletion x/name/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

sdkclient "github.com/cosmos/cosmos-sdk/client"
Expand Down
1 change: 1 addition & 0 deletions x/oracle/keeper/icq.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"time"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"

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

cerrs "cosmossdk.io/errors"
Expand Down
3 changes: 2 additions & 1 deletion x/oracle/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"encoding/json"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"
cerrs "cosmossdk.io/errors"

Expand Down
3 changes: 2 additions & 1 deletion x/quarantine/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

sdkclient "github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/sanction/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"fmt"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"

sdkclient "github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 2 additions & 1 deletion x/trigger/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"encoding/json"
"math/rand"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

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

"cosmossdk.io/core/appmodule"
cerrs "cosmossdk.io/errors"

Expand Down

0 comments on commit f33c3f3

Please sign in to comment.