Extract create_pool_with_native_on macro to common crate#8289
Extract create_pool_with_native_on macro to common crate#8289bkchr merged 5 commits intoparitytech:masterfrom
Conversation
acatangiu
left a comment
There was a problem hiding this comment.
Looks good, needs to get CI green. Also needs prdoc to make sure to publish new version of common crate.
# Conflicts: # cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-westend/src/tests/asset_transfers.rs # cumulus/parachains/integration-tests/emulated/tests/bridges/bridge-hub-westend/src/tests/transact.rs
e8e8d6e
|
|
||
| assert_ok!(<$chain as [<$chain Pallet>]>::AssetConversion::add_liquidity( | ||
| signed_owner, | ||
| Box::new(native_asset), |
There was a problem hiding this comment.
@claravanstaden I am afraid of native_asset's import Location - it works for polkadot-sdk where we use xcm::v5 for pallet_assets/pallet_asset_conversion, but will it work if those pallets are using older version (e.g. polkadot-fellows) and also the same for GeneralIndex? Would Box::new(native_asset.into()) do the trick?
There was a problem hiding this comment.
@bkontur it doesn't seem to work. There are impls from v4 into v5, but not the other way around (from what I can see): https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/xcm/src/v5/location.rs#L748. I can change the method signature to pass in the native_asset? Not sure what to do about GeneralIndex though.
…8289) Moves macro to a common crate so that it can be reused in the polkadot runtimes repo.
* master: (120 commits) [CI] Improve GH build status checking (#8331) [CI/CD] Use original PR name in prdoc check for the backport PR's to the stable branches (#8329) Add new host APIs set_storage_or_clear and get_storage_or_zero (#7857) push to dockerhub (#8322) Snowbridge - V1 - Adds 2 hop transfer to Rococo (#7956) [AHM] Prepare `election-provider-multi-block` for full lazy data deletion (#8304) Check umbrella version (#8250) [AHM] Fully bound staking async (#8303) migrate parachain-templates tests to `gha` (#8226) staking-async: add missing new_session_genesis (#8310) New NFT traits: granular and abstract interface (#5620) Extract create_pool_with_native_on macro to common crate (#8289) XCMP: use batching when enqueuing inbound messages (#8021) Snowbridge - Tests refactor (#8014) Allow configuration of worst case buy execution weight (#7944) Fix faulty pre-upgrade migration check in pallet-session (#8294) [pallet-revive] add get_storage_var_key for variable-sized keys (#8274) add poke_deposit extrinsic to pallet-recovery (#7882) `txpool`: use tracing for structured logging (#8001) [revive] eth-rpc refactoring (#8148) ...
Moves macro to a common crate so that it can be reused in the polkadot runtimes repo.
Moves macro to a common crate so that it can be reused in the polkadot runtimes repo.