Skip to content

Commit

Permalink
Merge pull request #268 from comdex-official/locking_remove
Browse files Browse the repository at this point in the history
Removed Locking Module
  • Loading branch information
dheerajkd30 authored Jun 21, 2022
2 parents 66b2b0e + 4e86197 commit 0c8e9f3
Show file tree
Hide file tree
Showing 36 changed files with 3 additions and 8,855 deletions.
25 changes: 3 additions & 22 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ import (
liquiditykeeper "github.com/comdex-official/comdex/x/liquidity/keeper"
liquiditytypes "github.com/comdex-official/comdex/x/liquidity/types"

//"github.com/comdex-official/comdex/x/locking"
//lockingkeeper "github.com/comdex-official/comdex/x/locking/keeper"
//lockingtypes "github.com/comdex-official/comdex/x/locking/types"

cwasm "github.com/comdex-official/comdex/app/wasm"

tv1_0_0 "github.com/comdex-official/comdex/app/upgrades/testnet/v1_0_0"
Expand Down Expand Up @@ -253,7 +249,6 @@ var (
tokenmint.AppModuleBasic{},
wasm.AppModuleBasic{},
liquidity.AppModuleBasic{},
//locking.AppModuleBasic{},
rewards.AppModuleBasic{},
)
)
Expand Down Expand Up @@ -328,8 +323,7 @@ type App struct {
AuctionKeeper auctionkeeper.Keeper
TokenmintKeeper tokenmintkeeper.Keeper
liquidityKeeper liquiditykeeper.Keeper
//lockingKeeper lockingkeeper.Keeper
Rewardskeeper rewardskeeper.Keeper
Rewardskeeper rewardskeeper.Keeper

WasmKeeper wasm.Keeper
// the module manager
Expand Down Expand Up @@ -417,7 +411,6 @@ func New(
app.ParamsKeeper.Subspace(auctiontypes.ModuleName)
app.ParamsKeeper.Subspace(tokenminttypes.ModuleName)
app.ParamsKeeper.Subspace(liquiditytypes.ModuleName)
//app.ParamsKeeper.Subspace(lockingtypes.ModuleName)
app.ParamsKeeper.Subspace(rewardstypes.ModuleName)

// set the BaseApp's parameter store
Expand Down Expand Up @@ -678,14 +671,6 @@ func New(
&app.Rewardskeeper,
)

/*app.lockingKeeper = lockingkeeper.NewKeeper(
app.cdc,
app.keys[lockingtypes.StoreKey],
app.GetSubspace(lockingtypes.ModuleName),
app.AccountKeeper,
app.BankKeeper,
)*/

app.Rewardskeeper = *rewardskeeper.NewKeeper(
app.cdc,
app.keys[rewardstypes.StoreKey],
Expand Down Expand Up @@ -817,7 +802,6 @@ func New(
auction.NewAppModule(app.cdc, app.AuctionKeeper, app.AccountKeeper, app.BankKeeper),
tokenmint.NewAppModule(app.cdc, app.TokenmintKeeper, app.AccountKeeper, app.BankKeeper),
liquidity.NewAppModule(app.cdc, app.liquidityKeeper, app.AccountKeeper, app.BankKeeper),
//locking.NewAppModule(app.cdc, app.lockingKeeper, app.AccountKeeper, app.BankKeeper),
rewards.NewAppModule(app.cdc, app.Rewardskeeper, app.AccountKeeper, app.BankKeeper),
)

Expand Down Expand Up @@ -882,7 +866,6 @@ func New(
upgradetypes.ModuleName,
paramstypes.ModuleName,
liquiditytypes.ModuleName,
//lockingtypes.ModuleName,
rewardstypes.ModuleName,
)

Expand Down Expand Up @@ -1078,9 +1061,8 @@ func (a *App) ModuleAccountsPermissions() map[string][]string {
lockertypes.ModuleName: {authtypes.Minter, authtypes.Burner},
wasm.ModuleName: {authtypes.Burner},
liquiditytypes.ModuleName: {authtypes.Minter, authtypes.Burner},
//lockingtypes.ModuleName: nil,
rewardstypes.ModuleName: {authtypes.Minter, authtypes.Burner},
icatypes.ModuleName: nil,
rewardstypes.ModuleName: {authtypes.Minter, authtypes.Burner},
icatypes.ModuleName: nil,
}
}

Expand Down Expand Up @@ -1124,7 +1106,6 @@ func (a *App) registerUpgradeHandlers() {
liquidationtypes.ModuleName,
liquiditytypes.ModuleName,
lockertypes.ModuleName,
//lockingtypes.ModuleName,
markettypes.ModuleName,
rewardstypes.ModuleName,
tokenminttypes.ModuleName,
Expand Down
14 changes: 0 additions & 14 deletions proto/comdex/locking/v1beta1/genesis.proto

This file was deleted.

65 changes: 0 additions & 65 deletions proto/comdex/locking/v1beta1/lock.proto

This file was deleted.

19 changes: 0 additions & 19 deletions proto/comdex/locking/v1beta1/params.proto

This file was deleted.

108 changes: 0 additions & 108 deletions proto/comdex/locking/v1beta1/query.proto

This file was deleted.

51 changes: 0 additions & 51 deletions proto/comdex/locking/v1beta1/tx.proto

This file was deleted.

13 changes: 0 additions & 13 deletions x/locking/abci.go

This file was deleted.

18 changes: 0 additions & 18 deletions x/locking/client/cli/flags.go

This file was deleted.

Loading

0 comments on commit 0c8e9f3

Please sign in to comment.