ExW3.Utils (exw3 v0.6.1) View Source
Link to this section Summary
Functions
converts Ethereum style bytes to string
Converts an Ethereum address into a form that can be used by the ABI encoder
Converts the value to whatever unit key is provided. See unit map for details.
Convert eth hex string to integer
Convert an integer to eth hex string
Checks if the address is a valid checksummed address
Returns a 0x prepended 32 byte hash of the input string
Converts bytes to Ethereum address
Returns a checksummed address conforming to EIP-55
Converts the value to whatever unit key is provided. See unit map for details.
Link to this section Types
Specs
eth_hex() :: String.t()
Specs
invalid_hex_string() :: :invalid_hex_string
Specs
negative_integer() :: :negative_integer
Specs
non_integer() :: :non_integer
Link to this section Functions
Specs
converts Ethereum style bytes to string
Specs
Converts an Ethereum address into a form that can be used by the ABI encoder
Specs
Converts the value to whatever unit key is provided. See unit map for details.
Specs
hex_to_integer(eth_hex()) :: {:ok, non_neg_integer()} | {:error, invalid_hex_string()}
Convert eth hex string to integer
Specs
integer_to_hex(non_neg_integer()) :: {:ok, eth_hex()} | {:error, negative_integer() | non_integer()}
Convert an integer to eth hex string
Specs
Checks if the address is a valid checksummed address
Specs
Returns a 0x prepended 32 byte hash of the input string
Specs
Converts bytes to Ethereum address
Specs
Returns a checksummed address conforming to EIP-55
Specs
Converts the value to whatever unit key is provided. See unit map for details.