|
@@ -58,6 +58,7 @@ use sp_runtime::curve::PiecewiseLinear;
|
|
use sp_runtime::traits::{BlakeTwo256, Block as BlockT, IdentityLookup, OpaqueKeys, Saturating};
|
|
use sp_runtime::traits::{BlakeTwo256, Block as BlockT, IdentityLookup, OpaqueKeys, Saturating};
|
|
use sp_runtime::{create_runtime_str, generic, impl_opaque_keys, ModuleId, Perbill};
|
|
use sp_runtime::{create_runtime_str, generic, impl_opaque_keys, ModuleId, Perbill};
|
|
use sp_std::boxed::Box;
|
|
use sp_std::boxed::Box;
|
|
|
|
+use sp_std::collections::btree_set::BTreeSet;
|
|
use sp_std::vec::Vec;
|
|
use sp_std::vec::Vec;
|
|
#[cfg(feature = "std")]
|
|
#[cfg(feature = "std")]
|
|
use sp_version::NativeVersion;
|
|
use sp_version::NativeVersion;
|
|
@@ -71,6 +72,7 @@ pub use runtime_api::*;
|
|
use integration::proposals::{CouncilManager, ExtrinsicProposalEncoder};
|
|
use integration::proposals::{CouncilManager, ExtrinsicProposalEncoder};
|
|
|
|
|
|
use common::working_group::{WorkingGroup, WorkingGroupAuthenticator, WorkingGroupBudgetHandler};
|
|
use common::working_group::{WorkingGroup, WorkingGroupAuthenticator, WorkingGroupBudgetHandler};
|
|
|
|
+use common::AllowedLockCombinationProvider;
|
|
use council::ReferendumConnection;
|
|
use council::ReferendumConnection;
|
|
use referendum::{CastVote, OptionResult};
|
|
use referendum::{CastVote, OptionResult};
|
|
use staking_handler::{LockComparator, StakingManager};
|
|
use staking_handler::{LockComparator, StakingManager};
|
|
@@ -983,9 +985,18 @@ impl proposals_discussion::Trait for Runtime {
|
|
type PostLifeTime = ForumPostLifeTime;
|
|
type PostLifeTime = ForumPostLifeTime;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+pub struct LockCombinationProvider;
|
|
|
|
+impl AllowedLockCombinationProvider for LockCombinationProvider {
|
|
|
|
+ fn get_allowed_lock_combinations() -> BTreeSet<(LockIdentifier, LockIdentifier)> {
|
|
|
|
+ ALLOWED_LOCK_COMBINATIONS.clone()
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
impl joystream_utility::Trait for Runtime {
|
|
impl joystream_utility::Trait for Runtime {
|
|
type Event = Event;
|
|
type Event = Event;
|
|
|
|
|
|
|
|
+ type AllowedLockCombinationProvider = LockCombinationProvider;
|
|
|
|
+
|
|
type WeightInfo = weights::joystream_utility::WeightInfo;
|
|
type WeightInfo = weights::joystream_utility::WeightInfo;
|
|
|
|
|
|
fn get_working_group_budget(working_group: WorkingGroup) -> Balance {
|
|
fn get_working_group_budget(working_group: WorkingGroup) -> Balance {
|