Skip to content

Commit

Permalink
Minor param adjustment (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard authored Jul 12, 2024
1 parent 31763c5 commit b9e79fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,10 +989,10 @@ impl pallet_collective::Config<CommunityCouncilCollectiveInst> for Runtime {
impl pallet_democracy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type EnactmentPeriod = ConstU32<{ 1 * MINUTES }>;
type LaunchPeriod = ConstU32<{ 1 * MINUTES }>;
type VotingPeriod = ConstU32<{ 3 * MINUTES }>;
type VoteLockingPeriod = ConstU32<{ 10 * MINUTES }>;
type EnactmentPeriod = ConstU32<{ 5 * MINUTES }>;
type LaunchPeriod = ConstU32<{ 5 * MINUTES }>;
type VotingPeriod = ConstU32<{ 5 * MINUTES }>;
type VoteLockingPeriod = ConstU32<{ 2 * MINUTES }>;
type MinimumDeposit = ConstU128<{ 10 * AST }>;
type FastTrackVotingPeriod = ConstU32<{ MINUTES / 2 }>;
type CooloffPeriod = ConstU32<{ 2 * MINUTES }>;
Expand Down
19 changes: 9 additions & 10 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1239,12 +1239,11 @@ impl orml_oracle::Config for Runtime {

impl pallet_membership::Config<OracleMembershipInst> for Runtime {
type RuntimeEvent = RuntimeEvent;
type AddOrigin = EnsureRoot<AccountId>;
type RemoveOrigin = EnsureRoot<AccountId>;
type SwapOrigin = EnsureRoot<AccountId>;
type ResetOrigin = EnsureRoot<AccountId>;
type PrimeOrigin = EnsureRoot<AccountId>;

type AddOrigin = EnsureRootOrTwoThirdsMainCouncil;
type RemoveOrigin = EnsureRootOrTwoThirdsMainCouncil;
type SwapOrigin = EnsureRootOrTwoThirdsMainCouncil;
type ResetOrigin = EnsureRootOrTwoThirdsMainCouncil;
type PrimeOrigin = EnsureRootOrTwoThirdsMainCouncil;
type MembershipInitialized = ();
type MembershipChanged = ();
type MaxMembers = ConstU32<16>;
Expand Down Expand Up @@ -1360,10 +1359,10 @@ impl pallet_collective::Config<CommunityCouncilCollectiveInst> for Runtime {
impl pallet_democracy::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Currency = Balances;
type EnactmentPeriod = ConstU32<{ 1 * HOURS }>;
type LaunchPeriod = ConstU32<{ 1 * DAYS }>;
type VotingPeriod = ConstU32<{ 1 * DAYS }>;
type VoteLockingPeriod = ConstU32<{ 2 * DAYS }>;
type EnactmentPeriod = ConstU32<{ 2 * HOURS }>;
type LaunchPeriod = ConstU32<{ 3 * DAYS }>;
type VotingPeriod = ConstU32<{ 3 * DAYS }>;
type VoteLockingPeriod = ConstU32<{ 1 * DAYS }>;
type MinimumDeposit = ConstU128<{ 10 * SBY }>;
type FastTrackVotingPeriod = ConstU32<{ 1 * HOURS }>;
type CooloffPeriod = ConstU32<{ 1 * DAYS }>;
Expand Down

0 comments on commit b9e79fe

Please sign in to comment.