apibara-dna-protocol 2.0.0

Low-level Apibara DNA gRPC types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use snafu::Snafu;

#[derive(Debug, Snafu)]
#[snafu(visibility(pub))]
pub enum DecodeError {
    #[snafu(display("Size too big"))]
    SizeTooBig,
    #[snafu(display("Missing 0x prefix"))]
    Missing0xPrefix,
    #[snafu(display("Failed to decode from hex"))]
    DecodeFromHex { source: hex::FromHexError },
}