v28

package
v30.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpgradeName = "v28"

	EvmosChainId          = "evmos_9001-2"
	QueryId               = "2c39af4c3d2ecb96d8bbf7f3386468c5909e51fe3364b8d1f9d6fce173dd1f7a"
	QueryValidatorAddress = "evmosvaloper1tdss4m3x7jy9mlepm2dwy8820l7uv6m2vx6z88"
	EvmosDelegationIca    = "evmos1d67tx0zekagfhw6chhgza6qmhyad5qprru0nwazpx5s85ld0wh2sdhhznd"

	// Redemption rate bounds updated to give slack on outer bounds
	RedemptionRateOuterMinAdjustment = sdkmath.LegacyMustNewDecFromStr("0.50")
	RedemptionRateOuterMaxAdjustment = sdkmath.LegacyMustNewDecFromStr("1.00")

	MaxMessagesPerIca = uint64(5)
	BandChainId       = "laozi-mainnet"

	// Action Gov Prop 262
	ReceivingAddress262 = "stride1czvrk3jkvtj8m27kqsqu2yrkhw3h3ykwj3rxh6"
	IncentivesAddress   = "stride1tlxk4as9sgpqkh42cfaxqja0mdj6qculqshy0gg3glazmrnx3y8s8gsvqk"
	IncentivesAmount    = sdkmath.NewInt(8_000_000_000_000)
	SecurityAddress     = "stride14p6dyylhlmr445w9shcp36r5qcypc5d7rftpr2v0dt3pcjvy66zq60qfgg"
	// NOTE: This partially covers the amount in the prop.
	// The actual amount in the prop was higher because it assumed more tokens were in the security address than actually were,
	// and this doesn't include future inflation. Those tokens will need to be transferred in a future upgrade
	SecurityAmount = sdkmath.NewInt(1_481_000_000_000)
)

Functions

func ActionGovProp262

func ActionGovProp262(ctx sdk.Context, k stakeibckeeper.Keeper, bankKeeper bankkeeper.Keeper) error

Action Gov Prop 262

func ApplyDistributionFix

func ApplyDistributionFix(ctx sdk.Context, distrKeeper distrkeeper.Keeper) error

ApplyDistributionFix fixes an issue with a missing slashing event that causes some users to be unable to withdraw rewards from validator stridevaloper1tlz6ksce084ndhwlq2usghamvh0dut9q4z2gxd. The issue affects delegations created before block height 4300034.

func ClearStuckEvmosQuery

func ClearStuckEvmosQuery(ctx sdk.Context, k stakeibckeeper.Keeper, icqKeeper icqkeeper.Keeper)

Cleans up the stale ICQ

func CreateUpgradeHandler

func CreateUpgradeHandler(
	mm *module.Manager,
	configurator module.Configurator,
	consumerKeeper consumerkeeper.Keeper,
	distrKeeper distrkeeper.Keeper,
	stakeibcKeeper stakeibckeeper.Keeper,
	bankKeeper bankkeeper.Keeper,
	icqKeeper icqkeeper.Keeper,
) upgradetypes.UpgradeHandler

CreateUpgradeHandler creates an SDK upgrade handler for v27

func InitializeConsumerId

func InitializeConsumerId(ctx sdk.Context, consumerKeeper consumerkeeper.Keeper)

InitializeConsumerId sets the consumer Id parameter in the consumer module, to the consumer id for which the consumer is registered on the provider chain. The consumer id can be obtained in by querying the provider, e.g. by using the QueryConsumerIdFromClientId query.

Steps to retrieve the Stride consumer chain ID from Cosmos Hub provider:

  1. First, obtain the client ID from Stride using the command: `strided q ccvconsumer provider-info` which returns "07-tendermint-1154"
  2. Then, use the Provider's QueryConsumerIdFromClientId endpoint to get the corresponding consumer ID: - API endpoint: https://rest.cosmos.directory/cosmoshub/interchain_security/ccv/provider/consumer_id/07-tendermint-1154 - This endpoint implements the query defined in the Interchain Security repository at: https://github.com/cosmos/interchain-security/blob/307b1446/proto/interchain_security/ccv/provider/v1/query.proto#L132-L138

func SetMaxIcasBand

func SetMaxIcasBand(ctx sdk.Context, k stakeibckeeper.Keeper)

Add the MaxMessagesPerIcaTx parameter to each host zone

func UpdateRedemptionRateBounds

func UpdateRedemptionRateBounds(ctx sdk.Context, k stakeibckeeper.Keeper)

Updates the outer redemption rate bounds

Types

This section is empty.

Jump to

Keyboard shortcuts

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