Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tighten permissions #1210

Merged
merged 5 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangoro/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_support::parameter_types! {
// In order to use `Tips`, which bounded by `pallet_treasury::Config` rather
// `pallet_treasury::Config<I>` Still use `DefaultInstance` here instead `Instance1`
impl pallet_treasury::Config for Runtime {
type ApproveOrigin = RootOrAtLeastThreeFifth<CouncilCollective>;
type ApproveOrigin = Root;
type Burn = ();
type BurnDestination = ();
type Currency = Balances;
Expand All @@ -37,7 +37,7 @@ impl pallet_treasury::Config for Runtime {
type ProposalBond = ProposalBond;
type ProposalBondMaximum = ();
type ProposalBondMinimum = ConstU128<DARWINIA_PROPOSAL_REQUIREMENT>;
type RejectOrigin = RootOrMoreThanHalf<CouncilCollective>;
type RejectOrigin = RootOrAll<CouncilCollective>;
type RuntimeEvent = RuntimeEvent;
type SpendFunds = ();
type SpendOrigin = frame_support::traits::NeverEnsureOrigin<Balance>;
Expand Down
Loading