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

RFC: Bridge ID for Ethereum Networks #49

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vgeddes
Copy link

@vgeddes vgeddes commented Nov 16, 2023

Identical assets from foreign networks at the global level are not necessarily fungible with each other. This is because said assets could be exported to Polkadot through the use of different bridges.

This is a continuation of the discussion in #33 (I changed my mind on the conclusion of that discussion).

This is still a draft - need to clean it up a bit. But am still keen to receive early feedback.


This changes the ABI of the `NetworkId` type and all types that rely on it. As such, it is breaking change that will require storage upgrades and so on.

So we should include it in XCMv4, if accepted
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
So we should include it in XCMv4, if accepted
So we should include it in XCMv5, if accepted

Authors:
- Vincent Geddes
Created: 2023-11-16
Impact: Trivial
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Impact: Trivial
Impact: High

Maybe even Breaking since it's breaking the existing NetworkId::Ethereum encoding and requires migrations.

@acatangiu
Copy link
Contributor

@vgeddes this looks good to me, please mark it ready for review (after doing any cleanup you see fit)

@paritytech/xcm ptal

Copy link
Contributor

@franciscoaguirre franciscoaguirre left a comment

Choose a reason for hiding this comment

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

I would make the distinction between "absolute" and "relative" since when we're dealing with relative locations, like in the Polkadot Asset Hub Foreign Asset's pallet, then we do specify parents: 2.


## Motivation

As a convention, assets in foreign consensus systems are generally identified using locations of the form
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
As a convention, assets in foreign consensus systems are generally identified using locations of the form
As a convention, assets in foreign consensus systems are generally identified using absolute locations of the form

}
```

For example, in the context of a the Polkadot network, a smart contract on Ethereum can be identified using this location:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For example, in the context of a the Polkadot network, a smart contract on Ethereum can be identified using this location:
For example, in the context of the Polkadot network, a smart contract on Ethereum can be identified using this absolute location:


## Specification

Apply the following changes in XCMv4:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Apply the following changes in XCMv4:
Apply the following changes in XCMv5:

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