Functions§
- biguint_
to_ u256 - Converts a general
BigUintto an EVM-specificU256value. - bytes_
to_ address - Safely converts a
Bytesobject to anAddressobject. - 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
U24value. The percentage is af64value between 0 and 1. MAX_UINT24 corresponds to 100%. - ple_
encode - Uses prefix-length encoding to efficient encode action data.
- write_
calldata_ to_ file