Skip to content

Commit

Permalink
merge develop to main (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuguen committed Jul 2, 2024
1 parent 73dfc5d commit 90ed12f
Show file tree
Hide file tree
Showing 9 changed files with 196 additions and 331 deletions.
4 changes: 2 additions & 2 deletions .gitbook/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ please clone the `panacea-core` project and build it.

```bash
# Make sure to checkout the correct branch.
git clone -b v2.2.0 https://github.com/medibloc/panacea-core
git clone -b v2.2.1 https://github.com/medibloc/panacea-core
cd panacea-core
make install # All binaries are installed in $GOPATH/bin
```

Verify that the `panacead` binary is installed successfully.
```bash
$ panacead version
2.2.0
2.2.1
```

## Import `panacea-core` as a Go dependency
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## [v2.2.1](https://github.com/medibloc/panacea-core/releases/tag/v2.2.1) - 2024-07-01

### Improvements
- [\#700](https://github.com/medibloc/panacea-core/pull/700) feat: Bump cosmos-sdk and ibc-go modules, update gov module's config size

## [v2.2.0](https://github.com/medibloc/panacea-core/releases/tag/v2.2.0) - 2024-03-14

### Improvements
Expand Down
2 changes: 2 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ import (
"github.com/medibloc/panacea-core/v2/app/upgrades/v2_0_6"
"github.com/medibloc/panacea-core/v2/app/upgrades/v2_0_7"
"github.com/medibloc/panacea-core/v2/app/upgrades/v2_2_0"
"github.com/medibloc/panacea-core/v2/app/upgrades/v2_2_1"
)

const Name = "panacea"
Expand Down Expand Up @@ -174,6 +175,7 @@ var (
v2_0_6.Upgrade,
v2_0_7.Upgrade,
v2_2_0.Upgrade,
v2_2_1.Upgrade,
}
)

Expand Down
8 changes: 3 additions & 5 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,11 @@ func (appKeepers *AppKeepersWithKey) InitKeyAndKeepers(
appCodec, appKeepers.keys[ibcexported.StoreKey], appKeepers.GetSubspace(ibcexported.ModuleName), appKeepers.StakingKeeper, appKeepers.UpgradeKeeper, appKeepers.ScopedIBCKeeper,
)

/*
Example of setting gov params:
govConfig.MaxMetadataLen = 10000
*/
govConfig := govtypes.DefaultConfig()
govConfig.MaxMetadataLen = 10200
appKeepers.GovKeeper = *govkeeper.NewKeeper(
appCodec, appKeepers.keys[govtypes.StoreKey], appKeepers.AccountKeeper, appKeepers.BankKeeper,
appKeepers.StakingKeeper, bApp.MsgServiceRouter(), govtypes.DefaultConfig(), authtypes.NewModuleAddress(govtypes.ModuleName).String(),
appKeepers.StakingKeeper, bApp.MsgServiceRouter(), govConfig, authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)

// Create Transfer Keepers
Expand Down
152 changes: 0 additions & 152 deletions app/upgrades.go

This file was deleted.

12 changes: 12 additions & 0 deletions app/upgrades/v2_2_1/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package v2_2_1

import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/medibloc/panacea-core/v2/app/upgrades"
)

var Upgrade = upgrades.Upgrade{
UpgradeName: "v2.2.1",
CreateUpgradeHandler: CreateUpgradeHandle,
StoreUpgrades: storetypes.StoreUpgrades{},
}
14 changes: 14 additions & 0 deletions app/upgrades/v2_2_1/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package v2_2_1

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
"github.com/medibloc/panacea-core/v2/app/keepers"
)

func CreateUpgradeHandle(mm *module.Manager, configurator module.Configurator, keepers *keepers.AppKeepersWithKey) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, configurator, fromVM)
}
}
Loading

0 comments on commit 90ed12f

Please sign in to comment.