Skip to content

Commit

Permalink
Remove union module from uniond (#1104)
Browse files Browse the repository at this point in the history
it was generated by default, but we do not need it
  • Loading branch information
cor authored Jan 9, 2024
2 parents 35e0431 + f21efaf commit 6363144
Show file tree
Hide file tree
Showing 30 changed files with 1 addition and 2,121 deletions.
20 changes: 1 addition & 19 deletions uniond/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ import (
wasmvm "github.com/CosmWasm/wasmvm"

unioncustomquery "union/app/custom_query"
unionmodule "union/x/union"
unionmodulekeeper "union/x/union/keeper"
unionmoduletypes "union/x/union/types"

ibccometblsclient "union/app/ibc/cometbls/02-client/keeper"

Expand Down Expand Up @@ -248,8 +245,6 @@ type UnionApp struct {
ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper
ScopedWasmKeeper capabilitykeeper.ScopedKeeper

UnionKeeper unionmodulekeeper.Keeper

ModuleManager *module.Manager
BasicModuleManager module.BasicManager

Expand Down Expand Up @@ -303,7 +298,7 @@ func NewUnionApp(
govtypes.StoreKey, paramstypes.StoreKey, ibcexported.StoreKey, upgradetypes.StoreKey,
feegrant.StoreKey, evidencetypes.StoreKey, ibctransfertypes.StoreKey, ibcwasmtypes.StoreKey, icahosttypes.StoreKey,
capabilitytypes.StoreKey, group.StoreKey, icacontrollertypes.StoreKey, consensusparamtypes.StoreKey,
unionmoduletypes.StoreKey, ibcfeetypes.StoreKey, wasmtypes.StoreKey, tftypes.StoreKey,
ibcfeetypes.StoreKey, wasmtypes.StoreKey, tftypes.StoreKey,
// this line is used by starport scaffolding # stargate/app/storeKey
)

Expand Down Expand Up @@ -668,14 +663,6 @@ func NewUnionApp(
),
)

app.UnionKeeper = *unionmodulekeeper.NewKeeper(
appCodec,
keys[unionmoduletypes.StoreKey],
keys[unionmoduletypes.MemStoreKey],
app.GetSubspace(unionmoduletypes.ModuleName),
)
unionModule := unionmodule.NewAppModule(appCodec, app.UnionKeeper, app.AccountKeeper, app.BankKeeper)

/**** IBC Routing ****/

// Sealing prevents other modules from creating scoped sub-keepers
Expand Down Expand Up @@ -745,7 +732,6 @@ func NewUnionApp(
ibcwasm.NewAppModule(app.WasmClientKeeper),
wasm.NewAppModule(appCodec, &app.WasmKeeper, app.StakingKeeper, app.AccountKeeper, app.BankKeeper, app.MsgServiceRouter(), app.GetSubspace(wasmtypes.ModuleName)),
icaModule,
unionModule,
tfModule,
ibctm.NewAppModule(),
solomachine.NewAppModule(),
Expand Down Expand Up @@ -800,7 +786,6 @@ func NewUnionApp(
paramstypes.ModuleName,
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
unionmoduletypes.ModuleName,
wasmtypes.ModuleName,
tftypes.ModuleName,
)
Expand Down Expand Up @@ -828,7 +813,6 @@ func NewUnionApp(
upgradetypes.ModuleName,
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
unionmoduletypes.ModuleName,
wasmtypes.ModuleName,
tftypes.ModuleName,
)
Expand Down Expand Up @@ -861,7 +845,6 @@ func NewUnionApp(
upgradetypes.ModuleName,
vestingtypes.ModuleName,
consensusparamtypes.ModuleName,
unionmoduletypes.ModuleName,
wasmtypes.ModuleName,
tftypes.ModuleName,
}
Expand Down Expand Up @@ -1150,7 +1133,6 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(slashingtypes.ModuleName)
paramsKeeper.Subspace(govtypes.ModuleName)
paramsKeeper.Subspace(crisistypes.ModuleName)
paramsKeeper.Subspace(unionmoduletypes.ModuleName)
paramsKeeper.Subspace(wasmtypes.ModuleName)
paramsKeeper.Subspace(tftypes.ModuleName)

Expand Down
53 changes: 0 additions & 53 deletions uniond/testutil/keeper/union.go

This file was deleted.

31 changes: 0 additions & 31 deletions uniond/x/union/client/cli/query.go

This file was deleted.

36 changes: 0 additions & 36 deletions uniond/x/union/client/cli/query_params.go

This file was deleted.

31 changes: 0 additions & 31 deletions uniond/x/union/client/cli/tx.go

This file was deleted.

23 changes: 0 additions & 23 deletions uniond/x/union/genesis.go

This file was deleted.

29 changes: 0 additions & 29 deletions uniond/x/union/genesis_test.go

This file was deleted.

47 changes: 0 additions & 47 deletions uniond/x/union/keeper/keeper.go

This file was deleted.

17 changes: 0 additions & 17 deletions uniond/x/union/keeper/msg_server.go

This file was deleted.

16 changes: 0 additions & 16 deletions uniond/x/union/keeper/params.go

This file was deleted.

18 changes: 0 additions & 18 deletions uniond/x/union/keeper/params_test.go

This file was deleted.

Loading

0 comments on commit 6363144

Please sign in to comment.