More `xcm::v4` cleanup and `xcm_fee_payment_runtime_api::XcmPaymentApi` nits (#4355)
This PR: - changes `xcm::v4` to `xcm::prelude` imports for coretime stuff - changes `query_acceptable_payment_assets` / `query_weight_to_asset_fee` implementations to be more resilient to the XCM version change - adds `xcm_fee_payment_runtime_api::XcmPaymentApi` to the AssetHubRococo/Westend exposing a native token as acceptable payment asset Continuation of: https://github.com/paritytech/polkadot-sdk/pull/3607 Closes: https://github.com/paritytech/polkadot-sdk/issues/4297 ## Possible follow-ups - [ ] add all sufficient assets (`Assets`, `ForeignAssets`) as acceptable payment assets ?
parent
df84ea78
Showing
- Cargo.lock 2 additions, 0 deletionsCargo.lock
- cumulus/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml 2 additions, 0 deletions...us/parachains/runtimes/assets/asset-hub-rococo/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs 45 additions, 3 deletions...us/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/Cargo.toml 2 additions, 0 deletions...s/parachains/runtimes/assets/asset-hub-westend/Cargo.toml
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs 49 additions, 7 deletions...s/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- polkadot/runtime/parachains/src/coretime/migration.rs 1 addition, 1 deletionpolkadot/runtime/parachains/src/coretime/migration.rs
- polkadot/runtime/parachains/src/coretime/mod.rs 3 additions, 1 deletionpolkadot/runtime/parachains/src/coretime/mod.rs
- polkadot/runtime/rococo/src/lib.rs 20 additions, 12 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 20 additions, 12 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/xcm/xcm-fee-payment-runtime-api/src/lib.rs 1 addition, 1 deletionpolkadot/xcm/xcm-fee-payment-runtime-api/src/lib.rs
Please register or sign in to comment