Module utils

Module utils 

Source

Enums§

ConversionError
ParseUnits
This enum holds the numeric types that a possible to be returned by parse_units and that are taken by format_units.

Functions§

deserialize_address_opt
Return None if empty, otherwise parse as Address.
deserialize_source_code
Deserializes as JSON either:
lookup_compiler_version
Given a Solc Version, lookup the build metadata and return the full SemVer. e.g. 0.8.13 -> 0.8.13+commit.abaa5c0e
parse_units
Multiplies the provided amount with 10^{units} provided.