Skip to content

Commit 44c67e3

Browse files
Update partially
1 parent 7359ea7 commit 44c67e3

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

llms.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27903,15 +27903,16 @@ If you are new to XCM dry-run or replay, see the [Replay and Dry Run XCMs Using
2790327903

2790427904
### What is `SetTopic`?
2790527905

27906-
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features allow developers to trace and correlate messages across chains:
27906+
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:
2790727907

27908+
- 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 message is sent.
27909+
- 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.
2790827910
- [`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.
27909-
- This topic acts as a **logical identifier** (`message_id`) for the XCM, enabling you to group and trace related messages across chains.
27910-
- It appears as a hash in both [`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} and [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} events.
27911+
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
2791127912

27912-
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. Uniqueness must be enforced by the message creator if required.
27913+
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. If uniqueness is required (e.g. for deduplication), it must be enforced by the message creator.
2791327914

27914-
These features are available in runtimes built from **`stable2503-5` or later**.
27915+
These features are available on runtimes built from **`stable2503-5` or later**.
2791527916

2791627917
### Understanding `message_id`
2791727918

@@ -28892,7 +28893,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
2889228893
</pre>
2889328894
</div>
2889428895

28895-
Common errors include missing assets, execution limit exceeded, or bad asset location. This output is available on runtimes from **`stable2506` or later**, and is often sufficient for identifying common issues such as missing assets or execution limits.
28896+
Common errors include missing assets, exceeded execution limits, or invalid asset locations. This nested error reporting, introduced in runtimes from **`stable2506` onward**, usually suffices to diagnose typical issues.
2889628897

2889728898
2. **Replay Using Chopsticks for Full Logs**
2889828899

@@ -28911,7 +28912,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
2891128912
3. Inspect logs for the failing XCM instruction and reason
2891228913
4. Adjust weight limits, asset locations, or message construction as needed
2891328914

28914-
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/) for replay instructions.
28915+
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank} for replay instructions.
2891528916

2891628917
## Best Practices
2891728918

tutorials/interoperability/xcm-observability.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,16 @@ If you are new to XCM dry-run or replay, see the [Replay and Dry Run XCMs Using
8383

8484
### What is `SetTopic`?
8585

86-
When sending XCMs using `limited_reserve_transfer_assets` or other extrinsics from the `PolkadotXcm` pallet, two key observability features allow developers to trace and correlate messages across chains:
86+
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:
8787

88+
- 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 message is sent.
89+
- 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.
8890
- [`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.
89-
- This topic acts as a **logical identifier** (`message_id`) for the XCM, enabling you to group and trace related messages across chains.
90-
- It appears as a hash in both [`PolkadotXcm.Sent`](https://paritytech.github.io/polkadot-sdk/master/pallet_xcm/pallet/enum.Event.html#variant.Sent){target=\_blank} and [`MessageQueue.Processed`](https://paritytech.github.io/polkadot-sdk/master/pallet_message_queue/pallet/enum.Event.html#variant.Processed){target=\_blank} events.
91+
- This topic acts as a **logical identifier** (`message_id`) for the XCM, allowing you to group and trace related messages across chains.
9192

92-
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. Uniqueness must be enforced by the message creator if required.
93+
> ⚠️ **Note:** The topic is **not guaranteed to be unique**. If uniqueness is required (e.g. for deduplication), it must be enforced by the message creator.
9394

94-
These features are available in runtimes built from **`stable2503-5` or later**.
95+
These features are available on runtimes built from **`stable2503-5` or later**.
9596

9697
### Understanding `message_id`
9798

@@ -274,7 +275,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
274275

275276
--8<-- 'code/tutorials/interoperability/xcm-observability/execution-with-error.html'
276277

277-
Common errors include missing assets, execution limit exceeded, or bad asset location. This output is available on runtimes from **`stable2506` or later**, and is often sufficient for identifying common issues such as missing assets or execution limits.
278+
Common errors include missing assets, exceeded execution limits, or invalid asset locations. This nested error reporting, introduced in runtimes from **`stable2506` onward**, usually suffices to diagnose typical issues.
278279

279280
2. **Replay Using Chopsticks for Full Logs**
280281

@@ -293,7 +294,7 @@ When XCMs fail, the entire transaction **rolls back** and **no failure events ar
293294
3. Inspect logs for the failing XCM instruction and reason
294295
4. Adjust weight limits, asset locations, or message construction as needed
295296

296-
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/) for replay instructions.
297+
See [Replay and Dry Run XCMs Using Chopsticks](/tutorials/interoperability/replay-and-dry-run-xcms/){target=\_blank} for replay instructions.
297298

298299
## Best Practices
299300

0 commit comments

Comments
 (0)