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.
get_client
Gets the client used for interacting with the EVM-compatible network.
get_runtime
get_static_attribute
Extracts a static attribute from a swap.
get_token_position
Gets the position of a token in a list of tokens.
pad_to_fixed_size
Pads a byte slice to a fixed size array of N bytes.
percentage_to_uint24
Converts a decimal to a U24 value. The percentage is a f64 value between 0 and 1. MAX_UINT24 corresponds to 100%.
ple_encode
Uses prefix-length encoding to efficient encode action data.
write_calldata_to_file

Type Aliases§

EVMProvider