Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAddress = "0xcA11bde05977b3631167028862bE2a173976CA11"
DefaultAddress is the same for all chains (Multicall3). Taken from https://github.com/mds1/multicall
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct { CallName string Contract *Contract Method string Inputs []any Outputs any CanFail bool Failed bool }
Call wraps a multicall call.
func (*Call) AllowFailure ¶
AllowFailure sets if the call is allowed to fail. This helps avoiding a revert when one of the calls in the array fails.
type Caller ¶
type Caller struct {
// contains filtered or unexported fields
}
Caller makes multicalls.
func New ¶
func New(client bind.ContractCaller, multicallAddr ...string) (*Caller, error)
New creates a new caller.
type Contract ¶
Contract wraps the parsed ABI and acts as a call factory.
func NewContract ¶
NewContract creates a new call factory.
Click to show internal directories.
Click to hide internal directories.