mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Fixes accumulated errors in the Substrate code. Modifies the runtime build to work with a modern clippy. Removes e2e tests from the workspace.
31 lines
1.0 KiB
Rust
31 lines
1.0 KiB
Rust
use serai_primitives::*;
|
|
|
|
pub use serai_in_instructions_primitives as primitives;
|
|
use primitives::SignedBatch;
|
|
use serai_validator_sets_primitives::Session;
|
|
|
|
#[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))]
|
|
#[cfg_attr(all(feature = "std", feature = "serde"), derive(serde::Deserialize))]
|
|
pub enum Call {
|
|
execute_batch { batch: SignedBatch },
|
|
}
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
|
|
#[cfg_attr(all(feature = "std", feature = "serde"), derive(serde::Deserialize))]
|
|
pub enum Event {
|
|
Batch {
|
|
network: NetworkId,
|
|
publishing_session: Session,
|
|
id: u32,
|
|
external_network_block_hash: BlockHash,
|
|
in_instructions_hash: [u8; 32],
|
|
in_instruction_results: bitvec::vec::BitVec<u8, bitvec::order::Lsb0>,
|
|
},
|
|
Halt {
|
|
network: NetworkId,
|
|
},
|
|
}
|