You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llms-files/llms-basics.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -264,10 +264,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
264
264
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
265
265
266
266
```rust
267
-
pub type XcmRouter = WithUniqueTopic<(
268
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-dapps.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3488,10 +3488,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
3488
3488
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
3489
3489
3490
3490
```rust
3491
-
pub type XcmRouter = WithUniqueTopic<(
3492
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-infrastructure.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2786,10 +2786,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
2786
2786
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
2787
2787
2788
2788
```rust
2789
-
pub type XcmRouter = WithUniqueTopic<(
2790
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-networks.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -716,10 +716,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
716
716
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
717
717
718
718
```rust
719
-
pub type XcmRouter = WithUniqueTopic<(
720
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-parachains.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9907,10 +9907,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
9907
9907
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
9908
9908
9909
9909
```rust
9910
-
pub type XcmRouter = WithUniqueTopic<(
9911
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-polkadot-protocol.txt
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -268,10 +268,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
268
268
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
269
269
270
270
```rust
271
-
pub type XcmRouter = WithUniqueTopic<(
272
-
// Only one router so far - use DMP to communicate with child parachains.
For more details about XCM transport protocols, see the [XCM Channels](/develop/interoperability/xcm-channels/){target=\_blank} page.
@@ -6944,10 +6942,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
6944
6942
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
6945
6943
6946
6944
```rust
6947
-
pub type XcmRouter = WithUniqueTopic<(
6948
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-smart-contracts.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5187,10 +5187,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
5187
5187
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
5188
5188
5189
5189
```rust
5190
-
pub type XcmRouter = WithUniqueTopic<(
5191
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-files/llms-tooling.txt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15398,10 +15398,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
15398
15398
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
15399
15399
15400
15400
```rust
15401
-
pub type XcmRouter = WithUniqueTopic<(
15402
-
// Only one router so far - use DMP to communicate with child parachains.
Copy file name to clipboardExpand all lines: llms-full.txt
+21-23Lines changed: 21 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -631,10 +631,8 @@ The [`XcmRouter`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pa
631
631
For instance, the Kusama network employs the [`ChildParachainRouter`](https://paritytech.github.io/polkadot-sdk/master/polkadot_runtime_common/xcm_sender/struct.ChildParachainRouter.html){target=\_blank}, which restricts routing to [Downward Message Passing (DMP)](https://wiki.polkadot.com/learn/learn-xcm-transport/#dmp-downward-message-passing){target=\_blank} from the relay chain to parachains, ensuring secure and controlled communication.
632
632
633
633
```rust
634
-
pub type XcmRouter = WithUniqueTopic<(
635
-
// Only one router so far - use DMP to communicate with child parachains.
For more details about XCM transport protocols, see the [XCM Channels](/develop/interoperability/xcm-channels/){target=\_blank} page.
@@ -17262,7 +17260,7 @@ This guide walks you through transferring tokens between two parachains using th
17262
17260
17263
17261
For development purposes, this guide will use the [Polkadot TestNet](/develop/networks/#paseo){target=\_blank}, so the transferred token will be PAS.
17264
17262
17265
-
In this guide, you’ll learn how to:
17263
+
In this guide, you will:
17266
17264
17267
17265
- Build an XCM transfer transaction using ParaSpell XCM SDK.
17268
17266
- Perform a dry run to validate the transfer.
@@ -17272,10 +17270,12 @@ In this guide, you’ll learn how to:
17272
17270
17273
17271
### Prerequisites
17274
17272
17275
-
- Knowledge of the [fundamentals of Polkadot](/polkadot-protocol/parachain-basics/){target=\_blank}
17276
-
- Basic understanding of [XCM](/develop/interoperability/intro-to-xcm/){target=\_blank}
17277
-
- Basic familiarity with JavaScript/TypeScript
17278
-
- Install [bun](https://bun.com/docs/installation){target=\_blank}, a JavaScript/TypeScript package manager
17273
+
Before you begin, ensure you have the following:
17274
+
17275
+
- Knowledge of the [fundamentals of Polkadot](/polkadot-protocol/parachain-basics/){target=\_blank}.
17276
+
- Basic understanding of [XCM](/develop/interoperability/intro-to-xcm/){target=\_blank}.
17277
+
- Basic familiarity with JavaScript or TypeScript.
17278
+
- Installed [bun](https://bun.com/docs/installation){target=\_blank}, a JavaScript and TypeScript package manager.
17279
17279
17280
17280
## Initialize Your Project
17281
17281
@@ -17399,13 +17399,13 @@ async function dryRunTransfer() {
17399
17399
17400
17400
dryRunTransfer();
17401
17401
```
17402
-
Go ahead and run the script.
17402
+
Run the script using the following command:
17403
17403
17404
17404
```bash
17405
17405
bun run index.ts
17406
17406
```
17407
17407
17408
-
The result of the dry run will be similar to this:
17408
+
The result of the dry run will look similar to the following example output:
17409
17409
17410
17410
<div id="termynal" data-termynal>
17411
17411
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
@@ -17559,13 +17559,13 @@ async function verifyED() {
17559
17559
17560
17560
verifyED();
17561
17561
```
17562
-
Comment out the `dryRunTransfer()` and execute the `verifyED()` by running:
17562
+
Comment out the `dryRunTransfer()` function so that it is not executed again. Then, execute the `verifyED()` by running the following command:
17563
17563
17564
17564
```bash
17565
17565
bun run index.ts
17566
17566
```
17567
17567
17568
-
After that, you will get output confirming the ED:
17568
+
After that, you will get output confirming the ED which will look similar to the following:
17569
17569
17570
17570
<div id="termynal" data-termynal>
17571
17571
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
@@ -17598,13 +17598,13 @@ async function XcmTransferInfo() {
17598
17598
XcmTransferInfo();
17599
17599
```
17600
17600
17601
-
Comment out the `verifyED()` and execute the `XcmTransferInfo()` by running:
17601
+
Comment out the `verifyED()` function so it doesn't execute again. Then, execute the `XcmTransferInfo()` function by running the following command:
17602
17602
17603
17603
```bash
17604
17604
bun run index.ts
17605
17605
```
17606
17606
17607
-
You should be able to see all the information for your transfer:
17607
+
You will see all the information for your transfer similar to the following example:
17608
17608
17609
17609
<div id="termynal" data-termynal>
17610
17610
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
@@ -17658,19 +17658,17 @@ You should be able to see all the information for your transfer:
17658
17658
17659
17659
Now that you have:
17660
17660
17661
-
- Completed a successful dry run of the transaction
17662
-
- Verified the existential deposit on the recipient account
17663
-
- Obtained an estimate of the associated XCM fees
17664
-
17665
-
Now you can execute the transfer function by adding the following statement:
17661
+
- Completed a successful dry run of the transaction.
17662
+
- Verified the existential deposit on the recipient account.
17663
+
- Obtained an estimate of the associated XCM fees.
17666
17664
17667
-
Add the following code:
17665
+
You can execute the transfer function by adding the following function call:
17668
17666
17669
17667
```typescript title="index.ts"
17670
17668
transfer();
17671
17669
```
17672
17670
17673
-
Comment out the `XcmTransferInfo()` and execute the transfer:
17671
+
Comment out the `XcmTransferInfo()` function so it doesn't execute again. Then, execute the transfer by running the following command:
17674
17672
17675
17673
```bash
17676
17674
bun run index.ts
@@ -17739,7 +17737,7 @@ Your `transfer` function will submit the transaction, and you will get the follo
17739
17737
}</span>
17740
17738
</div>
17741
17739
17742
-
Once the transaction is successfully included in a block, you will see the recipient's account balance updated, and you will receive output similar to the one below.
17740
+
Once the transaction is successfully included in a block, you will see the recipient's account balance updated, and you will receive output similar to the following.
17743
17741
17744
17742
???- code "Successful Transaction Submission"
17745
17743
This output will be returned once the transaction has been successfully included in a block.
0 commit comments