Documentation ¶
Index ¶
- Variables
- func BlockerSubspacePrefix(subspaceID uint64, blocker string) []byte
- func MigrateStore(ctx sdk.Context, pk profilesv4.Keeper, ...) error
- func RelationshipsStoreKey(user, counterparty string, subspace uint64) []byte
- func SubspaceBlocksPrefix(subspaceID uint64) []byte
- func SubspaceRelationshipsPrefix(subspaceID uint64) []byte
- func UserBlockStoreKey(blocker, blockedUser string, subspace uint64) []byte
- func UserRelationshipsSubspacePrefix(subspace uint64, user string) []byte
Constants ¶
This section is empty.
Variables ¶
var ( RelationshipsStorePrefix = []byte("relationships") UsersBlocksStorePrefix = []byte("users_blocks") )
Functions ¶
func BlockerSubspacePrefix ¶
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 storetypes.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 ¶
RelationshipsStoreKey returns the store key used to store the relationships containing the given data
func SubspaceBlocksPrefix ¶
SubspaceBlocksPrefix returns the store prefix used to store the blocks for the given subspace
func SubspaceRelationshipsPrefix ¶
SubspaceRelationshipsPrefix returns the prefix used to store all relationships for the given subspace
func UserBlockStoreKey ¶
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 ¶
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.