-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(uniond): v0.10.0 upgrade migration (#593)
- v1.0.0-rc1.alpha1
- v0.25.0
- v0.24.0
- v0.24.0-rc1
- v0.23.0
- v0.23.0-rc2
- v0.23.0-rc1
- v0.22.0
- v0.22.0-rc2
- v0.22.0-rc1
- v0.21.0
- v0.21.0-rc6
- v0.21.0-rc5
- v0.21.0-rc4
- v0.21.0-rc3
- v0.21.0-rc2
- v0.21.0-rc1
- v0.20.0
- v0.20.0-rc6
- v0.20.0-rc5
- v0.20.0-rc4
- v0.20.0-rc3
- v0.20.0-rc2
- v0.20.0-rc1
- v0.19.0
- v0.19.0-rc6
- v0.19.0-rc5
- v0.19.0-rc4
- v0.19.0-rc3
- v0.19.0-rc2
- v0.19.0-rc1
- v0.18.0
- v0.18.0-rc3
- v0.18.0-rc2
- v0.18.0-rc1
- v0.17.0
- v0.17.0-rc1
- v0.16.0
- v0.16.0-rc4
- v0.16.0-rc3
- v0.16.0-rc2
- v0.16.0-rc1
- v0.15.0
- v0.15.0-rc2
- v0.15.0-rc1
- v0.14.0
- v0.14.0-rc5
- v0.14.0-rc4
- v0.14.0-rc3
- v0.14.0-rc2
- v0.14.0-rc1
- v0.13.0
- v0.13.0-rc1
- v0.12.0
- v0.12.0-rc1
- v0.11.0
- v0.11.0-rc1
- v0.10.1
- v0.10.0
- v0.10.0-rc1
- v0.1.0
- uniond/v1.0.0-rc1.alpha1
- uniond/v0.25.0
- uniond/v0.25.0-rc4
- uniond/v0.25.0-rc3
- uniond/v0.25.0-rc2
- uniond/v0.25.0-rc1
- evm-contracts/v0.1.0
- cometbls-light-client/v0.1.0
1 parent
1910288
commit de4ae01
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package v0_10_0 | ||
|
||
import ( | ||
store "github.com/cosmos/cosmos-sdk/store/types" | ||
"union/app/upgrades" | ||
) | ||
|
||
const UpgradeName = "v0.10.0" | ||
|
||
var Upgrade = upgrades.Upgrade{ | ||
UpgradeName: UpgradeName, | ||
CreateUpgradeHandler: CreateUpgradeHandler, | ||
StoreUpgrades: store.StoreUpgrades{Added: []string{}}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package v0_10_0 | ||
|
||
import ( | ||
"union/app/upgrades" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
) | ||
|
||
func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, keepers *upgrades.AppKeepers) upgradetypes.UpgradeHandler { | ||
return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | ||
return mm.RunMigrations(ctx, configurator, vm) | ||
} | ||
} |