mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 15:28:02 +00:00
4875ea11ae
This PR does a "developer experience" refactor of the XCM Simulator
Example.
I was looking for existing code / documentation where developers could
better learn about working with and configuring XCM.
The XCM Simulator was a natural starting point due to the fact that it
can emulate end to end XCM scenarios, without needing to spawn multiple
real chains.
However, the XCM Simulator Example was just 3 giant files with a ton of
configurations, runtime, pallets, and tests mashed together.
This PR breaks down the XCM Simulator Example in a way that I believe is
more approachable by a new developer who is looking to navigate the
various components of the end to end example, and modify it themselves.
The basic structure is:
- xcm simulator example
- lib (tries to only use the xcm simulator macros)
- tests
- relay-chain
- mod (basic runtime that developers should be familiar with)
- xcm-config
- mod (contains the `XcmConfig` type
- various files for each custom configuration
- parachain
- mock_msg_queue (custom pallet for simulator example)
- mod (basic runtime that developers should be familiar with)
- xcm-config
- mod (contains the `XcmConfig` type
- various files for each custom configuration
I would like to add more documentation to this too, but I think this is
a first step to be accepted which will affect how documentation is added
to the example
---------
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>