Documentation ¶
Index ¶
- func Do[A any, B any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B]) (*A, *B, error)
- func Do3[A any, B any, C any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], ...) (*A, *B, *C, error)
- func Do4[A any, B any, C any, D any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], ...) (*A, *B, *C, *D, error)
- func Do5[A any, B any, C any, D any, E any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], ...) (*A, *B, *C, *D, *E, error)
- func Do6[A any, B any, C any, D any, E any, F any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], ...) (*A, *B, *C, *D, *E, *F, error)
- func DoMany[A any](mc *MulticallClient, requests ...*MultiCallMetaData[A]) (*[]*A, error)
- func DoManyAllowFailures[A any](mc *MulticallClient, requests ...*MultiCallMetaData[A]) (*[]TypedMulticall3Result[*A], error)
- func DoManyAllowFailuresWithOptions[A any](mc *MulticallClient, overrideOpts *bind.CallOpts, ...) (*[]TypedMulticall3Result[*A], error)
- func DoManyWithOptions[A any](mc *MulticallClient, options *bind.CallOpts, requests ...*MultiCallMetaData[A]) (*[]*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 Do ¶
func Do[A any, B any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B]) (*A, *B, error)
func Do3 ¶
func Do3[A any, B any, C any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], c *MultiCallMetaData[C]) (*A, *B, *C, error)
func Do4 ¶
func Do4[A any, B any, C any, D any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], c *MultiCallMetaData[C], d *MultiCallMetaData[D]) (*A, *B, *C, *D, error)
func Do5 ¶
func Do5[A any, B any, C any, D any, E any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], c *MultiCallMetaData[C], d *MultiCallMetaData[D], e *MultiCallMetaData[E]) (*A, *B, *C, *D, *E, error)
func Do6 ¶
func Do6[A any, B any, C any, D any, E any, F any](mc *MulticallClient, a *MultiCallMetaData[A], b *MultiCallMetaData[B], c *MultiCallMetaData[C], d *MultiCallMetaData[D], e *MultiCallMetaData[E], f *MultiCallMetaData[F]) (*A, *B, *C, *D, *E, *F, error)
func DoMany ¶
func DoMany[A any](mc *MulticallClient, requests ...*MultiCallMetaData[A]) (*[]*A, error)
func DoManyAllowFailures ¶
func DoManyAllowFailures[A any](mc *MulticallClient, requests ...*MultiCallMetaData[A]) (*[]TypedMulticall3Result[*A], error)
//////////////////////
func DoManyAllowFailuresWithOptions ¶
func DoManyAllowFailuresWithOptions[A any](mc *MulticallClient, overrideOpts *bind.CallOpts, requests ...*MultiCallMetaData[A]) (*[]TypedMulticall3Result[*A], error)
func DoManyWithOptions ¶
func DoManyWithOptions[A any](mc *MulticallClient, options *bind.CallOpts, requests ...*MultiCallMetaData[A]) (*[]*A, error)
Types ¶
type MultiCallMetaData ¶
type MultiCallMetaData[T interface{}] struct { Address common.Address Data []byte FunctionName string Deserialize func([]byte) (*T, error) }
func Describe ¶
func Describe[T any](contractAddress common.Address, contractAbi abi.ABI, method string, params ...interface{}) (*MultiCallMetaData[T], error)
Describes a call that 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 DescribeWithDeserialize ¶
func (*MultiCallMetaData[T]) Raw ¶
func (md *MultiCallMetaData[T]) Raw() RawMulticall
type Multicall3Result ¶
type MulticallClient ¶
type MulticallClient struct { Contract *bind.BoundContract Address common.Address 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)
*
- Initializes a multicall client. You'll need one of these to make any calls.
- ctx: network context for operations
- eth: the geth client to use for interacting with your node
- options [optional]: additional options to specify when making your request.
- - WARNING: these parameters take sceond precedence to any `overrideOptions` provided by the `Do*WithInfo()` functions.
func (*MulticallClient) GetBalance ¶
func (mc *MulticallClient) GetBalance(address common.Address) *MultiCallMetaData[big.Int]
////////////////// Other transactions you can run at the same time as your multicall.
func (*MulticallClient) GetBlockNumber ¶
func (mc *MulticallClient) GetBlockNumber() *MultiCallMetaData[big.Int]
type ParamMulticall3Call3 ¶
type RawMulticall ¶
type TMulticallClientOptions ¶
type TypedMulticall3Result ¶
Click to show internal directories.
Click to hide internal directories.