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
The encoded call data for opening a channel with parachain 2600 is `0x3c00280a00000800000000001000`.
18131
18131
18132
-
### Crafting and Submitting the XCM Message from the Sender
18132
+
### Craft and Submit the XCM Message from the Sender
18133
18133
18134
18134
To initiate the HRMP channel opening process, you need to create an XCM message that includes the encoded `hrmpInitOpenChannel` call data from the previous step. This message will be sent from your parachain to the relay chain.
18135
18135
@@ -18175,7 +18175,7 @@ After submitting the XCM message to initiate the HRMP channel opening, you shoul
18175
18175
18176
18176
If your channel request was successful, you should see an entry for your parachain ID in the list of open channel requests. This confirms that your request has been properly registered on the relay chain and is awaiting acceptance by the target parachain.
18177
18177
18178
-
## Procedure for Accepting HRMP Channel
18178
+
## Procedure to Accept an HRMP Channel
18179
18179
18180
18180
For the channel to be fully established, the target parachain must accept the channel request by submitting an XCM message to the relay chain.
18181
18181
@@ -18200,9 +18200,9 @@ To fund the account, follow the same process described in the previous section,
The encoded call data for accepting a channel with parachain 2500 should be `0x3c01c4090000`
18202
18202
18203
-
### Crafting and Submitting the XCM Message from the Receiver
18203
+
### Craft and Submit the XCM Message from the Receiver
18204
18204
18205
-
To accept the HRMP channel opening, you need to create and submit an XCM message that includes the encoded `hrmpAcceptOpenChannel` call data from the previous step. This process is similar to the one described in the previous section, [Crafting and Submitting the XCM Message](#crafting-and-submitting-the-xcm-message-from-the-sender), with a few key differences:
18205
+
To accept the HRMP channel opening, you need to create and submit an XCM message that includes the encoded `hrmpAcceptOpenChannel` call data from the previous step. This process is similar to the one described in the previous section, [Craft and Submit the XCM Message](#craft-and-submit-the-xcm-message-from-the-sender), with a few key differences:
18206
18206
18207
18207
- Use the encoded call data for `hrmpAcceptOpenChannel` obtained in Step 2 of this section
18208
18208
- In the last XCM instruction (DepositAsset), set the beneficiary to parachain 2600's sovereign account to receive any surplus funds
@@ -18264,7 +18264,7 @@ To successfully complete this process, you'll need to have the following in plac
18264
18264
- An Asset Hub system chain
18265
18265
- A wallet containing enough funds to cover transaction fees on each of the participating chains
18266
18266
18267
-
## Procedure for Establishing HRMP Channel
18267
+
## Procedure to Establish an HRMP Channel
18268
18268
18269
18269
This guide demonstrates opening an HRMP channel between parachain 2500 and system chain Asset Hub (parachain 1000) on the Rococo Local relay chain.
18270
18270
@@ -18311,7 +18311,7 @@ Use [Polkadot.js Apps](https://polkadot.js.org/apps/#/explorer){target=\_blank}
The encoded call data for establishing a channel with system parachain 1000 should be `0x3c0ae8030000`
18313
18313
18314
-
### Crafting and Submitting the XCM Message
18314
+
### Craft and Submit the XCM Message
18315
18315
18316
18316
Connect to parachain 2500 using Polkadot.js Apps to send the XCM message to the relay chain. Input the necessary parameters as illustrated in the image below. Make sure to:
18317
18317
@@ -18424,7 +18424,7 @@ After executing this command, the relay chain and parachain will expose the foll
18424
18424
18425
18425
You can perform the reserve-backed transfer using either the [Polkadot.js Apps interface](#using-polkadotjs-apps) or the [Polkadot API](#using-papi), depending on your preference. Both methods provide the same functionality to facilitate asset transfers between the relay chain and parachain.
18426
18426
18427
-
## Using Polkadot.js Apps
18427
+
## Use Polkadot.js Apps
18428
18428
18429
18429
Open two browser tabs and can connect these endpoints using the [Polkadot.js Apps](https://polkadot.js.org/apps/){target=\_blank} interface:
18430
18430
@@ -18485,7 +18485,7 @@ After submitting the transaction from the relay chain, confirm its success by ch
To programmatically execute the reserve-backed asset transfer between the relay chain and the parachain, you can use [Polkadot API (PAPI)](/develop/toolkit/api-libraries/papi/){target=\_blank}. PAPI is a robust toolkit that simplifies interactions with Polkadot-based chains. For this project, you'll first need to set up your environment, install necessary dependencies, and create a script to handle the transfer process.
18491
18491
@@ -18712,7 +18712,7 @@ Before proceeding, ensure the following prerequisites are met:
Before testing OpenGov proposals, you need to set up your development environment.
18718
18718
You'll set up a TypeScript project and install the required dependencies to simulate and evaluate proposals. You'll use Chopsticks to fork the Polkadot network and simulate the proposal lifecycle, while Polkadot.js will be your interface for interacting with the forked network and submitting proposals.
@@ -18761,7 +18761,7 @@ Follow these steps to set up your project:
18761
18761
}
18762
18762
```
18763
18763
18764
-
## Submitting and Executing a Proposal Using Chopsticks
18764
+
## Submit and Execute a Proposal Using Chopsticks
18765
18765
18766
18766
You should identify the right track and origin for your proposal. For example, select the appropriate treasury track based on the spending limits if you're requesting funds from the treasury. For more detailed information, refer to [Polkadot OpenGov Origins](https://wiki.polkadot.network/docs/learn-polkadot-opengov-origins){target=\_blank}.
18767
18767
@@ -21195,7 +21195,7 @@ try {
21195
21195
// --8<-- [end:try-catch-block]
21196
21196
```
21197
21197
21198
-
## Executing the Proposal Script
21198
+
## Execute the Proposal Script
21199
21199
21200
21200
To run the proposal execution script, use the following command in your terminal:
21201
21201
@@ -24822,7 +24822,7 @@ Before proceeding, you should have the following items:
24822
24822
24823
24823
Once the above is complete, obtaining coretime is the last step to enable your parachain to start producing and finalizing blocks using the relay chain's validator set. If you don't, refer to the previous tutorial: [Deploy on Paseo TestNet](/tutorials/polkadot-sdk/parachains/zero-to-hero/deploy-to-testnet/){target=\_blank}.
24824
24824
24825
-
## Purchasing Bulk Coretime
24825
+
## Purchase Bulk Coretime
24826
24826
24827
24827
Purchasing bulk coretime involves purchasing a core from the [Coretime Chain](/polkadot-protocol/architecture/system-chains/coretime/){target=\_blank}, which has an instance of [`pallet_broker`](https://paritytech.github.io/polkadot-sdk/master/pallet_broker/index.html){target=\_blank} (the Broker pallet). Although this can be done via sending extrinsics through a tool like Polkadot.js Apps, there are user interfaces for purchasing and managing bulk coretime:
24828
24828
@@ -24832,7 +24832,7 @@ Purchasing bulk coretime involves purchasing a core from the [Coretime Chain](/p
24832
24832
!!!tip
24833
24833
Obtaining a core for bulk coretime on Paseo follows a different process from Polkadot or Kusama. To apply for a core on Paseo, visit their guide for doing so: [PAS-10 Onboard Paras Coretime](https://github.com/paseo-network/paseo-action-submission/blob/main/pas/PAS-10-Onboard-paras-coretime.md#summary){target=\_blank}.
24834
24834
24835
-
### Getting Coretime Funds
24835
+
### Get Coretime Funds
24836
24836
24837
24837
First, ensure your wallet is connected to the [RegionX](https://app.regionx.tech){target=\_blank} interface. To do so, go to **Home** in the RegionX app and click the **Connect Wallet** button in the upper right.
24838
24838
@@ -24846,7 +24846,7 @@ If successful, you should see the balance in the upper right of the **Transfer**
For this tutorial, we will use [RegionX](https://app.regionx.tech){target=\_blank}. Once you open the app, you should be presented with the following screen:
24852
24852
@@ -24868,7 +24868,7 @@ Once the transaction is confirmed, click [**My Regions**](https://app.regionx.te
24868
24868
24869
24869
Congratulations, you just purchased a core using RegionX! You can assign the core to your parachain, partition, interlace, and more using RegionX.
24870
24870
24871
-
### Assigning a Core
24871
+
### Assign a Core
24872
24872
24873
24873
Once you have the core as shown in the dashboard, select it by clicking on it, then click the **Assign** option on the left-hand side. You will be presented with a modal in which you can add a new task.
24874
24874
@@ -24882,7 +24882,7 @@ You may now select a task from the list. You must also set the core's finality,
24882
24882
24883
24883
Once you sign and send this transaction, that task/parachain will be assigned to that core.
24884
24884
24885
-
## Ordering On Demand Coretime
24885
+
## Order On Demand Coretime
24886
24886
24887
24887
On Polkadot.js Apps, make sure you're connected to the relay chain, then navigate to [**Developer > Extrinsics**](https://polkadot.js.org/apps/#/extrinsics){target=\_blank} and issue the `onDemand.placeOrderAllowDeath` extrinsic from the account that registered the `ParaID` by specifying sufficient `maxAmount` for the transaction to go through successfully.
Execute the test suite for your custom pallet using Cargo's test command. This will run all defined test cases and provide detailed output about the test results.
26009
26009
@@ -26283,7 +26283,7 @@ Before converting assets on Asset Hub, you must ensure you have:
26283
26283
- A funded wallet containing the assets you wish to convert and enough available funds to cover the transaction fees
26284
26284
- An asset registered on Asset Hub that you want to convert. If you haven't created an asset on Asset Hub yet, refer to the [Register a Local Asset](/tutorials/polkadot-sdk/system-chains/asset-hub/register-local-asset/){target=\_blank} or [Register a Foreign Asset](/tutorials/polkadot-sdk/system-chains/asset-hub/register-foreign-asset/){target=\_blank} documentation to create an asset.
26285
26285
26286
-
## Creating a Liquidity Pool
26286
+
## Create a Liquidity Pool
26287
26287
26288
26288
If an asset on Asset Hub does not have an existing liquidity pool, the first step is to create one.
26289
26289
@@ -26352,7 +26352,7 @@ Signing and submitting the transaction triggers the creation of the liquidity po
26352
26352
26353
26353
As the preceding image shows, the **`lpToken`** ID created for this pool is 19. This ID is essential to identify the liquidity pool and associated LP tokens.
26354
26354
26355
-
## Adding Liquidity to a Pool
26355
+
## Add Liquidity to a Pool
26356
26356
26357
26357
The `addLiquidity` extrinsic allows users to provide liquidity to a pool of two assets. Users specify their preferred amounts for both assets and minimum acceptable quantities. The function determines the best asset contribution, which may vary from the amounts desired but won't fall below the specified minimums. Providers receive liquidity tokens representing their pool portion in return for their contribution.
26358
26358
@@ -26409,9 +26409,9 @@ Signing and submitting the transaction adds liquidity to the pool. To verify the
The asset conversion pallet enables users to exchange a specific quantity of one asset for another in a designated liquidity pool by swapping them for an exact amount of tokens. It guarantees the user will receive at least a predetermined minimum amount of the second asset. This function increases trading predictability and allows users to conduct asset exchanges with confidence that they are assured a minimum return.
26417
26417
@@ -26469,7 +26469,7 @@ Signing and submitting the transaction will execute the swap. To verify executio
26469
26469
26470
26470

26471
26471
26472
-
### Swapping To an Exact Amount of Tokens
26472
+
### Swap to an Exact Amount of Tokens
26473
26473
26474
26474
Conversely, the Asset Conversion pallet comes with a function that allows users to trade a variable amount of one asset to acquire a precise quantity of another. It ensures that users stay within a set maximum of the initial asset to obtain the desired amount of the second asset. This provides a method to control transaction costs while achieving the intended result.
26475
26475
@@ -26526,7 +26526,7 @@ Signing and submitting the transaction will execute the swap. To verify executio
26526
26526
26527
26527

26528
26528
26529
-
## Withdrawing Liquidity from a Pool
26529
+
## Withdraw Liquidity from a Pool
26530
26530
26531
26531
The Asset Conversion pallet provides the `removeLiquidity` extrinsic to remove liquidity from a pool. This function allows users to withdraw the liquidity they offered from a pool, returning the original assets. When calling this function, users specify the number of liquidity tokens (representing their share in the pool) they wish to burn. They also set minimum acceptable amounts for the assets they expect to receive back. This mechanism ensures that users can control the minimum value they receive, protecting against unfavorable price movements during the withdrawal process.
The encoded call data for opening a channel with parachain 2600 is `0x3c00280a00000800000000001000`.
75
75
76
-
### Crafting and Submitting the XCM Message from the Sender
76
+
### Craft and Submit the XCM Message from the Sender
77
77
78
78
To initiate the HRMP channel opening process, you need to create an XCM message that includes the encoded `hrmpInitOpenChannel` call data from the previous step. This message will be sent from your parachain to the relay chain.
79
79
@@ -119,7 +119,7 @@ After submitting the XCM message to initiate the HRMP channel opening, you shoul
119
119
120
120
If your channel request was successful, you should see an entry for your parachain ID in the list of open channel requests. This confirms that your request has been properly registered on the relay chain and is awaiting acceptance by the target parachain.
121
121
122
-
## Procedure for Accepting HRMP Channel
122
+
## Procedure to Accept an HRMP Channel
123
123
124
124
For the channel to be fully established, the target parachain must accept the channel request by submitting an XCM message to the relay chain.
125
125
@@ -144,9 +144,9 @@ To fund the account, follow the same process described in the previous section,
The encoded call data for accepting a channel with parachain 2500 should be `0x3c01c4090000`
146
146
147
-
### Crafting and Submitting the XCM Message from the Receiver
147
+
### Craft and Submit the XCM Message from the Receiver
148
148
149
-
To accept the HRMP channel opening, you need to create and submit an XCM message that includes the encoded `hrmpAcceptOpenChannel` call data from the previous step. This process is similar to the one described in the previous section, [Crafting and Submitting the XCM Message](#crafting-and-submitting-the-xcm-message-from-the-sender), with a few key differences:
149
+
To accept the HRMP channel opening, you need to create and submit an XCM message that includes the encoded `hrmpAcceptOpenChannel` call data from the previous step. This process is similar to the one described in the previous section, [Craft and Submit the XCM Message](#craft-and-submit-the-xcm-message-from-the-sender), with a few key differences:
150
150
151
151
- Use the encoded call data for `hrmpAcceptOpenChannel` obtained in Step 2 of this section
152
152
- In the last XCM instruction (DepositAsset), set the beneficiary to parachain 2600's sovereign account to receive any surplus funds
The encoded call data for establishing a channel with system parachain 1000 should be `0x3c0ae8030000`
72
72
73
-
### Crafting and Submitting the XCM Message
73
+
### Craft and Submit the XCM Message
74
74
75
75
Connect to parachain 2500 using Polkadot.js Apps to send the XCM message to the relay chain. Input the necessary parameters as illustrated in the image below. Make sure to:
Copy file name to clipboardExpand all lines: tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ After executing this command, the relay chain and parachain will expose the foll
36
36
37
37
You can perform the reserve-backed transfer using either the [Polkadot.js Apps interface](#using-polkadotjs-apps) or the [Polkadot API](#using-papi), depending on your preference. Both methods provide the same functionality to facilitate asset transfers between the relay chain and parachain.
38
38
39
-
## Using Polkadot.js Apps
39
+
## Use Polkadot.js Apps
40
40
41
41
Open two browser tabs and can connect these endpoints using the [Polkadot.js Apps](https://polkadot.js.org/apps/){target=\_blank} interface:
42
42
@@ -97,7 +97,7 @@ After submitting the transaction from the relay chain, confirm its success by ch
To programmatically execute the reserve-backed asset transfer between the relay chain and the parachain, you can use [Polkadot API (PAPI)](/develop/toolkit/api-libraries/papi/){target=\_blank}. PAPI is a robust toolkit that simplifies interactions with Polkadot-based chains. For this project, you'll first need to set up your environment, install necessary dependencies, and create a script to handle the transfer process.
0 commit comments