Skip to content

Commit 93d1e2d

Browse files
committed
Use new construct_runtime! syntax
1 parent 4a7fc87 commit 93d1e2d

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

pallets/relayer-set/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ pub mod pallet {
4646
#[pallet::config]
4747
pub trait Config: frame_system::Config {
4848
/// The overarching event type.
49+
#[allow(deprecated)]
50+
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
4951
/// Weight information for extrinsics in this pallet.
5052
type WeightInfo: WeightInfo;
5153
/// Origin for adding or removing a relayer.

pallets/transaction-storage/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ pub mod pallet {
147147
#[pallet::config]
148148
pub trait Config: frame_system::Config {
149149
/// The overarching event type.
150+
#[allow(deprecated)]
151+
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
150152
/// Weight information for extrinsics in this pallet.
151153
type WeightInfo: WeightInfo;
152154
/// Maximum number of indexed transactions in a block.

runtime/src/lib.rs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ impl pallet_session::Config for Runtime {
276276
}
277277

278278
impl pallet_session::historical::Config for Runtime {
279+
type RuntimeEvent = RuntimeEvent;
279280
type FullIdentification = Self::ValidatorId;
280281
type FullIdentificationOf = Self::ValidatorIdOf;
281282
}
@@ -382,27 +383,27 @@ construct_runtime!(
382383
pub struct Runtime {
383384
System: frame_system = 0,
384385
// Babe must be called before Session
385-
Babe: pallet_babe::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 1,
386-
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 2,
386+
Babe: pallet_babe = 1,
387+
Timestamp: pallet_timestamp = 2,
387388
// Authorship must be before session in order to note author in the correct session.
388-
Authorship: pallet_authorship::{Pallet, Storage} = 10,
389-
Offences: pallet_offences::{Pallet, Storage, Event} = 11,
389+
Authorship: pallet_authorship = 10,
390+
Offences: pallet_offences = 11,
390391
Historical: pallet_session::historical = 12,
391-
ValidatorSet: pallet_validator_set::{Pallet, Storage, Event<T>, Config<T>} = 13,
392+
ValidatorSet: pallet_validator_set = 13,
392393
Session: pallet_session = 14,
393-
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 15,
394+
Grandpa: pallet_grandpa = 15,
394395

395396
// Storage
396-
TransactionStorage: pallet_transaction_storage::{Pallet, Call, Storage, Event<T>} = 40,
397+
TransactionStorage: pallet_transaction_storage = 40,
397398

398399
// Bridge
399-
RelayerSet: pallet_relayer_set::{Pallet, Storage, Event<T>, Config<T>} = 50,
400-
BridgeRococoGrandpa: pallet_bridge_grandpa::{Pallet, Call, Storage, Event<T>, Config<T>} = 51,
401-
BridgeRococoParachains: pallet_bridge_parachains::{Pallet, Call, Storage, Event<T>, Config<T>} = 52,
402-
BridgeRococoMessages: pallet_bridge_messages::{Pallet, Call, Storage, Event<T>, Config<T>} = 53,
400+
RelayerSet: pallet_relayer_set = 50,
401+
BridgeRococoGrandpa: pallet_bridge_grandpa = 51,
402+
BridgeRococoParachains: pallet_bridge_parachains = 52,
403+
BridgeRococoMessages: pallet_bridge_messages = 53,
403404

404405
// sudo
405-
Sudo: pallet_sudo::{Pallet, Call, Storage, Event<T>, Config<T>} = 255,
406+
Sudo: pallet_sudo = 255,
406407
}
407408
);
408409

0 commit comments

Comments
 (0)