UNPKG

@hyperlane-xyz/registry

Version:

A collection of configs, artifacts, and schemas for Hyperlane

22 lines (21 loc) 985 B
import type { Logger } from 'pino'; import { IRegistry } from '../registry/IRegistry.js'; /** * Retrieves a registry instance based on the provided registry URIs. * The registry can be either a GitHub registry or a file system registry, * and the returned instance is a `MergedRegistry` that combines all the * specified registries. * * @param registryUris - An array of registry URIs to use for creating the registry. * @param enableProxy - If enabled, forwards all requests to Hyperlane Registry, with higher read limits. * @param branch - An optional branch name to use for the GitHub registry. * @param logger - An optional logger instance to use for logging. * @returns An `IRegistry` instance that combines the specified registries. */ export declare function getRegistry({ registryUris, enableProxy, branch, logger, authToken, }: { registryUris: string[]; enableProxy: boolean; branch?: string; logger?: Logger; authToken?: string; }): IRegistry;