mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +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:
8
substrate/abi/src/economic_security.rs
Normal file
8
substrate/abi/src/economic_security.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use serai_primitives::NetworkId;
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
||||
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub enum Event {
|
||||
EconomicSecurityReached { network: NetworkId },
|
||||
}
|
||||
@@ -20,6 +20,8 @@ pub mod validator_sets;
|
||||
pub mod genesis_liquidity;
|
||||
pub mod emissions;
|
||||
|
||||
pub mod economic_security;
|
||||
|
||||
pub mod in_instructions;
|
||||
|
||||
pub mod signals;
|
||||
@@ -60,6 +62,7 @@ pub enum Event {
|
||||
ValidatorSets(validator_sets::Event),
|
||||
GenesisLiquidity(genesis_liquidity::Event),
|
||||
Emissions,
|
||||
EconomicSecurity(economic_security::Event),
|
||||
InInstructions(in_instructions::Event),
|
||||
Signals(signals::Event),
|
||||
Babe,
|
||||
|
||||
Reference in New Issue
Block a user