Skip to content

Commit

Permalink
create icq module, and add to ibc router
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Apr 11, 2023
1 parent 2aefeef commit a431cc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import (
feesharekeeper "github.com/CosmosContracts/juno/v15/x/feeshare/keeper"
feesharetypes "github.com/CosmosContracts/juno/v15/x/feeshare/types"

icq "github.com/strangelove-ventures/async-icq/v4"
icqkeeper "github.com/strangelove-ventures/async-icq/v4/keeper"
icqtypes "github.com/strangelove-ventures/async-icq/v4/types"

Expand Down Expand Up @@ -481,12 +482,16 @@ func NewAppKeepers(
wasmStack = wasm.NewIBCHandler(appKeepers.WasmKeeper, appKeepers.IBCKeeper.ChannelKeeper, appKeepers.IBCFeeKeeper)
wasmStack = ibcfee.NewIBCMiddleware(wasmStack, appKeepers.IBCFeeKeeper)

// create ICQ module
icqModule := icq.NewIBCModule(appKeepers.ICQKeeper)

// Create static IBC router, add transfer route, then set and seal it
ibcRouter := porttypes.NewRouter().
AddRoute(ibctransfertypes.ModuleName, transferStack).
AddRoute(wasm.ModuleName, wasmStack).
AddRoute(icacontrollertypes.SubModuleName, icaControllerStack).
AddRoute(icahosttypes.SubModuleName, icaHostStack)
AddRoute(icahosttypes.SubModuleName, icaHostStack).
AddRoute(icqtypes.ModuleName, icqModule)

appKeepers.IBCKeeper.SetRouter(ibcRouter)

Expand Down

0 comments on commit a431cc3

Please sign in to comment.