Expand description
Helper utilities around pre-compiles.
This file contains a number of functions for Solidity type encoding
and decoding. Notably these implementations don’t require an allocator,
which is why they are here in the first place (e.g. alloy-core requires
an allocator for the Solidity bytes type).
Functions§
- decode_
bytes - Simple decoder for a Solidity
bytestype. - encode_
bool - Encodes a
boolto big-endian[u8; 32]with padded zeros. - encode_
bytes - Encodes the
bytesargument for the Solidity ABI. The result is written toout. - encode_
u32 - Encodes a
u32to big-endian[u8; 32]with padded zeros. - solidity_
selector - Returns the Solidity selector for
fn_sig.