Skip to content

Commit

Permalink
Fix infra build
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed May 12, 2024
1 parent ade94ea commit 35e49fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions typescript/infra/scripts/announce-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as path from 'path';
import { ChainName } from '@hyperlane-xyz/sdk';

import { getChains } from '../config/registry.js';
import { S3Validator } from '../src/agents/aws/validator.js';
import { InfraS3Validator } from '../src/agents/aws/validator.js';
import { CheckpointSyncerType } from '../src/config/agent/validator.js';
import { isEthereumProtocolChain } from '../src/utils/utils.js';

Expand Down Expand Up @@ -47,7 +47,7 @@ async function main() {
chains.push(chain!);

if (location.startsWith('s3://')) {
const validator = await S3Validator.fromStorageLocation(location);
const validator = await InfraS3Validator.fromStorageLocation(location);
announcements.push({
storageLocation: validator.storageLocation(),
announcement: await validator.getAnnouncement(),
Expand Down Expand Up @@ -87,7 +87,7 @@ async function main() {
) {
const contracts = core.getContracts(validatorChain);
const localDomain = multiProvider.getDomainId(validatorChain);
const validator = new S3Validator(
const validator = new InfraS3Validator(
validatorBaseConfig.address,
localDomain,
contracts.mailbox.address,
Expand Down
4 changes: 2 additions & 2 deletions typescript/infra/scripts/list-validator-checkpoint-indices.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { concurrentMap } from '@hyperlane-xyz/utils';

import { S3Validator } from '../src/agents/aws/validator.js';
import { InfraS3Validator } from '../src/agents/aws/validator.js';

import { getArgs, getValidatorsByChain } from './agent-utils.js';
import { getEnvironmentConfig, getHyperlaneCore } from './core-utils.js';
Expand All @@ -26,7 +26,7 @@ async function main() {
let identifier = validator;
if (storageLocations.length == 1 && storageLocations[0].length == 1) {
try {
const s3Validator = await S3Validator.fromStorageLocation(
const s3Validator = await InfraS3Validator.fromStorageLocation(
storageLocations[0][0],
);
identifier = storageLocations[0][0];
Expand Down
4 changes: 2 additions & 2 deletions typescript/infra/scripts/verify-validators.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { objMap, promiseObjAll } from '@hyperlane-xyz/utils';

import { S3Validator } from '../src/agents/aws/validator.js';
import { InfraS3Validator } from '../src/agents/aws/validator.js';

import { getArgs, getValidatorsByChain } from './agent-utils.js';
import { getEnvironmentConfig, getHyperlaneCore } from './core-utils.js';
Expand All @@ -21,7 +21,7 @@ async function main() {
if (storageLocations[i].length != 1) {
throw new Error('Only support single announcement');
}
return S3Validator.fromStorageLocation(storageLocations[i][0]);
return InfraS3Validator.fromStorageLocation(storageLocations[i][0]);
}),
);
const controlValidator = validators[0];
Expand Down
2 changes: 2 additions & 0 deletions typescript/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ export {
TokenRouterConfigSchema as tokenRouterConfigSchema,
} from './token/schemas.js';
export { TokenRouterConfig, WarpRouteDeployConfig } from './token/types.js';
export { S3Validator } from './aws/validator.js';
export { S3Wrapper, S3Receipt } from './aws/s3.js';

// prettier-ignore
// @ts-ignore
Expand Down

0 comments on commit 35e49fd

Please sign in to comment.