polytone 1.0.0

Core interfaces for Polytone Interchain accounts and queries.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq)]
pub enum HandshakeError {
    #[error("protocol missmatch, got {actual}, expected {expected}")]
    ProtocolMismatch { actual: String, expected: String },
    #[error("channel must be unordered")]
    ExpectUnordered,
    #[error("only a note and voice may connect")]
    WrongCounterparty,
    #[error("note can say ({0}), but voice can not speak it")]
    Unspeakable(String),
}