v1

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RelationshipsStorePrefix = []byte("relationships")
	UsersBlocksStorePrefix   = []byte("users_blocks")
)

Functions

func BlockerSubspacePrefix added in v3.1.0

func BlockerSubspacePrefix(subspaceID uint64, blocker string) []byte

BlockerSubspacePrefix returns the store prefix used to store the blocks that the given blocker has created inside the specified subspace

func MigrateStore

func MigrateStore(ctx sdk.Context, pk profilesv4.Keeper, relationshipsStoreKey sdk.StoreKey, cdc codec.BinaryCodec) error

MigrateStore performs in-place store migrations from v0 to v1 The migration includes:

- store all the relationships present inside x/profiles into this module - store all the user blocks present inside x/profiles into this module

NOTE: This method must be called BEFORE the migration from v4 to v5 of the profiles module.

If this order is not preserved, all relationships and blocks WILL BE DELETED.

func RelationshipsStoreKey added in v3.1.0

func RelationshipsStoreKey(user, counterparty string, subspace uint64) []byte

RelationshipsStoreKey returns the store key used to store the relationships containing the given data

func SubspaceBlocksPrefix added in v3.1.0

func SubspaceBlocksPrefix(subspaceID uint64) []byte

SubspaceBlocksPrefix returns the store prefix used to store the blocks for the given subspace

func SubspaceRelationshipsPrefix added in v3.1.0

func SubspaceRelationshipsPrefix(subspaceID uint64) []byte

SubspaceRelationshipsPrefix returns the prefix used to store all relationships for the given subspace

func UserBlockStoreKey added in v3.1.0

func UserBlockStoreKey(blocker, blockedUser string, subspace uint64) []byte

UserBlockStoreKey returns the store key used to save the block made by the given blocker, inside the specified subspace and towards the given blocked user

func UserRelationshipsSubspacePrefix added in v3.1.0

func UserRelationshipsSubspacePrefix(subspace uint64, user string) []byte

UserRelationshipsSubspacePrefix returns the prefix used to store all the relationships created by the user with the given address for the subspace having the given id

Types

This section is empty.

Jump to

Keyboard shortcuts

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