Skip to content

Commit 99f9699

Browse files
authored
Merge pull request #40 from rarimo/chains/mainnet-v1.1.4
Chains/mainnet v1.1.4
2 parents fadbe71 + fe0235e commit 99f9699

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

app/app.go

+23
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,29 @@ func New(
10621062
},
10631063
)
10641064

1065+
if upgradeInfo.Name == "v1.1.4" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
1066+
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storetypes.StoreUpgrades{
1067+
Added: []string{rootupdatermoduletypes.ModuleName},
1068+
}))
1069+
}
1070+
app.UpgradeKeeper.SetUpgradeHandler(
1071+
"v1.1.4",
1072+
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
1073+
app.RootupdaterKeeper.SetParams(ctx, rootupdatermoduletypes.Params{
1074+
SourceContractAddress: "0xA25a197d26Cad659A8fFf7F268cA4F9e0283de03",
1075+
DestinationContractAddress: "0xcB1d24266F25897838a59491e03A57602DC1b415",
1076+
Root: "0x00",
1077+
LastSignedRoot: "0x00",
1078+
LastSignedRootIndex: "0x00",
1079+
EventName: "RootUpdated",
1080+
RootTimestamp: 1724316208,
1081+
BlockHeight: 0,
1082+
})
1083+
fromVM[rootupdatermoduletypes.ModuleName] = rootupdatermodule.AppModule{}.ConsensusVersion()
1084+
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
1085+
},
1086+
)
1087+
10651088
if loadLatest {
10661089
if err := app.LoadLatestVersion(); err != nil {
10671090
tmos.Exit(err.Error())

go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/rarimo/rarimo-core
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
cosmossdk.io/errors v1.0.1
@@ -92,7 +92,6 @@ require (
9292
github.com/felixge/httpsnoop v1.0.4 // indirect
9393
github.com/fsnotify/fsnotify v1.7.0 // indirect
9494
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
95-
github.com/ghodss/yaml v1.0.0 // indirect
9695
github.com/gin-gonic/gin v1.8.1 // indirect
9796
github.com/github/smimesign v0.2.0 // indirect
9897
github.com/go-kit/kit v0.12.0 // indirect

0 commit comments

Comments
 (0)