Skip to content

Commit

Permalink
remove group module
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed Jan 3, 2024
1 parent 8155881 commit 08b7b0a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ import (

"github.com/CudoVentures/cudos-node/x/cudoMint"
cudominttypes "github.com/CudoVentures/cudos-node/x/cudoMint/types"

"github.com/cosmos/cosmos-sdk/x/group"
groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
)

const Name = "cudos-node"
Expand Down Expand Up @@ -133,7 +130,6 @@ func New(
wasm.StoreKey,
gravitytypes.StoreKey,
feegrant.StoreKey,
group.StoreKey,
)
tkeys := sdk.NewTransientStoreKeys(paramstypes.TStoreKey)
memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)
Expand Down Expand Up @@ -192,7 +188,6 @@ func New(
gravity.NewAppModule(app.GravityKeeper, app.BankKeeper),
feegrantmod.NewAppModule(appCodec, app.AccountKeeper, app.BankKeeper, app.feegrantKeeper, app.interfaceRegistry),
// this line is used by starport scaffolding # stargate/app/appModule
groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
)

// During begin block slashing happens after distr.BeginBlocker so that
Expand Down Expand Up @@ -220,7 +215,6 @@ func New(
ibchost.ModuleName,
ibctransfertypes.ModuleName,
wasmtypes.ModuleName,
group.ModuleName,
)

app.mm.SetOrderEndBlockers(
Expand All @@ -244,7 +238,6 @@ func New(
ibchost.ModuleName,
ibctransfertypes.ModuleName,
wasmtypes.ModuleName,
group.ModuleName,
)
// NOTE: The genutils module must occur after staking so that pools are
// properly initialized with tokens from genesis accounts.
Expand Down Expand Up @@ -277,7 +270,6 @@ func New(
feegrant.ModuleName,
upgradetypes.ModuleName,
paramstypes.ModuleName,
group.ModuleName,
)

app.mm.RegisterInvariants(&app.CrisisKeeper)
Expand Down
7 changes: 0 additions & 7 deletions app/app_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/authz"
"github.com/cosmos/cosmos-sdk/x/feegrant"
"github.com/cosmos/cosmos-sdk/x/group"
abci "github.com/tendermint/tendermint/abci/types"

// Authz - Authorization for accounts to perform actions on behalf of other accounts.
Expand Down Expand Up @@ -85,9 +84,6 @@ import (
"github.com/althea-net/cosmos-gravity-bridge/module/x/gravity"
gravitykeeper "github.com/althea-net/cosmos-gravity-bridge/module/x/gravity/keeper"
gravitytypes "github.com/althea-net/cosmos-gravity-bridge/module/x/gravity/types"

groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
groupmodule "github.com/cosmos/cosmos-sdk/x/group/module"
)

// We pull these out so we can set them with LDFLAGS in the Makefile
Expand Down Expand Up @@ -149,7 +145,6 @@ var (
gravity.AppModuleBasic{},
feegrantmod.AppModuleBasic{},
// this line is used by starport scaffolding # stargate/app/moduleBasic
groupmodule.AppModuleBasic{},
)

maccPerms = map[string][]string{
Expand Down Expand Up @@ -213,7 +208,6 @@ type App struct {
feegrantKeeper feegrantkeeper.Keeper
// this line is used by starport scaffolding # stargate/app/keeperDeclaration

GroupKeeper groupkeeper.Keeper
// the module manager
mm *module.Manager
configurator module.Configurator
Expand Down Expand Up @@ -369,7 +363,6 @@ func InitParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(gravitytypes.ModuleName)
paramsKeeper.Subspace(authz.ModuleName)
paramsKeeper.Subspace(feegrant.ModuleName)
paramsKeeper.Subspace(group.ModuleName)

return paramsKeeper
}
11 changes: 0 additions & 11 deletions app/app_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ import (

gravitykeeper "github.com/althea-net/cosmos-gravity-bridge/module/x/gravity/keeper"
gravitytypes "github.com/althea-net/cosmos-gravity-bridge/module/x/gravity/types"

"github.com/cosmos/cosmos-sdk/x/group"
groupkeeper "github.com/cosmos/cosmos-sdk/x/group/keeper"
)

func (app *App) AddKeepers(skipUpgradeHeights map[int64]bool, homePath string, appOpts servertypes.AppOptions) {
Expand Down Expand Up @@ -203,12 +200,4 @@ func (app *App) AddKeepers(skipUpgradeHeights map[int64]bool, homePath string, a
app.appCodec, app.keys[gravitytypes.StoreKey], app.GetSubspace(gravitytypes.ModuleName), stakingKeeper, app.BankKeeper, app.SlashingKeeper, app.AccountKeeper,
)

groupConfig := group.DefaultConfig()
app.GroupKeeper = groupkeeper.NewKeeper(
app.keys[group.StoreKey],
app.appCodec,
app.MsgServiceRouter(),
app.AccountKeeper,
groupConfig,
)
}

0 comments on commit 08b7b0a

Please sign in to comment.