v8

package
v6.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LegacyUnbondingOpBytePrefix                = byte(11)
	LegacyConsumerAddrsToPruneBytePrefix       = byte(25)
	LegacyMaturedUnbondingOpsByteKey           = byte(1)
	LegacyUnbondingOpIndexBytePrefix           = byte(12)
	LegacyInitTimeoutTimestampBytePrefix       = byte(8)
	LegacyVscSendTimestampBytePrefix           = byte(18)
	LegacyVSCMaturedHandledThisBlockBytePrefix = byte(28)

	LegacyPendingCAPKeyPrefix            = byte(9)
	LegacyPendingCRPKeyPrefix            = byte(10)
	LegacyProposedConsumerChainKeyPrefix = byte(30)

	LegacyThrottledPacketDataSizeKeyPrefix = byte(19)
	LegacyThrottledPacketDataKeyPrefix     = byte(20)
	LegacyGlobalSlashEntryKeyPrefix        = byte(21)
	LegacyTopNKeyPrefix                    = byte(33)
	LegacyValidatorsPowerCapKeyPrefix      = byte(34)
	LegacyValidatorSetCapKeyPrefix         = byte(35)

	LegacyChainToChannelKeyPrefix = byte(5)
	LegacyChannelToChainKeyPrefix = byte(6)
	LegacyChainToClientKeyPrefix  = byte(7)

	// needed for rekeying
	ConsumerGenesisKeyPrefix               = byte(14)
	SlashAcksKeyPrefix                     = byte(15)
	InitChainHeightKeyPrefix               = byte(16)
	PendingVSCsKeyPrefix                   = byte(17)
	EquivocationEvidenceMinHeightKeyPrefix = byte(29)
	ConsumerRewardsAllocationKeyPrefix     = byte(38)
	MinimumPowerInTopNKeyPrefix            = byte(40)
)

Variables

This section is empty.

Functions

func CleanupState

func CleanupState(store storetypes.KVStore)

CleanupState removes deprecated state

func CompleteUnbondingOps

func CompleteUnbondingOps(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper)

CompleteUnbondingOps completes all unbonding operations. Note that it must be executed before CleanupState.

func MigrateConsumerAddrsToPrune

func MigrateConsumerAddrsToPrune(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper) error

MigrateConsumerAddrsToPrune migrates the ConsumerAddrsToPrune index to ConsumerAddrsToPruneV2. Note: This migration must be done before removing the VscSendTimestamp index

func MigrateLaunchedConsumerChains

func MigrateLaunchedConsumerChains(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper) error

MigrateLaunchedConsumerChains migrates all the state for consumer chains with an existing client Note that it must be executed before CleanupState.

func TransformConsAddressesToBech32Addresses

func TransformConsAddressesToBech32Addresses(addresses []providertypes.ProviderConsAddress) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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