Module util

Module util 

Source

Structs§

TracingInfo
Tracing context passed through ArbOS for EVM debugging/tracing support.

Enums§

TracingScenario
The scenario in which tracing is occurring.

Constants§

ADDRESS_ALIAS_OFFSET
The offset applied to L1 addresses when they appear on L2. This prevents a contract on L1 from impersonating an L2 address.
INVERSE_ADDRESS_ALIAS_OFFSET
The inverse offset for remapping L2 aliased addresses back to L1.

Functions§

address_from_256_from_reader
Reads a 32-byte padded address from a reader (last 20 bytes are the address).
address_from_reader
Reads a 20-byte address from a reader.
address_to_256_to_writer
Writes a 32-byte padded address to a writer (left-padded with zeros).
address_to_hash
Converts an address to a B256 hash (left-padded with zeros).
address_to_writer
Writes a 20-byte address to a writer.
burn_balance
Burns balance from the given address.
bytestring_from_reader
Reads a length-prefixed byte string from a reader.
bytestring_to_writer
Writes a length-prefixed byte string to a writer.
does_tx_type_alias
Whether a transaction type uses address aliasing.
hash_from_reader
Reads a 32-byte hash from a reader.
hash_to_writer
Writes a 32-byte hash to a writer.
int_to_hash
Converts a signed integer to a B256 hash (big-endian).
inverse_remap_l1_address
Removes the L1→L2 address alias offset.
mint_balance
Mints balance to the given address.
remap_l1_address
Applies the L1→L2 address alias offset.
transfer_balance
Transfers balance between two addresses.
tx_type_has_poster_costs
Whether a transaction type incurs L1 poster costs and standard fee distribution.
uint64_from_reader
Reads a uint64 from a reader (big-endian).
uint64_to_writer
Writes a uint64 to a writer (big-endian).
uint256_from_reader
Reads a U256 from a reader (big-endian).
uint_to_hash
Converts an unsigned integer to a B256 hash (big-endian).