-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add assets in pool with native to query_acceptable_payment_assets's r…
…eturn (#5599) `XcmPaymentApi::query_acceptable_payment_assets` is an API that returns the assets that can be used to pay fees on the runtime where it's called. For relays and most system chains this was configured only as the native asset: ROC and WND. However, the asset hubs have the asset conversion pallet, which allows fees to be paid in any asset in a pool with the native one. This PR adds the list of assets in a pool with the native one to the return value of this API for the asset hubs. --------- Co-authored-by: Branislav Kontur <[email protected]>
- Loading branch information
1 parent
b20be7c
commit d2ba567
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Add assets in pool with native to query_acceptable_payment_assets | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
The `XcmPaymentApi::query_acceptable_payment_assets` API can be used to get a list of all | ||
the assets that can be used for fee payment. | ||
This is usually just the native asset, but the asset hubs have the asset conversion pallet. | ||
In the case of the asset hubs, this list now includes all assets in a liquidity pool with | ||
the native one. | ||
|
||
crates: | ||
- name: asset-hub-rococo-runtime | ||
bump: minor | ||
- name: asset-hub-westend-runtime | ||
bump: minor |