Skip to content

Extract create_pool_with_native_on macro to common crate#8289

Merged
bkchr merged 5 commits intoparitytech:masterfrom
claravanstaden:extract-create-pool
Apr 23, 2025
Merged

Extract create_pool_with_native_on macro to common crate#8289
bkchr merged 5 commits intoparitytech:masterfrom
claravanstaden:extract-create-pool

Conversation

@claravanstaden
Copy link
Copy Markdown
Contributor

Moves macro to a common crate so that it can be reused in the polkadot runtimes repo.

Copy link
Copy Markdown
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, needs to get CI green. Also needs prdoc to make sure to publish new version of common crate.

@acatangiu acatangiu added the T10-tests This PR/Issue is related to tests. label Apr 23, 2025
# 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
@bkchr bkchr enabled auto-merge April 23, 2025 21:57
@bkchr bkchr added this pull request to the merge queue Apr 23, 2025
Merged via the queue into paritytech:master with commit e8e8d6e Apr 23, 2025
233 of 244 checks passed

assert_ok!(<$chain as [<$chain Pallet>]>::AssetConversion::add_liquidity(
signed_owner,
Box::new(native_asset),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

wassimans pushed a commit to wassimans/polkadot-sdk that referenced this pull request Apr 27, 2025
…8289)

Moves macro to a common crate so that it can be reused in the polkadot
runtimes repo.
ordian added a commit that referenced this pull request Apr 28, 2025
* 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)
  ...
castillax pushed a commit that referenced this pull request May 12, 2025
Moves macro to a common crate so that it can be reused in the polkadot
runtimes repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T10-tests This PR/Issue is related to tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants