Skip to content

Commit 64d02c9

Browse files
nhussein11mmaurelloTelucero
authored
Add Moonbeam XCM SDK reference to XCM Tools page (#862) (#883)
* Add Moonbeam XCM SDK reference to XCM Tools page (#862) * add Moonbeam XCM SDK reference to XCM Tools page * Update develop/toolkit/interoperability/xcm-tools.md Co-authored-by: Nicolás Hussein <[email protected]> * Update develop/toolkit/interoperability/xcm-tools.md Co-authored-by: Nicolás Hussein <[email protected]> * Update develop/toolkit/interoperability/xcm-tools.md Co-authored-by: Nicolás Hussein <[email protected]> * remove steps to get started with sdk * fix: llms --------- Co-authored-by: Nicolás Hussein <[email protected]> Co-authored-by: nhussein11 <[email protected]> * Apply suggestions from code review Co-authored-by: Taylor Lucero <[email protected]> * fix: llms * Update develop/toolkit/interoperability/xcm-tools.md Co-authored-by: Taylor Lucero <[email protected]> * fix: llms * fix: llms --------- Co-authored-by: mmaurello <[email protected]> Co-authored-by: Taylor Lucero <[email protected]>
1 parent f9b0222 commit 64d02c9

File tree

11 files changed

+755
-516
lines changed

11 files changed

+755
-516
lines changed

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml

Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -24,66 +24,68 @@ hex-literal = { optional = true, workspace = true, default-features = true }
2424
log = { workspace = true }
2525
pallet-parachain-template = { path = "../pallets/template", default-features = false }
2626
polkadot-sdk = { workspace = true, features = [
27-
"pallet-utility",
28-
"cumulus-pallet-aura-ext",
29-
"cumulus-pallet-session-benchmarking",
30-
"cumulus-pallet-weight-reclaim",
31-
"cumulus-pallet-xcm",
32-
"cumulus-pallet-xcmp-queue",
33-
"cumulus-primitives-aura",
34-
"cumulus-primitives-core",
35-
"cumulus-primitives-utility",
36-
"pallet-aura",
37-
"pallet-authorship",
38-
"pallet-balances",
39-
"pallet-collator-selection",
40-
"pallet-message-queue",
41-
"pallet-session",
42-
"pallet-sudo",
43-
"pallet-timestamp",
44-
"pallet-transaction-payment",
45-
"pallet-transaction-payment-rpc-runtime-api",
46-
"pallet-xcm",
47-
"parachains-common",
48-
"polkadot-parachain-primitives",
49-
"polkadot-runtime-common",
50-
"runtime",
51-
"staging-parachain-info",
52-
"staging-xcm",
53-
"staging-xcm-builder",
54-
"staging-xcm-executor"
55-
], default-features = false }
27+
"pallet-utility",
28+
"cumulus-pallet-aura-ext",
29+
"cumulus-pallet-session-benchmarking",
30+
"cumulus-pallet-weight-reclaim",
31+
"cumulus-pallet-xcm",
32+
"cumulus-pallet-xcmp-queue",
33+
"cumulus-primitives-aura",
34+
"cumulus-primitives-core",
35+
"cumulus-primitives-utility",
36+
"pallet-aura",
37+
"pallet-authorship",
38+
"pallet-balances",
39+
"pallet-collator-selection",
40+
"pallet-message-queue",
41+
"pallet-session",
42+
"pallet-sudo",
43+
"pallet-timestamp",
44+
"pallet-transaction-payment",
45+
"pallet-transaction-payment-rpc-runtime-api",
46+
"pallet-xcm",
47+
"parachains-common",
48+
"polkadot-parachain-primitives",
49+
"polkadot-runtime-common",
50+
"runtime",
51+
"staging-parachain-info",
52+
"staging-xcm",
53+
"staging-xcm-builder",
54+
"staging-xcm-executor",
55+
], default-features = false }
5656
scale-info = { features = ["derive"], workspace = true }
57-
serde_json = { workspace = true, default-features = false, features = ["alloc"] }
57+
serde_json = { workspace = true, default-features = false, features = [
58+
"alloc",
59+
] }
5860
smallvec = { workspace = true, default-features = true }
5961

