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

[XCM]: Remove NetworkIds for testnets #108

Conversation

franciscoaguirre
Copy link
Contributor

Testnets are not stable and shouldn't be included in the XCM language. They should be able to be specified with NetworkId::ByGenesis.

@franciscoaguirre franciscoaguirre changed the title Remove XCM NetworkIds for testnets [XCM]: Remove NetworkIds for testnets Jul 23, 2024
@franciscoaguirre
Copy link
Contributor Author

/rfc propose

@paritytech-rfc-bot
Copy link
Contributor

Hey @franciscoaguirre, here is a link you can use to create the referendum aiming to approve this RFC number 0108.

Instructions
  1. Open the link.

  2. Switch to the Submission tab.

  1. Adjust the transaction if needed (for example, the proposal Origin).

  2. Submit the Transaction


It is based on commit hash a17058abc15e9f21423ad03148a0e16fe6aa4490.

The proposed remark text is: RFC_APPROVE(0108,1f930838c473f5988f06c813e4d96e0065514bbecd60fe71a4ca2a8623f008b1).

Copy link

Voting for this referenda is ongoing.

Vote for it here

Copy link

github-actions bot commented Aug 5, 2024

PR can be merged.

Write the following command to trigger the bot

/rfc process 0x5e8b9c1d860223df9c30452fe7006cbc928147174130a5cb32355c24adb53d34

@acatangiu
Copy link
Contributor

/rfc process 0x5e8b9c1d860223df9c30452fe7006cbc928147174130a5cb32355c24adb53d34

@paritytech-rfc-bot paritytech-rfc-bot bot merged commit 094dcea into polkadot-fellows:main Aug 5, 2024
@paritytech-rfc-bot
Copy link
Contributor

The on-chain referendum has approved the RFC.

github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Aug 14, 2024
In the move from XCMv3 to XCMv4, the `AssetId` for `ForeignAssets` in
`asset-hub-rococo` and `asset-hub-westend` was left as `v3::Location` to
be later migrated to `v4::Location`.

This is that migration PR.

Because the encoding of `v3::Location` and `v4::Location` is the same,
we don't need to do any data migration, the keys will still be
decodable.
The [original idea by
Jan](paritytech/polkadot#7236) was to make the
v4 changes in v3 since the ABI (the encoding/decoding) didn't change.
Corroborated the ABI is the same iterating over all storage, the code is
on [another
branch](https://github.com/paritytech/polkadot-sdk/blob/cisco-assert-v3-v4-encodings-equal/cumulus/parachains/runtimes/assets/migrations/src/foreign_assets_to_v4/mod.rs).

We will need a data migration when we want to update from `v4::Location`
to `v5::Location` because of [the accepted RFC changing the NetworkId
enum](polkadot-fellows/RFCs#108).
I'll configure MBMs (Multi-Block Migrations) then and make the actual
migration.

Fixes #4128

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
@anaelleltd anaelleltd added the Approved Has passed on-chain voting. label Sep 10, 2024
franciscoaguirre added a commit to paritytech/polkadot-sdk that referenced this pull request Nov 1, 2024
# Context
Close #5241, for more detail, please refer to
[RFC0108](polkadot-fellows/RFCs#108)
# Changes
- Remove `Rococo` and `Westend` from `NetworkId`
* Add `Rococo Genesis Hash` and `Westend Genesis Hash`

---------

Co-authored-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
@acatangiu acatangiu mentioned this pull request Nov 5, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Has passed on-chain voting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants