Documentation ¶
Index ¶
- func MigrateStore(ctx sdk.Context, ak authkeeper.AccountKeeper, storeKey storetypes.StoreKey, ...) error
- type Keeper
- func (k Keeper) DeleteBlocks(ctx sdk.Context)
- func (k Keeper) DeleteRelationships(ctx sdk.Context)
- func (k Keeper) GetBlocks(ctx sdk.Context) []v4types.UserBlock
- func (k Keeper) GetRelationships(ctx sdk.Context) []v4types.Relationship
- func (k Keeper) IterateApplicationLinkClientIDKeys(ctx sdk.Context, fn func(index int64, key []byte, value []byte) (stop bool))
- func (k Keeper) IterateApplicationLinks(ctx sdk.Context, ...)
- func (k Keeper) IterateBlocks(ctx sdk.Context, ...)
- func (k Keeper) IterateChainLinks(ctx sdk.Context, fn func(index int64, chainLink v4types.ChainLink) (stop bool))
- func (k Keeper) IterateDTagTransferRequests(ctx sdk.Context, ...)
- func (k Keeper) IterateDTags(ctx sdk.Context, fn func(index int64, dTag string, value []byte) (stop bool))
- func (k Keeper) IterateRelationships(ctx sdk.Context, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, ak authkeeper.AccountKeeper, storeKey storetypes.StoreKey, amino *codec.LegacyAmino, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v4 to v5. The migration includes:
- migrating all the profiles to have the proper Protobuf type - delete all the relationships - delete all the user blocks
NOTE: This method must be called AFTER the migration from v0 to v1 of the x/relationships module.
If this order is not preserved, all relationships and blocks WILL BE DELETED.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(storeKey storetypes.StoreKey, cdc codec.BinaryCodec) Keeper
func (Keeper) DeleteBlocks ¶
func (Keeper) DeleteRelationships ¶
func (Keeper) GetRelationships ¶
func (k Keeper) GetRelationships(ctx sdk.Context) []v4types.Relationship
func (Keeper) IterateApplicationLinkClientIDKeys ¶
func (Keeper) IterateApplicationLinks ¶
func (Keeper) IterateBlocks ¶
func (Keeper) IterateChainLinks ¶
func (Keeper) IterateDTagTransferRequests ¶
func (Keeper) IterateDTags ¶
func (Keeper) IterateRelationships ¶
Click to show internal directories.
Click to hide internal directories.