Remove coins, validator-sets use of Substrate's event system

We've defined our own.
This commit is contained in:
Luke Parker
2025-09-15 21:32:20 -04:00
parent c0a4d85ae6
commit cd4ffa862f
2 changed files with 0 additions and 8 deletions

View File

@@ -54,8 +54,6 @@ mod pallet {
/// The configuration of this pallet. /// The configuration of this pallet.
#[pallet::config] #[pallet::config]
pub trait Config<I: 'static = ()>: frame_system::Config<AccountId = Public> { pub trait Config<I: 'static = ()>: frame_system::Config<AccountId = Public> {
/// The event type.
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
/// What decides if mints are allowed. /// What decides if mints are allowed.
type AllowMint: AllowMint; type AllowMint: AllowMint;
} }

View File

@@ -90,8 +90,6 @@ mod pallet {
#[pallet::config] #[pallet::config]
pub trait Config: frame_system::Config + coins_pallet::Config { pub trait Config: frame_system::Config + coins_pallet::Config {
type RuntimeEvent: IsType<<Self as frame_system::Config>::RuntimeEvent> + From<Event<Self>>;
// type ShouldEndSession: ShouldEndSession<BlockNumberFor<Self>>; // type ShouldEndSession: ShouldEndSession<BlockNumberFor<Self>>;
} }
@@ -219,10 +217,6 @@ mod pallet {
type DelayedDeallocations = DelayedDeallocations<T>; type DelayedDeallocations = DelayedDeallocations<T>;
} }
#[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> {}
/* /*
/// The generated key pair for a given validator set instance. /// The generated key pair for a given validator set instance.
#[pallet::storage] #[pallet::storage]