Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix test from sdk v0.50 integration branch #3681

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ignite/pkg/cosmosanalysis/app/testdata/app_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package foo

import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
Expand All @@ -14,6 +15,7 @@ type Foo[T any] struct {
i T
}

func (f Foo) AppCodec() codec.Codec { return nil }
func (f Foo[T]) GetKey(storeKey string) *storetypes.KVStoreKey { return nil }
func (f Foo[T]) TxConfig() client.TxConfig { return nil }
func (f Foo[T]) RegisterAPIRoutes() {}
Expand Down
2 changes: 2 additions & 0 deletions ignite/pkg/cosmosanalysis/app/testdata/app_minimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package foo

import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
Expand All @@ -13,6 +14,7 @@ type Foo struct {
FooKeeper foo.keeper
}

func (f Foo) AppCodec() codec.Codec { return nil }
func (f Foo) GetKey(storeKey string) *storetypes.KVStoreKey { return nil }
func (f Foo) TxConfig() client.TxConfig { return nil }
func (f Foo) RegisterAPIRoutes() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
foomodule "github.com/username/test/x/foo"
)

Expand All @@ -35,6 +36,7 @@ var ModuleBasics = module.NewBasicManager(
type Foo struct{}

func (Foo) Name() string { return "foo" }
func (Foo) AppCodec() codec.Codec { return nil }
func (Foo) InterfaceRegistry() codectypes.InterfaceRegistry { return nil }
func (Foo) TxConfig() client.TxConfig { return nil }
func (Foo) AutoCliOpts() autocli.AppOptions { return autocli.AppOptions{} }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
foomodule "github.com/username/test/x/foo"
)
Expand All @@ -36,6 +37,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand All @@ -36,6 +37,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package app

import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
Expand Down Expand Up @@ -34,6 +35,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) GetKey(storeKey string) *storetypes.KVStoreKey { return nil }

func (Foo) TxConfig() client.TxConfig { return nil }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/server/config"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"

"app/modules"
Expand All @@ -19,6 +20,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
foomodule "github.com/username/test/x/foo"
)
Expand All @@ -37,6 +38,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
foomodule "github.com/username/test/x/foo"
)
Expand All @@ -36,6 +37,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
foomodule "github.com/username/test/x/foo"
)
Expand All @@ -34,6 +35,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand All @@ -18,6 +19,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
foomodule "github.com/username/test/x/foo"
)
Expand All @@ -34,6 +35,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand All @@ -18,6 +19,8 @@ func (Foo) Name() string {
return "foo"
}

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gogo/protobuf/codec"
abci "github.com/tendermint/tendermint/abci/types"
)

Expand All @@ -18,6 +19,8 @@ func (Foo) Name() string {

var mm *module.Manager

func (Foo) AppCodec() codec.Codec { return nil }

func (Foo) BeginBlocker(sdk.Context, abci.RequestBeginBlock) abci.ResponseBeginBlock {
return abci.ResponseBeginBlock{}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/cosmos/cosmos-sdk/x/staking"
"github.com/gogo/protobuf/codec"
foomodule "github.com/username/test/x/foo"
)

Expand All @@ -36,6 +37,7 @@ type Foo struct {
}

func (Foo) Name() string { return "foo" }
func (Foo) AppCodec() codec.Codec { return nil }
func (Foo) InterfaceRegistry() codectypes.InterfaceRegistry { return nil }
func (Foo) TxConfig() client.TxConfig { return nil }
func (Foo) AutoCliOpts() autocli.AppOptions { return autocli.AppOptions{} }
Expand Down
3 changes: 3 additions & 0 deletions ignite/pkg/cosmosanalysis/app/testdata/two_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package foo

import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
abci "github.com/tendermint/tendermint/abci/types"
Expand All @@ -13,6 +14,7 @@ type Foo struct {
FooKeeper foo.keeper
}

func (f Foo) AppCodec() codec.Codec { return nil }
func (f Foo) GetKey(storeKey string) *storetypes.KVStoreKey { return nil }
func (f Foo) TxConfig() client.TxConfig { return nil }
func (f Foo) RegisterAPIRoutes() {}
Expand All @@ -31,6 +33,7 @@ type Bar struct {
FooKeeper foo.keeper
}

func (f Bar) AppCodec() codec.Codec { return nil }
func (f Bar) GetKey(storeKey string) *storetypes.KVStoreKey { return nil }
func (f Bar) TxConfig() client.TxConfig { return nil }
func (f Bar) RegisterAPIRoutes() {}
Expand Down
Loading