Crate cainome_cairo_serde

Crate cainome_cairo_serde 

Source
Expand description

This crate contains the definition of traits and types that map to Cairo types that can then be (de)serializable from an array of Felt.

Some of the Cairo types are provided in the ABI event if they are very generic like Option, Result, etc… This crate provides the CairoSerde implementation for those types and all basic types from Cairo (integers, felt etc…).

Re-exports§

pub use serde_hex::*;
pub use types::array_legacy::*;
pub use types::byte_array::*;
pub use types::non_zero::*;
pub use types::starknet::*;
pub use types::u256::*;
pub use types::*;

Modules§

call
This file must be in the proc_macro2 crate that must be reworked.
serde_hex
types

Enums§

Error
A cairo type error.

Traits§

CairoSerde
CairoSerde trait to implement in order to serialize/deserialize a Rust type to/from a CairoSerde.

Type Aliases§

Result
Cairo types result.