pub struct MulticallContract<M>(_);
Available on crate feature abigen only.

Implementations§

Creates a new contract instance with the specified ethers client at the given Address. The contract derefs to a crate object

Calls the contract’s aggregate (0x252dba42) function

Calls the contract’s aggregate3 (0x82ad56cb) function

Calls the contract’s aggregate3Value (0x174dea71) function

Calls the contract’s blockAndAggregate (0xc3077fa9) function

Calls the contract’s getBasefee (0x3e64a696) function

Calls the contract’s getBlockHash (0xee82ac5e) function

Calls the contract’s getBlockNumber (0x42cbb15c) function

Calls the contract’s getChainId (0x3408e470) function

Calls the contract’s getCurrentBlockCoinbase (0xa8b0574e) function

Calls the contract’s getCurrentBlockDifficulty (0x72425d9d) function

Calls the contract’s getCurrentBlockGasLimit (0x86d516e8) function

Calls the contract’s getCurrentBlockTimestamp (0x0f28c97d) function

Calls the contract’s getEthBalance (0x4d2301cc) function

Calls the contract’s getLastBlockHash (0x27e86d6e) function

Calls the contract’s tryAggregate (0xbce38bd7) function

Calls the contract’s tryBlockAndAggregate (0x399542e9) function

Methods from Deref<Target = Contract<M>>§

Returns the contract’s address

Returns a reference to the contract’s ABI

Returns a pointer to the contract’s client

Returns an Event builder for the provided event.

Returns an Event builder with the provided filter.

Returns an Event builder with the provided name.

Returns a transaction builder for the provided function name. If there are multiple functions with the same name due to overloading, consider using the method_hash method instead, since this will use the first match.

Returns a transaction builder for the selected function signature. This should be preferred if there are overloaded functions in your smart contract

Returns a new contract instance at address.

Clones self internally

Returns a new contract instance using the provided client

Clones self internally

Methods from Deref<Target = BaseContract>§

Returns the ABI encoded data for the provided function and arguments

If the function exists multiple times and you want to use one of the overloaded versions, consider using encode_with_selector

Returns the ABI encoded data for the provided function selector and arguments

Decodes the provided ABI encoded function arguments with the selected function name.

If the function exists multiple times and you want to use one of the overloaded versions, consider using decode_with_selector

Decodes the provided ABI encoded function arguments with the selected function name.

If the function exists multiple times and you want to use one of the overloaded versions, consider using decode_with_selector

Returns a [Token] vector, which lets you decode function arguments dynamically without knowing the return type.

Decodes the provided ABI encoded function output with the selected function name.

If the function exists multiple times and you want to use one of the overloaded versions, consider using decode_with_selector

Decodes the provided ABI encoded function output with the selected function name.

If the function exists multiple times and you want to use one of the overloaded versions, consider using decode_with_selector

Returns a [Token] vector, which lets you decode function arguments dynamically without knowing the return type.

Decodes for a given event name, given the log.topics and log.data fields from the transaction receipt

Decodes for a given event name, given the log.topics and log.data fields from the transaction receipt

Returns a [Token] vector, which lets you decode function arguments dynamically without knowing the return type.

Decodes the provided ABI encoded bytes with the selected function selector

Returns a [Token] vector, which lets you decode function arguments dynamically without knowing the return type.

Decodes the provided ABI encoded bytes with the selected function selector

Decodes the provided ABI encoded bytes with the selected function selector

Returns a [Token] vector, which lets you decode function arguments dynamically without knowing the return type.

Returns a reference to the contract’s ABI

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more