Constructors

Properties

batchMap: Map<BlockTag, MulticallBatch> = ...
cacheWrappedContract: WeakMap<ContractLike, MulticallStatic<Contract>> = ...
callLimit: number
multicallAggregateCaller: MulticallAggregateCaller

Methods

  • Parameters

    • params: {
          callLimit?: number;
          chainId: ChainId;
          provider: Provider;
          usePendleMulticallV2?: boolean;
          withGasLimit?: boolean;
      }
      • Optional callLimit?: number
      • chainId: ChainId
      • provider: Provider
      • Optional usePendleMulticallV2?: boolean
      • Optional withGasLimit?: boolean

    Returns Multicall

  • Perform soft wrapping. If muticall is presented, multicall.wrap(contract) will be returned. Otherwise the contract itself will be returned. Note that this function is also type-safe, that is, even if the contract is returned, the user is disallowed to call functions with overrides.

    This function is useful in case where the user when to choose whether to use multicall by themselves.

    Type Parameters

    • T extends Contract

    Parameters

    Returns MulticallStatic<T>

Generated using TypeDoc