UNPKG

@hyperlane-xyz/registry

Version:

A collection of configs, artifacts, and schemas for Hyperlane

33 lines (32 loc) 1.47 kB
import { TokenStandard, type ChainMap, type WarpCoreConfig } from '@hyperlane-xyz/sdk'; import { ChainAddresses, WarpRouteFilterParams, WarpRouteId } from '../types.js'; /** * Converts from a full warp config to a map of chain addresses. */ export declare function warpConfigToWarpAddresses(config: WarpCoreConfig): ChainMap<ChainAddresses>; /** * Gets a warp route ID from a warp route config path. * @param configRelativePath A relative path in the deployments dir * (e.g. `warp_routes/USDC/ethereum-arbitrum-config.yaml`) */ export declare function warpRouteConfigPathToId(configRelativePath: string): WarpRouteId; /** * Gets a warp route ID from a warp deploy config path. * @param configRelativePath A relative path in the deployments dir * (e.g. `warp_routes/USDC/ethereum-arbitrum-config.yaml`) */ export declare function warpRouteDeployConfigPathToId(configRelativePath: string): WarpRouteId; export declare function createWarpRouteConfigId(tokenSymbol: string, label: string): WarpRouteId; export declare function parseWarpRouteConfigId(routeId: WarpRouteId): { tokenSymbol: string; label: string; }; /** * Filters a list of warp route IDs based on the provided filter params. */ export declare function filterWarpRoutesIds<T>(idMap: Record<WarpRouteId, T>, filter?: WarpRouteFilterParams): { ids: WarpRouteId[]; values: T[]; idMap: Record<WarpRouteId, T>; }; export declare const syntheticTokenStandards: TokenStandard[];