Skip to content

Make System Parachains trusted Teleporters#1368

Merged
NachoPal merged 34 commits intomasterfrom
nacho/make-system-paras-teleporters
Oct 16, 2023
Merged

Make System Parachains trusted Teleporters#1368
NachoPal merged 34 commits intomasterfrom
nacho/make-system-paras-teleporters

Conversation

@NachoPal
Copy link
Copy Markdown
Contributor

@NachoPal NachoPal commented Sep 2, 2023

Make System Parachain trusted Teleporters of each other.

Migration of paritytech/cumulus#2842

@NachoPal
Copy link
Copy Markdown
Contributor Author

NachoPal commented Sep 2, 2023

bot fmt

@command-bot
Copy link
Copy Markdown

command-bot Bot commented Sep 2, 2023

@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3539442 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 15-c112365f-e429-415a-8ec4-5b367616c14e to cancel this command or bot cancel to cancel all commands in this pull request.

@NachoPal NachoPal requested review from KiChjang, gilescope and joepetrowski and removed request for KiChjang September 2, 2023 18:11
@paritytech-ci paritytech-ci requested review from a team September 2, 2023 18:12
@NachoPal NachoPal added the T14-system_parachains This PR/Issue is related to system parachains. label Sep 2, 2023
@command-bot
Copy link
Copy Markdown

command-bot Bot commented Sep 2, 2023

@NachoPal Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3539442 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3539442/artifacts/download.

@NachoPal
Copy link
Copy Markdown
Contributor Author

NachoPal commented Sep 4, 2023

bot fmt

@command-bot
Copy link
Copy Markdown

command-bot Bot commented Sep 4, 2023

@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3551152 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 1-8f2eee7a-1c6a-472e-9603-7fda842bda69 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link
Copy Markdown

command-bot Bot commented Sep 4, 2023

@NachoPal Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3551152 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3551152/artifacts/download.

Comment thread cumulus/parachains/common/src/xcm_config.rs
Comment thread cumulus/parachains/common/src/xcm_config.rs Outdated
Comment thread cumulus/parachains/common/src/xcm_config.rs Outdated
@KiChjang
Copy link
Copy Markdown
Contributor

KiChjang commented Sep 5, 2023

Not sure if you also want to address #100 as well in this PR.

Comment thread cumulus/parachains/common/src/xcm_config.rs Outdated
@NachoPal
Copy link
Copy Markdown
Contributor Author

NachoPal commented Sep 6, 2023

Not sure if you also want to address #100 as well in this PR.

You mean to do something like this?

pub struct IsSiblingParachainAsset<SelfParaId>(sp_std::marker::PhantomData<SelfParaId>);
impl<SelfParaId: Get<ParaId>> ContainsPair<MultiAsset, MultiLocation>
	for IsSiblingParachainAsset<SelfParaId>
{
	fn contains(asset: &MultiAsset, origin: &MultiLocation) -> bool {
		log::trace!(target: "xcm::contains", "IsSiblingParachainAsset asset: {:?}, origin: {:?}", asset, origin);
		matches!(asset.id, Concrete(ref id) if <FromSiblingParachain<SelfParaId>>::contains(id, origin))
	}
}

@KiChjang
Copy link
Copy Markdown
Contributor

KiChjang commented Sep 6, 2023

@NachoPal Yes, I think that's about right. The idea is to cut away unnecessary type parameters.

@NachoPal
Copy link
Copy Markdown
Contributor Author

NachoPal commented Sep 6, 2023

@NachoPal Yes, I think that's about right. The idea is to cut away unnecessary type parameters.

Ok, as IsForeignConcreteAsset<FromSiblingParachain<parachain_info::Pallet<Runtime>>> has not been introduced in this PR, if it is ok, I prefer to open a new one to close #100 to avoid mixing unrelated changes.

Comment thread cumulus/parachains/integration-tests/emulated/common/src/macros.rs Outdated
@NachoPal
Copy link
Copy Markdown
Contributor Author

bot fmt

@command-bot
Copy link
Copy Markdown

command-bot Bot commented Oct 16, 2023

@NachoPal https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3968051 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 44-cfe9799f-8de8-4f75-b5b7-b9b76b65b89f to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link
Copy Markdown

command-bot Bot commented Oct 16, 2023

@NachoPal Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3968051 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3968051/artifacts/download.

Comment thread cumulus/parachains/integration-tests/emulated/common/src/macros.rs
Comment thread cumulus/parachains/common/src/xcm_config.rs Outdated
@paritytech-ci paritytech-ci requested a review from a team October 16, 2023 15:11
pub use xcm_emulator::{assert_expected_events, bx, Chain, Parachain, TestExt};

#[cfg(test)]
#[cfg(not(feature = "runtime-benchmarks"))]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why doesn't it work with runtime-benchmarks feature? AFAIK, we only run tests with the feature enabled in CI

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing, it wasn't like that before: #1335

@NachoPal NachoPal merged commit e0065cb into master Oct 16, 2023
@NachoPal NachoPal deleted the nacho/make-system-paras-teleporters branch October 16, 2023 17:52
tdimitrov pushed a commit that referenced this pull request Oct 23, 2023
Make System Parachain trusted Teleporters of each other.

Migration of paritytech/cumulus#2842

---------

Co-authored-by: command-bot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
svyatonik added a commit to svyatonik/runtimes that referenced this pull request Nov 10, 2023
svyatonik added a commit to svyatonik/runtimes that referenced this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T14-system_parachains This PR/Issue is related to system parachains.

Projects

None yet

Development

Successfully merging this pull request may close these issues.