use derive_more::From;
#[cfg(any(feature = "std", test, doc))]
use crate::engine::off_chain::OffChainError;
#[derive(Debug, From, PartialEq, Eq)]
pub enum Error {
Decode(scale::Error),
#[cfg(any(feature = "std", test, doc))]
OffChain(OffChainError),
CalleeTrapped,
CalleeReverted,
KeyNotFound,
_BelowSubsistenceThreshold,
TransferFailed,
_EndowmentTooLow,
CodeNotFound,
NotCallable,
Unknown,
LoggingDisabled,
CallRuntimeFailed,
EcdsaRecoveryFailed,
Sr25519VerifyFailed,
}
pub type Result<T> = core::result::Result<T, Error>;