Skip to content

Commit 1f18f31

Browse files
Update to Polkadot Hub
1 parent 59c635d commit 1f18f31

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

.snippets/code/tutorials/interoperability/xcm-observability/deposit-reserve-asset-with-set-topic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
} from "@polkadot-labs/hdkd-helpers";
2424

2525
const XCM_VERSION = 5;
26-
const MAX_RETRIES = 5;
26+
const MAX_RETRIES = 6;
2727

2828
const toHuman = (_key: any, value: any) => {
2929
if (typeof value === "bigint") {

.snippets/code/tutorials/interoperability/xcm-observability/initiate-reserve-withdraw-with-set-topic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from "@polkadot-labs/hdkd-helpers";
2525

2626
const XCM_VERSION = 5;
27-
const MAX_RETRIES = 5;
27+
const MAX_RETRIES = 6;
2828

2929
const toHuman = (_key: any, value: any) => {
3030
if (typeof value === "bigint") {
@@ -111,15 +111,15 @@ async function main() {
111111
parents: 0,
112112
interior: XcmV5Junctions.X2([
113113
XcmV5Junction.PalletInstance(50),
114-
XcmV5Junction.GeneralIndex(1984n),
114+
XcmV5Junction.GeneralIndex(1337n),
115115
]),
116116
};
117117
const giveId = {
118118
parents: 1,
119119
interior: XcmV5Junctions.X3([
120120
XcmV5Junction.Parachain(1000),
121121
XcmV5Junction.PalletInstance(50),
122-
XcmV5Junction.GeneralIndex(1984n),
122+
XcmV5Junction.GeneralIndex(1337n),
123123
]),
124124
};
125125
const giveFun = XcmV3MultiassetFungibility.Fungible(1_500_000n);

.snippets/code/tutorials/interoperability/xcm-observability/limited-reserve-transfer-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from "@polkadot-labs/hdkd-helpers";
2222

2323
const XCM_VERSION = 5;
24-
const MAX_RETRIES = 5;
24+
const MAX_RETRIES = 6;
2525

2626
const toHuman = (_key: any, value: any) => {
2727
if (typeof value === "bigint") {

llms.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27847,7 +27847,7 @@ Before you begin, make sure you have:
2784727847

2784827848
- [Chopsticks](/develop/toolkit/parachains/fork-chains/chopsticks/get-started/){target=\_blank} installed
2784927849
- Access to local or remote parachain endpoints
27850-
- The origin parachain running runtime **`stable2503-5`** or later
27850+
- The origin chain running runtime **`stable2503-5`** or later
2785127851
- A TypeScript development environment with essential tools
2785227852
- Familiarity with replaying or dry-running XCMs
2785327853

@@ -27907,7 +27907,7 @@ If you are new to XCM replay or dry-run, see [Replay and Dry Run XCMs Using Chop
2790727907

2790827908
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features enable developers to trace and correlate messages across chains:
2790927909

27910-
- The addition of a new **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event**, emitted on the origin chain when an XCM is sent.
27910+
- **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event** emitted on the origin chain when an XCM is sent.
2791127911
- The guarantee that the **`message_id` in the `PolkadotXcm.Sent` event matches the `id` in the [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} event** on the destination chain, enabling reliable cross-chain correlation.
2791227912
- **[`SetTopic([u8; 32])`](https://github.com/polkadot-fellows/xcm-format#settopic){target=\_blank}** is an XCM instruction that sets a 32-byte topic register inside the message.
2791327913
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
@@ -27970,7 +27970,7 @@ flowchart TD
2797027970

2797127971
### Overview
2797227972

27973-
- **Origin:** Polkadot Asset Hub
27973+
- **Origin:** Polkadot Hub
2797427974
- **Destination:** Hydration
2797527975
- **Extrinsic:** `limited_reserve_transfer_assets` (high-level)
2797627976
- **Topic:** Automatically set by runtime
@@ -28003,7 +28003,7 @@ import {
2800328003
} from "@polkadot-labs/hdkd-helpers";
2800428004

2800528005
const XCM_VERSION = 5;
28006-
const MAX_RETRIES = 5;
28006+
const MAX_RETRIES = 6;
2800728007

2800828008
const toHuman = (_key: any, value: any) => {
2800928009
if (typeof value === "bigint") {
@@ -28202,10 +28202,10 @@ The runtime adds a `SetTopic` to the forwarded XCM automatically:
2820228202

2820328203
### Trace Events
2820428204

28205-
| Chain | Event | Field | Notes |
28206-
|-----------|--------------------------|--------------|----------------------------------------|
28207-
| Asset Hub | `PolkadotXcm.Sent` | `message_id` | Matches the topic in the forwarded XCM |
28208-
| Hydration | `MessageQueue.Processed` | `id` | Matches origin's `message_id` |
28205+
| Chain | Event | Field | Notes |
28206+
|--------------|--------------------------|--------------|----------------------------------------|
28207+
| Polkadot Hub | `PolkadotXcm.Sent` | `message_id` | Matches the topic in the forwarded XCM |
28208+
| Hydration | `MessageQueue.Processed` | `id` | Matches origin's `message_id` |
2820928209

2821028210
> ⚠️ Dry run generated topics may differ from actual execution.
2821128211

@@ -28225,7 +28225,7 @@ The runtime adds a `SetTopic` to the forwarded XCM automatically:
2822528225

2822628226
### Overview
2822728227

28228-
- **Origin:** Polkadot Asset Hub
28228+
- **Origin:** Polkadot Hub
2822928229
- **Destination:** Hydration
2823028230
- **Topic:** Manually assigned
2823128231
- **Goal:** Guarantee traceability in custom multi-hop flows
@@ -28260,7 +28260,7 @@ import {
2826028260
} from "@polkadot-labs/hdkd-helpers";
2826128261

2826228262
const XCM_VERSION = 5;
28263-
const MAX_RETRIES = 5;
28263+
const MAX_RETRIES = 6;
2826428264

2826528265
const toHuman = (_key: any, value: any) => {
2826628266
if (typeof value === "bigint") {
@@ -28498,7 +28498,7 @@ code/tutorials/interoperability/xcm-observability/forwarded-xcm-custom.html
2849828498

2849928499
### Overview
2850028500

28501-
- **Origin:** Polkadot Asset Hub
28501+
- **Origin:** Polkadot Hub
2850228502
- **Destination:** Hydration
2850328503
- **Topic:** Manually assigned and preserved over multiple hops (including remote XCMs)
2850428504
- **Goal:** Trace entire multi-hop XCM chain consistently
@@ -28534,7 +28534,7 @@ import {
2853428534
} from "@polkadot-labs/hdkd-helpers";
2853528535

2853628536
const XCM_VERSION = 5;
28537-
const MAX_RETRIES = 5;
28537+
const MAX_RETRIES = 6;
2853828538

2853928539
const toHuman = (_key: any, value: any) => {
2854028540
if (typeof value === "bigint") {
@@ -28621,15 +28621,15 @@ async function main() {
2862128621
parents: 0,
2862228622
interior: XcmV5Junctions.X2([
2862328623
XcmV5Junction.PalletInstance(50),
28624-
XcmV5Junction.GeneralIndex(1984n),
28624+
XcmV5Junction.GeneralIndex(1337n),
2862528625
]),
2862628626
};
2862728627
const giveId = {
2862828628
parents: 1,
2862928629
interior: XcmV5Junctions.X3([
2863028630
XcmV5Junction.Parachain(1000),
2863128631
XcmV5Junction.PalletInstance(50),
28632-
XcmV5Junction.GeneralIndex(1984n),
28632+
XcmV5Junction.GeneralIndex(1337n),
2863328633
]),
2863428634
};
2863528635
const giveFun = XcmV3MultiassetFungibility.Fungible(1_500_000n);

tutorials/interoperability/xcm-observability.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Before you begin, make sure you have:
2727

2828
- [Chopsticks](/develop/toolkit/parachains/fork-chains/chopsticks/get-started/){target=\_blank} installed
2929
- Access to local or remote parachain endpoints
30-
- The origin parachain running runtime **`stable2503-5`** or later
30+
- The origin chain running runtime **`stable2503-5`** or later
3131
- A TypeScript development environment with essential tools
3232
- Familiarity with replaying or dry-running XCMs
3333

@@ -87,7 +87,7 @@ If you are new to XCM replay or dry-run, see [Replay and Dry Run XCMs Using Chop
8787

8888
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features enable developers to trace and correlate messages across chains:
8989

90-
- The addition of a new **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event**, emitted on the origin chain when an XCM is sent.
90+
- **[`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} event** emitted on the origin chain when an XCM is sent.
9191
- The guarantee that the **`message_id` in the `PolkadotXcm.Sent` event matches the `id` in the [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} event** on the destination chain, enabling reliable cross-chain correlation.
9292
- **[`SetTopic([u8; 32])`](https://github.com/polkadot-fellows/xcm-format#settopic){target=\_blank}** is an XCM instruction that sets a 32-byte topic register inside the message.
9393
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
@@ -150,7 +150,7 @@ flowchart TD
150150
151151
### Overview
152152
153-
- **Origin:** Polkadot Asset Hub
153+
- **Origin:** Polkadot Hub
154154
- **Destination:** Hydration
155155
- **Extrinsic:** `limited_reserve_transfer_assets` (high-level)
156156
- **Topic:** Automatically set by runtime
@@ -175,10 +175,10 @@ The runtime adds a `SetTopic` to the forwarded XCM automatically:
175175
176176
### Trace Events
177177
178-
| Chain | Event | Field | Notes |
179-
|-----------|--------------------------|--------------|----------------------------------------|
180-
| Asset Hub | `PolkadotXcm.Sent` | `message_id` | Matches the topic in the forwarded XCM |
181-
| Hydration | `MessageQueue.Processed` | `id` | Matches origin's `message_id` |
178+
| Chain | Event | Field | Notes |
179+
|--------------|--------------------------|--------------|----------------------------------------|
180+
| Polkadot Hub | `PolkadotXcm.Sent` | `message_id` | Matches the topic in the forwarded XCM |
181+
| Hydration | `MessageQueue.Processed` | `id` | Matches origin's `message_id` |
182182

183183
> ⚠️ Dry run generated topics may differ from actual execution.
184184

@@ -190,7 +190,7 @@ The runtime adds a `SetTopic` to the forwarded XCM automatically:
190190

191191
### Overview
192192

193-
- **Origin:** Polkadot Asset Hub
193+
- **Origin:** Polkadot Hub
194194
- **Destination:** Hydration
195195
- **Topic:** Manually assigned
196196
- **Goal:** Guarantee traceability in custom multi-hop flows
@@ -221,7 +221,7 @@ Your manual `SetTopic` is preserved by the runtime:
221221

222222
### Overview
223223

224-
- **Origin:** Polkadot Asset Hub
224+
- **Origin:** Polkadot Hub
225225
- **Destination:** Hydration
226226
- **Topic:** Manually assigned and preserved over multiple hops (including remote XCMs)
227227
- **Goal:** Trace entire multi-hop XCM chain consistently

0 commit comments

Comments
 (0)