Skip to content

Commit 83afbee

Browse files
Expose more constants for pallet-xcm (#9139)
Let's expose more constants, similar as `AdvertisedXcmVersion`. ![image](https://github.com/user-attachments/assets/5ddc265f-546b-45a0-8235-3f53c3108823) --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent cd39c26 commit 83afbee

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

polkadot/xcm/pallet-xcm/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ pub mod pallet {
296296
type Weigher: WeightBounds<<Self as Config>::RuntimeCall>;
297297

298298
/// This chain's Universal Location.
299+
#[pallet::constant]
299300
type UniversalLocation: Get<InteriorLocation>;
300301

301302
/// The runtime `Origin` type.
@@ -327,9 +328,11 @@ pub mod pallet {
327328
type SovereignAccountOf: ConvertLocation<Self::AccountId>;
328329

329330
/// The maximum number of local XCM locks that a single account may have.
331+
#[pallet::constant]
330332
type MaxLockers: Get<u32>;
331333

332334
/// The maximum number of consumers a single remote lock may have.
335+
#[pallet::constant]
333336
type MaxRemoteLockConsumers: Get<u32>;
334337

335338
/// The ID type for local consumers of remote locks.

prdoc/pr_9139.prdoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
title: Expose more constants for pallet-xcm
2+
doc:
3+
- audience:
4+
- Runtime Dev
5+
- Runtime User
6+
description: |-
7+
Exposes more constants (UniversalLocation, MaxLockers, MaxRemoteLockConsumers), similar as `AdvertisedXcmVersion`.
8+
crates:
9+
- name: pallet-xcm
10+
bump: patch

0 commit comments

Comments
 (0)