Skip to content
Alchemy Logo

EntryPointFromAccountRegistry

type EntryPointFromAccountRegistry<TLightAccountType, TLightAccountVersion> =
  (typeof AccountVersionRegistry)[TLightAccountType][TLightAccountVersion] extends StaticSmartAccountImplementation<
    infer _7702,
    infer entryPointVersion,
    infer _factoryArgs,
    infer entryPointAbi
  >
    ? (typeof AccountVersionRegistry)[TLightAccountType][TLightAccountVersion]["entryPoint"] extends object
      ? (typeof AccountVersionRegistry)[TLightAccountType][TLightAccountVersion]["entryPoint"]
      : never
    : never;

Defined in: packages/smart-accounts/src/light-account/registry.ts:98

Infers the EntryPoint details as a type, given the account type and version.

Type ParameterDefault type

TLightAccountType extends LightAccountType

TLightAccountVersion extends LightAccountVersion<TLightAccountType>

LightAccountVersion<TLightAccountType>

Was this page helpful?