Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multicall3 ¶
type Multicall3 struct {
// contains filtered or unexported fields
}
Corresponds to the Multicall3 contract (https://www.multicall3.com), also dumped into contracts/src/Multicall3.sol.
func NewMulticall3 ¶
func NewMulticall3(address common.Address) *Multicall3
NewMulticall3 creates a new Multicall3 instance.
func (*Multicall3) BatchCallRequests ¶
func (mc *Multicall3) BatchCallRequests( ctx context.Context, from common.Address, requireSuccess bool, callReqs ...*ethereum.CallMsg, ) (any, error)
BatchCallRequests uses the Multicall3 contract to create a batched call request for the given call messages and return the batched call result data for each call, as a `[]Multicall3Result`.
func (*Multicall3) BatchRequests ¶
func (mc *Multicall3) BatchRequests( requireSuccess bool, callReqs ...*ethereum.CallMsg, ) *types.Request
BatchRequests creates a batched transaction request for the given call requests.
type PayableMulticall ¶
type PayableMulticall struct {
// contains filtered or unexported fields
}
Corresponding to the PayableMulticall contract in contracts/lib/transient-goodies/src (https://github.com/berachain/transient-goodies/blob/try-aggregate/src/PayableMulticallable.sol)
func NewPayableMulticall ¶
func NewPayableMulticall(address common.Address) *PayableMulticall
NewPayableMulticall creates a new PayableMulticall instance.
func (*PayableMulticall) BatchCallRequests ¶
func (mc *PayableMulticall) BatchCallRequests( ctx context.Context, from common.Address, requireSuccess bool, callReqs ...*ethereum.CallMsg, ) (any, error)
BatchCallRequests uses the PayableMulticall contract to create a batched call request for the given call messages and return the batched call result data for each call, as a `[][]byte`.
func (*PayableMulticall) BatchRequests ¶
func (mc *PayableMulticall) BatchRequests( requireSuccess bool, callReqs ...*ethereum.CallMsg, ) *types.Request
BatchRequests creates a batched transaction request for the given call requests.