Skip to content

Commit

Permalink
upgrade merged. BankKeeper + GovKeeper + IbcTransferMiddlewareKeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
RustNinja authored and kkast committed Mar 20, 2024
1 parent 0bdb814 commit bb19b89
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 50 deletions.
6 changes: 6 additions & 0 deletions app/upgrades/v6_4_5/constants.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package v6_4_5

import (
store "github.com/cosmos/cosmos-sdk/store/types"
"github.com/notional-labs/composable/v6/app/upgrades"
ibctransfermiddleware "github.com/notional-labs/composable/v6/x/ibctransfermiddleware/types"
)

const (
Expand All @@ -12,4 +14,8 @@ const (
var Upgrade = upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: store.StoreUpgrades{
Added: []string{ibctransfermiddleware.StoreKey},
Deleted: []string{},
},
}
4 changes: 4 additions & 0 deletions app/upgrades/v6_4_5/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/notional-labs/composable/v6/app/keepers"
"github.com/notional-labs/composable/v6/app/upgrades"
ibctransfermiddleware "github.com/notional-labs/composable/v6/x/ibctransfermiddleware/types"
)

func CreateUpgradeHandler(
Expand Down Expand Up @@ -35,6 +36,9 @@ func CreateUpgradeHandler(
keepers.BankKeeper.BurnCoins(ctx, "gov", coins)
}

custommiddlewareparams := ibctransfermiddleware.DefaultGenesisState()
keepers.IbcTransferMiddlewareKeeper.SetParams(ctx, custommiddlewareparams.Params)

return mm.RunMigrations(ctx, configurator, vm)
}
}
22 changes: 0 additions & 22 deletions app/upgrades/v6_4_6/constants.go

This file was deleted.

28 changes: 0 additions & 28 deletions app/upgrades/v6_4_6/upgrade.go

This file was deleted.

0 comments on commit bb19b89

Please sign in to comment.