Bläddra i källkod

updated runtime code

ignazio 3 år sedan
förälder
incheckning
eb6090ae53
3 ändrade filer med 0 tillägg och 22 borttagningar
  1. 0 4
      node/src/chain_spec/mod.rs
  2. 0 6
      runtime/src/lib.rs
  3. 0 12
      runtime/src/primitives.rs

+ 0 - 4
node/src/chain_spec/mod.rs

@@ -276,11 +276,7 @@ pub fn testnet_genesis(
                 next_channel_id: 1,
                 next_video_category_id: 1,
                 next_video_id: 1,
-                next_playlist_id: 1,
-                next_series_id: 1,
-                next_person_id: 1,
                 next_video_post_id: 1,
-                next_channel_transfer_request_id: 1,
                 video_migration: node_runtime::content::MigrationConfigRecord {
                     current_id: 1,
                     final_id: 1,

+ 0 - 6
runtime/src/lib.rs

@@ -444,7 +444,6 @@ impl common::currency::GovernanceCurrency for Runtime {
 
 parameter_types! {
     pub const MaxNumberOfCuratorsPerGroup: MaxNumber = 50;
-    pub const ChannelOwnershipPaymentEscrowId: [u8; 8] = *b"chescrow";
     pub const MaxModerators: u64 = 5;    // TODO: update
     pub const CleanupMargin: u32 = 3;    // TODO: update
     pub const CleanupCost: u32 = 1; // TODO: update
@@ -457,14 +456,9 @@ parameter_types! {
 
 impl content::Trait for Runtime {
     type Event = Event;
-    type ChannelOwnershipPaymentEscrowId = ChannelOwnershipPaymentEscrowId;
     type ChannelCategoryId = ChannelCategoryId;
     type VideoId = VideoId;
     type VideoCategoryId = VideoCategoryId;
-    type PlaylistId = PlaylistId;
-    type PersonId = PersonId;
-    type SeriesId = SeriesId;
-    type ChannelOwnershipTransferRequestId = ChannelOwnershipTransferRequestId;
     type MaxNumberOfCuratorsPerGroup = MaxNumberOfCuratorsPerGroup;
     type DataObjectStorage = Storage;
     type VideoPostId = VideoPostId;

+ 0 - 12
runtime/src/primitives.rs

@@ -55,18 +55,6 @@ pub type VideoId = u64;
 /// Content Directory Video Category identifier.
 pub type VideoCategoryId = u64;
 
-/// Content Directory Playlist identifier.
-pub type PlaylistId = u64;
-
-/// Content Directory Person identifier.
-pub type PersonId = u64;
-
-/// Content Directory Series identifier.
-pub type SeriesId = u64;
-
-/// Content Directory Channel transfer request identifier.
-pub type ChannelOwnershipTransferRequestId = u64;
-
 /// Curator group identifier.
 pub type CuratorGroupId = u64;