mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
We prior required they had the same encoding, yet this ensures they do by making them one and the same. This does require an large, ugly, From/TryInto block which is deemed preferable for moving this more and more into syntax (from semantics). Further improvements (notably re: Extra) is possible, and this already lets us strip some members from the Call enum.
14 lines
493 B
Rust
14 lines
493 B
Rust
use frame_support::dispatch::{DispatchInfo, DispatchError};
|
|
|
|
use serai_primitives::SeraiAddress;
|
|
|
|
#[derive(Clone, PartialEq, Eq, Debug, scale::Encode, scale::Decode, scale_info::TypeInfo)]
|
|
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] },
|
|
}
|