Documentation ¶
Index ¶
- Constants
- func CleanupState(store storetypes.KVStore)
- func CompleteUnbondingOps(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper)
- func MigrateConsumerAddrsToPrune(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper) error
- func MigrateLaunchedConsumerChains(ctx sdk.Context, store storetypes.KVStore, pk providerkeeper.Keeper) error
- func TransformConsAddressesToBech32Addresses(addresses []providertypes.ProviderConsAddress) []string
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.
Click to show internal directories.
Click to hide internal directories.