ibc-grpc-server 0.1.0

IBC gRPC server implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::str::Utf8Error;

use derive_more::Display;
use ibc::core::ics24_host::error::ValidationError;

#[derive(Debug, Display)]
pub enum ServerError {
    ValidateIdentifier(ValidationError),
    FromUtf8(Utf8Error),
}

impl From<ServerError> for String {
    fn from(err: ServerError) -> Self {
        err.to_string()
    }
}