mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-15 07:14:57 +00:00
21 lines
841 B
Rust
21 lines
841 B
Rust
|
use serai_primitives::*;
|
||
|
|
||
|
pub use serai_in_instructions_primitives as primitives;
|
||
|
use primitives::SignedBatch;
|
||
|
|
||
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode)]
|
||
|
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))]
|
||
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||
|
pub enum Call {
|
||
|
execute_batch { batch: SignedBatch },
|
||
|
}
|
||
|
|
||
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode)]
|
||
|
#[cfg_attr(feature = "borsh", derive(borsh::BorshSerialize, borsh::BorshDeserialize))]
|
||
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||
|
pub enum Event {
|
||
|
Batch { network: NetworkId, id: u32, block: BlockHash, instructions_hash: [u8; 32] },
|
||
|
InstructionFailure { network: NetworkId, id: u32, index: u32 },
|
||
|
Halt { network: NetworkId },
|
||
|
}
|