@hyperlane-xyz/cli
Version:
A command-line utility for common Hyperlane operations
34 lines • 1.67 kB
TypeScript
import { ChainMap, ChainSubmissionStrategy, WarpCoreConfig, WarpRouteDeployConfigMailboxRequired } from '@hyperlane-xyz/sdk';
import { WriteCommandContext } from '../context/types.js';
interface DeployParams {
context: WriteCommandContext;
warpDeployConfig: WarpRouteDeployConfigMailboxRequired;
}
interface WarpApplyParams extends DeployParams {
warpCoreConfig: WarpCoreConfig;
strategyUrl?: string;
receiptsDir: string;
}
export declare function runWarpRouteDeploy({ context, warpRouteDeploymentConfigPath, }: {
context: WriteCommandContext;
warpRouteDeploymentConfigPath?: string;
}): Promise<void>;
export declare function runWarpRouteApply(params: WarpApplyParams): Promise<void>;
/**
* Extends an existing Warp route to include new chains.
* This function manages the entire extension workflow:
* 1. Divides the configuration into existing and new chain segments.
* 2. Returns the current configuration if no new chains are added.
* 3. Deploys and sets up new contracts for the additional chains.
* 4. Refreshes the Warp core configuration with updated token details.
* 5. Saves the revised artifacts to the registry.
*/
export declare function extendWarpRoute(params: WarpApplyParams, apiKeys: ChainMap<string>, warpCoreConfig: WarpCoreConfig): Promise<WarpCoreConfig>;
/**
* Retrieves a chain submission strategy from the provided filepath.
* @param submissionStrategyFilepath a filepath to the submission strategy file
* @returns a formatted submission strategy
*/
export declare function readChainSubmissionStrategy(submissionStrategyFilepath: string): ChainSubmissionStrategy;
export {};
//# sourceMappingURL=warp.d.ts.map