style: remove redundant import alias (#20109)

Signed-off-by: ipangpang <arronipangpang@gmail.com>
This commit is contained in:
ipangpang 2024-04-22 03:03:43 +08:00 committed by GitHub
parent 13cf11aa92
commit 1bd4351241
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
78 changed files with 84 additions and 84 deletions

View File

@ -17,7 +17,7 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
legacybech32 "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" //nolint:staticcheck // we do old keys, they're keys after all.
"github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" //nolint:staticcheck // we do old keys, they're keys after all.
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/version"
)

View File

@ -1,7 +1,7 @@
package node
import (
context "context"
"context"
gogogrpc "github.com/cosmos/gogoproto/grpc"
"github.com/grpc-ecosystem/grpc-gateway/runtime"

View File

@ -9,7 +9,7 @@ import (
"strings"
"github.com/bgentry/speakeasy"
isatty "github.com/mattn/go-isatty"
"github.com/mattn/go-isatty"
)
// MinPassLength is the minimum acceptable password length

View File

@ -8,7 +8,7 @@ import (
"io"
cmttypes "github.com/cometbft/cometbft/types"
amino "github.com/tendermint/go-amino"
"github.com/tendermint/go-amino"
"github.com/cosmos/cosmos-sdk/codec/types"
)

View File

@ -3,7 +3,7 @@ package collections
import (
"context"
"errors"
io "io"
"io"
"math"
"cosmossdk.io/collections/codec"

View File

@ -4,7 +4,7 @@ import (
"context"
"io"
appmodule "cosmossdk.io/core/appmodule/v2"
"cosmossdk.io/core/appmodule/v2"
)
// HasGenesis defines a custom genesis handling API implementation.

View File

@ -3,7 +3,7 @@ package multisig
import (
errorsmod "cosmossdk.io/errors"
types "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)

View File

@ -1,7 +1,7 @@
package multisig
import (
fmt "fmt"
"fmt"
cmtcrypto "github.com/cometbft/cometbft/crypto"

View File

@ -7,7 +7,7 @@ import (
"errors"
"github.com/cometbft/cometbft/crypto"
secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
)

View File

@ -6,7 +6,7 @@ import (
cmtcrypto "github.com/cometbft/cometbft/crypto"
"github.com/cosmos/gogoproto/proto"
ecdsa "github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa"
"github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
)

View File

@ -3,7 +3,7 @@ package secp256r1
import (
"testing"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/suite"
"github.com/cosmos/cosmos-sdk/codec"

View File

@ -2,7 +2,7 @@ package types
import (
cmtcrypto "github.com/cometbft/cometbft/crypto"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
)
// PubKey defines a public key and extends proto.Message.

View File

@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-proto/anyutil"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoregistry"
"google.golang.org/protobuf/types/known/anypb"
"sigs.k8s.io/yaml"

View File

@ -6,7 +6,7 @@ import (
"bytes"
"testing"
bip39 "github.com/cosmos/go-bip39"
"github.com/cosmos/go-bip39"
"github.com/cosmos/cosmos-sdk/crypto/hd"
)

View File

@ -6,7 +6,7 @@ import (
"fmt"
"testing"
amino "github.com/tendermint/go-amino"
"github.com/tendermint/go-amino"
)
func FuzzTendermintAminoDecodeTime(f *testing.F) {

View File

@ -1,7 +1,7 @@
package ormfield
import (
io "io"
"io"
"google.golang.org/protobuf/reflect/protoreflect"
)

View File

@ -2,7 +2,7 @@ package ormfield
import (
"fmt"
io "io"
"io"
"google.golang.org/protobuf/reflect/protoreflect"
)

View File

@ -2,7 +2,7 @@ package ormfield
import (
"encoding/binary"
io "io"
"io"
"google.golang.org/protobuf/reflect/protoreflect"
)

View File

@ -2,7 +2,7 @@ package ormfield
import (
"encoding/binary"
io "io"
"io"
"google.golang.org/protobuf/reflect/protoreflect"
)

View File

@ -2,7 +2,7 @@ package ormfield
import (
"encoding/binary"
io "io"
"io"
"google.golang.org/protobuf/reflect/protoreflect"
)

View File

@ -5,7 +5,7 @@ import (
"fmt"
"testing"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoreflect"
"gotest.tools/v3/assert"
"pgregory.net/rapid"

View File

@ -22,7 +22,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"
rpc "github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/client/rpc"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
"github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -6,7 +6,7 @@ import (
"github.com/cosmos/iavl"
ics23 "github.com/cosmos/ics23/go"
log "cosmossdk.io/log"
"cosmossdk.io/log"
"cosmossdk.io/store/v2"
"cosmossdk.io/store/v2/commitment"
dbm "cosmossdk.io/store/v2/db"

View File

@ -2,7 +2,7 @@ package types
import (
abci "github.com/cometbft/cometbft/abci/types"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"cosmossdk.io/errors"
)

View File

@ -18,7 +18,7 @@ import (
stakingtypes "cosmossdk.io/x/staking/types"
"github.com/cosmos/cosmos-sdk/baseapp"
ed25519 "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -8,11 +8,11 @@
package mock
import (
reflect "reflect"
"reflect"
gomock "github.com/golang/mock/gomock"
"github.com/golang/mock/gomock"
types "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types"
)
// MockAnteDecorator is a mock of AnteDecorator interface.

View File

@ -1,12 +1,12 @@
package testdata
import (
amino "github.com/tendermint/go-amino"
"github.com/tendermint/go-amino"
"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
tx "github.com/cosmos/cosmos-sdk/types/tx"
"github.com/cosmos/cosmos-sdk/types/tx"
)
func NewTestInterfaceRegistry() types.InterfaceRegistry {

View File

@ -7,7 +7,7 @@ import (
"testing"
"github.com/cosmos/gogoproto/proto"
grpc "google.golang.org/grpc"
"google.golang.org/grpc"
"gotest.tools/v3/assert"
"github.com/cosmos/cosmos-sdk/codec/types"

View File

@ -9,7 +9,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/reflection/grpc_reflection_v1alpha"
"google.golang.org/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoregistry"
"google.golang.org/protobuf/types/descriptorpb"

View File

@ -9,7 +9,7 @@ import (
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cosmos/gogoproto/jsonpb"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"golang.org/x/exp/maps"
"github.com/cosmos/cosmos-sdk/codec"

View File

@ -11,7 +11,7 @@ import (
"cosmossdk.io/math"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
testdata "github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
)

View File

@ -11,7 +11,7 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
mempool "github.com/cosmos/cosmos-sdk/types/mempool"
"github.com/cosmos/cosmos-sdk/types/mempool"
)
var (

View File

@ -3,7 +3,7 @@ package query
import (
"fmt"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"cosmossdk.io/store/types"

View File

@ -1,7 +1,7 @@
package tx
import (
fmt "fmt"
"fmt"
"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -2,8 +2,8 @@ package types
import (
"encoding/json"
fmt "fmt"
strings "strings"
"fmt"
"strings"
"github.com/cosmos/gogoproto/proto"
protov2 "google.golang.org/protobuf/proto"

View File

@ -1,7 +1,7 @@
package version_test
import (
context "context"
"context"
"encoding/json"
"fmt"
"runtime"

View File

@ -1,11 +1,11 @@
package types
import (
fmt "fmt"
"fmt"
"reflect"
"strings"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
)

View File

@ -7,7 +7,7 @@ import (
"github.com/cosmos/gogoproto/proto"
protov2 "google.golang.org/protobuf/proto"
anypb "google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/anypb"
"cosmossdk.io/core/address"
errorsmod "cosmossdk.io/errors"

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strconv"
grpc "google.golang.org/grpc"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"

View File

@ -6,7 +6,7 @@ import (
"fmt"
"sort"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/require"
"cosmossdk.io/x/auth"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/x/auth/types"

View File

@ -3,7 +3,7 @@ package authz
import (
"time"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
errorsmod "cosmossdk.io/errors"

View File

@ -1,7 +1,7 @@
package authz
import (
context "context"
"context"
"github.com/cosmos/gogoproto/proto"

View File

@ -1,7 +1,7 @@
package authz
import (
context "context"
"context"
"cosmossdk.io/core/address"

View File

@ -1,7 +1,7 @@
package authz
import (
fmt "fmt"
"fmt"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
)

View File

@ -1,6 +1,6 @@
package authz
import grpc "google.golang.org/grpc"
import "google.golang.org/grpc"
// MsgServiceDesc return ServiceDesc for Msg server
func MsgServiceDesc() *grpc.ServiceDesc {

View File

@ -1,7 +1,7 @@
package testutil
import (
context "context"
"context"
bankkeeper "cosmossdk.io/x/bank/keeper"
"cosmossdk.io/x/bank/types"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/core/address"
"cosmossdk.io/x/auth/types"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/core/address"

View File

@ -1,7 +1,7 @@
package keeper
import (
context "context"
"context"
"cosmossdk.io/x/circuit/types"
)

View File

@ -1,7 +1,7 @@
package keeper
import (
context "context"
"context"
"cosmossdk.io/collections"
"cosmossdk.io/core/address"

View File

@ -2,7 +2,7 @@ package keeper_test
import (
"bytes"
context "context"
"context"
"testing"
"github.com/stretchr/testify/require"

View File

@ -2,8 +2,8 @@ package keeper
import (
"bytes"
context "context"
fmt "fmt"
"context"
"fmt"
"strings"
"cosmossdk.io/collections"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
)

View File

@ -4,7 +4,7 @@ import (
"context"
"fmt"
metrics "github.com/hashicorp/go-metrics"
"github.com/hashicorp/go-metrics"
"cosmossdk.io/errors"
"cosmossdk.io/x/distribution/types"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/core/address"
stakingtypes "cosmossdk.io/x/staking/types"

View File

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/suite"
errors "cosmossdk.io/errors"
"cosmossdk.io/errors"
storetypes "cosmossdk.io/store/types"
"cosmossdk.io/x/epochs/types"

View File

@ -5,7 +5,7 @@ import (
"encoding/hex"
"fmt"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

View File

@ -3,7 +3,7 @@ package types
import (
"fmt"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"cosmossdk.io/x/evidence/exported"

View File

@ -1,7 +1,7 @@
package types
import (
query "github.com/cosmos/cosmos-sdk/types/query"
"github.com/cosmos/cosmos-sdk/types/query"
)
// Querier routes for the evidence module

View File

@ -2,7 +2,7 @@ package feegrant
import (
"context"
time "time"
"time"
errorsmod "cosmossdk.io/errors"

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
address "cosmossdk.io/core/address"
"cosmossdk.io/core/address"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"

View File

@ -3,7 +3,7 @@
package testutil
import (
context "context"
"context"
"cosmossdk.io/math"
bankkeeper "cosmossdk.io/x/bank/keeper"

View File

@ -1,6 +1,6 @@
package v1beta1
import context "context"
import "context"
// Content defines an interface that a proposal must implement. It contains
// information such as the title and description along with the type and routing

View File

@ -1,7 +1,7 @@
package v1beta1
import (
context "context"
"context"
"fmt"
"strings"
"time"

View File

@ -1,7 +1,7 @@
package group
import (
context "context"
"context"
"cosmossdk.io/core/address"

View File

@ -3,7 +3,7 @@
package testutil
import (
context "context"
"context"
bank "cosmossdk.io/x/bank/types"
"cosmossdk.io/x/group"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"time"
proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"
"cosmossdk.io/core/address"
errorsmod "cosmossdk.io/errors"

View File

@ -1,7 +1,7 @@
package types // noalias
import (
context "context"
"context"
"cosmossdk.io/core/address"
"cosmossdk.io/math"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/math"
)

View File

@ -1,7 +1,7 @@
package nft
import (
context "context"
"context"
"cosmossdk.io/core/address"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"cosmossdk.io/core/address"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
st "cosmossdk.io/api/cosmos/staking/v1beta1"
"cosmossdk.io/core/address"

View File

@ -8,7 +8,7 @@ import (
st "cosmossdk.io/api/cosmos/staking/v1beta1"
"cosmossdk.io/collections"
"cosmossdk.io/math"
types "cosmossdk.io/x/staking/types"
"cosmossdk.io/x/staking/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
cmtprotocrypto "github.com/cometbft/cometbft/proto/tendermint/crypto"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
sdkmath "cosmossdk.io/math"

View File

@ -1,7 +1,7 @@
package types
import (
context "context"
"context"
"github.com/cosmos/cosmos-sdk/types/module"
)