algonaut_sandbox 0.2.1

Utility functions for the Algorand Sandbox.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate derive_more;
use std::fmt::Debug;
use thiserror::Error;

#[derive(Debug, Error, Clone)]
pub enum SandboxError {
    #[error("Sandbox error: {0}")]
    General(String),
}

impl From<algonaut::error::ServiceError> for SandboxError {
    fn from(error: algonaut::error::ServiceError) -> Self {
        SandboxError::General(error.to_string())
    }
}