v20

package
v20.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL