Documentation ¶
Index ¶
- Constants
- func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, ...) upgradetypes.UpgradeHandler
- func MigrateICSOutstandingDowntime(ctx sdk.Context, ck ccvconsumerkeeper.Keeper) error
- func MigrateICSParams(ctx sdk.Context, ck ccvconsumerkeeper.Keeper)
- func SetDydxCommunityPoolTreasuryAddress(ctx sdk.Context, k stakeibckeeper.Keeper) error
Constants ¶
View Source
const ( UpgradeName = "v20" DydxCommunityPoolTreasuryAddress = "dydx15ztc7xy42tn2ukkc0qjthkucw9ac63pgp70urn" DydxChainId = "dydx-mainnet-1" )
Variables ¶
This section is empty.
Functions ¶
func CreateUpgradeHandler ¶
func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, consumerKeeper ccvconsumerkeeper.Keeper, stakeibcKeeper stakeibckeeper.Keeper, ) upgradetypes.UpgradeHandler
CreateUpgradeHandler creates an SDK upgrade handler for v20
func MigrateICSOutstandingDowntime ¶
func MigrateICSOutstandingDowntime(ctx sdk.Context, ck ccvconsumerkeeper.Keeper) error
Migrates Outstanding Downtime for upgrade to ICS v4 https://github.com/cosmos/interchain-security/blob/release/v4.0.x/UPGRADING.md#v40x
func MigrateICSParams ¶
func MigrateICSParams(ctx sdk.Context, ck ccvconsumerkeeper.Keeper)
Migrates ICS Params to add the new RetryDelayParam Because RetryDelayPeriod isn't in the store yet, we can't call ck.GetConsumerParams(ctx) and modify the RetryDelayPeriod, as calling ck.GetConsumerParams(ctx) will panic if the param isn't in the store. Instead, we get the DefaultParams and modify each value to their value directly before the v20 upgrade
func SetDydxCommunityPoolTreasuryAddress ¶
func SetDydxCommunityPoolTreasuryAddress(ctx sdk.Context, k stakeibckeeper.Keeper) error
Write the Community Pool Treasury Address to the DYDX host_zone struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.