Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shawntabrizi/polkadot-sdk-workshop-xcm
Workshop for learning about Polkadot SDK's XCM
https://github.com/shawntabrizi/polkadot-sdk-workshop-xcm
Last synced: 4 days ago
JSON representation
Workshop for learning about Polkadot SDK's XCM
- Host: GitHub
- URL: https://github.com/shawntabrizi/polkadot-sdk-workshop-xcm
- Owner: shawntabrizi
- License: mit
- Created: 2024-04-16T02:43:35.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-08-14T13:09:02.000Z (3 months ago)
- Last Synced: 2024-08-14T14:33:20.400Z (3 months ago)
- Language: Rust
- Homepage: https://www.shawntabrizi.com/polkadot-sdk-workshop-xcm/
- Size: 1.95 MB
- Stars: 9
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# polkadot-sdk-workshop-xcm
This project is a workshop for learning about Polkadot SDK's XCM.
## Get Started
To start the workshop:
```sh
git clone -b steps https://github.com/shawntabrizi/polkadot-sdk-workshop-xcm.git
cd polkadot-sdk-workshop-xcm
git checkout 84a219252a04963cba740a1f9805931639c29736
```## Overview
This workshop aims to teach students about XCM following the philosophy of "discovery through experience".
Students will first go through, learn, and use all the fundamental building blocks for XCM:
- Location / Topography
- Learn how to construct relative and absolute locations for common objects and types used in XCM.
- Assets and Filters
- Learn how to represent various types of assets like fungible tokens and non-fungible tokens.
- Constructing asset filters to target pools of assets.
- Asset Holding
- Learn how we can manage multiple assets in memory using the `AssetsInHolding` abstraction.
- Instructions
- Construct common XCM messages through individual XCM instructions.
- The XCM Executor
- Learn how the XCM Executor actually functions, and loosely implement a few common instructions needed to complete end to end scenarios.
- Pallet XCM
- Learn how Pallet XCM provides a simple to access wrapper to the underlying XCM Executor to perform common tasks like send, execute, and teleport transfers.After learning the fundamentals, students should feel confident they have strong understanding of how these underlying XCM primitives function and are constructed. With this knowledge, they will be able to investigate the real implementations of XCM to learn more deeply if needed.
The next step after fundamentals is using the XCM Simulator an investigating the different ways we can configure XCM for various common scenarios. This workshop will not be comprehensive to all possible interactions, but will focus on a few key scenarios that we commonly expect to see in the Polkadot Ecosystem.
As a parachain:
1. Accepting and using the native asset of your relay chain.
2. Accepting and using the native asset of other parachains.
3. Accessing pallets of the relay chain or other parachains.