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

Sdk v0.46.* and ibc-go v5.1.0 #349

Merged
merged 77 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
34d23df
bump version: sdk => 0.46.4, ibc => 5.1.0
hieuvubk Nov 17, 2022
87a5a23
update version grpc
hieuvubk Nov 17, 2022
33a6066
fix keychain import
hieuvubk Nov 17, 2022
c11dd19
change import govtypes & store keys
hieuvubk Nov 17, 2022
2d82b3f
fixing
hieuvubk Nov 17, 2022
3c30499
fix OnChanOpenInit
hieuvubk Nov 17, 2022
91a46f4
NewIBCModule => NewIBCMiddleware
hieuvubk Nov 17, 2022
66a4bd8
remove register rest api
hieuvubk Nov 17, 2022
7c3ebd2
fix testutil network prunning
Nov 17, 2022
5f81dd4
fix pruning testutil
Nov 17, 2022
d92b389
fix RegisterTendermintService
hieuvubk Nov 17, 2022
553c297
Merge branch 'upgrade_ibc_v5' of https://github.com/notional-labs/str…
hieuvubk Nov 17, 2022
a378c78
fix app.go
hieuvubk Nov 17, 2022
dad9eef
fix genaccount & main cmd
hieuvubk Nov 17, 2022
a5edb43
fix root.go in cmd
Nov 17, 2022
82d08c1
pull upstream
Nov 17, 2022
b70b627
fix empty valset
hieuvubk Nov 18, 2022
67fbece
fixing
hieuvubk Nov 18, 2022
9f7b932
get appVersion
hieuvubk Nov 21, 2022
e65581d
fixing parse coin
hieuvubk Nov 21, 2022
da8a4be
fix test for ibc denom
hieuvubk Nov 21, 2022
e43200c
remove fmt
hieuvubk Nov 21, 2022
52e9759
fix merge confilct
Nov 21, 2022
b7433c1
fix lint error
Nov 21, 2022
948675c
upgrade to v0.46.6 to avoid err
hieuvubk Nov 22, 2022
ca2fe15
Merge branch 'upgrade_ibc_v5' of https://github.com/notional-labs/str…
hieuvubk Nov 22, 2022
ec3fb68
add no lint check for sdk.MsgData
Nov 22, 2022
15eebd6
Merge branch 'main' into upgrade_ibc_v5
hieuvubk Nov 22, 2022
1bfff01
fix lint: check func return err
hieuvubk Nov 22, 2022
e0d2d8b
Merge branch 'upgrade_ibc_v5' of https://github.com/notional-labs/str…
hieuvubk Nov 22, 2022
b4232fa
rebuild protos now that we refer to v4
faddat Dec 4, 2022
6812ee1
tidy and correct versions in go.mod
faddat Dec 4, 2022
acd8c57
update stride
faddat Dec 4, 2022
bafb8d4
further bumps
faddat Dec 4, 2022
e032969
fixes
faddat Dec 4, 2022
1fcdc2e
fix queries.go
faddat Dec 4, 2022
d56efb6
fix abci types
faddat Dec 4, 2022
92daa30
revert change bats
hieuvubk Dec 4, 2022
f6723f4
fix queries.go
hieuvubk Dec 4, 2022
f304ca9
lint: remove unused field
hieuvubk Dec 4, 2022
b5c9574
Merge branch 'main' into upgrade_ibc_v5
asalzmann Dec 6, 2022
86ac940
Add test for err MintStAsset
DongLieu Dec 9, 2022
a4b0672
Merge pull request #12 from notional-labs/Unit-test-LiquidStake
ThanhNhann Dec 13, 2022
58e4fda
merge
hieuvubk Dec 20, 2022
f0b4247
Merge branch 'main' of https://github.com/notional-labs/stride into main
hieuvubk Jan 2, 2023
23be8f3
rebase
hieuvubk Jan 2, 2023
5704e44
fix err message
hieuvubk Jan 2, 2023
68c1eef
remove unused test
hieuvubk Jan 2, 2023
8cb8472
sdk 0.46.7
hieuvubk Jan 2, 2023
bed03d2
use cosmosmath.Int to fix lint
hieuvubk Jan 4, 2023
921b0f6
use cosmosmath
hieuvubk Jan 6, 2023
ee0df1d
remove unused cmt
hieuvubk Jan 6, 2023
a0d2adf
Merge branch 'main' into upgrade_ibc_v5
asalzmann Jan 6, 2023
198f5ac
sam comments
asalzmann Jan 6, 2023
0f49cc1
update handle ack
hieuvubk Jan 6, 2023
7e5aa93
pull
hieuvubk Jan 6, 2023
1e3be24
remove nolint flags
hieuvubk Jan 6, 2023
70d2e45
fix lint
hieuvubk Jan 6, 2023
f8cd873
remove comments
hieuvubk Jan 6, 2023
11b6209
Merge branch 'main' into upgrade_ibc_v5
hieuvubk Jan 6, 2023
cd36b83
cosmosmath => sdkmath
hieuvubk Jan 6, 2023
d52dd5b
add ICATxResponse type, branch sdk 45/46 logic
asalzmann Jan 6, 2023
2d185ab
refactored ica callback ack handling
sampocs Jan 6, 2023
8e356f2
updated relayer for v5
sampocs Jan 6, 2023
36c379d
pr comments and integration test fixes
sampocs Jan 7, 2023
af6f288
rm nil ack
asalzmann Jan 7, 2023
28ffb8d
added debugging logs in ack unwrapper
sampocs Jan 9, 2023
d1af58c
added unit tests for UnpackAck
sampocs Jan 10, 2023
025e373
added parse tx msg data function and more unit tests
sampocs Jan 10, 2023
782d385
fixed unit tests
sampocs Jan 10, 2023
167caee
Merge branch 'main' into upgrade_ibc_v5
sampocs Jan 10, 2023
e9af2cf
added no lint annotation for sdk.MsgData
sampocs Jan 10, 2023
cfc9861
Merge remote-tracking branch 'upstream/main' into upgrade_ibc_v5
sampocs Jan 10, 2023
b6ce2d0
added logging helper to print ICA status
sampocs Jan 10, 2023
593429f
Merge remote-tracking branch 'upstream/main' into upgrade_ibc_v5
sampocs Jan 10, 2023
1717780
fixed bug in counterparty connection with registering a host zone/res…
sampocs Jan 10, 2023
5fc4413
fixed unit tests
sampocs Jan 10, 2023
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
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
path = deps/hermes
url = https://github.com/informalsystems/ibc-rs.git
[submodule "deps/relayer"]
# Commit: 6e53d10622a943e13b339d82854aa205f276208d
# Branch: aidan/client_icq_patch
# Commit: 7f78a4d608329b2ae07a6512381bbadffee66be6
# Branch: andrew/client_icq
path = deps/relayer
url = https://github.com/Stride-Labs/relayer
url = https://github.com/cosmos/relayer.git
[submodule "deps/gaia"]
# Commit: 5b47714dd5607993a1a91f2b06a6d92cbb504721
path = deps/gaia
Expand Down
107 changes: 57 additions & 50 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import (
"os"
"path/filepath"

porttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
porttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types"

"github.com/Stride-Labs/stride/v4/utils"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/server/api"
Expand All @@ -22,7 +21,6 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -56,6 +54,8 @@ import (
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govtypesv1beta1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"

claimvesting "github.com/Stride-Labs/stride/v4/x/claim/vesting"
claimvestingtypes "github.com/Stride-Labs/stride/v4/x/claim/vesting/types"
Expand All @@ -79,32 +79,32 @@ import (
upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client"
upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/cosmos/ibc-go/v3/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v3/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v3/modules/core"
ibcclient "github.com/cosmos/ibc-go/v3/modules/core/02-client"
ibcclientclient "github.com/cosmos/ibc-go/v3/modules/core/02-client/client"
ibcclienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
ibcporttypes "github.com/cosmos/ibc-go/v3/modules/core/05-port/types"
ibchost "github.com/cosmos/ibc-go/v3/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper"
ibctesting "github.com/cosmos/ibc-go/v3/testing"
"github.com/cosmos/ibc-go/v5/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v5/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v5/modules/core"
ibcclient "github.com/cosmos/ibc-go/v5/modules/core/02-client"
ibcclientclient "github.com/cosmos/ibc-go/v5/modules/core/02-client/client"
ibcclienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types"
ibcporttypes "github.com/cosmos/ibc-go/v5/modules/core/05-port/types"
ibchost "github.com/cosmos/ibc-go/v5/modules/core/24-host"
ibckeeper "github.com/cosmos/ibc-go/v5/modules/core/keeper"
ibctesting "github.com/cosmos/ibc-go/v5/testing"
"github.com/spf13/cast"
abci "github.com/tendermint/tendermint/abci/types"
tmjson "github.com/tendermint/tendermint/libs/json"
"github.com/tendermint/tendermint/libs/log"
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

ica "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts"
icacontroller "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller"
icacontrollerkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/keeper"
icacontrollertypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/controller/types"
icahost "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host"
icahostkeeper "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper"
icahosttypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/types"
ica "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts"
icacontroller "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller"
icacontrollerkeeper "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/keeper"
icacontrollertypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/controller/types"
icahost "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host"
icahostkeeper "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/keeper"
icahosttypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types"

// monitoringp "github.com/tendermint/spn/x/monitoringp"
// monitoringpkeeper "github.com/tendermint/spn/x/monitoringp/keeper"
Expand All @@ -130,7 +130,12 @@ import (
stakeibcclient "github.com/Stride-Labs/stride/v4/x/stakeibc/client"
stakeibcmodulekeeper "github.com/Stride-Labs/stride/v4/x/stakeibc/keeper"
stakeibcmoduletypes "github.com/Stride-Labs/stride/v4/x/stakeibc/types"

// this line is used by starport scaffolding # stargate/app/moduleImport
storetypes "github.com/cosmos/cosmos-sdk/store/types"
ibcfeekeeper "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/keeper"
ibcfeetypes "github.com/cosmos/ibc-go/v5/modules/apps/29-fee/types"
ibctestingtypes "github.com/cosmos/ibc-go/v5/testing/types"
)

const (
Expand All @@ -148,8 +153,8 @@ func getGovProposalHandlers() []govclient.ProposalHandler {
govProposalHandlers = append(govProposalHandlers,
paramsclient.ProposalHandler,
distrclient.ProposalHandler,
upgradeclient.ProposalHandler,
upgradeclient.CancelProposalHandler,
upgradeclient.LegacyProposalHandler,
upgradeclient.LegacyCancelProposalHandler,
ibcclientclient.UpdateClientProposalHandler,
ibcclientclient.UpgradeProposalHandler,
stakeibcclient.AddValidatorProposalHandler,
Expand All @@ -175,7 +180,7 @@ var (
staking.AppModuleBasic{},
mint.AppModuleBasic{},
distr.AppModuleBasic{},
gov.NewAppModuleBasic(getGovProposalHandlers()...),
gov.NewAppModuleBasic(getGovProposalHandlers()),
params.AppModuleBasic{},
crisis.AppModuleBasic{},
slashing.AppModuleBasic{},
Expand Down Expand Up @@ -242,9 +247,9 @@ type StrideApp struct {
invCheckPeriod uint

// keys to access the substores
keys map[string]*sdk.KVStoreKey
tkeys map[string]*sdk.TransientStoreKey
memKeys map[string]*sdk.MemoryStoreKey
keys map[string]*storetypes.KVStoreKey
tkeys map[string]*storetypes.TransientStoreKey
memKeys map[string]*storetypes.MemoryStoreKey

// keepers
AccountKeeper authkeeper.AccountKeeper
Expand Down Expand Up @@ -346,7 +351,7 @@ func NewStrideApp(
app.ParamsKeeper = initParamsKeeper(appCodec, cdc, keys[paramstypes.StoreKey], tkeys[paramstypes.TStoreKey])

// set the BaseApp's parameter store
bApp.SetParamStore(app.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramskeeper.ConsensusParamsKeyTable()))
bApp.SetParamStore(app.ParamsKeeper.Subspace(baseapp.Paramspace).WithKeyTable(paramstypes.ConsensusParamsKeyTable()))

// add capability keeper and ScopeToModule for ibc module
app.CapabilityKeeper = capabilitykeeper.NewKeeper(appCodec, keys[capabilitytypes.StoreKey], memKeys[capabilitytypes.MemStoreKey])
Expand All @@ -360,13 +365,14 @@ func NewStrideApp(

// add keepers
app.AccountKeeper = authkeeper.NewAccountKeeper(
appCodec, keys[authtypes.StoreKey], app.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms,
appCodec, keys[authtypes.StoreKey], app.GetSubspace(authtypes.ModuleName), authtypes.ProtoBaseAccount, maccPerms, AccountAddressPrefix,
)

app.AuthzKeeper = authzkeeper.NewKeeper(
keys[authzkeeper.StoreKey],
appCodec,
app.BaseApp.MsgServiceRouter(),
app.AccountKeeper,
)

app.BankKeeper = bankkeeper.NewBaseKeeper(
Expand All @@ -381,7 +387,7 @@ func NewStrideApp(
)
app.DistrKeeper = distrkeeper.NewKeeper(
appCodec, keys[distrtypes.StoreKey], app.GetSubspace(distrtypes.ModuleName), app.AccountKeeper, app.BankKeeper,
&stakingKeeper, authtypes.FeeCollectorName, app.ModuleAccountAddrs(),
&stakingKeeper, authtypes.FeeCollectorName,
)
app.SlashingKeeper = slashingkeeper.NewKeeper(
appCodec, keys[slashingtypes.StoreKey], &stakingKeeper, app.GetSubspace(slashingtypes.ModuleName),
Expand All @@ -397,7 +403,7 @@ func NewStrideApp(
app.BankKeeper, app.StakingKeeper, app.DistrKeeper, epochsKeeper)

app.FeeGrantKeeper = feegrantkeeper.NewKeeper(appCodec, keys[feegrant.StoreKey], app.AccountKeeper)
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp)
app.UpgradeKeeper = upgradekeeper.NewKeeper(skipUpgradeHeights, keys[upgradetypes.StoreKey], appCodec, homePath, app.BaseApp, authtypes.NewModuleAddress(govtypes.ModuleName).String())

// register the staking hooks
// NOTE: stakingKeeper above is passed by reference, so that it will contain these hooks
Expand Down Expand Up @@ -510,8 +516,8 @@ func NewStrideApp(
stakeibcIBCModule := stakeibcmodule.NewIBCModule(app.StakeibcKeeper)

// Register Gov (must be registerd after stakeibc)
govRouter := govtypes.NewRouter()
govRouter.AddRoute(govtypes.RouterKey, govtypes.ProposalHandler).
govRouter := govtypesv1beta1.NewRouter()
govRouter.AddRoute(govtypes.RouterKey, govtypesv1beta1.ProposalHandler).
AddRoute(paramproposal.RouterKey, params.NewParamChangeProposalHandler(app.ParamsKeeper)).
AddRoute(distrtypes.RouterKey, distr.NewCommunityPoolSpendProposalHandler(app.DistrKeeper)).
AddRoute(upgradetypes.RouterKey, upgrade.NewSoftwareUpgradeProposalHandler(app.UpgradeKeeper)).
Expand All @@ -520,7 +526,7 @@ func NewStrideApp(

app.GovKeeper = govkeeper.NewKeeper(
appCodec, keys[govtypes.StoreKey], app.GetSubspace(govtypes.ModuleName), app.AccountKeeper, app.BankKeeper,
&stakingKeeper, govRouter,
&stakingKeeper, govRouter, app.MsgServiceRouter(), govtypes.DefaultConfig(),
)

// Register ICQ callbacks
Expand Down Expand Up @@ -552,13 +558,19 @@ func NewStrideApp(
}

// this line is used by starport scaffolding # stargate/app/keeperDefinition
ibcFeeKeeper := ibcfeekeeper.NewKeeper(
appCodec, app.keys[ibcfeetypes.StoreKey], app.GetSubspace(ibcfeetypes.ModuleName),
app.IBCKeeper.ChannelKeeper, // may be replaced with IBC middleware
app.IBCKeeper.ChannelKeeper,
&app.IBCKeeper.PortKeeper, app.AccountKeeper, app.BankKeeper,
)

// create IBC middleware stacks by combining middleware with base application
app.ICAHostKeeper = icahostkeeper.NewKeeper(
appCodec, keys[icahosttypes.StoreKey], app.GetSubspace(icahosttypes.SubModuleName),
ibcFeeKeeper,
app.IBCKeeper.ChannelKeeper, &app.IBCKeeper.PortKeeper,
app.AccountKeeper, scopedICAHostKeeper, app.MsgServiceRouter(),
)
app.AccountKeeper, scopedICAHostKeeper, app.MsgServiceRouter())
icaModule := ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper)

// Create the middleware stacks
Expand All @@ -571,7 +583,7 @@ func NewStrideApp(
// - base app
var icamiddlewareStack porttypes.IBCModule
icamiddlewareStack = icacallbacksmodule.NewIBCModule(app.IcacallbacksKeeper, stakeibcIBCModule)
icamiddlewareStack = icacontroller.NewIBCModule(app.ICAControllerKeeper, icamiddlewareStack)
icamiddlewareStack = icacontroller.NewIBCMiddleware(icamiddlewareStack, app.ICAControllerKeeper)
icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper)

// Stack two contains
Expand Down Expand Up @@ -818,7 +830,7 @@ func (app *StrideApp) Name() string { return app.BaseApp.Name() }
func (app *StrideApp) GetBaseApp() *baseapp.BaseApp { return app.BaseApp }

// GetStakingKeeper implements the TestingApp interface.
func (app *StrideApp) GetStakingKeeper() stakingkeeper.Keeper {
func (app *StrideApp) GetStakingKeeper() ibctestingtypes.StakingKeeper {
return app.StakingKeeper
}

Expand Down Expand Up @@ -918,21 +930,21 @@ func (app *StrideApp) InterfaceRegistry() types.InterfaceRegistry {
// GetKey returns the KVStoreKey for the provided store key.
//
// NOTE: This is solely to be used for testing purposes.
func (app *StrideApp) GetKey(storeKey string) *sdk.KVStoreKey {
func (app *StrideApp) GetKey(storeKey string) *storetypes.KVStoreKey {
return app.keys[storeKey]
}

// GetTKey returns the TransientStoreKey for the provided store key.
//
// NOTE: This is solely to be used for testing purposes.
func (app *StrideApp) GetTKey(storeKey string) *sdk.TransientStoreKey {
func (app *StrideApp) GetTKey(storeKey string) *storetypes.TransientStoreKey {
return app.tkeys[storeKey]
}

// GetMemKey returns the MemStoreKey for the provided mem key.
//
// NOTE: This is solely used for testing purposes.
func (app *StrideApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey {
func (app *StrideApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey {
return app.memKeys[storeKey]
}

Expand All @@ -948,16 +960,11 @@ func (app *StrideApp) GetSubspace(moduleName string) paramstypes.Subspace {
// API server.
func (app *StrideApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
clientCtx := apiSvr.ClientCtx
rpc.RegisterRoutes(clientCtx, apiSvr.Router)
// Register legacy tx routes.
authrest.RegisterTxRoutes(clientCtx, apiSvr.Router)
// Register new tx routes from grpc-gateway.
authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
// Register new tendermint queries routes from grpc-gateway.
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)

// Register legacy and grpc-gateway routes for all modules.
ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router)
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
}

Expand All @@ -968,7 +975,7 @@ func (app *StrideApp) RegisterTxService(clientCtx client.Context) {

// RegisterTendermintService implements the Application.RegisterTendermintService method.
func (app *StrideApp) RegisterTendermintService(clientCtx client.Context) {
tmservice.RegisterTendermintService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.interfaceRegistry)
tmservice.RegisterTendermintService(clientCtx, app.BaseApp.GRPCQueryRouter(), app.interfaceRegistry, app.Query)
}

// GetMaccPerms returns a copy of the module account permissions
Expand All @@ -981,7 +988,7 @@ func GetMaccPerms() map[string][]string {
}

// initParamsKeeper init params keeper and its subspaces
func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey sdk.StoreKey) paramskeeper.Keeper {
func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey storetypes.StoreKey) paramskeeper.Keeper {
paramsKeeper := paramskeeper.NewKeeper(appCodec, legacyAmino, key, tkey)

paramsKeeper.Subspace(authtypes.ModuleName)
Expand All @@ -990,7 +997,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(minttypes.ModuleName)
paramsKeeper.Subspace(distrtypes.ModuleName)
paramsKeeper.Subspace(slashingtypes.ModuleName)
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govtypes.ParamKeyTable())
paramsKeeper.Subspace(govtypes.ModuleName).WithKeyTable(govtypesv1.ParamKeyTable())
paramsKeeper.Subspace(crisistypes.ModuleName)
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibchost.ModuleName)
Expand Down
Loading