NamedPackagesPluginOption: {
    cache?: NamedPackagesPluginCache;
    pageSize?: number;
    suiGraphQLClient: SuiGraphQLClient;
}

Type declaration

  • Optionalcache?: NamedPackagesPluginCache

    Local cache of the resolution plugin. Pass this to pre-populate the cache with known packages / types (mainly useful for local or CI testing).

    Expected format is:

    1. For packages: app@org -> 0x1234
    2. For types: app@org::type::Type -> 0x1234::type::Type
  • OptionalpageSize?: number

    The number of names to resolve in each batch request. Needs to be calculated based on the GraphQL query limits.

  • suiGraphQLClient: SuiGraphQLClient

    The SuiGraphQLClient to use for resolving names. The endpoint should be the GraphQL endpoint of the network you are targeting. For non-mainnet networks, if the plugin doesn't work as expected, you need to validate that the RPC provider has support for the packageByName and typeByName queries (using external resolver).