[xcm] runtime api for LocationToAccount conversions#4857
Merged
Conversation
BabakArtist
approved these changes
Jun 22, 2024
acatangiu
approved these changes
Jun 25, 2024
Contributor
acatangiu
left a comment
There was a problem hiding this comment.
Looks good!
should we merge xcm-runtime-api and xcm-fee-payment-runtime-api to the one module xcm-runtime-api ?
that sounds good hygiene to me, makes sense to have a structure like:
xcm-runtime-api
| mod conversions
| mod dry_run
| mod fees
bkchr
reviewed
Jun 25, 2024
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
fgamundi
pushed a commit
to moondance-labs/polkadot-sdk
that referenced
this pull request
Jul 17, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]> # Conflicts: # Cargo.lock # Cargo.toml # cumulus/parachains/integration-tests/emulated/chains/relays/westend/Cargo.toml # cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs # cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml # cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs # cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml # cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs # cumulus/parachains/runtimes/people/people-rococo/Cargo.toml # cumulus/parachains/runtimes/people/people-rococo/src/lib.rs # cumulus/parachains/runtimes/people/people-westend/Cargo.toml # cumulus/parachains/runtimes/people/people-westend/src/lib.rs # cumulus/parachains/runtimes/testing/penpal/Cargo.toml # cumulus/parachains/runtimes/testing/penpal/src/lib.rs # cumulus/polkadot-parachain/Cargo.toml # polkadot/node/service/Cargo.toml # polkadot/runtime/rococo/Cargo.toml # polkadot/runtime/westend/Cargo.toml # polkadot/xcm/pallet-xcm/Cargo.toml # polkadot/xcm/xcm-runtime-apis/Cargo.toml # umbrella/Cargo.toml # umbrella/src/lib.rs
fgamundi
pushed a commit
to moondance-labs/polkadot-sdk
that referenced
this pull request
Jul 17, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]> # Conflicts: # Cargo.lock # Cargo.toml # cumulus/parachains/integration-tests/emulated/chains/relays/westend/Cargo.toml # cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs # cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml # cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs # cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml # cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs # cumulus/parachains/runtimes/people/people-rococo/Cargo.toml # cumulus/parachains/runtimes/people/people-rococo/src/lib.rs # cumulus/parachains/runtimes/people/people-westend/Cargo.toml # cumulus/parachains/runtimes/people/people-westend/src/lib.rs # cumulus/parachains/runtimes/testing/penpal/Cargo.toml # cumulus/parachains/runtimes/testing/penpal/src/lib.rs # cumulus/polkadot-parachain/Cargo.toml # polkadot/node/service/Cargo.toml # polkadot/runtime/rococo/Cargo.toml # polkadot/runtime/westend/Cargo.toml # polkadot/xcm/pallet-xcm/Cargo.toml # polkadot/xcm/xcm-runtime-apis/Cargo.toml # umbrella/Cargo.toml # umbrella/src/lib.rs
fgamundi
pushed a commit
to moondance-labs/polkadot-sdk
that referenced
this pull request
Jul 17, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]> # Conflicts: # Cargo.lock # Cargo.toml # cumulus/parachains/integration-tests/emulated/chains/relays/westend/Cargo.toml # cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs # cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml # cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs # cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml # cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs # cumulus/parachains/runtimes/people/people-rococo/Cargo.toml # cumulus/parachains/runtimes/people/people-rococo/src/lib.rs # cumulus/parachains/runtimes/people/people-westend/Cargo.toml # cumulus/parachains/runtimes/people/people-westend/src/lib.rs # cumulus/parachains/runtimes/testing/penpal/Cargo.toml # cumulus/parachains/runtimes/testing/penpal/src/lib.rs # cumulus/polkadot-parachain/Cargo.toml # polkadot/node/service/Cargo.toml # polkadot/runtime/rococo/Cargo.toml # polkadot/runtime/westend/Cargo.toml # polkadot/xcm/pallet-xcm/Cargo.toml # polkadot/xcm/xcm-runtime-apis/Cargo.toml # umbrella/Cargo.toml # umbrella/src/lib.rs
1 task
girazoki
pushed a commit
to moondance-labs/polkadot-sdk
that referenced
this pull request
Aug 1, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]> # Conflicts: # Cargo.lock # Cargo.toml # cumulus/parachains/integration-tests/emulated/chains/relays/westend/Cargo.toml # cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml # cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml # cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs # cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml # cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs # cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml # cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs # cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml # cumulus/parachains/runtimes/coretime/coretime-westend/src/lib.rs # cumulus/parachains/runtimes/people/people-rococo/Cargo.toml # cumulus/parachains/runtimes/people/people-rococo/src/lib.rs # cumulus/parachains/runtimes/people/people-westend/Cargo.toml # cumulus/parachains/runtimes/people/people-westend/src/lib.rs # cumulus/parachains/runtimes/testing/penpal/Cargo.toml # cumulus/parachains/runtimes/testing/penpal/src/lib.rs # cumulus/polkadot-parachain/Cargo.toml # polkadot/node/service/Cargo.toml # polkadot/runtime/rococo/Cargo.toml # polkadot/runtime/westend/Cargo.toml # polkadot/xcm/pallet-xcm/Cargo.toml # polkadot/xcm/xcm-runtime-apis/Cargo.toml # umbrella/Cargo.toml # umbrella/src/lib.rs
TarekkMA
pushed a commit
to moonbeam-foundation/polkadot-sdk
that referenced
this pull request
Aug 2, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]>
fellowship-merge-bot bot
pushed a commit
to polkadot-fellows/runtimes
that referenced
this pull request
Aug 7, 2024
…imes (#413) Relates to: paritytech/polkadot-sdk#4298 Relates to: paritytech/polkadot-sdk#4857 <!-- Remember that you can run `/merge` to enable auto-merge in the PR --> <!-- Remember to modify the changelog. If you don't need to modify it, you can check the following box. Instead, if you have already modified it, simply delete the following line. --> - [ ] Does not require a CHANGELOG entry --------- Co-authored-by: Adrian Catangiu <[email protected]> Co-authored-by: Dónal Murray <[email protected]>
This was referenced Aug 21, 2024
aurexav
added a commit
to darwinia-network/darwinia
that referenced
this pull request
Dec 25, 2024
sfffaaa
pushed a commit
to peaqnetwork/polkadot-sdk
that referenced
this pull request
Dec 27, 2024
Closes: paritytech#4298 This PR also merges `xcm-fee-payment-runtime-api` module to the `xcm-runtime-api`. ## TODO - [x] rename `convert` to `convert_location` and add new one `convert_account` (opposite direction) - [x] add to the all testnet runtimes - [x] check polkadot-js if supports that automatically or if needs to be added manually polkadot-js/api#5917 - [ ] backport/patch for fellows and release (asap) ## Open questions - [x] should we merge `xcm-runtime-api` and `xcm-fee-payment-runtime-api` to the one module `xcm-runtime-api` ? ## Usage Input: - `location: VersionedLocation` Output: - account_id bytes  --------- Co-authored-by: Bastian Köcher <[email protected]>
9 tasks
9 tasks
9 tasks
lrazovic
pushed a commit
to Polimec/polimec-node
that referenced
this pull request
May 2, 2025
## What? closes #446 **Tasks** * [x] Review [release notes for stable2412](https://github.com/paritytech/polkadot-sdk/releases/tag/polkadot-stable2412) for breaking changes. Also check the release notes of the versions before (with a focus on `stable2409` and `1.14.0`). * [x] Update Polkadot SDK dependencies to `stable2412`. * [x] Update [ORML](https://github.com/open-web3-stack/open-runtime-module-library) dependencies to the according version. * [x] Test node and runtime compatibility (e.g., compile-time errors, runtime APIs, storage migrations). * [x] Audit custom pallets for deprecated or changed SDK interfaces. * [x] Update benchmarks (if applicable) for weight calculations. **Additional Context** * The `Treasury::propose_spend(...)` integrations tests needs a rework, since that extrinsic is now deprecated, and it should be replaced by `Treasury::sped_local(...)`. We can ignore these tests for now and re-add them in a later PR. ## Why? Release analysis posts [here](https://forum.polkadot.network/tag/release-analysis). Some notable PRs: - Replaces `SignedExtra` with new `TransactionExtension`. This requires us to reimplement the custom `CheckNonce` as a follow up PR - paritytech/polkadot-sdk#3685 - XCM V5 is now `latest`, so `v4` xcm types are replaced with `v5` - paritytech/polkadot-sdk#4826 - - merges `xcm-fee-payment-runtime-api` module into the new `xcm-runtime-apis` - paritytech/polkadot-sdk#4857 - remove `sp-std` dependency, replace with `alloc` or `core` ## How? ## Testing? * [x] Pallet Unit Testing (e.g. `cargo t -p pallet-funding`) * [x] Integration Tests (e.g. `cargo t -p integration-tests`) * [x] [Try Runtime CLI,](https://github.com/paritytech/try-runtime-cli) to test if we have to run any migration in this upgrade. ## Screenshots (optional) <details> <summary>Syncing with mainnet `polimec`</summary> <img width="1542" alt="Screenshot 2025-02-06 at 1 16 29" src="https://github.com/user-attachments/assets/7d14b32a-498f-4c4c-be5d-ccbda832d362" /> </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #4298
This PR also merges
xcm-fee-payment-runtime-apimodule to thexcm-runtime-api.TODO
converttoconvert_locationand add new oneconvert_account(opposite direction)LocationToAccountApi::convert_locationruntime API polkadot-js/api#5917Open questions
xcm-runtime-apiandxcm-fee-payment-runtime-apito the one modulexcm-runtime-api?Usage
Input:
location: VersionedLocationOutput: