Skip to content

Commit

Permalink
Merge pull request #55 from hyle-team/feature/update-v12.1.14-rc1
Browse files Browse the repository at this point in the history
Feature/update v12.1.14 rc1
  • Loading branch information
EduardMikhrin authored Nov 22, 2024
2 parents da40588 + 075f304 commit 34660e6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,37 @@ func NewBridge(
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)
if upgradeInfo.Name == "v12.1.14-rc1" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storetypes.StoreUpgrades{
Added: []string{multisigtypes.ModuleName},
}))
}

app.UpgradeKeeper.SetUpgradeHandler("v12.1.14-rc1", func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
stakingParams := stakingtypes.Params{
UnbondingTime: app.StakingKeeper.UnbondingTime(ctx),
MaxValidators: app.StakingKeeper.MaxValidators(ctx),
MaxEntries: app.StakingKeeper.MaxEntries(ctx),
HistoricalEntries: app.StakingKeeper.HistoricalEntries(ctx),
BondDenom: "abridge",
MinCommissionRate: app.StakingKeeper.MinCommissionRate(ctx),
MinimalDelegationAmount: sdk.DefaultMinDelegationAmount,
}
app.StakingKeeper.SetParams(ctx, stakingParams)

multisigParams := multisigtypes.Params{
GroupSequence: 0,
ProposalSequence: 0,
PrunePeriod: 240,
VotingPeriod: 120,
}
app.MultisigKeeper.SetParams(ctx, multisigParams)

// Disabling repeated call of InitGenesis for new multisig module
fromVM[multisigtypes.ModuleName] = multisig.AppModule{}.ConsensusVersion()

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
})

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ replace (
// use cosmos fork of keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0

github.com/cosmos/cosmos-sdk => github.com/hyle-team/cosmos-sdk v0.46.28-0.20241114133431-1686c6ebe577
github.com/cosmos/cosmos-sdk => github.com/hyle-team/cosmos-sdk v0.46.28
github.com/cosmos/ibc-go/v6 => github.com/hyle-team/ibc-go/v6 v6.0.0-20241031152903-f38c2bf016e9

// use Evmos geth fork
Expand Down

0 comments on commit 34660e6

Please sign in to comment.