Skip to content
Snippets Groups Projects
Commit 906094a2 authored by NingBo Wang's avatar NingBo Wang Committed by GitHub
Browse files

Add crowdloan to SafeCallFilter (#6903)

* Add crowdloan to SafeCallFilter

* Add crowdloan to SafeCallFilter
parent f7bd3a95
Branches
No related merge requests found
...@@ -26,7 +26,7 @@ use frame_support::{ ...@@ -26,7 +26,7 @@ use frame_support::{
weights::Weight, weights::Weight,
}; };
use frame_system::EnsureRoot; use frame_system::EnsureRoot;
use runtime_common::{paras_registrar, xcm_sender, ToAuthor}; use runtime_common::{crowdloan, paras_registrar, xcm_sender, ToAuthor};
use sp_core::ConstU32; use sp_core::ConstU32;
use xcm::latest::prelude::*; use xcm::latest::prelude::*;
use xcm_builder::{ use xcm_builder::{
...@@ -172,6 +172,16 @@ impl Contains<RuntimeCall> for SafeCallFilter { ...@@ -172,6 +172,16 @@ impl Contains<RuntimeCall> for SafeCallFilter {
RuntimeCall::Timestamp(..) | RuntimeCall::Timestamp(..) |
RuntimeCall::Indices(..) | RuntimeCall::Indices(..) |
RuntimeCall::Balances(..) | RuntimeCall::Balances(..) |
RuntimeCall::Crowdloan(
crowdloan::Call::create { .. } |
crowdloan::Call::contribute { .. } |
crowdloan::Call::withdraw { .. } |
crowdloan::Call::refund { .. } |
crowdloan::Call::dissolve { .. } |
crowdloan::Call::edit { .. } |
crowdloan::Call::poke { .. } |
crowdloan::Call::contribute_all { .. },
) |
RuntimeCall::Staking( RuntimeCall::Staking(
pallet_staking::Call::bond { .. } | pallet_staking::Call::bond { .. } |
pallet_staking::Call::bond_extra { .. } | pallet_staking::Call::bond_extra { .. } |
......
...@@ -29,7 +29,7 @@ use frame_support::{ ...@@ -29,7 +29,7 @@ use frame_support::{
use frame_system::EnsureRoot; use frame_system::EnsureRoot;
use pallet_xcm::XcmPassthrough; use pallet_xcm::XcmPassthrough;
use polkadot_runtime_constants::{system_parachain::*, xcm::body::FELLOWSHIP_ADMIN_INDEX}; use polkadot_runtime_constants::{system_parachain::*, xcm::body::FELLOWSHIP_ADMIN_INDEX};
use runtime_common::{paras_registrar, xcm_sender, ToAuthor}; use runtime_common::{crowdloan, paras_registrar, xcm_sender, ToAuthor};
use sp_core::ConstU32; use sp_core::ConstU32;
use xcm::latest::prelude::*; use xcm::latest::prelude::*;
use xcm_builder::{ use xcm_builder::{
...@@ -182,6 +182,16 @@ impl Contains<RuntimeCall> for SafeCallFilter { ...@@ -182,6 +182,16 @@ impl Contains<RuntimeCall> for SafeCallFilter {
RuntimeCall::Timestamp(..) | RuntimeCall::Timestamp(..) |
RuntimeCall::Indices(..) | RuntimeCall::Indices(..) |
RuntimeCall::Balances(..) | RuntimeCall::Balances(..) |
RuntimeCall::Crowdloan(
crowdloan::Call::create { .. } |
crowdloan::Call::contribute { .. } |
crowdloan::Call::withdraw { .. } |
crowdloan::Call::refund { .. } |
crowdloan::Call::dissolve { .. } |
crowdloan::Call::edit { .. } |
crowdloan::Call::poke { .. } |
crowdloan::Call::contribute_all { .. },
) |
RuntimeCall::Staking( RuntimeCall::Staking(
pallet_staking::Call::bond { .. } | pallet_staking::Call::bond { .. } |
pallet_staking::Call::bond_extra { .. } | pallet_staking::Call::bond_extra { .. } |
......
...@@ -26,7 +26,7 @@ use frame_support::{ ...@@ -26,7 +26,7 @@ use frame_support::{
weights::Weight, weights::Weight,
}; };
use frame_system::EnsureRoot; use frame_system::EnsureRoot;
use runtime_common::{paras_registrar, xcm_sender, ToAuthor}; use runtime_common::{crowdloan, paras_registrar, xcm_sender, ToAuthor};
use sp_core::ConstU32; use sp_core::ConstU32;
use xcm::latest::prelude::*; use xcm::latest::prelude::*;
use xcm_builder::{ use xcm_builder::{
...@@ -167,6 +167,16 @@ impl Contains<RuntimeCall> for SafeCallFilter { ...@@ -167,6 +167,16 @@ impl Contains<RuntimeCall> for SafeCallFilter {
RuntimeCall::Timestamp(..) | RuntimeCall::Timestamp(..) |
RuntimeCall::Indices(..) | RuntimeCall::Indices(..) |
RuntimeCall::Balances(..) | RuntimeCall::Balances(..) |
RuntimeCall::Crowdloan(
crowdloan::Call::create { .. } |
crowdloan::Call::contribute { .. } |
crowdloan::Call::withdraw { .. } |
crowdloan::Call::refund { .. } |
crowdloan::Call::dissolve { .. } |
crowdloan::Call::edit { .. } |
crowdloan::Call::poke { .. } |
crowdloan::Call::contribute_all { .. },
) |
RuntimeCall::Session(pallet_session::Call::purge_keys { .. }) | RuntimeCall::Session(pallet_session::Call::purge_keys { .. }) |
RuntimeCall::Grandpa(..) | RuntimeCall::Grandpa(..) |
RuntimeCall::ImOnline(..) | RuntimeCall::ImOnline(..) |
......
...@@ -25,7 +25,7 @@ use frame_support::{ ...@@ -25,7 +25,7 @@ use frame_support::{
traits::{Contains, Everything, Nothing}, traits::{Contains, Everything, Nothing},
}; };
use frame_system::EnsureRoot; use frame_system::EnsureRoot;
use runtime_common::{paras_registrar, xcm_sender, ToAuthor}; use runtime_common::{crowdloan, paras_registrar, xcm_sender, ToAuthor};
use sp_core::ConstU32; use sp_core::ConstU32;
use xcm::latest::prelude::*; use xcm::latest::prelude::*;
use xcm_builder::{ use xcm_builder::{
...@@ -139,6 +139,16 @@ impl Contains<RuntimeCall> for SafeCallFilter { ...@@ -139,6 +139,16 @@ impl Contains<RuntimeCall> for SafeCallFilter {
RuntimeCall::Timestamp(..) | RuntimeCall::Timestamp(..) |
RuntimeCall::Indices(..) | RuntimeCall::Indices(..) |
RuntimeCall::Balances(..) | RuntimeCall::Balances(..) |
RuntimeCall::Crowdloan(
crowdloan::Call::create { .. } |
crowdloan::Call::contribute { .. } |
crowdloan::Call::withdraw { .. } |
crowdloan::Call::refund { .. } |
crowdloan::Call::dissolve { .. } |
crowdloan::Call::edit { .. } |
crowdloan::Call::poke { .. } |
crowdloan::Call::contribute_all { .. },
) |
RuntimeCall::Staking( RuntimeCall::Staking(
pallet_staking::Call::bond { .. } | pallet_staking::Call::bond { .. } |
pallet_staking::Call::bond_extra { .. } | pallet_staking::Call::bond_extra { .. } |
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment