|
@@ -39,6 +39,7 @@ use node_runtime::{
|
|
|
// Exported to be used by chain-spec-builder
|
|
|
pub use node_runtime::{AccountId, GenesisConfig};
|
|
|
|
|
|
+pub mod content_config;
|
|
|
pub mod council_config;
|
|
|
pub mod forum_config;
|
|
|
pub mod initial_balances;
|
|
@@ -133,6 +134,7 @@ impl Alternative {
|
|
|
initial_members::none(),
|
|
|
forum_config::empty(get_account_id_from_seed::<sr25519::Public>("Alice")),
|
|
|
vec![],
|
|
|
+ content_config::testing_config(),
|
|
|
)
|
|
|
},
|
|
|
Vec::new(),
|
|
@@ -169,6 +171,7 @@ impl Alternative {
|
|
|
initial_members::none(),
|
|
|
forum_config::empty(get_account_id_from_seed::<sr25519::Public>("Alice")),
|
|
|
vec![],
|
|
|
+ content_config::testing_config(),
|
|
|
)
|
|
|
},
|
|
|
Vec::new(),
|
|
@@ -210,6 +213,7 @@ pub fn testnet_genesis(
|
|
|
members: Vec<membership::genesis::Member<u64, AccountId>>,
|
|
|
forum_config: ForumConfig,
|
|
|
initial_balances: Vec<(AccountId, Balance)>,
|
|
|
+ content_config: ContentConfig,
|
|
|
) -> GenesisConfig {
|
|
|
const STASH: Balance = 5_000;
|
|
|
const ENDOWMENT: Balance = 100_000_000;
|
|
@@ -269,33 +273,7 @@ pub fn testnet_genesis(
|
|
|
council: Some(council_config::create_council_config()),
|
|
|
membership: Some(MembersConfig { members }),
|
|
|
forum: Some(forum_config),
|
|
|
- content: Some({
|
|
|
- ContentConfig {
|
|
|
- next_curator_group_id: 1,
|
|
|
- next_channel_category_id: 1,
|
|
|
- next_channel_id: 1,
|
|
|
- next_video_category_id: 1,
|
|
|
- next_video_id: 1,
|
|
|
- next_video_post_id: 1,
|
|
|
- max_reward_allowed: 1000,
|
|
|
- min_cashout_allowed: 1,
|
|
|
- min_auction_duration: 3,
|
|
|
- max_auction_duration: 20,
|
|
|
- min_auction_extension_period: 5,
|
|
|
- max_auction_extension_period: 30,
|
|
|
- min_bid_lock_duration: 2,
|
|
|
- max_bid_lock_duration: 10,
|
|
|
- min_starting_price: 10,
|
|
|
- max_starting_price: 1000,
|
|
|
- min_creator_royalty: Perbill::from_percent(1),
|
|
|
- max_creator_royalty: Perbill::from_percent(5),
|
|
|
- min_bid_step: 10,
|
|
|
- max_bid_step: 100,
|
|
|
- platform_fee_percentage: Perbill::from_percent(1),
|
|
|
- auction_starts_at_max_delta: 90_000,
|
|
|
- max_auction_whitelist_length: 100,
|
|
|
- }
|
|
|
- }),
|
|
|
+ content: Some(content_config),
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -320,6 +298,7 @@ pub(crate) mod tests {
|
|
|
initial_members::none(),
|
|
|
forum_config::empty(get_account_id_from_seed::<sr25519::Public>("Alice")),
|
|
|
vec![],
|
|
|
+ content_config::testing_config(),
|
|
|
)
|
|
|
}
|
|
|
|
|
@@ -352,6 +331,7 @@ pub(crate) mod tests {
|
|
|
initial_members::none(),
|
|
|
forum_config::empty(get_account_id_from_seed::<sr25519::Public>("Alice")),
|
|
|
vec![],
|
|
|
+ content_config::testing_config(),
|
|
|
)
|
|
|
}
|
|
|
|