Skip to content

Commit

Permalink
rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Jun 19, 2024
1 parent 44456c4 commit ebc4880
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
19 changes: 9 additions & 10 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ import (
yieldmodulekeeper "github.com/sideprotocol/side/x/yield/keeper"
yieldmoduletypes "github.com/sideprotocol/side/x/yield/types"

btclightclientkeeper "github.com/sideprotocol/side/x/btcbridge/keeper"
btclightclienttypes "github.com/sideprotocol/side/x/btcbridge/types"
btcbridgekeeper "github.com/sideprotocol/side/x/btcbridge/keeper"
btcbridgetypes "github.com/sideprotocol/side/x/btcbridge/types"

// this line is used by starport scaffolding # stargate/app/moduleImport

Expand Down Expand Up @@ -129,10 +129,9 @@ type AppKeepers struct {
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
scopedWasmKeeper capabilitykeeper.ScopedKeeper

GmmKeeper gmmmodulekeeper.Keeper

YieldKeeper yieldmodulekeeper.Keeper
BtcLightClientKeeper btclightclientkeeper.Keeper
GmmKeeper gmmmodulekeeper.Keeper
YieldKeeper yieldmodulekeeper.Keeper
BtcBridgeKeeper btcbridgekeeper.Keeper

// keys to access the substores
keys map[string]*storetypes.KVStoreKey
Expand Down Expand Up @@ -393,10 +392,10 @@ func (appKeepers *AppKeepers) InitNormalKeepers(
appKeepers.IcacallbacksKeeper,
)

appKeepers.BtcLightClientKeeper = *btclightclientkeeper.NewKeeper(
appKeepers.BtcBridgeKeeper = *btcbridgekeeper.NewKeeper(
appCodec,
appKeepers.keys[btclightclienttypes.StoreKey],
appKeepers.keys[btclightclienttypes.StoreKey],
appKeepers.keys[btcbridgetypes.StoreKey],
appKeepers.keys[btcbridgetypes.StoreKey],
appKeepers.BankKeeper,
)

Expand Down Expand Up @@ -504,7 +503,7 @@ func KVStoreKeys() []string {
ibcfeetypes.StoreKey,
gmmmoduletypes.StoreKey,
yieldmoduletypes.StoreKey,
btclightclienttypes.StoreKey,
btcbridgetypes.StoreKey,
}
}

Expand Down
14 changes: 7 additions & 7 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ import (
yieldmodule "github.com/sideprotocol/side/x/yield"
yieldmoduletypes "github.com/sideprotocol/side/x/yield/types"

btclightclient "github.com/sideprotocol/side/x/btcbridge"
btclightclienttypes "github.com/sideprotocol/side/x/btcbridge/types"
btcbridge "github.com/sideprotocol/side/x/btcbridge"
btcbridgetypes "github.com/sideprotocol/side/x/btcbridge/types"

// this line is used by starport scaffolding # stargate/app/moduleImport

Expand All @@ -95,7 +95,7 @@ var moduleAccountPermissions = map[string][]string{
wasmTypes.ModuleName: {authtypes.Burner},
gmmmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
yieldmoduletypes.ModuleName: {authtypes.Minter, authtypes.Burner, authtypes.Staking},
btclightclienttypes.ModuleName: {authtypes.Minter, authtypes.Burner},
btcbridgetypes.ModuleName: {authtypes.Minter, authtypes.Burner},
}

// appModules return modules to initialize module manager.
Expand Down Expand Up @@ -142,7 +142,7 @@ func appModules(
icaModule,
gmmModule,
yieldModule,
btclightclient.NewAppModule(appCodec, app.BtcLightClientKeeper),
btcbridge.NewAppModule(appCodec, app.BtcBridgeKeeper),
// this line is used by starport scaffolding # stargate/app/appModule

crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them
Expand Down Expand Up @@ -178,7 +178,7 @@ func orderBeginBlockers() []string {
wasmTypes.ModuleName,
gmmmoduletypes.ModuleName,
yieldmoduletypes.ModuleName,
btclightclienttypes.ModuleName,
btcbridgetypes.ModuleName,
}
return ord
}
Expand Down Expand Up @@ -211,7 +211,7 @@ func OrderEndBlockers() []string {
wasmTypes.ModuleName,
gmmmoduletypes.ModuleName,
yieldmoduletypes.ModuleName,
btclightclienttypes.ModuleName,
btcbridgetypes.ModuleName,
}
return ord
}
Expand Down Expand Up @@ -249,7 +249,7 @@ func OrderInitGenesis() []string {
wasmTypes.ModuleName,
gmmmoduletypes.ModuleName,
yieldmoduletypes.ModuleName,
btclightclienttypes.ModuleName,
btcbridgetypes.ModuleName,
}
}

Expand Down

0 comments on commit ebc4880

Please sign in to comment.