Crate serde_helpers
Expand description
Modules§
- Serde functions for (de)serializing using FromStr and Display
- Serde functions for encoding primitive numbers using the Ethereum JSON-RPC “quantity” format.
- quantity_
bool Deprecated - Storage related helpers.
- Json U256 serde helpers.
Structs§
- Generic type for capturing additional fields when deserializing structs.
- An extension to a struct that allows to capture additional fields when deserializing.
Enums§
- A storage key type that can be serialized to and from a hex string up to 32 bytes. Used for
eth_getStorageAt
andeth_getProof
RPCs.
Functions§
- Supports parsing the TTD as an
Option<u64>
, orOption<f64>
specifically for the mainnet TTD (5.875e22). - For use with serde’s
deserialize_with
on a sequence that must be deserialized as a single but optional (i.e. possiblynull
) value. - For use with serde’s
deserialize_with
on a field that must be missing. - Serialize a B256 as a hex string without the “0x” prefix.
- Serialize a byte vec as a hex string without the “0x” prefix.