mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
move economic security into it's own pallet (#596)
* move economic security into it's own pallet * fix deny * Update Cargo.toml, .github for the new crates * Remove unused import --------- Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
@@ -34,6 +34,8 @@ pub use pallet_grandpa as grandpa;
|
||||
pub use genesis_liquidity_pallet as genesis_liquidity;
|
||||
pub use emissions_pallet as emissions;
|
||||
|
||||
pub use economic_security_pallet as economic_security;
|
||||
|
||||
// Actually used by the runtime
|
||||
use sp_core::OpaqueMetadata;
|
||||
use sp_std::prelude::*;
|
||||
@@ -257,6 +259,10 @@ impl emissions::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
|
||||
impl economic_security::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
|
||||
// for publishing equivocation evidences.
|
||||
impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime
|
||||
where
|
||||
@@ -336,6 +342,8 @@ construct_runtime!(
|
||||
GenesisLiquidity: genesis_liquidity,
|
||||
Emissions: emissions,
|
||||
|
||||
EconomicSecurity: economic_security,
|
||||
|
||||
InInstructions: in_instructions,
|
||||
|
||||
Signals: signals,
|
||||
|
||||
Reference in New Issue
Block a user