mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
Uses a full-fledged serai-abi to do so. Removes use of UncheckedExtrinsic as a pointlessly (for us) length-prefixed block with a more complicated signing algorithm than advantageous. In the future, we should considering consolidating the various primitives crates. I'm not convinced we benefit from one primitives crate per pallet.
15 lines
570 B
Rust
15 lines
570 B
Rust
use frame_support::dispatch::{DispatchInfo, DispatchError};
|
|
|
|
use serai_primitives::SeraiAddress;
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
pub enum Event {
|
|
ExtrinsicSuccess { dispatch_info: DispatchInfo },
|
|
ExtrinsicFailed { dispatch_error: DispatchError, dispatch_info: DispatchInfo },
|
|
CodeUpdated,
|
|
NewAccount { account: SeraiAddress },
|
|
KilledAccount { account: SeraiAddress },
|
|
Remarked { sender: SeraiAddress, hash: [u8; 32] },
|
|
}
|