diff --git a/app/app.go b/app/app.go index 0499c580..2ab437b9 100644 --- a/app/app.go +++ b/app/app.go @@ -990,6 +990,13 @@ func New( }, ) + app.UpgradeKeeper.SetUpgradeHandler( + "v1.1.0-rc1", + func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { + return app.mm.RunMigrations(ctx, app.configurator, fromVM) + }, + ) + if loadLatest { if err := app.LoadLatestVersion(); err != nil { tmos.Exit(err.Error()) diff --git a/x/oraclemanager/keeper/abci.go b/x/oraclemanager/keeper/abci.go index a67a89ce..2927c4cc 100644 --- a/x/oraclemanager/keeper/abci.go +++ b/x/oraclemanager/keeper/abci.go @@ -14,6 +14,7 @@ func (k Keeper) EndBlocker(ctx sdk.Context) { monitoringOperationTypes := map[rarimotypes.OpType]struct{}{ rarimotypes.OpType_TRANSFER: struct{}{}, rarimotypes.OpType_IDENTITY_GIST_TRANSFER: struct{}{}, + rarimotypes.OpType_IDENTITY_STATE_TRANSFER: struct{}{}, rarimotypes.OpType_IDENTITY_DEFAULT_TRANSFER: struct{}{}, } @@ -152,6 +153,14 @@ func getSourceChain(op rarimotypes.Operation) (string, error) { return "", err } + return transfer.Chain, nil + + case rarimotypes.OpType_IDENTITY_STATE_TRANSFER: + transfer, err := pkg.GetIdentityStateTransfer(op) + if err != nil { + return "", err + } + return transfer.Chain, nil }