Documentation ¶
Index ¶
Constants ¶
View Source
const UpgradeName = "v1.3.0"
Variables ¶
View Source
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: func(mm *module.Manager, cfg module.Configurator) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { fromVM[icatypes.ModuleName] = mm.GetVersionMap()[icatypes.ModuleName] controllerParams := icacontrollertypes.Params{ ControllerEnabled: true, } hostParams := icahosttypes.Params{ HostEnabled: true, AllowMessages: []string{ sdk.MsgTypeURL(&banktypes.MsgSend{}), sdk.MsgTypeURL(&stakingtypes.MsgDelegate{}), sdk.MsgTypeURL(&stakingtypes.MsgUndelegate{}), sdk.MsgTypeURL(&stakingtypes.MsgBeginRedelegate{}), sdk.MsgTypeURL(&distrtypes.MsgWithdrawDelegatorReward{}), sdk.MsgTypeURL(&distrtypes.MsgSetWithdrawAddress{}), sdk.MsgTypeURL(&distrtypes.MsgFundCommunityPool{}), sdk.MsgTypeURL(&authz.MsgExec{}), sdk.MsgTypeURL(&authz.MsgGrant{}), sdk.MsgTypeURL(&authz.MsgRevoke{}), sdk.MsgTypeURL(&ibctransfertypes.MsgTransfer{}), }, } icamodule, correctTypecast := mm.Modules[icatypes.ModuleName].(ica.AppModule) if !correctTypecast { panic("mm.Modules[icatypes.ModuleName] is not of type ica.AppModule") } icamodule.InitModule(ctx, controllerParams, hostParams) return mm.RunMigrations(ctx, cfg, fromVM) } }, StoreUpgrades: types.StoreUpgrades{ Added: []string{icacontrollertypes.StoreKey, icahosttypes.StoreKey}, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.