• Automatically connects to all contract addresses, both L1 and L2, for the given L2 chain ID. The user can provide custom contract address overrides for L1 or L2 contracts. If the given chain ID is not known then the user MUST provide custom contract addresses for ALL L1 contracts or this function will throw an error.

    Parameters

    • l2ChainId: number

      Chain ID for the L2 network.

    • opts: {
          l1SignerOrProvider?: Provider | Signer;
          l2SignerOrProvider?: Provider | Signer;
          overrides?: DeepPartial<OEContractsLike>;
      } = {}

      Additional options for connecting to the contracts.

      • Optional l1SignerOrProvider?: Provider | Signer
      • Optional l2SignerOrProvider?: Provider | Signer
      • Optional overrides?: DeepPartial<OEContractsLike>

        Custom contract address overrides for L1 or L2 contracts.

    Returns OEContracts

    An object containing ethers.Contract objects connected to the appropriate addresses on both L1 and L2.

Generated using TypeDoc