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

Make System Parachains trusted Teleporters #1368

Merged
merged 34 commits into from
Oct 16, 2023

Conversation

NachoPal
Copy link
Contributor

@NachoPal NachoPal commented Sep 2, 2023

Make System Parachain trusted Teleporters of each other.

Migration of paritytech/cumulus#2842

@NachoPal
Copy link
Contributor Author

NachoPal commented Sep 2, 2023

bot fmt

@command-bot
Copy link

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 joepetrowski, gilescope and KiChjang 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

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
Contributor Author

NachoPal commented Sep 4, 2023

bot fmt

@command-bot
Copy link

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

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.

@KiChjang
Copy link
Contributor

KiChjang commented Sep 5, 2023

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

@NachoPal
Copy link
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
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
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.

@NachoPal
Copy link
Contributor Author

bot fmt

@command-bot
Copy link

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

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.

@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
Member

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
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
9 of 10 checks passed
@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 <[email protected]>
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.

10 participants