Skip to content

Commit a689c15

Browse files
committed
fix: formatting details
1 parent e1cdea5 commit a689c15

File tree

6 files changed

+422
-442
lines changed

6 files changed

+422
-442
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<div class="termynal" data-termynal>
2-
<span data-ty="input">Dry run result (failure):</span>
3-
<span data-ty="progress"></span>
4-
<span data-ty>execution_result: {</span>
5-
<span data-ty> success: false,</span>
6-
<span data-ty> value: {</span>
7-
<span data-ty> post_info: { ... },</span>
8-
<span data-ty> error: {</span>
9-
<span data-ty> type: 'Module',</span>
10-
<span data-ty> value: {</span>
11-
<span data-ty> type: 'PolkadotXcm',</span>
12-
<span data-ty> value: { type: 'LocalExecutionIncomplete', value: undefined }</span>
13-
<span data-ty> }</span>
14-
<span data-ty> }</span>
15-
<span data-ty> }</span>
16-
<span data-ty>},</span>
17-
<span data-ty>emitted_events: [],</span>
18-
<span data-ty>local_xcm: undefined,</span>
19-
<span data-ty>forwarded_xcms: []</span>
2+
<span data-ty="input">npx tsx dry-run-call.ts</span>
3+
<pre data-ty>
4+
execution_result: {
5+
"success": false,
6+
"value": {
7+
"post_info": { "actual_weight": 123456, "pays_fee": "Yes" },
8+
"error": {
9+
"type": "Module",
10+
"value": {
11+
"type": "PolkadotXcm",
12+
"value": { "type": "LocalExecutionIncomplete", "value": null }
13+
}
14+
}
15+
}
16+
}
17+
</pre>
18+
<span data-ty>❌ Dry run failed: LocalExecutionIncomplete</span>
19+
<span data-ty>✅ Process completed, exiting...</span>
2020
</div>
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<div class="termynal" data-termynal>
2-
<span data-ty="input">Dry run result (success):</span>
3-
<span data-ty="progress"></span>
4-
<span data-ty>execution_result: {</span>
5-
<span data-ty> success: true,</span>
6-
<span data-ty> value: { ... }</span>
7-
<span data-ty>},</span>
8-
<span data-ty>emitted_events: [ ... ],</span>
9-
<span data-ty>local_xcm: { ... },</span>
10-
<span data-ty>forwarded_xcms: [ ... ]</span>
2+
<span data-ty="input">npx tsx dry-run-call.ts</span>
3+
<pre data-ty>
4+
execution_result: {
5+
"success": true,
6+
"value": {
7+
"post_info": { "actual_weight": 123456, "pays_fee": "Yes" },
8+
"result": "Ok"
9+
}
10+
}
11+
emitted_events: [ { "section": "Balances", "method": "Transfer", "data": { "from": "0x...", "to": "0x...", "amount": 1000000000 } } ]
12+
local_xcm: { "type": "SomeType", "value": { ... } }
13+
forwarded_xcms: []
14+
</pre>
15+
<span data-ty>✅ Dry run succeeded</span>
16+
<span data-ty>✅ Process completed, exiting...</span>
1117
</div>

.snippets/code/tutorials/interoperability/replay-and-dry-run-xcms/launch-chopsticks.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<div class="termynal" data-termynal>
2+
<span data-ty="input">npx @acala-network/chopsticks xcm \ -r polkadot \ -p configs/polkadot-asset-hub-override.yaml \ -p acala</span>
23
<span data-ty>[09:29:14.988] INFO: Polkadot Asset Hub RPC listening on http://[::]:8000 and ws://[::]:8000</span>
34
<span data-ty>[09:29:14.988] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/acala.yml</span>
45
<span data-ty>[09:29:15.984] INFO: Acala RPC listening on http://[::]:8001 and ws://[::]:8001</span>

.snippets/code/tutorials/interoperability/replay-and-dry-run-xcms/replay-xcm-result.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<div class="termynal" data-termynal>
2-
<span data-ty>Executing XCM: {</span>
3-
<span data-ty> "type": "PolkadotXcm",</span>
4-
<span data-ty> "value": {</span>
5-
<span data-ty> "type": "limited_reserve_transfer_assets",</span>
6-
<span data-ty> "value": {</span>
7-
<span data-ty> "dest": { ... },</span>
8-
<span data-ty> "beneficiary": { ... },</span>
9-
<span data-ty> "assets": { ... },</span>
10-
<span data-ty> "fee_asset_item": 0,</span>
11-
<span data-ty> "weight_limit": {</span>
12-
<span data-ty> "type": "Unlimited"</span>
13-
<span data-ty> }</span>
14-
<span data-ty> }</span>
15-
<span data-ty> }</span>
16-
<span data-ty>}</span>
2+
<span data-ty="input">npx tsx replay-xcm.ts</span>
3+
<pre data-ty>
4+
executing xcm: {
5+
"type": "polkadotxcm",
6+
"value": {
7+
"type": "limited_reserve_transfer_assets",
8+
"value": {
9+
"dest": { "parents": 0, "interior": { "X1": [{ "Parachain": 2006 }] } },
10+
"beneficiary": { "parents": 0, "interior": { "X1": [{ "AccountId32": { "network": null, "id": "0x..." } }] } },
11+
"assets": [{ "id": { "Concrete": { "parents": 0, "interior": "Here" } }, "fun": { "Fungible": 120000000000 } }],
12+
"fee_asset_item": 0,
13+
"weight_limit": { "type": "Unlimited" }
14+
}
15+
}
16+
}
17+
</pre>
1718
<span data-ty>📦 Included in block #9079592: 0x227a11c64f6051ba2e090a13abd17e5f7581640a80f6c03fc2d43fac66ab7949</span>
1819
<span data-ty>📣 Event: Balances { "type": "Upgraded", "value": { ... } }</span>
1920
<span data-ty>📣 Event: Balances { "type": "Withdraw", "value": { ... } }</span>

0 commit comments

Comments
 (0)