|
|
@ -11,7 +11,10 @@ import { |
|
|
|
attachContractsMap, |
|
|
|
attachContractsMap, |
|
|
|
serializeContractsMap, |
|
|
|
serializeContractsMap, |
|
|
|
} from '../contracts/contracts.js'; |
|
|
|
} from '../contracts/contracts.js'; |
|
|
|
import { HyperlaneAddresses } from '../contracts/types.js'; |
|
|
|
import { |
|
|
|
|
|
|
|
HyperlaneAddresses, |
|
|
|
|
|
|
|
HyperlaneContractsMap, |
|
|
|
|
|
|
|
} from '../contracts/types.js'; |
|
|
|
import { DeployedCoreAddresses } from '../core/schemas.js'; |
|
|
|
import { DeployedCoreAddresses } from '../core/schemas.js'; |
|
|
|
import { CoreConfig } from '../core/types.js'; |
|
|
|
import { CoreConfig } from '../core/types.js'; |
|
|
|
import { HyperlaneProxyFactoryDeployer } from '../deploy/HyperlaneProxyFactoryDeployer.js'; |
|
|
|
import { HyperlaneProxyFactoryDeployer } from '../deploy/HyperlaneProxyFactoryDeployer.js'; |
|
|
@ -20,6 +23,7 @@ import { |
|
|
|
proxyFactoryFactories, |
|
|
|
proxyFactoryFactories, |
|
|
|
} from '../deploy/contracts.js'; |
|
|
|
} from '../deploy/contracts.js'; |
|
|
|
import { ContractVerifier } from '../deploy/verify/ContractVerifier.js'; |
|
|
|
import { ContractVerifier } from '../deploy/verify/ContractVerifier.js'; |
|
|
|
|
|
|
|
import { HookFactories } from '../hook/contracts.js'; |
|
|
|
import { EvmIsmModule } from '../ism/EvmIsmModule.js'; |
|
|
|
import { EvmIsmModule } from '../ism/EvmIsmModule.js'; |
|
|
|
import { DerivedIsmConfig } from '../ism/EvmIsmReader.js'; |
|
|
|
import { DerivedIsmConfig } from '../ism/EvmIsmReader.js'; |
|
|
|
import { HyperlaneIsmFactory } from '../ism/HyperlaneIsmFactory.js'; |
|
|
|
import { HyperlaneIsmFactory } from '../ism/HyperlaneIsmFactory.js'; |
|
|
@ -35,6 +39,7 @@ import { |
|
|
|
import { EvmCoreReader } from './EvmCoreReader.js'; |
|
|
|
import { EvmCoreReader } from './EvmCoreReader.js'; |
|
|
|
import { EvmIcaModule } from './EvmIcaModule.js'; |
|
|
|
import { EvmIcaModule } from './EvmIcaModule.js'; |
|
|
|
import { HyperlaneCoreDeployer } from './HyperlaneCoreDeployer.js'; |
|
|
|
import { HyperlaneCoreDeployer } from './HyperlaneCoreDeployer.js'; |
|
|
|
|
|
|
|
import { CoreFactories } from './contracts.js'; |
|
|
|
import { CoreConfigSchema } from './schemas.js'; |
|
|
|
import { CoreConfigSchema } from './schemas.js'; |
|
|
|
|
|
|
|
|
|
|
|
export class EvmCoreModule extends HyperlaneModule< |
|
|
|
export class EvmCoreModule extends HyperlaneModule< |
|
|
@ -315,9 +320,20 @@ export class EvmCoreModule extends HyperlaneModule< |
|
|
|
) |
|
|
|
) |
|
|
|
).address; |
|
|
|
).address; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Obtain addresses of every contract created by the deployer
|
|
|
|
|
|
|
|
// and extract only the merkleTreeHook and interchainGasPaymaster
|
|
|
|
|
|
|
|
const serializedContracts = serializeContractsMap( |
|
|
|
|
|
|
|
coreDeployer.deployedContracts as HyperlaneContractsMap< |
|
|
|
|
|
|
|
CoreFactories & HookFactories |
|
|
|
|
|
|
|
>, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
const { merkleTreeHook, interchainGasPaymaster } = |
|
|
|
|
|
|
|
serializedContracts[chainName]; |
|
|
|
|
|
|
|
|
|
|
|
// Set Core & extra addresses
|
|
|
|
// Set Core & extra addresses
|
|
|
|
return { |
|
|
|
return { |
|
|
|
...ismFactoryFactories, |
|
|
|
...ismFactoryFactories, |
|
|
|
|
|
|
|
|
|
|
|
proxyAdmin, |
|
|
|
proxyAdmin, |
|
|
|
mailbox: mailbox.address, |
|
|
|
mailbox: mailbox.address, |
|
|
|
interchainAccountRouter, |
|
|
|
interchainAccountRouter, |
|
|
@ -325,6 +341,8 @@ export class EvmCoreModule extends HyperlaneModule< |
|
|
|
validatorAnnounce, |
|
|
|
validatorAnnounce, |
|
|
|
timelockController, |
|
|
|
timelockController, |
|
|
|
testRecipient, |
|
|
|
testRecipient, |
|
|
|
|
|
|
|
merkleTreeHook, |
|
|
|
|
|
|
|
interchainGasPaymaster, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|