1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
use pallet_collective::EnsureMember;
use pallet_democracy::Config;
use crate::{weights::pallet_democracy::WeightInfo, *};
frame_support::parameter_types! {
pub const LaunchPeriod: BlockNumber = 7 * DAYS;
pub const VotingPeriod: BlockNumber = 7 * DAYS;
pub const FastTrackVotingPeriod: BlockNumber = 3 * HOURS;
pub const MinimumDeposit: Balance = MILLI;
pub const EnactmentPeriod: BlockNumber = 8 * DAYS;
pub const CooloffPeriod: BlockNumber = 7 * DAYS;
pub const PreimageByteDeposit: Balance = 10 * NANO;
pub const InstantAllowed: bool = true;
pub const MaxVotes: u32 = 100;
pub const MaxProposals: u32 = 100;
}
impl Config for Runtime {
type BlacklistOrigin = Root;
type CancelProposalOrigin = RootOrAll<TechnicalCollective>;
type CancellationOrigin = RootOrAtLeastTwoThird<CouncilCollective>;
type CooloffPeriod = CooloffPeriod;
type Currency = Ring;
type EnactmentPeriod = EnactmentPeriod;
type Event = Event;
type ExternalDefaultOrigin = RootOrAll<CouncilCollective>;
type ExternalMajorityOrigin = RootOrAtLeastHalf<CouncilCollective>;
type ExternalOrigin = RootOrAtLeastHalf<CouncilCollective>;
type FastTrackOrigin = RootOrAtLeastTwoThird<TechnicalCollective>;
type FastTrackVotingPeriod = FastTrackVotingPeriod;
type InstantAllowed = InstantAllowed;
type InstantOrigin = RootOrAll<TechnicalCollective>;
type LaunchPeriod = LaunchPeriod;
type MaxProposals = MaxProposals;
type MaxVotes = MaxVotes;
type MinimumDeposit = MinimumDeposit;
type OperationalPreimageOrigin = EnsureMember<AccountId, CouncilCollective>;
type PalletsOrigin = OriginCaller;
type PreimageByteDeposit = PreimageByteDeposit;
type Proposal = Call;
type Scheduler = Scheduler;
type Slash = Treasury;
type VetoOrigin = EnsureMember<AccountId, TechnicalCollective>;
type VoteLockingPeriod = EnactmentPeriod;
type VotingPeriod = VotingPeriod;
type WeightInfo = WeightInfo<Self>;
}