Browse Source

content-dir: rename Actor to ContentActor

Mokhtar Naamani 4 years ago
parent
commit
805f8d8697

+ 4 - 4
runtime-modules/content/src/lib.rs

@@ -53,7 +53,7 @@ pub trait NumericIdentifier:
 impl NumericIdentifier for u64 {}
 
 /// Module configuration trait for this Substrate module.
-pub trait Trait: system::Trait + ActorAuthenticator + Clone {
+pub trait Trait: system::Trait + ContentActorAuthenticator + Clone {
     /// The overarching event type.
     type Event: From<Event<Self>> + Into<<Self as system::Trait>::Event>;
 
@@ -91,7 +91,7 @@ pub trait Trait: system::Trait + ActorAuthenticator + Clone {
     type MaxNumberOfCuratorsPerGroup: Get<MaxNumber>;
 
     // Type that handles asset uploads to storage system
-    // type StorageSysten = StorageSystemTrait;
+    // type StorageSystem: StorageSystem;
 }
 
 // How new assets are to be added on creating and updating
@@ -650,8 +650,8 @@ impl<T: Trait> Module<T> {
 decl_event!(
     pub enum Event<T>
     where
-        CuratorGroupId = <T as ActorAuthenticator>::CuratorGroupId,
-        CuratorId = <T as ActorAuthenticator>::CuratorId,
+        CuratorGroupId = <T as ContentActorAuthenticator>::CuratorGroupId,
+        CuratorId = <T as ContentActorAuthenticator>::CuratorId,
     {
         CuratorGroupAdded(CuratorGroupId),
         CuratorGroupRemoved(CuratorGroupId),

+ 1 - 1
runtime-modules/content/src/permissions/mod.rs

@@ -13,7 +13,7 @@ use sp_arithmetic::traits::BaseArithmetic;
 use sp_runtime::traits::{MaybeSerializeDeserialize, Member};
 
 /// Model of authentication manager.
-pub trait ActorAuthenticator: system::Trait {
+pub trait ContentActorAuthenticator: system::Trait {
     /// Curator identifier
     type CuratorId: Parameter
         + Member

+ 2 - 2
types/src/content/index.ts

@@ -20,7 +20,7 @@ export class CuratorGroup extends JoyStructDecorated({
   number_of_channels_owned: u32,
 }) {}
 
-export class Actor extends JoyEnum({
+export class ContentActor extends JoyEnum({
   Curator: Tuple.with([CuratorGroupId, CuratorId]),
   Member: MemberId,
   Lead: Null,
@@ -30,7 +30,7 @@ export const contentDirectoryTypes = {
   CuratorId,
   CuratorGroupId,
   CuratorGroup,
-  Actor,
+  ContentActor,
   ChannelId,
   ChannelCategoryId,
   VideoId,