[Penpal] cleanup XCM config setup regarding assets#10726
Conversation
…create_pool_with_wnd_on`
…_different_local_account
…s/assets/asset-hub-rococo/src/genesis.rs Co-authored-by: Adrian Catangiu <adrian@parity.io>
…et-hub-westend/src/tests/xcm_fee_estimation.rs Co-authored-by: Adrian Catangiu <adrian@parity.io>
…rsion and use it for genesis setup.
|
/cmd prdoc --audience runtime_dev --bump minor |
|
Command "prdoc --audience runtime_dev --bump minor" has failed ❌! See logs here |
|
/cmd prdoc --audience runtime_dev --bump minor --force |
…time_dev --bump minor --force'
| let asset_id_for_delivery_fees = VersionedAssetId::from(Location::parent()); | ||
| let asset_id_for_delivery_fees = VersionedAssetId::from(Location::here()); |
There was a problem hiding this comment.
This is controlled by the router configured in the executor
There was a problem hiding this comment.
The asset for delivery fees is defined in PriceForSiblingParachainDelivery and PriceForParentDelivery. They both use FeeAssetId which is set as Location::here() so they are using the penpal native asset
There was a problem hiding this comment.
Thank you very much, I understand now. 👍
There was a problem hiding this comment.
is there anything to do here? unclear
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
|
Thanks for the reviews guys! I guess we can add this to the merge queue? 😄 🚀 |
e8ad708
This reverts commit e8ad708.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Integrates SDK release 2604. ## Contracts - [x] @0xRVE — [#11460](paritytech/polkadot-sdk#11460) `CallbackHandle` check - [x] @0xRVE — [#11590](paritytech/polkadot-sdk#11590) Asset-conversion precompile · [4759eb9](4759eb9) - [x] @pgherveou — [#11416](paritytech/polkadot-sdk#11416) Auto-mapping (`AutoMap`) · [6dd3ddc](6dd3ddc) #1165 - [x] @mokita-j — [#11507](paritytech/polkadot-sdk#11507) Revive debug enable ## Bridges - [x] @acatangiu — [#11694](paritytech/polkadot-sdk#11694) `pallet_xcm_bridge_hub_router` `UnpaidExport` flag · [635ac29](635ac29) - [x] @yrong — [#11354](paritytech/polkadot-sdk#11354) Snowbridge inbound nonce API · [c6fa9f2](c6fa9f2) ## Async backing / collator - [x] @sandreim — [#11778](paritytech/polkadot-sdk#11778) Relay-parent offset ## Account recovery - [x] @ggwpez — [#10482](paritytech/polkadot-sdk#10482) pallet-recovery modernization (HoldConsideration follow-up + re-bench) · [7401ea9](7401ea9) ## Penpal / integration tests - [x] @clangenb — [#10726](paritytech/polkadot-sdk#10726) Penpal merged `Assets`/`ForeignAssets` (downstream fixups) · [3a8aa42](3a8aa42) - [x] @clangenb — Encointer pallet integration 2604: Revert this afterwards c944b09 ## General - [ ] Re-benchmark weights #1163 - [x] Check for in-code TODOs - [x] Check for all migrations --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com> Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com> Co-authored-by: Christian Langenbacher <clangenb@pm.me> Co-authored-by: Monica Jin <monicachenjin@gmail.com> Co-authored-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Andrei Trandafir <142614787+andreitrand@users.noreply.github.com> Co-authored-by: Christian Langenbacher <clangenb+gh@protonmail.ch> Co-authored-by: Paolo La Camera <paolo@parity.io> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: GitHub Action <action@github.com>
Closes #7314 by implementing all the subtasks mentioned in #7314 (comment).
Changes
Essentially, the main driver of all changes is that we adjust the Penpal runtime as follows:
Assetsand theForeignAssetspallet into one pallet calledAssets, as the local assets can also be identified with a location starting withparents: 0.Test Changes
I tried to keep the changes minimal in the tests in order to not harm any previously established invariants. Hence, in most cases I just did: