Skip to content

Commit

Permalink
general fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalaji committed Jan 22, 2025
1 parent 284fca0 commit 49992bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
11 changes: 6 additions & 5 deletions typescript/infra/scripts/warp-routes/generate-warp-config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { stringify as yamlStringify } from 'yaml';

import { WarpRouteDeployConfigSchema } from '@hyperlane-xyz/sdk';
import { rootLogger } from '@hyperlane-xyz/utils';

import { getWarpConfig } from '../../config/warp.js';
import { writeYamlAtPath } from '../../src/utils/utils.js';
Expand All @@ -23,17 +24,17 @@ async function main() {
const parsed = WarpRouteDeployConfigSchema.safeParse(warpConfig);

if (!parsed.success) {
console.dir(parsed.error.format(), { depth: null });
rootLogger.error(parsed.error.format());
return;
}

console.log('Warp config:');
console.log(yamlStringify(parsed.data, null, 2));
rootLogger.info('Warp config:');
rootLogger.info(yamlStringify(parsed.data, null, 2));

if (outFile) {
console.log(`Writing config to ${outFile}`);
rootLogger.info(`Writing config to ${outFile}`);
writeYamlAtPath(outFile, parsed.data);
}
}

main().catch((err) => console.error('Error:', err));
main().catch((err) => rootLogger.error('Error:', err));
2 changes: 1 addition & 1 deletion typescript/infra/scripts/warp-routes/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function getRouterConfig() {
).argv;
const envConfig = getEnvironmentConfig(environment);

let multiProvider = await envConfig.getMultiProvider(
const multiProvider = await envConfig.getMultiProvider(
context,
Role.Deployer,
true,
Expand Down
6 changes: 0 additions & 6 deletions typescript/infra/src/agents/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs from 'fs';
import { join } from 'path';

import {
Expand Down Expand Up @@ -49,11 +48,6 @@ const HELM_CHART_PATH = join(
'/../../rust/main/helm/hyperlane-agent/',
);

if (!fs.existsSync(HELM_CHART_PATH + 'Chart.yaml'))
console.warn(
`Could not find helm chart at ${HELM_CHART_PATH}; the relative path may have changed.`,
);

export abstract class AgentHelmManager extends HelmManager<HelmRootAgentValues> {
abstract readonly role: AgentRole;
readonly helmChartPath: string = HELM_CHART_PATH;
Expand Down

0 comments on commit 49992bf

Please sign in to comment.