Skip to content

Commit 68babf4

Browse files
Add xcm recorder to all runtimes (#576)
The `XcmRecorder` config item is necessary for the `DryRunApi` to return the `local_xcm`. `pallet-xcm` can be used as the implementation. Added it to all runtimes. --------- Co-authored-by: Bastian Köcher <git@kchr.de>
1 parent 1a8ac56 commit 68babf4

File tree

11 files changed

+11
-10
lines changed

11 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1313
- Coretime chain: allow cross-chain region transfers ([polkadot-fellows/runtimes/pull/483](https://github.com/polkadot-fellows/runtimes/pull/483))
1414
- Unstake the last remaining corrupt ledger ([polkadot-fellows/runtimes/pull/538](https://github.com/polkadot-fellows/runtimes/pull/538))
1515
- Disallow `add_sub` and `set_subs` from `NonTransfer` proxy type in people chain runtimes ([polkadot-fellows/runtimes#518](https://github.com/polkadot-fellows/runtimes/pull/518))
16+
- Added the `XcmRecorder` config item to all runtimes so `local_xcm` can be returned from `DryRunApi` ([polkadot-fellows/runtimes#576](https://github.com/polkadot-fellows/runtimes/pull/576))
1617

1718
### Added
1819

relay/kusama/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub struct XcmConfig;
189189
impl xcm_executor::Config for XcmConfig {
190190
type RuntimeCall = RuntimeCall;
191191
type XcmSender = XcmRouter;
192-
type XcmRecorder = ();
192+
type XcmRecorder = XcmPallet;
193193
type AssetTransactor = LocalAssetTransactor;
194194
type OriginConverter = LocalOriginConverter;
195195
type IsReserve = ();

relay/polkadot/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub struct XcmConfig;
207207
impl xcm_executor::Config for XcmConfig {
208208
type RuntimeCall = RuntimeCall;
209209
type XcmSender = XcmRouter;
210-
type XcmRecorder = ();
210+
type XcmRecorder = XcmPallet;
211211
type AssetTransactor = LocalAssetTransactor;
212212
type OriginConverter = LocalOriginConverter;
213213
// Polkadot Relay recognises no chains which act as reserves.

system-parachains/asset-hubs/asset-hub-kusama/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub struct XcmConfig;
327327
impl xcm_executor::Config for XcmConfig {
328328
type RuntimeCall = RuntimeCall;
329329
type XcmSender = XcmRouter;
330-
type XcmRecorder = ();
330+
type XcmRecorder = PolkadotXcm;
331331
type AssetTransactor = AssetTransactors;
332332
type OriginConverter = XcmOriginToTransactDispatchOrigin;
333333
// Asset Hub trusts only particular, pre-configured bridged locations from a different consensus

system-parachains/asset-hubs/asset-hub-polkadot/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ pub struct XcmConfig;
388388
impl xcm_executor::Config for XcmConfig {
389389
type RuntimeCall = RuntimeCall;
390390
type XcmSender = XcmRouter;
391-
type XcmRecorder = ();
391+
type XcmRecorder = PolkadotXcm;
392392
type AssetTransactor = AssetTransactors;
393393
type OriginConverter = XcmOriginToTransactDispatchOrigin;
394394
// Asset Hub trusts only particular, pre-configured bridged locations from a different consensus

system-parachains/collectives/collectives-polkadot/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub struct XcmConfig;
201201
impl xcm_executor::Config for XcmConfig {
202202
type RuntimeCall = RuntimeCall;
203203
type XcmSender = XcmRouter;
204-
type XcmRecorder = ();
204+
type XcmRecorder = PolkadotXcm;
205205
type AssetTransactor = FungibleTransactor;
206206
type OriginConverter = XcmOriginToTransactDispatchOrigin;
207207
// Collectives does not recognize a reserve location for any asset. Users must teleport DOT

system-parachains/coretime/coretime-kusama/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub struct XcmConfig;
189189
impl xcm_executor::Config for XcmConfig {
190190
type RuntimeCall = RuntimeCall;
191191
type XcmSender = XcmRouter;
192-
type XcmRecorder = ();
192+
type XcmRecorder = PolkadotXcm;
193193
type AssetTransactor = AssetTransactors;
194194
type OriginConverter = XcmOriginToTransactDispatchOrigin;
195195
// Coretime chain does not recognize a reserve location for any asset. Users must teleport KSM

system-parachains/coretime/coretime-polkadot/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ pub struct XcmConfig;
212212
impl xcm_executor::Config for XcmConfig {
213213
type RuntimeCall = RuntimeCall;
214214
type XcmSender = XcmRouter;
215-
type XcmRecorder = ();
215+
type XcmRecorder = PolkadotXcm;
216216
type AssetTransactor = AssetTransactors;
217217
type OriginConverter = XcmOriginToTransactDispatchOrigin;
218218
// Coretime chain does not recognize a reserve location for any asset. Users must teleport DOT

system-parachains/encointer/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub struct XcmConfig;
162162
impl xcm_executor::Config for XcmConfig {
163163
type RuntimeCall = RuntimeCall;
164164
type XcmSender = XcmRouter;
165-
type XcmRecorder = ();
165+
type XcmRecorder = PolkadotXcm;
166166
type AssetTransactor = FungibleTransactor;
167167
type OriginConverter = XcmOriginToTransactDispatchOrigin;
168168
type IsReserve = ();

system-parachains/people/people-kusama/src/xcm_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub struct XcmConfig;
192192
impl xcm_executor::Config for XcmConfig {
193193
type RuntimeCall = RuntimeCall;
194194
type XcmSender = XcmRouter;
195-
type XcmRecorder = ();
195+
type XcmRecorder = PolkadotXcm;
196196
type AssetTransactor = FungibleTransactor;
197197
type OriginConverter = XcmOriginToTransactDispatchOrigin;
198198
// People chain does not recognize a reserve location for any asset. Users must teleport KSM

0 commit comments

Comments
 (0)