v4

package
v0.0.0-...-03ee383 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateStore

func MigrateStore(ctx sdk.Context, ak authkeeper.AccountKeeper, storeKey sdk.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 sdk.StoreKey, cdc codec.BinaryCodec) Keeper

func (Keeper) DeleteBlocks

func (k Keeper) DeleteBlocks(ctx sdk.Context)

func (Keeper) DeleteRelationships

func (k Keeper) DeleteRelationships(ctx sdk.Context)

func (Keeper) GetBlocks

func (k Keeper) GetBlocks(ctx sdk.Context) []v4types.UserBlock

func (Keeper) GetRelationships

func (k Keeper) GetRelationships(ctx sdk.Context) []v4types.Relationship

func (Keeper) IterateApplicationLinkClientIDKeys

func (k Keeper) IterateApplicationLinkClientIDKeys(ctx sdk.Context, fn func(index int64, key []byte, value []byte) (stop bool))
func (k Keeper) IterateApplicationLinks(ctx sdk.Context, fn func(index int64, applicationLink v4types.ApplicationLink) (stop bool))

func (Keeper) IterateBlocks

func (k Keeper) IterateBlocks(ctx sdk.Context, fn func(index int64, relationship v4types.UserBlock) (stop bool))
func (k Keeper) IterateChainLinks(ctx sdk.Context, fn func(index int64, chainLink v4types.ChainLink) (stop bool))

func (Keeper) IterateDTagTransferRequests

func (k Keeper) IterateDTagTransferRequests(ctx sdk.Context, fn func(index int64, request v4types.DTagTransferRequest) (stop bool))

func (Keeper) IterateDTags

func (k Keeper) IterateDTags(ctx sdk.Context, fn func(index int64, dTag string, value []byte) (stop bool))

func (Keeper) IterateRelationships

func (k Keeper) IterateRelationships(ctx sdk.Context, fn func(index int64, relationship v4types.Relationship) (stop bool))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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