UNPKG

@hyperlane-xyz/sdk

Version:

The official SDK for the Hyperlane Network

29 lines 1.85 kB
import { Address } from '@hyperlane-xyz/utils'; import { MultiProvider } from '../providers/MultiProvider.js'; import { DestinationGas, RemoteRouters } from '../router/types.js'; import { ChainMap } from '../types.js'; import { WarpCoreConfig } from '../warp/types.js'; import { HypTokenRouterConfig, WarpRouteDeployConfig, WarpRouteDeployConfigMailboxRequired } from './types.js'; /** * Returns default router addresses and gas values for cross-chain communication. * For each remote chain: * - Sets up router addresses for message routing * - Configures gas values for message processing */ export declare function getDefaultRemoteRouterAndDestinationGasConfig(multiProvider: MultiProvider, chain: string, deployedRoutersAddresses: ChainMap<Address>, warpDeployConfig: WarpRouteDeployConfig): [RemoteRouters, DestinationGas]; export declare function getRouterAddressesFromWarpCoreConfig(warpCoreConfig: WarpCoreConfig): ChainMap<Address>; export declare function expandWarpDeployConfig(multiProvider: MultiProvider, warpDeployConfig: WarpRouteDeployConfigMailboxRequired, deployedRoutersAddresses: ChainMap<Address>): Promise<WarpRouteDeployConfigMailboxRequired>; /** * transforms the provided {@link HypTokenRouterConfig}, removing the address, totalSupply and ownerOverrides * field where they are not required for the config comparison */ export declare function transformConfigToCheck(obj: HypTokenRouterConfig): HypTokenRouterConfig; /** * Splits warp deploy config into existing and extended configurations based on warp core chains * for the warp apply process. */ export declare function splitWarpCoreAndExtendedConfigs(warpDeployConfig: WarpRouteDeployConfigMailboxRequired, warpCoreChains: string[]): [ WarpRouteDeployConfigMailboxRequired, WarpRouteDeployConfigMailboxRequired ]; //# sourceMappingURL=configUtils.d.ts.map