[xcm] runtime api for LocationToAccount conversions (#4857)
Closes: https://github.com/paritytech/polkadot-sdk/issues/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 https://github.com/polkadot-js/api/pull/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 <git@kchr.de>
Showing
- Cargo.lock 32 additions, 32 deletionsCargo.lock
- Cargo.toml 2 additions, 2 deletionsCargo.toml
- cumulus/parachains/integration-tests/emulated/chains/relays/westend/Cargo.toml 1 addition, 1 deletion...tegration-tests/emulated/chains/relays/westend/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml 1 addition, 1 deletion...-tests/emulated/tests/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs 1 addition, 1 deletion.../assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs
- cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml 3 additions, 3 deletions...us/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs 17 additions, 5 deletions...us/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml 3 additions, 3 deletions...s/parachains/runtimes/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs 21 additions, 9 deletions...s/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml 3 additions, 3 deletions...achains/runtimes/bridge-hubs/bridge-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs 17 additions, 5 deletions...achains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml 3 additions, 3 deletions...chains/runtimes/bridge-hubs/bridge-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs 17 additions, 5 deletions...chains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/Cargo.toml 3 additions, 3 deletions...hains/runtimes/collectives/collectives-westend/Cargo.toml
- cumulus/parachains/runtimes/collectives/collectives-westend/src/lib.rs 21 additions, 8 deletions...hains/runtimes/collectives/collectives-westend/src/lib.rs
- cumulus/parachains/runtimes/contracts/contracts-rococo/Cargo.toml 3 additions, 3 deletions...parachains/runtimes/contracts/contracts-rococo/Cargo.toml
- cumulus/parachains/runtimes/contracts/contracts-rococo/src/lib.rs 20 additions, 7 deletions...parachains/runtimes/contracts/contracts-rococo/src/lib.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/Cargo.toml 3 additions, 3 deletions...s/parachains/runtimes/coretime/coretime-rococo/Cargo.toml
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/lib.rs 17 additions, 5 deletions...s/parachains/runtimes/coretime/coretime-rococo/src/lib.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/Cargo.toml 3 additions, 3 deletions.../parachains/runtimes/coretime/coretime-westend/Cargo.toml
Please register or sign in to comment