Skip to main content

Module utils

Module utils 

Source

Functions§

biguint_to_u256
Converts a general BigUint to an EVM-specific U256 value.
bytes_to_address
Safely converts a Bytes object to an Address object.
convert_to_router_token
Converts Address::ZERO (protocol-native ETH marker) to the ETH_ADDRESS marker (0xEeee…) used by the TychoRouter. Non-zero addresses pass through unchanged.
write_calldata_to_file