Skip to content

Commit

Permalink
linf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jul 22, 2024
1 parent 62e8963 commit eec42ba
Show file tree
Hide file tree
Showing 29 changed files with 49 additions and 30 deletions.
2 changes: 1 addition & 1 deletion codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package codec

import (
"github.com/cosmos/gogoproto/proto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
"google.golang.org/grpc/encoding"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/cosmos/cosmos-sdk/codec/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

type (
Expand Down
3 changes: 2 additions & 1 deletion crypto/keyring/legacy_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"errors"
"fmt"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec/legacy"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// Deprecated: LegacyInfo is the publicly exposed information about a keypair
Expand Down
3 changes: 2 additions & 1 deletion crypto/keyring/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package keyring
import (
"errors"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

errorsmod "cosmossdk.io/errors"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/crypto/hd"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/multisig/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"fmt"

cmtcrypto "github.com/cometbft/cometbft/crypto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
multisigtypes "github.com/cosmos/cosmos-sdk/crypto/types/multisig"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion types/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
coretypes "github.com/cometbft/cometbft/rpc/core/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

func (gi GasInfo) String() string {
Expand Down
3 changes: 2 additions & 1 deletion types/tx/direct_aux.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package tx

import (
gogoprotoany "github.com/cosmos/gogoproto/types/any"

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// ValidateBasic performs stateless validation of the sign doc.
Expand Down
3 changes: 2 additions & 1 deletion types/tx/ext.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package tx

import (
"github.com/cosmos/cosmos-sdk/codec/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

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

// TxExtensionOptionI defines the interface for tx extension options
Expand Down
3 changes: 2 additions & 1 deletion types/tx/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package tx
import (
"fmt"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion types/tx/signing/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package signing
import (
"fmt"

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

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

// SignatureV2 is a convenience type that is easier to use in application logic
Expand Down
2 changes: 1 addition & 1 deletion types/tx/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package tx
import (
"fmt"

gogoprotoany "github.com/cosmos/gogoproto/types/any"
"google.golang.org/protobuf/reflect/protoreflect"

"cosmossdk.io/core/registry"
Expand All @@ -12,7 +13,6 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// MaxGasWanted defines the max gas allowed.
Expand Down
2 changes: 1 addition & 1 deletion x/auth/migrations/legacytx/stdsign.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"

gogoprotoany "github.com/cosmos/gogoproto/types/any"
"sigs.k8s.io/yaml"

"cosmossdk.io/errors"
Expand All @@ -15,7 +16,6 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/types/multisig"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// LegacyMsg defines the old interface a message must fulfill,
Expand Down
3 changes: 2 additions & 1 deletion x/auth/migrations/legacytx/stdsignmsg.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package legacytx

import (
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var _ gogoprotoany.UnpackInterfacesMessage = StdSignMsg{}
Expand Down
3 changes: 2 additions & 1 deletion x/auth/migrations/legacytx/stdtx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package legacytx

import (
gogoprotoany "github.com/cosmos/gogoproto/types/any"

errorsmod "cosmossdk.io/errors"
"cosmossdk.io/math"

Expand All @@ -9,7 +11,6 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// Interface implementation checks
Expand Down
3 changes: 2 additions & 1 deletion x/auth/types/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import (
"fmt"
"strings"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/address"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion x/auth/types/query.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

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

func (m *QueryAccountResponse) UnpackInterfaces(unpacker gogoprotoany.AnyUnpacker) error {
Expand Down
3 changes: 2 additions & 1 deletion x/authz/authorization_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"time"

"github.com/cosmos/gogoproto/proto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

errorsmod "cosmossdk.io/errors"

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// NewGrant returns new Grant. Expiration is optional and noop if null.
Expand Down
3 changes: 2 additions & 1 deletion x/authz/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"math/rand"
"time"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/core/address"
"cosmossdk.io/core/appmodule"
corecontext "cosmossdk.io/core/context"
Expand All @@ -13,7 +15,6 @@ import (
"cosmossdk.io/x/authz"
"cosmossdk.io/x/authz/keeper"
banktype "cosmossdk.io/x/bank/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
Expand Down
3 changes: 1 addition & 2 deletions x/evidence/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import (
"fmt"

"github.com/cosmos/gogoproto/proto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/x/evidence/exported"

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

gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var _ gogoprotoany.UnpackInterfacesMessage = GenesisState{}
Expand Down
2 changes: 1 addition & 1 deletion x/evidence/types/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"testing"
"time"

gogoprotoany "github.com/cosmos/gogoproto/types/any"
"github.com/stretchr/testify/require"

"cosmossdk.io/x/evidence/exported"
"cosmossdk.io/x/evidence/types"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand Down
2 changes: 1 addition & 1 deletion x/feegrant/grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package feegrant

import (
"github.com/cosmos/gogoproto/proto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

errorsmod "cosmossdk.io/errors"

"github.com/cosmos/cosmos-sdk/codec/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

var _ gogoprotoany.UnpackInterfacesMessage = &Grant{}
Expand Down
3 changes: 2 additions & 1 deletion x/gov/types/v1/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"errors"
"fmt"

"cosmossdk.io/x/gov/types/v1beta1"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/x/gov/types/v1beta1"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdktx "github.com/cosmos/cosmos-sdk/types/tx"
Expand Down
3 changes: 2 additions & 1 deletion x/gov/types/v1beta1/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package v1beta1
import (
"fmt"

"cosmossdk.io/math"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/math"
)

// NewGenesisState creates a new genesis state for the governance module
Expand Down
3 changes: 2 additions & 1 deletion x/group/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package group
import (
"fmt"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

errorsmod "cosmossdk.io/errors"

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// NewGenesisState creates a new genesis state with default values.
Expand Down
3 changes: 2 additions & 1 deletion x/group/proposal.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package group

import (
gogoprotoany "github.com/cosmos/gogoproto/types/any"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/tx"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

// GetMsgs unpacks p.Messages Any's into sdk.Msg's
Expand Down
3 changes: 2 additions & 1 deletion x/group/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"sync/atomic"
"time"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/core/address"
"cosmossdk.io/x/group"
"cosmossdk.io/x/group/keeper"
Expand All @@ -20,7 +22,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

const unsetGroupID = 100000000000000
Expand Down
2 changes: 1 addition & 1 deletion x/group/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"time"

"github.com/cosmos/gogoproto/proto"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/core/address"
errorsmod "cosmossdk.io/errors"
"cosmossdk.io/x/group/errors"
"cosmossdk.io/x/group/internal/math"
"cosmossdk.io/x/group/internal/orm"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
3 changes: 2 additions & 1 deletion x/staking/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package types
import (
"encoding/json"

"github.com/cosmos/cosmos-sdk/codec"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

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

// NewGenesisState creates a new GenesisState instance
Expand Down
3 changes: 2 additions & 1 deletion x/staking/types/msg.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package types

import (
gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/core/address"
coretransaction "cosmossdk.io/core/transaction"
errorsmod "cosmossdk.io/errors"
"cosmossdk.io/math"
gogoprotoany "github.com/cosmos/gogoproto/types/any"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down
3 changes: 2 additions & 1 deletion x/staking/types/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"strings"
"time"

gogoprotoany "github.com/cosmos/gogoproto/types/any"

"cosmossdk.io/core/address"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/errors"
Expand All @@ -17,7 +19,6 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
gogoprotoany "github.com/cosmos/gogoproto/types/any"
)

const (
Expand Down

0 comments on commit eec42ba

Please sign in to comment.