Skip to main content

Module IMulticall3

Module IMulticall3 

Source
Expand description

Multicall3 contract interface. See: https://github.com/mds1/multicall

contract IMulticall3 {
    struct Call3 { address target; bool allowFailure; bytes callData; }
    struct Result { bool success; bytes returnData; }
    function aggregate3(Call3[] calldata calls) external payable returns (Result[] memory returnData);
}

Structs§

Call3
IMulticall3Instance
A IMulticall3 instance.
Result
aggregate3Call
Aggregate calls, returning the results. Reverts if any call fails when allowFailure is false. Function with signature aggregate3((address,bool,bytes)[]) and selector 0x82ad56cb.
aggregate3Return
Aggregate calls, returning the results. Reverts if any call fails when allowFailure is false. Container type for the return parameters of the aggregate3((address,bool,bytes)[]) function.

Enums§

IMulticall3Calls
Container for all the IMulticall3 function calls.

Functions§

new
Creates a new wrapper around an on-chain IMulticall3 contract instance.