Documentation ¶
Index ¶
- func DoMultiCall[A any, B any](mc MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B]) (*A, *B, error)
- func DoMultiCallMany[A any](mc MulticallClient, requests ...*MultiCallMetaData[A]) (*[]A, error)
- func DoMultiCallManyReportingFailures[A any](mc MulticallClient, requests ...*MultiCallMetaData[A]) (*[]TypedMulticall3Result[A], error)
- type DeserializedMulticall3Result
- type MultiCallMetaData
- type Multicall3Result
- type MulticallClient
- type ParamMulticall3Call3
- type RawMulticall
- type TMulticallClientOptions
- type TypedMulticall3Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoMultiCall ¶
func DoMultiCall[A any, B any](mc MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B]) (*A, *B, error)
func DoMultiCallMany ¶
func DoMultiCallMany[A any](mc MulticallClient, requests ...*MultiCallMetaData[A]) (*[]A, error)
func DoMultiCallManyReportingFailures ¶
func DoMultiCallManyReportingFailures[A any](mc MulticallClient, requests ...*MultiCallMetaData[A]) (*[]TypedMulticall3Result[A], error)
Types ¶
type MultiCallMetaData ¶
type MultiCallMetaData[T interface{}] struct { Address common.Address Data []byte FunctionName string Deserialize func([]byte) (T, error) }
func MultiCall ¶
func MultiCall[T any](contractAddress common.Address, abi abi.ABI, deserialize func([]byte) (T, error), method string, params ...interface{}) (*MultiCallMetaData[T], error)
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*MultiCallMetaData[T]) Raw ¶
func (md *MultiCallMetaData[T]) Raw() RawMulticall
type Multicall3Result ¶
type MulticallClient ¶
type MulticallClient struct { Contract *bind.BoundContract ABI *abi.ABI Context context.Context MaxBatchSize uint64 OverrideCallOptions *bind.CallOpts }
func NewMulticallClient ¶
func NewMulticallClient(ctx context.Context, eth *ethclient.Client, options *TMulticallClientOptions) (*MulticallClient, error)
maxBatchSizeBytes - 0: no batching.
type ParamMulticall3Call3 ¶
type RawMulticall ¶
type TMulticallClientOptions ¶
type TypedMulticall3Result ¶
Click to show internal directories.
Click to hide internal directories.