Skip to content
Open
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
14 changes: 14 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@ import (
icahosttypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/host/types"
icatypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/types"
ibccallbacks "github.com/cosmos/ibc-go/v10/modules/apps/callbacks"
ibccallbacksv2 "github.com/cosmos/ibc-go/v10/modules/apps/callbacks/v2"
"github.com/cosmos/ibc-go/v10/modules/apps/transfer"
ibctransfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
transferv2 "github.com/cosmos/ibc-go/v10/modules/apps/transfer/v2"
ibc "github.com/cosmos/ibc-go/v10/modules/core"
ibcclienttypes "github.com/cosmos/ibc-go/v10/modules/core/02-client/types"
ibcconnectiontypes "github.com/cosmos/ibc-go/v10/modules/core/03-connection/types"
ibcporttypes "github.com/cosmos/ibc-go/v10/modules/core/05-port/types"
ibcapi "github.com/cosmos/ibc-go/v10/modules/core/api"
ibcexported "github.com/cosmos/ibc-go/v10/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v10/modules/core/keeper"
ibctm "github.com/cosmos/ibc-go/v10/modules/light-clients/07-tendermint"
Expand Down Expand Up @@ -826,6 +829,17 @@ func New(
AddRoute(wasmtypes.ModuleName, ibcWasmStack)
app.IBCKeeper.SetRouter(ibcRouter)

// Create IBCv2 Transfer Stack
var transferStackV2 ibcapi.IBCModule
transferStackV2 = transferv2.NewIBCModule(app.TransferKeeper.Keeper)
transferStackV2 = ibccallbacksv2.NewIBCMiddleware(transferStackV2, app.IBCKeeper.ChannelKeeperV2,
ibcWasmStack, app.IBCKeeper.ChannelKeeperV2, maxCallbackGas)

// Create IBCv2 Router & seal
ibcv2Router := ibcapi.NewRouter().
AddRoute(ibctransfertypes.PortID, transferStackV2)
app.IBCKeeper.SetRouterV2(ibcv2Router)

app.DEXKeeper = dexkeeper.NewKeeper(
appCodec,
runtime.NewKVStoreService(keys[dextypes.StoreKey]),
Expand Down
1 change: 1 addition & 0 deletions integration-tests/export/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ var ignoredPrefixes = map[string][][]byte{
},
ibcexported.StoreKey: {
ibchost.KeyClientStorePrefix,
[]byte(ibchost.KeyNextSeqSendPrefix),
},
authzkeeper.StoreKey: {
authzkeeper.GrantQueuePrefix,
Expand Down
Loading
Loading