• Internal

    Creates EntryPoint contract instances for both v0.6.0 and v0.7.0.

    Parameters

    • chain: {
          chainId: number;
          eip1559: boolean;
          entryPoints?: {
              v060?: { address: string };
              v070?: {
                  address: string;
                  state?: { deposits: Record<string, { stateKey: string }> };
              };
          };
          isTestnet: boolean;
          name: string;
          nativeCurrency?: string;
          paymasters: {
              v060?: Record<string, { dummyPaymasterAndData: string; type: string }>;
              v070?: Record<
                  string,
                  { dummyPaymasterData: string; postOpGasLimit: bigint; type: string },
              >;
          };
          simulation?: {
              callGasLimit: bigint;
              preVerificationGas: bigint;
              verificationGasLimit: bigint;
          };
          smartAccountSupport: { nexus: boolean; smartAccountsV2: boolean };
          stack: ChainStack;
          stateOverrideSupport: {
              balance: boolean;
              bytecode: boolean;
              stateDiff: boolean;
          };
      }

      Chain configuration containing EntryPoint addresses

    • rpcClient: GasEstimatorRpcClient

      RPC client for contract interactions

    Returns EntryPoints

    Map of EntryPointVersion to contract instances