6062
custom-pallet = { path = "../pallets/custom-pallet", default-features = false }
6163

6264
[features]
6365
default = ["std"]
6466
std = [
65-
"codec/std",
66-
"cumulus-pallet-parachain-system/std",
67-
"log/std",
68-
"pallet-parachain-template/std",
69-
"polkadot-sdk/std",
70-
"scale-info/std",
71-
"serde_json/std",
72-
"substrate-wasm-builder",
73-
"custom-pallet/std",
67+
"codec/std",
68+
"cumulus-pallet-parachain-system/std",
69+
"log/std",
70+
"pallet-parachain-template/std",
71+
"polkadot-sdk/std",
72+
"scale-info/std",
73+
"serde_json/std",
74+
"substrate-wasm-builder",
75+
"custom-pallet/std",
7476
]
7577

7678
runtime-benchmarks = [
77-
"cumulus-pallet-parachain-system/runtime-benchmarks",
78-
"hex-literal",
79-
"pallet-parachain-template/runtime-benchmarks",
80-
"polkadot-sdk/runtime-benchmarks",
79+
"cumulus-pallet-parachain-system/runtime-benchmarks",
80+
"hex-literal",
81+
"pallet-parachain-template/runtime-benchmarks",
82+
"polkadot-sdk/runtime-benchmarks",
8183
]
8284

8385
try-runtime = [
84-
"cumulus-pallet-parachain-system/try-runtime",
85-
"pallet-parachain-template/try-runtime",
86-
"polkadot-sdk/try-runtime",
86+
"cumulus-pallet-parachain-system/try-runtime",
87+
"pallet-parachain-template/try-runtime",
88+
"polkadot-sdk/try-runtime",
8789
]
8890

8991
# Enable the metadata hash generation.

