Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey sdk.StoreKey, sk SubspacesKeeper, pk PostsKeeper, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v1 to v2 The things done here are the following: 1. setting next registered reaction id 2. setting next reaction id for existing posts 3. setting the reaction params for existing subspaces
Types ¶
type PostsKeeper ¶
type PostsKeeper interface {
IteratePosts(ctx sdk.Context, fn func(post poststypes.Post) (stop bool))
}
type SubspacesKeeper ¶
type SubspacesKeeper interface {
IterateSubspaces(ctx sdk.Context, fn func(subspaces subspacestypes.Subspace) (stop bool))
}
Click to show internal directories.
Click to hide internal directories.