Skip to main content

Module evm

Module evm 

Source
Expand description

EVM helpers: multicall encoding, provider extensions.

Multicall encoding is pure (no async, no provider). Provider helpers that perform actual calls live in family hydrate modules instead — this module never reads the chain.

Structs§

Call3
Call3Value
aggregate3Call
Function with signature aggregate3((address,bool,bytes)[]) and selector 0x82ad56cb.
aggregate3Return
Container type for the return parameters of the aggregate3((address,bool,bytes)[]) function.
aggregate3ValueCall
Function with signature aggregate3Value((address,bool,uint256,bytes)[]) and selector 0x174dea71.
aggregate3ValueReturn
Container type for the return parameters of the aggregate3Value((address,bool,uint256,bytes)[]) function.

Constants§

MULTICALL3_ADDRESS
Canonical multicall3 deployment, present on most EVM chains.

Functions§

encode_multicall3_aggregate3
Encode a Vec<Call> as a multicall3 aggregate3 call (calldata only, caller is responsible for setting to = MULTICALL3_ADDRESS and value).
encode_multicall3_aggregate3_value
Encode a Vec<Call> as a multicall3 aggregate3Value call (calldata only; caller sets to = MULTICALL3_ADDRESS and the top-level tx value).
sign_extend_i24
Sign-extend alloy’s I24 (a wrapping signed 24-bit type) to i32.