neo3 0.5.3

Production-ready Rust SDK for Neo N3 blockchain with high-level API, unified error handling, and enterprise features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ProtocolError {
	#[error("RPC responses error: {error}")]
	RpcResponse { error: String },
	#[error("Invocation fault state: {error}")]
	InvocationFaultState { error: String },
	#[error("Client connection error: {message}")]
	ClientConnection { message: String },
	#[error("Cannot cast {item} to {target}")]
	StackItemCast { item: String, target: String },
	#[error("Illegal state: {message}")]
	IllegalState { message: String },
	#[error("HTTP error: {0}")]
	HttpError(#[from] reqwest::Error),
}