tycho-executor 0.3.6

TON-compatible transaction executor for the Tycho node.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Execution result.
pub type TxResult<T, E = TxError> = ::core::result::Result<T, E>;

/// Execution error.
#[derive(Debug, thiserror::Error)]
pub enum TxError {
    #[error("transaction skipped")]
    Skipped,
    #[error("fatal error")]
    Fatal(#[from] anyhow::Error),
}

impl From<tycho_types::error::Error> for TxError {
    #[inline]
    fn from(value: tycho_types::error::Error) -> Self {
        Self::Fatal(anyhow::Error::from(value))
    }
}