Skip to content

Commit

Permalink
Merge branch 'main' into feature-20074
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello33 authored Apr 22, 2024
2 parents ee64706 + f31a6a3 commit 3a4385f
Show file tree
Hide file tree
Showing 81 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The version matrix below shows which versions of the Cosmos SDK, modules and lib

#### Core Dependencies

Core Dependencies are the core libraries that a application may depend on.
Core Dependencies are the core libraries that an application may depend on.

> Note: the ❌ signals that the version of the Cosmos SDK does not need to import the dependency.
Expand Down
2 changes: 1 addition & 1 deletion client/debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion client/grpc/node/service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package node

import (
context "context"
"context"

gogogrpc "github.com/cosmos/gogoproto/grpc"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
Expand Down
2 changes: 1 addition & 1 deletion client/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion codec/amino.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion collections/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package collections
import (
"context"
"errors"
io "io"
"io"
"math"

"cosmossdk.io/collections/codec"
Expand Down
2 changes: 1 addition & 1 deletion core/appmodule/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/multisig/amino.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/multisig/multisig.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package multisig

import (
fmt "fmt"
"fmt"

cmtcrypto "github.com/cometbft/cometbft/crypto"

Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/secp256k1/secp256k1_nocgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/secp256r1/pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/secp256r1/pubkey_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crypto/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion depinject/appconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion fuzz/tests/crypto_hd_deriveprivatekeyforpath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion fuzz/tests/tendermint_amino_decodetime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"testing"

amino "github.com/tendermint/go-amino"
"github.com/tendermint/go-amino"
)

func FuzzTendermintAminoDecodeTime(f *testing.F) {
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormfield/bool.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ormfield

import (
io "io"
"io"

"google.golang.org/protobuf/reflect/protoreflect"
)
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormfield/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ormfield

import (
"fmt"
io "io"
"io"

"google.golang.org/protobuf/reflect/protoreflect"
)
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormfield/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ormfield

import (
"encoding/binary"
io "io"
"io"

"google.golang.org/protobuf/reflect/protoreflect"
)
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormfield/int32.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ormfield

import (
"encoding/binary"
io "io"
"io"

"google.golang.org/protobuf/reflect/protoreflect"
)
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormfield/int64.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ormfield

import (
"encoding/binary"
io "io"
"io"

"google.golang.org/protobuf/reflect/protoreflect"
)
Expand Down
2 changes: 1 addition & 1 deletion orm/encoding/ormkv/unique_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion server/cmt_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion store/commitment/iavl/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion store/snapshots/types/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion telemetry/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func SetGaugeWithLabels(keys []string, val float32, labels []metrics.Label) {
metrics.SetGaugeWithLabels(keys, val, append(labels, globalLabels...))
}

// MeasureSince provides a wrapper functionality for emitting a a time measure
// MeasureSince provides a wrapper functionality for emitting a time measure
// metric with global labels (if any).
func MeasureSince(start time.Time, keys ...string) {
if !IsTelemetryEnabled() {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/staking/keeper/vote_extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions testutil/mock/types_handler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions testutil/testdata/codec.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion testutil/testdata/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tools/hubl/internal/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion types/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion types/mempool/sender_nonce_property_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion types/query/filtered_pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package query
import (
"fmt"

proto "github.com/cosmos/gogoproto/proto"
"github.com/cosmos/gogoproto/proto"

"cosmossdk.io/store/types"

Expand Down
2 changes: 1 addition & 1 deletion types/tx/msgs.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tx

import (
fmt "fmt"
"fmt"

"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
4 changes: 2 additions & 2 deletions types/tx_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion version/version_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version_test

import (
context "context"
"context"
"encoding/json"
"fmt"
"runtime"
Expand Down
4 changes: 2 additions & 2 deletions x/accounts/defaults/lockup/types/encoding.go
Original file line number Diff line number Diff line change
@@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion x/auth/tx/gogotx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion x/auth/types/account_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion x/auth/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 3a4385f

Please sign in to comment.