@@ -85,9 +85,7 @@ import (
85
85
)
86
86
87
87
func ExtendedBuiltInCapabilities () []string {
88
- originalCaps := wasmkeeper .BuiltInCapabilities ()
89
- extendedCaps := append (originalCaps , "bitsong" , "cosmwasm_3_0" )
90
- return extendedCaps
88
+ return append (wasmkeeper .BuiltInCapabilities (), "bitsong" , "cosmwasm_3_0" )
91
89
}
92
90
93
91
// module account permissions
@@ -186,7 +184,6 @@ func NewAppKeepers(
186
184
// & add capability keeper and ScopeToModule for ibc module
187
185
appKeepers .CapabilityKeeper = capabilitykeeper .NewKeeper (appCodec , appKeepers .keys [capabilitytypes .StoreKey ], appKeepers .memKeys [capabilitytypes .MemStoreKey ])
188
186
appKeepers .ScopedIBCKeeper = appKeepers .CapabilityKeeper .ScopeToModule (ibcexported .ModuleName )
189
- appKeepers .ScopedTransferKeeper = appKeepers .CapabilityKeeper .ScopeToModule (ibctransfertypes .ModuleName )
190
187
appKeepers .ScopedWasmKeeper = appKeepers .CapabilityKeeper .ScopeToModule (wasmtypes .ModuleName )
191
188
192
189
invCheckPeriod := cast .ToUint (appOpts .Get (server .FlagInvCheckPeriod ))
@@ -287,11 +284,10 @@ func NewAppKeepers(
287
284
)
288
285
appKeepers .SlashingKeeper = & slashKeeper
289
286
290
- // https://github.com/cosmos/cosmos-sdk/blob/v0.53.0/UPGRADING.md?plain=1#L192
291
287
mintKeeper := mintkeeper .NewKeeper (
292
288
appCodec , runtime .NewKVStoreService (appKeepers .keys [minttypes .StoreKey ]), stakingKeeper ,
293
289
appKeepers .AccountKeeper , appKeepers .BankKeeper , authtypes .FeeCollectorName , govModAddress ,
294
- // mintkeeper.WithMintFn(myCustomMintFunc), // Use custom minting function
290
+ // mintkeeper.WithMintFn(myCustomMintFunc), // Use custom minting function: https://github.com/cosmos/cosmos-sdk/blob/v0.53.0/UPGRADING.md?plain=1#L192
295
291
)
296
292
appKeepers .MintKeeper = & mintKeeper
297
293
@@ -436,16 +432,15 @@ func NewAppKeepers(
436
432
// wire wasm to IBC
437
433
438
434
// Create static IBC router, add transfer route, then set and seal it
439
- ibcRouter := porttypes .NewRouter ()
440
- ibcRouter . AddRoute (ibctransfertypes .ModuleName , transferStack ).
435
+ ibcRouter := porttypes .NewRouter ().
436
+ AddRoute (ibctransfertypes .ModuleName , transferStack ).
441
437
AddRoute (wasmtypes .ModuleName , wasm .NewIBCHandler (appKeepers .WasmKeeper , appKeepers .IBCKeeper .ChannelKeeper , appKeepers .TransferKeeper , appKeepers .IBCKeeper .ChannelKeeper ))
442
-
443
- // Seal the router
444
438
appKeepers .IBCKeeper .SetRouter (ibcRouter )
445
439
446
440
clientKeeper := appKeepers .IBCKeeper .ClientKeeper
447
441
storeProvider := appKeepers .IBCKeeper .ClientKeeper .GetStoreProvider ()
448
442
443
+ // Add tendermint & ibcWasm light client routes
449
444
tmLightClientModule := ibctm .NewLightClientModule (appCodec , storeProvider )
450
445
ibcWasmLightClientModule := ibcwlc .NewLightClientModule (* appKeepers .IBCWasmClientKeeper , storeProvider )
451
446
clientKeeper .AddRoute (ibctm .ModuleName , & tmLightClientModule )
0 commit comments