Skip to content

Commit

Permalink
Merge pull request #40 from rarimo/chains/mainnet-v1.1.4
Browse files Browse the repository at this point in the history
Chains/mainnet v1.1.4
  • Loading branch information
olegfomenko authored Nov 28, 2024
2 parents fadbe71 + fe0235e commit 99f9699
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 4 deletions.
23 changes: 23 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,29 @@ func New(
},
)

if upgradeInfo.Name == "v1.1.4" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storetypes.StoreUpgrades{
Added: []string{rootupdatermoduletypes.ModuleName},
}))
}
app.UpgradeKeeper.SetUpgradeHandler(
"v1.1.4",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
app.RootupdaterKeeper.SetParams(ctx, rootupdatermoduletypes.Params{
SourceContractAddress: "0xA25a197d26Cad659A8fFf7F268cA4F9e0283de03",
DestinationContractAddress: "0xcB1d24266F25897838a59491e03A57602DC1b415",
Root: "0x00",
LastSignedRoot: "0x00",
LastSignedRootIndex: "0x00",
EventName: "RootUpdated",
RootTimestamp: 1724316208,
BlockHeight: 0,
})
fromVM[rootupdatermoduletypes.ModuleName] = rootupdatermodule.AppModule{}.ConsensusVersion()
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/rarimo/rarimo-core

go 1.20
go 1.21

require (
cosmossdk.io/errors v1.0.1
Expand Down Expand Up @@ -92,7 +92,6 @@ require (
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gin-gonic/gin v1.8.1 // indirect
github.com/github/smimesign v0.2.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
Expand Down
Loading

0 comments on commit 99f9699

Please sign in to comment.