mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
b2c81b5800
This PR backports version bumps from `1.7.0` release branch and moves related prdoc files to the appropriate folder.
21 lines
706 B
Plaintext
21 lines
706 B
Plaintext
title: XCMv4
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
A new version of the XCM format.
|
|
The main changes are:
|
|
- Removed `Multi` prefix from types
|
|
- Removed `Abstract` asset id
|
|
- `Outcome` is now a named fields struct
|
|
- Added `Reanchorable` trait, implemented for both `Location` and `Asset`
|
|
- New syntax for building `Location`s and `Junction`s using slices.
|
|
You build them like `let location = Location::new(1, [Parachain(1000), PalletInstance(50), GeneralIndex(1984)]);`
|
|
and match on them like `match location.unpack() {
|
|
(1, [Parachain(id)]) => ...
|
|
(0, Here) => ...,
|
|
(1, [_]) => ...,
|
|
}`
|
|
|
|
crates: []
|