Skip to content

Commit

Permalink
Rename profile-follows to account-follows
Browse files Browse the repository at this point in the history
Add account-follows to runtime
  • Loading branch information
F3Joule committed Jul 26, 2022
1 parent c98ac4f commit f872e57
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 8 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = 'pallet-profile-follows'
name = 'pallet-account-follows'
version = '0.1.7'
authors = ['DappForce <dappforce@pm.me>']
edition = '2021'
license = 'GPL-3.0-only'
homepage = 'https://subsocial.network'
repository = 'https://github.com/dappforce/subsocial-parachain'
description = 'Pallet to follow/unfollow accounts (profiles)'
description = 'Pallet to follow/unfollow accounts'
keywords = ['blockchain', 'cryptocurrency', 'social-network', 'news-feed', 'marketplace']
categories = ['cryptography::cryptocurrencies']

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![cfg_attr(not(feature = "std"), no_std)]

pub use pallet::*;

// pub mod rpc;

#[frame_support::pallet]
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ serde = { version = "1.0.137", optional = true, features = ["derive"] }
smallvec = "1.6.1"

# Local
pallet-account-follows = { path = "../pallets/account-follows", default-features = false }
pallet-domains = { path = "../pallets/domains", default-features = false }
pallet-permissions = { path = '../pallets/permissions', default-features = false }
pallet-posts = { path = '../pallets/posts', default-features = false }
Expand Down Expand Up @@ -142,6 +143,7 @@ std = [
"pallet-vesting/std",
"pallet-utility/std",
"pallet-randomness-collective-flip/std",
"pallet-account-follows/std",
"pallet-domains/std",
"pallet-permissions/std",
"pallet-posts/std",
Expand Down
17 changes: 11 additions & 6 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,10 @@ impl pallet_space_ownership::Config for Runtime {
type ProfileManager = Profiles;
}

impl pallet_account_follows::Config for Runtime {
type Event = Event;
}

// Create the runtime by composing the FRAME pallets that were previously configured.
construct_runtime!(
pub enum Runtime where
Expand Down Expand Up @@ -630,12 +634,13 @@ construct_runtime!(

Permissions: pallet_permissions = 70,
Roles: pallet_roles = 71,
Profiles: pallet_profiles = 72,
SpaceFollows: pallet_space_follows = 73,
SpaceOwnership: pallet_space_ownership = 74,
Spaces: pallet_spaces = 75,
Posts: pallet_posts = 76,
Reactions: pallet_reactions = 77,
AccountFollows: pallet_account_follows = 72,
Profiles: pallet_profiles = 73,
SpaceFollows: pallet_space_follows = 74,
SpaceOwnership: pallet_space_ownership = 75,
Spaces: pallet_spaces = 76,
Posts: pallet_posts = 77,
Reactions: pallet_reactions = 78,

// Temporary
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 255,
Expand Down

0 comments on commit f872e57

Please sign in to comment.