Expand description
Misc Serde helpers for foundry crates.
Enums§
- An enum that represents either a serde_json::Number integer, or a hex [U256].
- Helper type to parse both
u64
andU256
- Helper type to deserialize sequence of numbers
Functions§
- Deserializes a number from hex or int
- Deserializes a number from hex or int, but optionally
- Deserializes single integer params:
1, [1], ["0x01"]
- Deserializes the input into a U256, accepting both 0x-prefixed hex and decimal strings with arbitrary precision, defined by serde_json’s
Number
. - Deserializes the input into an
Option<U256>
, usingfrom_int_or_hex
to deserialize the inner value.