Skip to content

Commit

Permalink
rename read.ts to their correct class names
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalaji committed May 10, 2024
1 parent ed7d63d commit 95a8f54
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions typescript/sdk/src/core/CoreDeployer.hardhat-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import { TestChainName, testChains } from '../consts/testChains.js';
import { HyperlaneContractsMap } from '../contracts/types.js';
import { HyperlaneProxyFactoryDeployer } from '../deploy/HyperlaneProxyFactoryDeployer.js';
import { HookConfig } from '../hook/types.js';
import { DerivedIsmConfigWithAddress } from '../ism/EvmIsmReader.js';
import { HyperlaneIsmFactory } from '../ism/HyperlaneIsmFactory.js';
import { DerivedIsmConfigWithAddress } from '../ism/read.js';
import { AggregationIsmConfig, IsmType } from '../ism/types.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { testCoreConfig } from '../test/testUtils.js';
import { ChainMap } from '../types.js';

import { EvmCoreReader } from './EvmCoreReader.js';
import { HyperlaneCore } from './HyperlaneCore.js';
import { HyperlaneCoreChecker } from './HyperlaneCoreChecker.js';
import { HyperlaneCoreDeployer } from './HyperlaneCoreDeployer.js';
import { CoreFactories } from './contracts.js';
import { EvmCoreReader } from './read.js';
import { CoreConfig } from './types.js';

describe('core', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Mailbox__factory } from '@hyperlane-xyz/core';
import { Address, objMap, promiseObjAll } from '@hyperlane-xyz/utils';

import { DEFAULT_CONTRACT_READ_CONCURRENCY } from '../consts/concurrency.js';
import { EvmHookReader } from '../hook/read.js';
import { EvmIsmReader } from '../ism/read.js';
import { EvmHookReader } from '../hook/EvmHookReader.js';
import { EvmIsmReader } from '../ism/EvmIsmReader.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { ChainNameOrId } from '../types.js';

Expand Down
5 changes: 4 additions & 1 deletion typescript/sdk/src/core/HyperlaneCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ import { HyperlaneApp } from '../app/HyperlaneApp.js';
import { appFromAddressesMapHelper } from '../contracts/contracts.js';
import { HyperlaneAddressesMap } from '../contracts/types.js';
import { OwnableConfig } from '../deploy/types.js';
import { DerivedIsmConfigWithAddress, EvmIsmReader } from '../ism/read.js';
import {
DerivedIsmConfigWithAddress,
EvmIsmReader,
} from '../ism/EvmIsmReader.js';
import { IsmType, ModuleType, ismTypeToModuleType } from '../ism/types.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { RouterConfig } from '../router/types.js';
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/hook/EvmHookModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { HyperlaneDeployer } from '../deploy/HyperlaneDeployer.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { EthersV5Transaction } from '../providers/ProviderType.js';

import { EvmHookReader } from './EvmHookReader.js';
import { HookFactories } from './contracts.js';
import { EvmHookReader } from './read.js';
import { HookConfig } from './types.js';

// WIP example implementation of EvmHookModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { WithAddress } from '@hyperlane-xyz/utils';
import { TestChainName, test1 } from '../consts/testChains.js';
import { MultiProvider } from '../providers/MultiProvider.js';

import { EvmHookReader } from './read.js';
import { EvmHookReader } from './EvmHookReader.js';
import {
HookType,
MerkleTreeHookConfig,
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions typescript/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export {
coreFactories,
} from './core/contracts.js';
export { HyperlaneLifecyleEvent } from './core/events.js';
export { EvmCoreReader } from './core/read.js';
export { EvmCoreReader } from './core/EvmCoreReader.js';
export {
CoreConfig,
CoreViolationType,
Expand Down Expand Up @@ -124,7 +124,7 @@ export {
IgpViolationType,
} from './gas/types.js';
export { HyperlaneHookDeployer } from './hook/HyperlaneHookDeployer.js';
export { EvmHookReader } from './hook/read.js';
export { EvmHookReader } from './hook/EvmHookReader.js';
export {
AggregationHookConfig,
DomainRoutingHookConfig,
Expand All @@ -143,7 +143,7 @@ export {
buildAggregationIsmConfigs,
buildMultisigIsmConfigs,
} from './ism/multisig.js';
export { EvmIsmReader } from './ism/read.js';
export { EvmIsmReader } from './ism/EvmIsmReader.js';
export {
AggregationIsmConfig,
DeployedIsm,
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/ism/EvmIsmModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { EthersV5Transaction } from '../providers/ProviderType.js';
import { ChainNameOrId } from '../types.js';

import { EvmIsmCreator } from './EvmIsmCreator.js';
import { EvmIsmReader } from './read.js';
import { EvmIsmReader } from './EvmIsmReader.js';
import { IsmConfig } from './types.js';

export class EvmIsmModule extends HyperlaneModule<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { WithAddress } from '@hyperlane-xyz/utils';
import { TestChainName } from '../consts/testChains.js';
import { MultiProvider } from '../providers/MultiProvider.js';

import { EvmIsmReader } from './read.js';
import { EvmIsmReader } from './EvmIsmReader.js';
import {
IsmType,
ModuleType,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { ERC20Metadata, ERC20RouterConfig } from '@hyperlane-xyz/sdk';
import { Address } from '@hyperlane-xyz/utils';

import { DEFAULT_CONTRACT_READ_CONCURRENCY } from '../consts/concurrency.js';
import { EvmHookReader } from '../hook/read.js';
import { EvmIsmReader } from '../ism/read.js';
import { EvmHookReader } from '../hook/EvmHookReader.js';
import { EvmIsmReader } from '../ism/EvmIsmReader.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { ChainName } from '../types.js';

Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/token/deploy.hardhat-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import { HyperlaneIsmFactory } from '../ism/HyperlaneIsmFactory.js';
import { MultiProvider } from '../providers/MultiProvider.js';
import { ChainMap } from '../types.js';

import { EvmERC20WarpRouteReader } from './EvmERC20WarpRouteReader.js';
import {
HypERC20CollateralConfig,
HypERC20Config,
TokenConfig,
TokenType,
} from './config.js';
import { HypERC20Deployer } from './deploy.js';
import { EvmERC20WarpRouteReader } from './read.js';
import { WarpRouteDeployConfig } from './types.js';

describe('TokenDeployer', async () => {
Expand Down

0 comments on commit 95a8f54

Please sign in to comment.