|
8 | 8 | "path/filepath"
|
9 | 9 | "strings"
|
10 | 10 |
|
11 |
| - intertxtypes "github.com/cosmos/interchain-accounts/x/inter-tx/types" |
12 | 11 | "github.com/gorilla/mux"
|
13 | 12 | "github.com/rakyll/statik/fs"
|
14 | 13 | "github.com/spf13/cast"
|
@@ -203,7 +202,6 @@ var (
|
203 | 202 | vesting.AppModuleBasic{},
|
204 | 203 | wasm.AppModuleBasic{},
|
205 | 204 | ica.AppModuleBasic{},
|
206 |
| - // intertx.AppModuleBasic{}, // TODO support later |
207 | 205 | )
|
208 | 206 |
|
209 | 207 | // module account permissions
|
@@ -262,16 +260,14 @@ type WasmApp struct {
|
262 | 260 | IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
|
263 | 261 | ICAControllerKeeper icacontrollerkeeper.Keeper
|
264 | 262 | ICAHostKeeper icahostkeeper.Keeper
|
265 |
| - // InterTxKeeper intertxkeeper.Keeper // TODO support later |
266 |
| - TransferKeeper ibctransferkeeper.Keeper |
267 |
| - FeeGrantKeeper feegrantkeeper.Keeper |
268 |
| - AuthzKeeper authzkeeper.Keeper |
269 |
| - WasmKeeper wasm.Keeper |
| 263 | + TransferKeeper ibctransferkeeper.Keeper |
| 264 | + FeeGrantKeeper feegrantkeeper.Keeper |
| 265 | + AuthzKeeper authzkeeper.Keeper |
| 266 | + WasmKeeper wasm.Keeper |
270 | 267 |
|
271 | 268 | ScopedIBCKeeper capabilitykeeper.ScopedKeeper
|
272 | 269 | ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
|
273 | 270 | ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
|
274 |
| - ScopedInterTxKeeper capabilitykeeper.ScopedKeeper |
275 | 271 | ScopedTransferKeeper capabilitykeeper.ScopedKeeper
|
276 | 272 | ScopedWasmKeeper capabilitykeeper.ScopedKeeper
|
277 | 273 |
|
@@ -316,7 +312,7 @@ func NewWasmApp(
|
316 | 312 | minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
|
317 | 313 | govtypes.StoreKey, paramstypes.StoreKey, ibchost.StoreKey, upgradetypes.StoreKey,
|
318 | 314 | evidencetypes.StoreKey, ibctransfertypes.StoreKey, capabilitytypes.StoreKey,
|
319 |
| - feegrant.StoreKey, authzkeeper.StoreKey, wasm.StoreKey, icahosttypes.StoreKey, icacontrollertypes.StoreKey, intertxtypes.StoreKey, |
| 315 | + feegrant.StoreKey, authzkeeper.StoreKey, wasm.StoreKey, icahosttypes.StoreKey, icacontrollertypes.StoreKey, |
320 | 316 | )
|
321 | 317 | tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
|
322 | 318 | memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
|
@@ -351,7 +347,6 @@ func NewWasmApp(
|
351 | 347 | scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibchost.ModuleName)
|
352 | 348 | scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
|
353 | 349 | scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
|
354 |
| - scopedInterTxKeeper := app.CapabilityKeeper.ScopeToModule(intertxtypes.ModuleName) |
355 | 350 | scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
|
356 | 351 | scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasm.ModuleName)
|
357 | 352 | app.CapabilityKeeper.Seal()
|
@@ -489,15 +484,6 @@ func NewWasmApp(
|
489 | 484 | icaModule := ica.NewAppModule(&app.ICAControllerKeeper, &app.ICAHostKeeper)
|
490 | 485 | icaHostIBCModule := icahost.NewIBCModule(app.ICAHostKeeper)
|
491 | 486 |
|
492 |
| - // For wasmd we use the demo controller from https://github.com/cosmos/interchain-accounts but see notes below |
493 |
| - // app.InterTxKeeper = intertxkeeper.NewKeeper(appCodec, keys[intertxtypes.StoreKey], app.ICAControllerKeeper, scopedInterTxKeeper) |
494 |
| - // Note: please do your research before using this in production app, this is a demo and not an officially |
495 |
| - // supported IBC team implementation. Do your own research before using it. |
496 |
| - // interTxModule := intertx.NewAppModule(appCodec, app.InterTxKeeper) |
497 |
| - // interTxIBCModule := intertx.NewIBCModule(app.InterTxKeeper) |
498 |
| - // You will likely want to swap out the second argument with your own reviewed and maintained ica auth module |
499 |
| - // icaControllerIBCModule := icacontroller.NewIBCModule(app.ICAControllerKeeper, interTxIBCModule) |
500 |
| - |
501 | 487 | // create evidence keeper with router
|
502 | 488 | evidenceKeeper := evidencekeeper.NewKeeper(
|
503 | 489 | appCodec,
|
@@ -533,8 +519,6 @@ func NewWasmApp(
|
533 | 519 | wasmDir,
|
534 | 520 | wasmConfig,
|
535 | 521 | availableCapabilities,
|
536 |
| - nil, |
537 |
| - nil, |
538 | 522 | wasmOpts...,
|
539 | 523 | )
|
540 | 524 |
|
@@ -595,7 +579,6 @@ func NewWasmApp(
|
595 | 579 | params.NewAppModule(app.ParamsKeeper),
|
596 | 580 | transferModule,
|
597 | 581 | icaModule,
|
598 |
| - // interTxModule, |
599 | 582 | crisis.NewAppModule(&app.CrisisKeeper, skipGenesisInvariants), // always be last to make sure that it checks for all invariants and not only part of them
|
600 | 583 | )
|
601 | 584 |
|
@@ -681,7 +664,6 @@ func NewWasmApp(
|
681 | 664 | ibctransfertypes.ModuleName,
|
682 | 665 | ibchost.ModuleName,
|
683 | 666 | icatypes.ModuleName,
|
684 |
| - // intertxtypes.ModuleName, |
685 | 667 | // wasm after ibc transfer
|
686 | 668 | wasm.ModuleName,
|
687 | 669 | )
|
@@ -763,7 +745,6 @@ func NewWasmApp(
|
763 | 745 | app.ScopedWasmKeeper = scopedWasmKeeper
|
764 | 746 | app.ScopedICAHostKeeper = scopedICAHostKeeper
|
765 | 747 | app.ScopedICAControllerKeeper = scopedICAControllerKeeper
|
766 |
| - app.ScopedInterTxKeeper = scopedInterTxKeeper |
767 | 748 |
|
768 | 749 | if loadLatest {
|
769 | 750 | if err := app.LoadLatestVersion(); err != nil {
|
|
0 commit comments