Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
240e20b
[stable2407] Backport #5713 (#5739)
paritytech-cmd-bot-polkadot-sdk[bot] Oct 7, 2024
3809977
[stable2407] Backport #3049 (#5734)
paritytech-cmd-bot-polkadot-sdk[bot] Oct 7, 2024
43daea1
Move prdocs to release folder
EgorPopelyaev Oct 8, 2024
977ff2a
Bump polkadot node version
EgorPopelyaev Oct 8, 2024
69c3190
Update plan
Morganamilo Oct 9, 2024
f72fe54
[stable2407] Backport Fix parity-publish (#5670) (#6019)
EgorPopelyaev Oct 10, 2024
88c3250
[stable2407] Backport docker fix to 2407 (#6017)
EgorPopelyaev Oct 11, 2024
47155f8
[stable2407] Backport #5913 (#6004)
paritytech-cmd-bot-polkadot-sdk[bot] Oct 15, 2024
fc62793
[stable2407] Backport #4803 (#6097)
paritytech-cmd-bot-polkadot-sdk[bot] Oct 17, 2024
fff69c3
[stable2407] Backport #5599 (#6068)
paritytech-cmd-bot-polkadot-sdk[bot] Oct 25, 2024
6d6aa61
[stable2407] Backport #6205 (#6238)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 5, 2024
bab3fb5
[stable2407] Backport #6148 (#6232)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 7, 2024
6f9c849
Bump node version
EgorPopelyaev Nov 7, 2024
fa0f15e
Move prdocs
EgorPopelyaev Nov 7, 2024
48bce85
Update plan
Morganamilo Nov 7, 2024
b386125
Apply plan
Morganamilo Nov 7, 2024
0e22c93
[stable2407] Backport #6417 (#6437)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 12, 2024
b5eb098
[Release|CI/CD] Fix audiences changelog template (#6444)
EgorPopelyaev Nov 12, 2024
b98e0b3
[stable2407] Backport #6526 (#6530)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 21, 2024
7041e2b
[stable2407] Backport #6645 (#6655)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 27, 2024
f5245c8
[stable2407] Backport #6579 (#6634)
paritytech-cmd-bot-polkadot-sdk[bot] Nov 27, 2024
9ac3300
[stable2407] Backport #6603 (#6668)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 3, 2024
c29cf6e
Backport #5887 to `stable2407` (#6674)
s0me0ne-unkn0wn Dec 3, 2024
5405cdc
[stable2407] Backport #6031 (#6106)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 4, 2024
6604c1c
[stable2407] Backport #6080 (#6180)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 4, 2024
22601b2
[stable2407] Backport #6540 (#6591)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 4, 2024
fb7075d
[stable2407] Backport #6506 (#6657)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 4, 2024
37323c9
[stable2407] Backport #6459 (#6663)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 4, 2024
2be0d01
Bump polkadot node version
EgorPopelyaev Dec 4, 2024
fe4e09d
Move prdoxs to release folder
EgorPopelyaev Dec 4, 2024
9c8ad9b
Apply plan
Morganamilo Dec 9, 2024
ed1932e
Update Cargo.lock
EgorPopelyaev Dec 9, 2024
637f011
[stable2407] Backport #6690 (#6798)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 10, 2024
f2ada78
[stable2407] Backport #6729 (#6828)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 11, 2024
57794df
[stable2407] Backport #6662 (#6801)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 11, 2024
3fd8c60
[stable2407] Backport #5311 (#6804)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 11, 2024
f2081f6
[stable2407] Backport #6696 (#6839)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 11, 2024
fb9b95d
[stable2407] Backport #6864 (#6877)
paritytech-cmd-bot-polkadot-sdk[bot] Dec 18, 2024
826bb49
[stable2407] Backport #7050 (#7058)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 8, 2025
92e4d83
[stable2407] Backport #7013 (#7015)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 10, 2025
7e984b5
Switch to parity-large runners to be able to run on the github (#7113)
EgorPopelyaev Jan 10, 2025
dcbca59
Move prdocs to release folder
EgorPopelyaev Jan 10, 2025
08af329
Bump node_version
EgorPopelyaev Jan 10, 2025
77aa3e5
[stable2407] Backport #7116 (#7135)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 13, 2025
83db0a1
Move prdoc to release folder
EgorPopelyaev Jan 13, 2025
c983de5
[stable2407] Backport #6807 (#7155)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 15, 2025
6c1c8b9
[stable2407] Backport #6973 (#7159)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 15, 2025
c980380
[stable2407] Backport #6971 (#7172)
paritytech-cmd-bot-polkadot-sdk[bot] Jan 15, 2025
6ae6bbc
Move prdocs to release folder
EgorPopelyaev Jan 15, 2025
39e71bd
Apply plan
EgorPopelyaev Jan 16, 2025
fd4b790
[stable2407] Backport #7365 (#7380)
paritytech-cmd-bot-polkadot-sdk[bot] Feb 5, 2025
dc31da0
[stable2407] Backport #7437 (#7465)
paritytech-cmd-bot-polkadot-sdk[bot] Feb 5, 2025
544b535
[stable2407] Backport #7446 (#7460)
paritytech-cmd-bot-polkadot-sdk[bot] Feb 5, 2025
5a543ef
Update plan
EgorPopelyaev Feb 6, 2025
5c40d27
Apply changes
EgorPopelyaev Feb 6, 2025
78e15d1
Move prdocs to release folder
EgorPopelyaev Feb 6, 2025
7642d6b
Bump node version
EgorPopelyaev Feb 6, 2025
f0ddc6f
Backport 1.12.0: check-weight: Disable total pov size check for manda…
skunert May 27, 2024
5067508
Implement `CheckMetadataHash` extension (#4274) (#4619)
bkchr May 29, 2024
b7be8b2
init bifrost-polkadot-base
dnjscksdn98 Oct 19, 2023
852526f
fix: add legacy transferrable balance to currency trait (#1)
dnjscksdn98 Dec 20, 2023
4db553c
wasm-builder(cherry-pick): Also set mcpu for c deps (https://github.c…
dnjscksdn98 Jul 22, 2024
3dc203c
update Cargo.lock
dnjscksdn98 Sep 20, 2024
d78fc55
feat: add a getter function to retrieve keystore raw value
dnjscksdn98 Jan 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[stable2407] Backport paritytech#5599 (paritytech#6068)
Backport paritytech#5599 into `stable2407` from franciscoaguirre.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

---------

Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
Co-authored-by: command-bot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
  • Loading branch information
3 people authored Oct 25, 2024
commit fff69c3c96346ed91cf127ec313793682e4d9868
22 changes: 20 additions & 2 deletions cumulus/parachains/runtimes/assets/asset-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Utility { .. } |
RuntimeCall::Multisig { .. } |
RuntimeCall::NftFractionalization { .. } |
RuntimeCall::Nfts { .. } | RuntimeCall::Uniques { .. }
RuntimeCall::Nfts { .. } |
RuntimeCall::Uniques { .. }
)
},
ProxyType::AssetOwner => matches!(
Expand Down Expand Up @@ -1326,7 +1327,24 @@ impl_runtime_apis! {

impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
let acceptable_assets = vec![AssetId(xcm_config::TokenLocation::get())];
let native_token = xcm_config::TokenLocation::get();
let native_token_v3 = xcm_config::TokenLocationV3::get();
// We accept the native token to pay fees.
let mut acceptable_assets = vec![AssetId(native_token.clone())];
// We also accept all assets in a pool with the native token.
acceptable_assets.extend(
pallet_asset_conversion::Pools::<Runtime>::iter_keys().filter_map(
|(asset_1, asset_2)| {
if asset_1 == native_token_v3 {
Some(AssetId(asset_2.try_into().unwrap()))
} else if asset_2 == native_token_v3 {
Some(AssetId(asset_1.try_into().unwrap()))
} else {
None
}
},
),
);
PolkadotXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets)
}

Expand Down
22 changes: 20 additions & 2 deletions cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Utility { .. } |
RuntimeCall::Multisig { .. } |
RuntimeCall::NftFractionalization { .. } |
RuntimeCall::Nfts { .. } | RuntimeCall::Uniques { .. }
RuntimeCall::Nfts { .. } |
RuntimeCall::Uniques { .. }
)
},
ProxyType::AssetOwner => matches!(
Expand Down Expand Up @@ -1354,7 +1355,24 @@ impl_runtime_apis! {

impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
let acceptable_assets = vec![AssetId(xcm_config::WestendLocation::get())];
let native_token = xcm_config::WestendLocation::get();
let native_token_v3 = xcm_config::WestendLocationV3::get();
// We accept the native token to pay fees.
let mut acceptable_assets = vec![AssetId(native_token.clone())];
// We also accept all assets in a pool with the native token.
acceptable_assets.extend(
pallet_asset_conversion::Pools::<Runtime>::iter_keys().filter_map(
|(asset_1, asset_2)| {
if asset_1 == native_token_v3 {
Some(AssetId(asset_2.try_into().unwrap()))
} else if asset_2 == native_token_v3 {
Some(AssetId(asset_1.try_into().unwrap()))
} else {
None
}
},
),
);
PolkadotXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets)
}

Expand Down
19 changes: 19 additions & 0 deletions prdoc/pr_6068.prdoc
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