Skip to content

Commit

Permalink
fix: references all modules in SetOrder* functions
Browse files Browse the repository at this point in the history
following upgrade to v0.45.* breaking change
  • Loading branch information
amimart committed May 10, 2022
1 parent dc763d4 commit 84f9fe2
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/auth/vesting"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
"github.com/cosmos/cosmos-sdk/x/bank"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down Expand Up @@ -411,12 +412,47 @@ func New(
// CanWithdrawInvariant invariant.
// NOTE: staking module is required if HistoricalEntries param > 0
app.mm.SetOrderBeginBlockers(
upgradetypes.ModuleName, capabilitytypes.ModuleName, minttypes.ModuleName, distrtypes.ModuleName, slashingtypes.ModuleName,
evidencetypes.ModuleName, stakingtypes.ModuleName, ibchost.ModuleName,
upgradetypes.ModuleName,
capabilitytypes.ModuleName,
minttypes.ModuleName,
distrtypes.ModuleName,
slashingtypes.ModuleName,
evidencetypes.ModuleName,
stakingtypes.ModuleName,
ibchost.ModuleName,
feegrant.ModuleName,
knowledgemoduletypes.ModuleName,
genutiltypes.ModuleName,
banktypes.ModuleName,
crisistypes.ModuleName,
ibctransfertypes.ModuleName,
govtypes.ModuleName,
authtypes.ModuleName,
paramstypes.ModuleName,
authtypes.ModuleName,
vestingtypes.ModuleName,
)

app.mm.SetOrderEndBlockers(crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName)
app.mm.SetOrderEndBlockers(
crisistypes.ModuleName,
govtypes.ModuleName,
stakingtypes.ModuleName,
distrtypes.ModuleName,
upgradetypes.ModuleName,
ibctransfertypes.ModuleName,
knowledgemoduletypes.ModuleName,
capabilitytypes.ModuleName,
feegrant.ModuleName,
evidencetypes.ModuleName,
ibchost.ModuleName,
vestingtypes.ModuleName,
minttypes.ModuleName,
slashingtypes.ModuleName,
genutiltypes.ModuleName,
authtypes.ModuleName,
paramstypes.ModuleName,
banktypes.ModuleName,
)

// NOTE: The genutils module must occur after staking so that pools are
// properly initialized with tokens from genesis accounts.
Expand All @@ -438,6 +474,10 @@ func New(
evidencetypes.ModuleName,
ibctransfertypes.ModuleName,
knowledgemoduletypes.ModuleName,
vestingtypes.ModuleName,
paramstypes.ModuleName,
upgradetypes.ModuleName,
feegrant.ModuleName,
// this line is used by starport scaffolding # stargate/app/initGenesis
)

Expand Down

0 comments on commit 84f9fe2

Please sign in to comment.