develop/toolkit/interoperability/xcm-tools.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,22 @@ For more details on using Astar xcm-tools, consult the [official documentation](
7272
### Chopsticks
7373

7474
The Chopsticks library provides XCM functionality for testing XCM messages across networks, enabling you to fork multiple parachains along with a relay chain. For further details, see the [Chopsticks documentation](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} about XCM.
75+
76+
### Moonbeam XCM SDK
77+
78+
The [Moonbeam XCM SDK](https://github.com/moonbeam-foundation/xcm-sdk){target=\_blank} enables developers to easily transfer assets between chains, either between parachains or between a parachain and the relay chain, within the Polkadot/Kusama ecosystem. With the SDK, you don't need to worry about determining the [Multilocation](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#7-universal-consensus-location-identifiers){target=\_blank} of the origin or destination assets or which extrinsics are used on which networks.
79+
80+
The SDK consists of two main packages:
81+
82+
- **[XCM SDK](https://github.com/moonbeam-foundation/xcm-sdk/tree/main/packages/sdk){target=\_blank}**: Core SDK for executing XCM transfers between chains in the Polkadot/Kusama ecosystem.
83+
- **[MRL SDK](https://github.com/moonbeam-foundation/xcm-sdk/tree/main/packages/mrl){target=\_blank}**: Extension of the XCM SDK for transferring liquidity into and across the Polkadot ecosystem from other ecosystems like Ethereum.
84+
85+
Key features include:
86+
87+
- **Simplified asset transfers**: Abstracts away complex multilocation determinations and extrinsic selection.
88+
- **Cross-ecosystem support**: Enables transfers between Polkadot/Kusama chains and external ecosystems.
89+
- **Developer-friendly API**: Provides intuitive interfaces for cross-chain functionality.
90+
- **Comprehensive documentation**: Includes usage guides and API references for both packages.
91+
92+
For detailed usage examples and API documentation, visit the [official Moonbeam XCM SDK documentation](https://moonbeam-foundation.github.io/xcm-sdk/latest/){target=\_blank}.
93+

llms-files/llms-basics.txt

Lines changed: 67 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,24 @@ For more details on using Astar xcm-tools, consult the [official documentation](
20922092
### Chopsticks
20932093

20942094
The Chopsticks library provides XCM functionality for testing XCM messages across networks, enabling you to fork multiple parachains along with a relay chain. For further details, see the [Chopsticks documentation](/tutorials/polkadot-sdk/testing/fork-live-chains/){target=\_blank} about XCM.
2095+
2096+
### Moonbeam XCM SDK
2097+
2098+
The [Moonbeam XCM SDK](https://github.com/moonbeam-foundation/xcm-sdk){target=\_blank} enables developers to easily transfer assets between chains, either between parachains or between a parachain and the relay chain, within the Polkadot/Kusama ecosystem. With the SDK, you don't need to worry about determining the [Multilocation](https://github.com/polkadot-fellows/xcm-format?tab=readme-ov-file#7-universal-consensus-location-identifiers){target=\_blank} of the origin or destination assets or which extrinsics are used on which networks.
2099+
2100+
The SDK consists of two main packages:
2101+
2102+
- **[XCM SDK](https://github.com/moonbeam-foundation/xcm-sdk/tree/main/packages/sdk){target=\_blank}**: Core SDK for executing XCM transfers between chains in the Polkadot/Kusama ecosystem.
2103+
- **[MRL SDK](https://github.com/moonbeam-foundation/xcm-sdk/tree/main/packages/mrl){target=\_blank}**: Extension of the XCM SDK for transferring liquidity into and across the Polkadot ecosystem from other ecosystems like Ethereum.
2104+
2105+
Key features include:
2106+
2107+
- **Simplified asset transfers**: Abstracts away complex multilocation determinations and extrinsic selection.
2108+
- **Cross-ecosystem support**: Enables transfers between Polkadot/Kusama chains and external ecosystems.
2109+
- **Developer-friendly API**: Provides intuitive interfaces for cross-chain functionality.
2110+
- **Comprehensive documentation**: Includes usage guides and API references for both packages.
2111+
2112+
For detailed usage examples and API documentation, visit the [official Moonbeam XCM SDK documentation](https://moonbeam-foundation.github.io/xcm-sdk/latest/){target=\_blank}.
20952113
--- END CONTENT ---
20962114

20972115
Doc-Content: https://docs.polkadot.com/tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime/
@@ -2121,7 +2139,7 @@ First, you'll update the runtime's `Cargo.toml` file to include the Utility pall
21212139
[dependencies]
21222140
...
21232141
polkadot-sdk = { workspace = true, features = [
2124-
"pallet-utility",
2142+
"pallet-utility",
21252143
...
21262144
], default-features = false }
21272145
```
@@ -2179,66 +2197,68 @@ hex-literal = { optional = true, workspace = true, default-features = true }
21792197
log = { workspace = true }
21802198
pallet-parachain-template = { path = "../pallets/template", default-features = false }
21812199
polkadot-sdk = { workspace = true, features = [
2182-
"pallet-utility",
2183-
"cumulus-pallet-aura-ext",
2184-
"cumulus-pallet-session-benchmarking",
2185-
"cumulus-pallet-weight-reclaim",
2186-
"cumulus-pallet-xcm",
2187-
"cumulus-pallet-xcmp-queue",
2188-
"cumulus-primitives-aura",
2189-
"cumulus-primitives-core",
2190-
"cumulus-primitives-utility",
2191-
"pallet-aura",
2192-
"pallet-authorship",
2193-
"pallet-balances",
2194-
"pallet-collator-selection",
2195-
"pallet-message-queue",
2196-
"pallet-session",
2197-
"pallet-sudo",
2198-
"pallet-timestamp",
2199-
"pallet-transaction-payment",
2200-
"pallet-transaction-payment-rpc-runtime-api",
2201-
"pallet-xcm",
2202-
"parachains-common",
2203-
"polkadot-parachain-primitives",
2204-
"polkadot-runtime-common",
2205-
"runtime",
2206-
"staging-parachain-info",
2207-
"staging-xcm",
2208-
"staging-xcm-builder",
2209-
"staging-xcm-executor"
2210-
], default-features = false }
2200+
"pallet-utility",
2201+
"cumulus-pallet-aura-ext",
2202+
"cumulus-pallet-session-benchmarking",
2203+
"cumulus-pallet-weight-reclaim",
2204+
"cumulus-pallet-xcm",
2205+
"cumulus-pallet-xcmp-queue",
2206+
"cumulus-primitives-aura",
2207+
"cumulus-primitives-core",
2208+
"cumulus-primitives-utility",
2209+
"pallet-aura",
2210+
"pallet-authorship",
2211+
"pallet-balances",
2212+
"pallet-collator-selection",
2213+
"pallet-message-queue",
2214+
"pallet-session",
2215+
"pallet-sudo",
2216+
"pallet-timestamp",
2217+
"pallet-transaction-payment",
2218+
"pallet-transaction-payment-rpc-runtime-api",
2219+
"pallet-xcm",
2220+
"parachains-common",
2221+
"polkadot-parachain-primitives",
2222+
"polkadot-runtime-common",
2223+
"runtime",
2224+
"staging-parachain-info",
2225+
"staging-xcm",
2226+
"staging-xcm-builder",
2227+
"staging-xcm-executor",
2228+
], default-features = false }
22112229
scale-info = { features = ["derive"], workspace = true }
2212-
serde_json = { workspace = true, default-features = false, features = ["alloc"] }
2230+
serde_json = { workspace = true, default-features = false, features = [
2231+
"alloc",
2232+
] }
22132233
smallvec = { workspace = true, default-features = true }
22142234

22152235
custom-pallet = { path = "../pallets/custom-pallet", default-features = false }
22162236

22172237
[features]
22182238
default = ["std"]
22192239
std = [
2220-
"codec/std",
2221-
"cumulus-pallet-parachain-system/std",
2222-
"log/std",
2223-
"pallet-parachain-template/std",
2224-
"polkadot-sdk/std",
2225-
"scale-info/std",
2226-
"serde_json/std",
2227-
"substrate-wasm-builder",
2228-
"custom-pallet/std",
2240+
"codec/std",
2241+
"cumulus-pallet-parachain-system/std",
2242+
"log/std",
2243+
"pallet-parachain-template/std",
2244+
"polkadot-sdk/std",
2245+
"scale-info/std",
2246+
"serde_json/std",
2247+
"substrate-wasm-builder",
2248+
"custom-pallet/std",
22292249
]
22302250

22312251
runtime-benchmarks = [
2232-
"cumulus-pallet-parachain-system/runtime-benchmarks",
2233-
"hex-literal",
2234-
"pallet-parachain-template/runtime-benchmarks",
2235-
"polkadot-sdk/runtime-benchmarks",
2252+
"cumulus-pallet-parachain-system/runtime-benchmarks",
2253+
"hex-literal",
2254+
"pallet-parachain-template/runtime-benchmarks",
2255+
"polkadot-sdk/runtime-benchmarks",
22362256
]
22372257

22382258
try-runtime = [
2239-
"cumulus-pallet-parachain-system/try-runtime",
2240-
"pallet-parachain-template/try-runtime",
2241-
"polkadot-sdk/try-runtime",
2259+
"cumulus-pallet-parachain-system/try-runtime",
2260+
"pallet-parachain-template/try-runtime",
2261+
"polkadot-sdk/try-runtime",
22422262
]
22432263

22442264
# Enable the metadata hash generation.

0 commit comments

Comments
 (0)