`multisigIsm` -> `interchainSecurityModule` for core deployments artifact (#2993)

### Description

- changing `multisigIsm` to`interchainSecurityModule` for core
deployments artifact

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
pull/3005/head
Kunal Arora 1 year ago committed by GitHub
parent e14da96778
commit 2a547eee18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      typescript/cli/src/deploy/core.ts

@ -321,7 +321,7 @@ async function executeDeploy({
// 3. Deploy ISM contracts to remote deployable chains // 3. Deploy ISM contracts to remote deployable chains
logBlue('Deploying ISMs'); logBlue('Deploying ISMs');
const ismContracts: ChainMap<{ multisigIsm: DeployedIsm }> = {}; const ismContracts: ChainMap<{ interchainSecurityModule: DeployedIsm }> = {};
const defaultIsms: ChainMap<Address> = {}; const defaultIsms: ChainMap<Address> = {};
for (const ismOrigin of chains) { for (const ismOrigin of chains) {
logBlue(`Deploying ISM to ${ismOrigin}`); logBlue(`Deploying ISM to ${ismOrigin}`);
@ -329,9 +329,10 @@ async function executeDeploy({
ismConfigs[ismOrigin] ?? ismConfigs[ismOrigin] ??
buildIsmConfig(owner, ismOrigin, chains, multisigConfigs); buildIsmConfig(owner, ismOrigin, chains, multisigConfigs);
ismContracts[ismOrigin] = { ismContracts[ismOrigin] = {
multisigIsm: await ismFactory.deploy(ismOrigin, ismConfig), interchainSecurityModule: await ismFactory.deploy(ismOrigin, ismConfig),
}; };
defaultIsms[ismOrigin] = ismContracts[ismOrigin].multisigIsm.address; defaultIsms[ismOrigin] =
ismContracts[ismOrigin].interchainSecurityModule.address;
} }
artifacts = writeMergedAddresses(contractsFilePath, artifacts, ismContracts); artifacts = writeMergedAddresses(contractsFilePath, artifacts, ismContracts);
logGreen('ISM contracts deployed'); logGreen('ISM contracts deployed');
@ -433,8 +434,6 @@ function buildTestRecipientConfigMap(
): ChainMap<TestRecipientConfig> { ): ChainMap<TestRecipientConfig> {
return chains.reduce<ChainMap<TestRecipientConfig>>((config, chain) => { return chains.reduce<ChainMap<TestRecipientConfig>>((config, chain) => {
const interchainSecurityModule = const interchainSecurityModule =
// TODO revisit assumption that multisigIsm is always the ISM
addressesMap[chain].multisigIsm ??
addressesMap[chain].interchainSecurityModule ?? addressesMap[chain].interchainSecurityModule ??
ethers.constants.AddressZero; ethers.constants.AddressZero;
if (interchainSecurityModule === ethers.constants.AddressZero) { if (interchainSecurityModule === ethers.constants.AddressZero) {

Loading…
Cancel
Save