Преглед на файлове

Merge pull request #3297 from shamil-gadelshin/olympia-expose-proposals-constants

Olympia. Runtime: expose proposal discussion pallet constants.
Mokhtar Naamani преди 3 години
родител
ревизия
2c18b1d3e5
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 9 0
      runtime-modules/proposals/discussion/src/lib.rs

+ 9 - 0
runtime-modules/proposals/discussion/src/lib.rs

@@ -217,6 +217,15 @@ decl_module! {
         /// Emits an event. Default substrate implementation.
         fn deposit_event() = default;
 
+        /// Exports const - author list size limit for the Closed discussion.
+        const MaxWhiteListSize: u32 = T::MaxWhiteListSize::get();
+
+        /// Exports const - fee for creating a post
+        const PostDeposit: BalanceOf<T> = T::PostDeposit::get();
+
+        /// Exports const - maximum number of blocks before a post can be erased by anyone
+        const PostLifeTime: T::BlockNumber = T::PostLifeTime::get();
+
         /// Adds a post with author origin check.
         ///
         /// <weight>