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

Snowbridge: Ringfence Polkadot Tokens by Agent #6791

Draft
wants to merge 1 commit into
base: stable2409
Choose a base branch
from

Conversation

alistair-singh
Copy link
Contributor

Description

Changes register_token to accept an XCM origin, this origin has a corresponding agent on the Ethereum side of the bridge that will become the owner of the token.

Related Solidity changes: Snowfork/snowbridge#1350

@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 2/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7877636

Comment on lines +631 to +632
// Ensure that origin location is some consensus system on a sibling parachain
let (para_id, agent_id) = ensure_sibling::<T>(&origin_location)?;
Copy link
Contributor

@yrong yrong Dec 8, 2024

Choose a reason for hiding this comment

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

We may need to reanchor the origin_location in context of Ethereum. Same as what we do for the token_location.
https://github.com/alistair-singh/polkadot-sdk/blob/28109f9b7599aabe36448f24eda348f5f0f84e88/bridges/snowbridge/pallets/system/src/lib.rs#L785-L790

Btw: In outbound V2 we add DescribeGlobalPrefix into AgentIdOf.
https://github.com/yrong/polkadot-sdk/blob/bee50a993d335b9a8e6aa4eced62599345b86c34/bridges/snowbridge/primitives/core/src/location.rs#L32

Maybe we need to merge AgentIdOf and TokenIdOf into one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants