polkadot-runtime-template
polkadot-runtime-template copied to clipboard
Make xcm-simulator mocks match runtimes
Follow up issue for #363 raised during its review
- use XCM abstractions for all mock configs
- add tests to ensure that the XCM config for the mock runtimes match the actual runtime configs exactly
Requires declaring these pallets in xcm_tests::parachain::construct_runtime!:
- pallet-message-queue
- cumulus_pallet_xcmp_queue
- XcmExecutorConfig, xcm_executor::Config
- cumulus_pallet_xcm
- pallet_xcm_weight_trader
- orml_xtokens
- pallet_xcm_transactor
The pallets listed in the previous comment could be functionally excluded while still using the macros if https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions/issues/15 and https://github.com/OpenZeppelin/openzeppelin-pallet-abstractions/issues/40 were implemented and closed.
However, those issues do not block this one if we just include the pallets listed above. Including them is sensible because the goal of this issue is to better match the actual runtimes when it comes to the XCM configuration.