Skip to content

Commit ff056c1

Browse files
authored
Update polkadot-stable2506 (#1030)
* update polkadot-stable2506 * update * merge * add RUSTFLAGS substrate_runtime * fix * fix
1 parent cee8e09 commit ff056c1

File tree

32 files changed

+43
-99
lines changed

32 files changed

+43
-99
lines changed

Cargo.dev.toml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,35 @@ scale-info = { version = "2.10.0", default-features = false, features = ["derive
3636
serde = { version = "1.0.214" }
3737
parity-scale-codec = { version = "3.6.12", default-features = false, features = ["max-encoded-len"] }
3838

39-
cumulus-pallet-xcm = { version = "0.19.1", default-features = false }
40-
cumulus-primitives-core = { version = "0.18.1", default-features = false }
41-
frame-benchmarking = { version = "40.0.0", default-features = false }
42-
frame-support = { version = "40.1.0", default-features = false }
43-
frame-system = { version = "40.1.0", default-features = false }
44-
pallet-balances = { version = "41.1.0", default-features = false }
45-
pallet-elections-phragmen = { version = "41.1.0", default-features = false }
46-
pallet-message-queue = { version = "43.1.0", default-features = false }
47-
pallet-preimage = { version = "40.0.0", default-features = false }
48-
pallet-root-testing = { version = "16.0.0", default-features = false }
49-
pallet-scheduler = { version = "41.0.0", default-features = false }
50-
pallet-timestamp = { version = "39.0.0", default-features = false }
51-
pallet-treasury = { version = "39.0.0", default-features = false }
52-
pallet-xcm = { version = "19.1.0", default-features = false }
53-
polkadot-parachain-primitives = { version = "16.1.0", default-features = false }
54-
polkadot-runtime-common = { version = "19.1.0", default-features = false }
55-
polkadot-runtime-parachains = { version = "19.1.0", default-features = false }
56-
sp-api = { version = "36.0.1", default-features = false }
57-
sp-application-crypto = { version = "40.1.0", default-features = false }
58-
sp-arithmetic = { version = "26.1.0", default-features = false }
59-
sp-core = { version = "36.1.0", default-features = false }
60-
sp-io = { version = "40.0.0", default-features = false }
61-
sp-runtime = { version = "41.1.0", default-features = false }
62-
sp-runtime-interface = { version = "29.0.1", default-features = false }
63-
sp-staking = { version = "38.0.0", default-features = false }
39+
cumulus-pallet-xcm = { version = "0.20.0", default-features = false }
40+
cumulus-primitives-core = { version = "0.19.0", default-features = false }
41+
frame-benchmarking = { version = "41.0.0", default-features = false }
42+
frame-support = { version = "41.0.0", default-features = false }
43+
frame-system = { version = "41.0.0", default-features = false }
44+
pallet-balances = { version = "42.0.0", default-features = false }
45+
pallet-elections-phragmen = { version = "42.0.0", default-features = false }
46+
pallet-message-queue = { version = "44.0.0", default-features = false }
47+
pallet-preimage = { version = "41.0.0", default-features = false }
48+
pallet-root-testing = { version = "17.0.0", default-features = false }
49+
pallet-scheduler = { version = "42.0.0", default-features = false }
50+
pallet-timestamp = { version = "40.0.0", default-features = false }
51+
pallet-treasury = { version = "40.0.0", default-features = false }
52+
pallet-xcm = { version = "20.1.0", default-features = false }
53+
polkadot-parachain-primitives = { version = "17.0.0", default-features = false }
54+
polkadot-runtime-common = { version = "20.0.0", default-features = false }
55+
polkadot-runtime-parachains = { version = "20.0.1", default-features = false }
56+
sp-api = { version = "37.0.0", default-features = false }
57+
sp-application-crypto = { version = "41.0.0", default-features = false }
58+
sp-arithmetic = { version = "27.0.0", default-features = false }
59+
sp-core = { version = "37.0.0", default-features = false }
60+
sp-io = { version = "41.0.1", default-features = false }
61+
sp-runtime = { version = "42.0.0", default-features = false }
62+
sp-runtime-interface = { version = "30.0.0", default-features = false }
63+
sp-staking = { version = "39.0.0", default-features = false }
6464
sp-std = { version = "14.0.0", default-features = false }
6565
sp-storage = { version = "22.0.0", default-features = false }
66-
xcm = { version = "16.1.0", package = "staging-xcm", default-features = false }
67-
xcm-builder = { version = "20.0.0", package = "staging-xcm-builder", default-features = false }
68-
xcm-executor = { version = "19.1.0", package = "staging-xcm-executor", default-features = false }
66+
xcm = { version = "17.0.0", package = "staging-xcm", default-features = false }
67+
xcm-builder = { version = "21.0.0", package = "staging-xcm-builder", default-features = false }
68+
xcm-executor = { version = "20.0.0", package = "staging-xcm-executor", default-features = false }
6969

70-
xcm-simulator = { version = "20.0.0" }
70+
xcm-simulator = { version = "21.0.0" }

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
check: githooks
2-
./scripts/run.sh check --no-default-features --target=wasm32v1-none
2+
RUSTFLAGS="${RUSTFLAGS:-} --cfg substrate_runtime" ./scripts/run.sh check --no-default-features --target=wasm32v1-none
33

44
check-tests: githooks
55
./scripts/run.sh check --tests

asset-registry/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ pub mod module {
3434

3535
#[pallet::config]
3636
pub trait Config: frame_system::Config {
37-
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
38-
3937
/// Additional non-standard metadata to store for each asset
4038
type CustomMetadata: Parameter + Member + TypeInfo + MaxEncodedLen;
4139

asset-registry/src/mock/para.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ parameter_type_with_key! {
6969
}
7070

7171
impl orml_tokens::Config for Runtime {
72-
type RuntimeEvent = RuntimeEvent;
7372
type Balance = Balance;
7473
type Amount = Amount;
7574
type CurrencyId = CurrencyId;
@@ -124,7 +123,6 @@ parameter_types! {
124123
}
125124

126125
impl orml_asset_registry::Config for Runtime {
127-
type RuntimeEvent = RuntimeEvent;
128126
type Balance = Balance;
129127
type AssetId = ParaAssetId;
130128
type AuthorityOrigin = AssetAuthority;
@@ -319,7 +317,6 @@ parameter_type_with_key! {
319317
}
320318

321319
impl orml_xtokens::Config for Runtime {
322-
type RuntimeEvent = RuntimeEvent;
323320
type Balance = Balance;
324321
type CurrencyId = CurrencyId;
325322
type CurrencyIdConvert = CurrencyIdConvert;
@@ -338,12 +335,10 @@ impl orml_xtokens::Config for Runtime {
338335
}
339336

340337
impl orml_xcm::Config for Runtime {
341-
type RuntimeEvent = RuntimeEvent;
342338
type SovereignOrigin = EnsureRoot<AccountId>;
343339
}
344340

345341
impl orml_xcm_mock_message_queue::Config for Runtime {
346-
type RuntimeEvent = RuntimeEvent;
347342
type XcmExecutor = XcmExecutor<XcmConfig>;
348343
}
349344

auction/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ pub mod module {
3535

3636
#[pallet::config]
3737
pub trait Config: frame_system::Config {
38-
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
39-
4038
/// The balance type for bidding.
4139
type Balance: Parameter
4240
+ Member

auction/src/mock.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ impl AuctionHandler<AccountId, Balance, BlockNumber, AuctionId> for Handler {
4848
}
4949

5050
impl Config for Runtime {
51-
type RuntimeEvent = RuntimeEvent;
5251
type Balance = Balance;
5352
type AuctionId = AuctionId;
5453
type Handler = Handler;

authority/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ pub mod module {
205205

206206
#[pallet::config]
207207
pub trait Config: frame_system::Config {
208-
/// The overarching event type.
209-
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
210-
211208
/// The outer origin type.
212209
type RuntimeOrigin: From<DelayedOrigin<BlockNumberFor<Self>, <Self as Config>::PalletsOrigin>>
213210
+ IsType<<Self as frame_system::Config>::RuntimeOrigin>

authority/src/mock.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ impl AsOriginId<RuntimeOrigin, OriginCaller> for MockAsOriginId {
138138
}
139139

140140
impl Config for Runtime {
141-
type RuntimeEvent = RuntimeEvent;
142141
type RuntimeOrigin = RuntimeOrigin;
143142
type PalletsOrigin = OriginCaller;
144143
type Scheduler = Scheduler;

benchmarking/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
mod tests;
77

88
pub use frame_benchmarking::{
9-
benchmarking, whitelisted_caller, BenchmarkBatch, BenchmarkConfig, BenchmarkError, BenchmarkList,
9+
benchmarking, current_time, whitelisted_caller, BenchmarkBatch, BenchmarkConfig, BenchmarkError, BenchmarkList,
1010
BenchmarkMetadata, BenchmarkParameter, BenchmarkRecording, BenchmarkResult, Benchmarking, BenchmarkingSetup,
1111
Recording,
1212
};
@@ -836,9 +836,9 @@ macro_rules! impl_benchmark {
836836
);
837837

838838
// Time the storage root recalculation.
839-
let start_storage_root = $crate::benchmarking::current_time();
839+
let start_storage_root = $crate::current_time();
840840
$crate::storage_root($crate::StateVersion::V0);
841-
let finish_storage_root = $crate::benchmarking::current_time();
841+
let finish_storage_root = $crate::current_time();
842842
let elapsed_storage_root = finish_storage_root - start_storage_root;
843843

844844
let skip_meta = [ $( stringify!($name_skip_meta).as_ref() ),* ];

currencies/src/mock.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ where
7575
}
7676

7777
impl orml_tokens::Config for Runtime {
78-
type RuntimeEvent = RuntimeEvent;
7978
type Balance = Balance;
8079
type Amount = i64;
8180
type CurrencyId = CurrencyId;

0 commit comments

Comments
 (0)