Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 24, 2024
1 parent 58e6cbe commit ba0f7ce
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"cosmossdk.io/core/registry"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)
Expand Down
5 changes: 3 additions & 2 deletions modules/apps/27-interchain-accounts/host/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"

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

// RegisterInterfaces registers the interchain accounts host message types using the provided InterfaceRegistry
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgUpdateParams{},
Expand Down
4 changes: 2 additions & 2 deletions modules/apps/27-interchain-accounts/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
import (
"github.com/cosmos/gogoproto/proto"

"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"
errorsmod "cosmossdk.io/errors"

"github.com/cosmos/cosmos-sdk/codec"
Expand All @@ -23,7 +23,7 @@ var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())

// RegisterInterfaces registers the interchain accounts controller types and the concrete InterchainAccount implementation
// against the associated x/auth AccountI and GenesisAccount interfaces.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations((*sdk.AccountI)(nil), &InterchainAccount{})
registry.RegisterImplementations((*authtypes.GenesisAccount)(nil), &InterchainAccount{})
}
Expand Down
7 changes: 4 additions & 3 deletions modules/apps/29-fee/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand All @@ -11,7 +12,7 @@ import (

// RegisterLegacyAminoCodec registers the necessary x/ibc 29-fee interfaces and concrete types
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterLegacyAminoCodec(cdc registry.AminoRegistrar) {
func RegisterLegacyAminoCodec(cdc coreregistry.AminoRegistrar) {
legacy.RegisterAminoMsg(cdc, &MsgPayPacketFee{}, "cosmos-sdk/MsgPayPacketFee")
legacy.RegisterAminoMsg(cdc, &MsgPayPacketFeeAsync{}, "cosmos-sdk/MsgPayPacketFeeAsync")
legacy.RegisterAminoMsg(cdc, &MsgRegisterPayee{}, "cosmos-sdk/MsgRegisterPayee")
Expand All @@ -20,7 +21,7 @@ func RegisterLegacyAminoCodec(cdc registry.AminoRegistrar) {

// RegisterInterfaces register the 29-fee module interfaces to protobuf
// Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgPayPacketFee{},
Expand Down
1 change: 1 addition & 0 deletions modules/apps/callbacks/callbacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (s *CallbacksTestSuite) RegisterInterchainAccount(owner string) {
s.Require().NotEmpty(res)
s.Require().NoError(err)

fmt.Println(res.Events)
channelID, err := ibctesting.ParseChannelIDFromEvents(res.Events)
s.Require().NoError(err)

Expand Down
6 changes: 4 additions & 2 deletions modules/apps/callbacks/testing/simapp/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import (
slashingtypes "cosmossdk.io/x/slashing/types"
"cosmossdk.io/x/staking"
stakingtypes "cosmossdk.io/x/staking/types"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmttypes "github.com/cometbft/cometbft/types"

cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"

cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmttypes "github.com/cometbft/cometbft/types"
)

// ExportAppStateAndValidators exports the state of the application for a genesis
Expand Down
6 changes: 3 additions & 3 deletions modules/apps/transfer/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"
"cosmossdk.io/x/authz"

"github.com/cosmos/cosmos-sdk/codec"
Expand All @@ -13,13 +13,13 @@ import (

// RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterLegacyAminoCodec(cdc registry.AminoRegistrar) {
func RegisterLegacyAminoCodec(cdc coreregistry.AminoRegistrar) {
legacy.RegisterAminoMsg(cdc, &MsgTransfer{}, "cosmos-sdk/MsgTransfer")
}

// RegisterInterfaces register the ibc transfer module interfaces to protobuf
// Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgTransfer{}, &MsgUpdateParams{})

registry.RegisterImplementations(
Expand Down
4 changes: 2 additions & 2 deletions modules/core/02-client/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
import (
"github.com/cosmos/gogoproto/proto"

"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"
errorsmod "cosmossdk.io/errors"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
Expand All @@ -15,7 +15,7 @@ import (
)

// RegisterInterfaces registers the client interfaces to protobuf Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterInterface(
"ibc.core.client.v1.ClientState",
(*exported.ClientState)(nil),
Expand Down
5 changes: 3 additions & 2 deletions modules/core/03-connection/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -10,7 +11,7 @@ import (

// RegisterInterfaces register the ibc interfaces submodule implementations to protobuf
// Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgConnectionOpenInit{},
Expand Down
5 changes: 3 additions & 2 deletions modules/core/04-channel/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -12,7 +13,7 @@ import (

// RegisterInterfaces register the ibc channel submodule interfaces to protobuf
// Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterInterface(
"ibc.core.channel.v1.PacketI",
(*exported.PacketI)(nil),
Expand Down
5 changes: 3 additions & 2 deletions modules/core/23-commitment/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package types

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"

v2 "github.com/cosmos/ibc-go/v9/modules/core/23-commitment/types/v2"
"github.com/cosmos/ibc-go/v9/modules/core/exported"
)

// RegisterInterfaces registers the commitment interfaces to protobuf Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterInterface(
"ibc.core.commitment.v1.Root",
(*exported.Root)(nil),
Expand Down
1 change: 1 addition & 0 deletions modules/core/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"cosmossdk.io/core/registry"

clienttypes "github.com/cosmos/ibc-go/v9/modules/core/02-client/types"
connectiontypes "github.com/cosmos/ibc-go/v9/modules/core/03-connection/types"
channeltypes "github.com/cosmos/ibc-go/v9/modules/core/04-channel/types"
Expand Down
4 changes: 2 additions & 2 deletions modules/light-clients/06-solomachine/codec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package solomachine

import (
"cosmossdk.io/core/registry"
coreregistry "cosmossdk.io/core/registry"
errorsmod "cosmossdk.io/errors"

"github.com/cosmos/cosmos-sdk/codec"
Expand All @@ -12,7 +12,7 @@ import (

// RegisterInterfaces register the ibc channel submodule interfaces to protobuf
// Any.
func RegisterInterfaces(registry registry.InterfaceRegistrar) {
func RegisterInterfaces(registry coreregistry.InterfaceRegistrar) {
registry.RegisterImplementations(
(*exported.ClientState)(nil),
&ClientState{},
Expand Down
1 change: 1 addition & 0 deletions modules/light-clients/07-tendermint/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tendermint

import (
"cosmossdk.io/core/registry"

"github.com/cosmos/ibc-go/v9/modules/core/exported"
)

Expand Down
6 changes: 4 additions & 2 deletions modules/light-clients/08-wasm/testing/simapp/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import (
slashingtypes "cosmossdk.io/x/slashing/types"
"cosmossdk.io/x/staking"
stakingtypes "cosmossdk.io/x/staking/types"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmttypes "github.com/cometbft/cometbft/types"

cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
sdk "github.com/cosmos/cosmos-sdk/types"

cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmttypes "github.com/cometbft/cometbft/types"
)

// ExportAppStateAndValidators exports the state of the application for a genesis
Expand Down
1 change: 1 addition & 0 deletions modules/light-clients/08-wasm/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"cosmossdk.io/core/registry"

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

Expand Down

0 comments on commit ba0f7ce

Please sign in to comment.