-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: master
Are you sure you want to change the base?
RFC: Bridge ID for Ethereum Networks #49
Conversation
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impact: Trivial | |
Impact: High |
Maybe even Breaking
since it's breaking the existing NetworkId::Ethereum
encoding and requires migrations.
@vgeddes this looks good to me, please mark it ready for review (after doing any cleanup you see fit) @paritytech/xcm ptal |
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apply the following changes in XCMv4: | |
Apply the following changes in XCMv5: |
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.