Files
pezkuwi-subxt/cumulus/parachains/integration-tests/emulated/common/Cargo.toml
T
Ignacio Palacios cfc4050d6b Improve Penpal runtime + emulated tests (#3543)
Issues addressed in this PR:
- Improve *Penpal* runtime:
- Properly handled received assets. Previously, it treated `(1, Here)`
as the local native currency, whereas it should be treated as a
`ForeignAsset`. This wasn't a great example of standard Parachain
behaviour, as no Parachain treats the system asset as the local
currency.
- Remove `AllowExplicitUnpaidExecutionFrom` the system. Again, this
wasn't a great example of standard Parachain behaviour.
- Move duplicated
`ForeignAssetFeeAsExistentialDepositMultiplierFeeCharger` to
`assets_common` crate.
- Improve emulated tests:
  - Update *Penpal* tests to new runtime.
- To simplify tests, register the reserve transferred, teleported, and
system assets in *Penpal* and *AssetHub* genesis. This saves us from
having to create the assets repeatedly for each test
- Add missing test case:
`reserve_transfer_assets_from_para_to_system_para`.
  - Cleanup.
- Prevent integration tests crates imports from being re-exported, as
they were polluting the `polkadot-sdk` docs.

There is still a test case missing for reserve transfers:
- Reserve transfer of system asset from *Parachain* to *Parachain*
trough *AssetHub*.
- This is not yet possible with `pallet-xcm` due to the reasons
explained in https://github.com/paritytech/polkadot-sdk/pull/3339

---------

Co-authored-by: command-bot <>
2024-03-14 10:29:24 +00:00

47 lines
2.2 KiB
TOML

[package]
name = "emulated-integration-tests-common"
version = "3.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
description = "Common resources for integration testing with xcm-emulator"
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
paste = "1.0.14"
# Substrate
beefy-primitives = { package = "sp-consensus-beefy", path = "../../../../../substrate/primitives/consensus/beefy" }
grandpa = { package = "sc-consensus-grandpa", path = "../../../../../substrate/client/consensus/grandpa" }
sp-authority-discovery = { path = "../../../../../substrate/primitives/authority-discovery" }
sp-runtime = { path = "../../../../../substrate/primitives/runtime" }
frame-support = { path = "../../../../../substrate/frame/support" }
sp-core = { path = "../../../../../substrate/primitives/core" }
sp-consensus-babe = { path = "../../../../../substrate/primitives/consensus/babe" }
pallet-assets = { path = "../../../../../substrate/frame/assets" }
pallet-balances = { path = "../../../../../substrate/frame/balances" }
pallet-message-queue = { path = "../../../../../substrate/frame/message-queue" }
# Polkadot
polkadot-primitives = { path = "../../../../../polkadot/primitives" }
polkadot-parachain-primitives = { path = "../../../../../polkadot/parachain" }
polkadot-runtime-parachains = { path = "../../../../../polkadot/runtime/parachains" }
xcm = { package = "staging-xcm", path = "../../../../../polkadot/xcm" }
pallet-xcm = { path = "../../../../../polkadot/xcm/pallet-xcm" }
# Cumulus
parachains-common = { path = "../../../common" }
cumulus-primitives-core = { path = "../../../../primitives/core" }
xcm-emulator = { path = "../../../../xcm/xcm-emulator" }
cumulus-pallet-xcmp-queue = { path = "../../../../pallets/xcmp-queue" }
cumulus-pallet-parachain-system = { path = "../../../../pallets/parachain-system" }
asset-test-utils = { path = "../../../runtimes/assets/test-utils" }
# Bridges
bp-messages = { path = "../../../../../bridges/primitives/messages" }
pallet-bridge-messages = { path = "../../../../../bridges/modules/messages" }
bridge-runtime-common = { path = "../../../../../bridges/bin/runtime-common" }