git.delta.rocks / unique-network / refs/commits / 1d2d3c81f701

difftreelog

fix use XCM barriers - pass SetTopic(ID)

Daniel Shiposha2023-11-13parent: #a3f68ee.patch.diff
in: master

3 files changed

modifiedruntime/opal/src/xcm_barrier.rsdiffbeforeafterboth
18use staging_xcm::latest::{Junctions::*, MultiLocation};18use staging_xcm::latest::{Junctions::*, MultiLocation};
19use staging_xcm_builder::{19use staging_xcm_builder::{
20 AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit,20 AllowExplicitUnpaidExecutionFrom, AllowTopLevelPaidExecutionFrom, TakeWeightCredit,
21 TrailingSetTopicAsId,
21};22};
2223
23match_types! {24match_types! {
26 };27 };
27}28}
2829
29pub type Barrier = (30pub type Barrier = TrailingSetTopicAsId<(
30 TakeWeightCredit,31 TakeWeightCredit,
31 AllowExplicitUnpaidExecutionFrom<ParentOnly>,32 AllowExplicitUnpaidExecutionFrom<ParentOnly>,
32 AllowTopLevelPaidExecutionFrom<Everything>,33 AllowTopLevelPaidExecutionFrom<Everything>,
33);34)>;
3435
modifiedruntime/quartz/src/xcm_barrier.rsdiffbeforeafterboth
18use staging_xcm::latest::{Junctions::*, MultiLocation};18use staging_xcm::latest::{Junctions::*, MultiLocation};
19use staging_xcm_builder::{19use staging_xcm_builder::{
20 AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,20 AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
21 AllowTopLevelPaidExecutionFrom, TakeWeightCredit,21 AllowTopLevelPaidExecutionFrom, TakeWeightCredit, TrailingSetTopicAsId,
22};22};
2323
24use crate::PolkadotXcm;24use crate::PolkadotXcm;
34 };34 };
35}35}
3636
37pub type Barrier = (37pub type Barrier = TrailingSetTopicAsId<(
38 TakeWeightCredit,38 TakeWeightCredit,
39 AllowExplicitUnpaidExecutionFrom<ParentOnly>,39 AllowExplicitUnpaidExecutionFrom<ParentOnly>,
40 AllowTopLevelPaidExecutionFrom<Everything>,40 AllowTopLevelPaidExecutionFrom<Everything>,
41 // Expected responses are OK.41 // Expected responses are OK.
42 AllowKnownQueryResponses<PolkadotXcm>,42 AllowKnownQueryResponses<PolkadotXcm>,
43 // Subscriptions for version tracking are OK.43 // Subscriptions for version tracking are OK.
44 AllowSubscriptionsFrom<ParentOrSiblings>,44 AllowSubscriptionsFrom<ParentOrSiblings>,
45);45)>;
4646
modifiedruntime/unique/src/xcm_barrier.rsdiffbeforeafterboth
18use staging_xcm::latest::{Junctions::*, MultiLocation};18use staging_xcm::latest::{Junctions::*, MultiLocation};
19use staging_xcm_builder::{19use staging_xcm_builder::{
20 AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,20 AllowExplicitUnpaidExecutionFrom, AllowKnownQueryResponses, AllowSubscriptionsFrom,
21 AllowTopLevelPaidExecutionFrom, TakeWeightCredit,21 AllowTopLevelPaidExecutionFrom, TakeWeightCredit, TrailingSetTopicAsId,
22};22};
2323
24use crate::PolkadotXcm;24use crate::PolkadotXcm;
34 };34 };
35}35}
3636
37pub type Barrier = (37pub type Barrier = TrailingSetTopicAsId<(
38 TakeWeightCredit,38 TakeWeightCredit,
39 AllowExplicitUnpaidExecutionFrom<ParentOnly>,39 AllowExplicitUnpaidExecutionFrom<ParentOnly>,
40 AllowTopLevelPaidExecutionFrom<Everything>,40 AllowTopLevelPaidExecutionFrom<Everything>,
41 // Expected responses are OK.41 // Expected responses are OK.
42 AllowKnownQueryResponses<PolkadotXcm>,42 AllowKnownQueryResponses<PolkadotXcm>,
43 // Subscriptions for version tracking are OK.43 // Subscriptions for version tracking are OK.
44 AllowSubscriptionsFrom<ParentOrSiblings>,44 AllowSubscriptionsFrom<ParentOrSiblings>,
45);45)>;
4646