Skip to content

Commit 92f1ad8

Browse files
brunopgalvaoeshabengithub-actions[bot]
authored
Grammatical updates and minor fixes. (#1194)
* grammatical updates and minor fixes * Update parachains/launch-a-parachain/set-up-the-parachain-template.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Erin Shaben <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ff7c97f commit 92f1ad8

30 files changed

+7456
-8128
lines changed

.ai/categories/basics.md

Lines changed: 136 additions & 50 deletions
Large diffs are not rendered by default.

.ai/categories/dapps.md

Lines changed: 136 additions & 50 deletions
Large diffs are not rendered by default.

.ai/categories/infrastructure.md

Lines changed: 136 additions & 50 deletions
Large diffs are not rendered by default.

.ai/categories/networks.md

Lines changed: 136 additions & 50 deletions
Large diffs are not rendered by default.

.ai/categories/parachains.md

Lines changed: 285 additions & 62 deletions
Large diffs are not rendered by default.

.ai/categories/polkadot-protocol.md

Lines changed: 136 additions & 61 deletions
Large diffs are not rendered by default.

.ai/categories/smart-contracts.md

Lines changed: 291 additions & 51 deletions
Large diffs are not rendered by default.

.ai/categories/tooling.md

Lines changed: 137 additions & 51 deletions
Large diffs are not rendered by default.

.ai/pages/chain-interactions-send-transactions-interoperability-transfer-assets-parachains.md

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,59 @@
11
---
2-
title: Transfer Tokens Between Parachains
2+
title: Transfer Assets Between Parachains
33
description: A step-by-step guide to using the ParaSpell XCM SDK to build, verify, and execute a transfer from one Parachain to another.
44
url: https://docs.polkadot.com/chain-interactions/send-transactions/interoperability/transfer-assets-parachains/
55
---
66

7-
# Transfer Tokens Between Parachains
7+
# Transfer Assets Between Parachains
88

99
## Introduction
1010

11-
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](https://paraspell.github.io/docs/){target=\_blank}. This example utilizes [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}. However, the same approach can be applied to transfers between other parachains.
11+
This guide walks you through transferring tokens between two parachains using the [ParaSpell XCM SDK](/reference/tools/paraspell/){target=\_blank}. This example utilizes [Asset Hub](/polkadot-protocol/architecture/system-chains/asset-hub/){target=\_blank} and the [People Chain](/polkadot-protocol/architecture/system-chains/people/){target=\_blank}. However, the same approach can be applied to transfers between other parachains.
1212

1313
For development purposes, this guide will use the [Polkadot TestNet](/develop/networks/#paseo){target=\_blank}, so the transferred token will be PAS.
1414

1515
In this guide, you will:
1616

1717
- Build an XCM transfer transaction using ParaSpell XCM SDK.
1818
- Perform a dry run to validate the transfer.
19-
- Verify the [Existential Deposit (ED)](/polkadot-protocol/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
19+
- Verify the [Existential Deposit (ED)](/reference/glossary/#existential-deposit){target=\_blank} requirement on the destination chain.
2020
- Retrieve information regarding the transfer, along with fee estimates.
2121
- Submit the transaction.
2222

2323
### Prerequisites
2424

2525
Before you begin, ensure you have the following:
2626

27-
- Knowledge of the [fundamentals of Polkadot](/polkadot-protocol/parachain-basics/){target=\_blank}.
28-
- Basic understanding of [XCM](/develop/interoperability/intro-to-xcm/){target=\_blank}.
27+
- Knowledge of the [fundamentals of Polkadot](/parachains/get-started/){target=\_blank}.
28+
- Basic understanding of [XCM](/parachains/interoperability/get-started/){target=\_blank}.
2929
- Basic familiarity with JavaScript or TypeScript.
30-
- Installed [bun](https://bun.com/docs/installation){target=\_blank}, a JavaScript and TypeScript package manager.
30+
- Installed [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm){target=\_blank}, a JavaScript and TypeScript package manager.
3131

3232
## Initialize Your Project
3333

3434
Create the project folder:
3535

3636
```bash
37-
mkdir paraspell-transfer
37+
mkdir paraspell-transfer && \
3838
cd paraspell-transfer
3939
```
4040

4141
Initialize the JavaScript project:
4242

4343
```bash
44-
bun init -y
44+
npm init -y
45+
```
46+
47+
Install dev dependencies:
48+
49+
```bash
50+
npm install --save-dev @types/node@^22.12.0 tsx@^4.20.6 typescript@^5.7.3
4551
```
4652

4753
Install the required dependencies:
4854

4955
```bash
50-
bun add @paraspell/sdk@11.3.2 polkadot-api@1.17.1 @polkadot-labs/[email protected].25 @polkadot-labs/[email protected].24
56+
npm install --save @paraspell/sdk@11.12.6 polkadot-api@1.20.0 @polkadot-labs/[email protected].26 @polkadot-labs/[email protected].25
5157
```
5258

5359
Now add the following setup code to `index.ts`:
@@ -154,13 +160,13 @@ dryRunTransfer();
154160
Run the script using the following command:
155161

156162
```bash
157-
bun run index.ts
163+
npx tsx index.ts
158164
```
159165

160166
The result of the dry run will look similar to the following example output:
161167

162168
<div id="termynal" data-termynal>
163-
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
169+
<span data-ty="input"><span class="file-path"></span>npx tsx index.ts</span>
164170
<span data-ty>{
165171
failureReason: undefined,
166172
failureChain: undefined,
@@ -313,13 +319,13 @@ verifyED();
313319
Comment out the `dryRunTransfer()` function so that it is not executed again. Then, execute the `verifyED()` by running the following command:
314320

315321
```bash
316-
bun run index.ts
322+
npx tsx index.ts
317323
```
318324

319325
After that, you will get output confirming the ED which will look similar to the following:
320326

321327
<div id="termynal" data-termynal>
322-
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
328+
<span data-ty="input"><span class="file-path"></span>npx tsx index.ts</span>
323329
<span data-ty>ED verification successful.</span>
324330
</div>
325331
## Get Transfer Info and Fee Estimates
@@ -351,13 +357,13 @@ XcmTransferInfo();
351357
Comment out the `verifyED()` function so it doesn't execute again. Then, execute the `XcmTransferInfo()` function by running the following command:
352358

353359
```bash
354-
bun run index.ts
360+
npx tsx index.ts
355361
```
356362

357363
You will see all the information for your transfer similar to the following example:
358364

359365
<div id="termynal" data-termynal>
360-
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
366+
<span data-ty="input"><span class="file-path"></span>npx tsx index.ts</span>
361367
<span data-ty>Transfer Info: {
362368
chain: {
363369
origin: "AssetHubPaseo",
@@ -420,13 +426,13 @@ transfer();
420426
Comment out the `XcmTransferInfo()` function so it doesn't execute again. Then, execute the transfer by running the following command:
421427

422428
```bash
423-
bun run index.ts
429+
npx tsx index.ts
424430
```
425431

426432
Your `transfer` function will submit the transaction, and you will get the following output:
427433

428434
<div id="termynal" data-termynal>
429-
<span data-ty="input"><span class="file-path"></span>bun run index.ts</span>
435+
<span data-ty="input"><span class="file-path"></span>npx tsx index.ts</span>
430436
<span data-ty>...</span>
431437
<span data-ty>Built transaction: {
432438
getPaymentInfo: [AsyncFunction: getPaymentInfo],
@@ -873,4 +879,4 @@ You have now successfully created and sent a cross-chain transfer using the Para
873879

874880
- Read the Docs: Dive deeper into the features of the [ParaSpell XCM SDK](https://paraspell.github.io/docs/sdk/getting-started.html){target=\_blank} documentation.
875881

876-
- Learn about XCM: Understand the underlying protocol by visiting the [Introduction to XCM page](/develop/interoperability/intro-to-xcm/) in the Polkadot Docs.
882+
- Learn about XCM: Understand the underlying protocol by visiting the [Introduction to XCM page](/parachains/interoperability/get-started/) in the Polkadot Docs.

.ai/pages/parachains-customize-runtime-add-smart-contract-functionality.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ Any language that can compile to PolkaVM bytecode and utilize `pallet-revive`'s
5050

5151
### Key Benefits
5252

53-
- **Unified Platform**: Deploys both PolkaVM-optimized and EVM-compatible contracts using a single pallet.
53+
- **Unified platform**: Deploys both PolkaVM-optimized and EVM-compatible contracts using a single pallet.
5454
- **Performance**: PolkaVM execution provides improved performance compared to the traditional EVM, leveraging the [RISC-V](https://en.wikipedia.org/wiki/RISC-V){target=\_blank} architecture to map instructions to the CPU and requires little transpiling.
55-
- **Ethereum Compatibility**: Supports full integration with Ethereum tooling via RPC adapter.
55+
- **Ethereum compatibility**: Supports full integration with Ethereum tooling via RPC adapter.
5656

5757
### Implementation Examples
5858

@@ -70,7 +70,7 @@ Frontier offers flexible integration depending on your compatibility needs:
7070

7171
For basic EVM support using Polkadot SDK native APIs:
7272

73-
- **[`pallet-evm`](https://github.com/polkadot-evm/frontier/tree/master/frame/evm){target=\_blank}**: Provides the core EVM execution environment
73+
- **[`pallet-evm`](https://github.com/polkadot-evm/frontier/tree/master/frame/evm){target=\_blank}**: Provides the core EVM execution environment.
7474

7575
This configuration allows EVM contract execution but requires using Polkadot SDK-specific APIs for interaction.
7676

@@ -84,20 +84,20 @@ For complete Ethereum ecosystem integration with Ethereum RPC support:
8484

8585
### Key Benefits
8686

87-
- **Ethereum tooling compatibility**: Full compatibility with MetaMask, Hardhat, Remix, Truffle, and other Ethereum development tools
88-
- **Minimal-friction migration**: Deployment of existing Ethereum dApps with minimal or no modifications
89-
- **Native Ethereum formats**: Support for Ethereum transaction formats, signatures, and gas mechanics
90-
- **Block emulation**: Ethereum-style block structure within Substrate's block production
87+
- **Ethereum tooling compatibility**: Full compatibility with MetaMask, Hardhat, Remix, Foundry, and other Ethereum development tools.
88+
- **Minimal-friction migration**: Deployment of existing Ethereum dApps with minimal or no modifications.
89+
- **Native Ethereum formats**: Support for Ethereum transaction formats, signatures, and gas mechanics.
90+
- **Block emulation**: Ethereum-style block structure within Substrate's block production.
9191

9292
### Implementation Examples
9393

9494
Production implementations demonstrate Frontier's capabilities:
9595

96-
- **Moonbeam**: See their implementation of [`pallet-evm`](https://github.com/moonbeam-foundation/moonbeam/blob/9e2ddbc9ae8bf65f11701e7ccde50075e5fe2790/runtime/moonbeam/src/lib.rs#L532){target=\_blank} and [`pallet-ethereum`](https://github.com/moonbeam-foundation/moonbeam/blob/9e2ddbc9ae8bf65f11701e7ccde50075e5fe2790/runtime/moonbeam/src/lib.rs#L698){target=\_blank}
96+
- **Moonbeam**: See their implementation of [`pallet-evm`](https://github.com/moonbeam-foundation/moonbeam/blob/9e2ddbc9ae8bf65f11701e7ccde50075e5fe2790/runtime/moonbeam/src/lib.rs#L532){target=\_blank} and [`pallet-ethereum`](https://github.com/moonbeam-foundation/moonbeam/blob/9e2ddbc9ae8bf65f11701e7ccde50075e5fe2790/runtime/moonbeam/src/lib.rs#L698){target=\_blank}.
9797

9898
## pallet-contracts (Legacy)
9999

100-
[`pallet-contracts`](https://docs.rs/pallet-contracts/latest/pallet_contracts/index.html#contracts-pallet){target=\_blank} is the original Wasm-based smart contract pallet for Polkadot SDK chains. While still functional, it's considered legacy as development efforts have shifted to pallet-revive.
100+
[`pallet-contracts`](https://docs.rs/pallet-contracts/latest/pallet_contracts/index.html#contracts-pallet){target=\_blank} is the original Wasm-based smart contract pallet for Polkadot SDK chains. While still functional, it's considered legacy as development efforts have shifted to `pallet-revive`.
101101

102102
### Implementation Example
103103

0 commit comments

Comments
 (0)