diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0270bee28..05c259725 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,6 +63,11 @@ jobs: -p serai-dex-pallet \ -p serai-validator-sets-primitives \ -p serai-validator-sets-pallet \ + -p serai-genesis-liquidity-primitives \ + -p serai-genesis-liquidity-pallet \ + -p serai-emissions-primitives \ + -p serai-emissions-pallet \ + -p serai-economic-security-pallet \ -p serai-in-instructions-primitives \ -p serai-in-instructions-pallet \ -p serai-signals-primitives \ diff --git a/Cargo.toml b/Cargo.toml index 4593d40da..ebd877f58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,6 +79,14 @@ members = [ "substrate/validator-sets/primitives", "substrate/validator-sets/pallet", + "substrate/genesis-liquidity/primitives", + "substrate/genesis-liquidity/pallet", + + "substrate/emissions/primitives", + "substrate/emissions/pallet", + + "substrate/economic-security/pallet", + "substrate/in-instructions/primitives", "substrate/in-instructions/pallet", diff --git a/substrate/abi/src/economic_security.rs b/substrate/abi/src/economic_security.rs index 189cab58f..fc548def9 100644 --- a/substrate/abi/src/economic_security.rs +++ b/substrate/abi/src/economic_security.rs @@ -4,5 +4,5 @@ use serai_primitives::NetworkId; #[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub enum Event { - EconomicSecurityBlock { network: NetworkId, block: u64 }, + EconomicSecurityReached { network: NetworkId }, } diff --git a/substrate/economic-security/pallet/src/lib.rs b/substrate/economic-security/pallet/src/lib.rs index a38c9a4df..c06873c74 100644 --- a/substrate/economic-security/pallet/src/lib.rs +++ b/substrate/economic-security/pallet/src/lib.rs @@ -19,7 +19,7 @@ pub mod pallet { #[pallet::event] #[pallet::generate_deposit(fn deposit_event)] pub enum Event { - EconomicSecurityBlock { network: NetworkId, block: u64 }, + EconomicSecurityReached { network: NetworkId }, } #[pallet::pallet] @@ -41,10 +41,7 @@ pub mod pallet { ::AllowMint::is_allowed(&Balance { coin, amount: Amount(1) }) { EconomicSecurityBlock::::set(coin.network(), Some(n)); - Self::deposit_event(Event::EconomicSecurityBlock { - network: coin.network(), - block: n.saturated_into::(), - }); + Self::deposit_event(Event::EconomicSecurityReached { network: coin.network() }); } }