NamedPackagesPluginOptions: {
    overrides?: NamedPackagesPluginCache;
    pageSize?: number;
    suiGraphQLClient: SuiGraphQLClient;
}

Type declaration

  • Optionaloverrides?: NamedPackagesPluginCache

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

    Expected format example:
    

    { packages: { '@framework/std': '0x1234', }, types: { '@framework/std::string::String': '0x1234::string::String', }, }

  • 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).