Skip to content

Commit

Permalink
Merge pull request #236 from White-Whale-Defi-Platform/nguyen/add-rou…
Browse files Browse the repository at this point in the history
…ter-stack

Add pfm to ibc stack
  • Loading branch information
faddat authored Sep 14, 2023
2 parents 9a134e0 + c4b80d0 commit ad4cf76
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ func NewMigalooApp(
keys[ibchookstypes.StoreKey],
)
app.IBCHooksKeeper = &hooksKeeper
wasmHooks := ibchooks.NewWasmHooks(&hooksKeeper, nil, "whale") // The contract keeper needs to be set later
migalooPrefix := sdk.GetConfig().GetBech32AccountAddrPrefix()
wasmHooks := ibchooks.NewWasmHooks(&hooksKeeper, nil, migalooPrefix) // The contract keeper needs to be set later
app.Ics20WasmHooks = &wasmHooks
app.HooksICS4Wrapper = ibchooks.NewICS4Middleware(
app.IBCKeeper.ChannelKeeper,
Expand Down Expand Up @@ -632,7 +633,13 @@ func NewMigalooApp(
var transferStack porttypes.IBCModule
transferStack = transfer.NewIBCModule(app.TransferKeeper)
transferStack = ibcfee.NewIBCMiddleware(transferStack, app.IBCFeeKeeper)

transferStack = router.NewIBCMiddleware(
transferStack,
&app.RouterKeeper,
0,
routerkeeper.DefaultForwardTransferPacketTimeoutTimestamp,
routerkeeper.DefaultRefundTransferPacketTimeoutTimestamp,
)
// Hooks Middleware
hooksTransferStack := ibchooks.NewIBCMiddleware(transferStack, &app.HooksICS4Wrapper)
app.TransferStack = &hooksTransferStack
Expand Down

0 comments on commit ad4cf76

Please sign in to comment.