v2

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateStore

func MigrateStore(ctx sdk.Context, storeKey storetypes.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))
}

Jump to

Keyboard shortcuts

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