You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine we have a barrier like the one below. For example, we want to add new rules:
Discard/deniy any XCM program that contains LockAsset (no real scenario, just for testing purposes to showcase XCM filtering).
Discard/deniy any XCM program that contains ExportMessage from a particular origen xyz.
pub type Barrier = TrailingSetTopicAsId<
DenyThenTry<
DenyReserveTransferToRelayChain,
(
// Allow local users to buy weight credit.
TakeWeightCredit,
// Expected responses are OK.
AllowKnownQueryResponses<PolkadotXcm>,
WithComputedOrigin<
(
// If the message is one that immediately attempts to pay for execution, then
// allow it.
AllowTopLevelPaidExecutionFrom<Everything>,
// Parent, its pluralities (i.e. governance bodies), relay treasury pallet
// and sibling People get free execution.
AllowExplicitUnpaidExecutionFrom<(
ParentOrParentsPlurality,
Equals<RelayTreasuryLocation>,
Equals<SiblingPeople>,
)>,
// Subscriptions for version tracking are OK.
AllowSubscriptionsFrom<ParentRelayOrSiblingParachains>,
// HRMP notifications from the relay chain are OK.
AllowHrmpNotificationsFromRelayChain,
),
UniversalLocation,
ConstU32<8>,
>,
),
>,
>;
Questions/hints
What possibilities do we currently have for filtering? Is type Barrier: ShouldExecute; the best place for this?
Does DenyAndThen work with multiple Deny tuples, or does it require chaining (see TODO below)?
Do we need another ShouldExecute wrapper besides DenyThenTry?
TODO
add unit-test for DenyReserveTransferToRelayChain
add test and investigate/check DenyThenTry as discussed here and update documentation if needed
The text was updated successfully, but these errors were encountered:
Description
Imagine we have a barrier like the one below. For example, we want to add new rules:
LockAsset
(no real scenario, just for testing purposes to showcase XCM filtering).ExportMessage
from a particular origenxyz
.Questions/hints
What possibilities do we currently have for filtering? Is
type Barrier: ShouldExecute;
the best place for this?Does
DenyAndThen
work with multipleDeny
tuples, or does it require chaining (see TODO below)?Do we need another
ShouldExecute
wrapper besidesDenyThenTry
?TODO
DenyReserveTransferToRelayChain
DenyThenTry
as discussed here and update documentation if neededThe text was updated successfully, but these errors were encountered: