Skip to content

Commit

Permalink
Merge pull request #5312 from ethereum-optimism/feat/l1-deploy-tag
Browse files Browse the repository at this point in the history
contracts-bedrock: add l1 deploy tag
  • Loading branch information
tynes authored Mar 31, 2023
2 parents 0ac4814 + 0236d9e commit b00425e
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 30 deletions.
2 changes: 1 addition & 1 deletion bedrock-devnet/devnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
addresses = read_json(addresses_json_path)
else:
log.info('Deploying contracts.')
run_command(['yarn', 'hardhat', '--network', 'devnetL1', 'deploy'], env={
run_command(['yarn', 'hardhat', '--network', 'devnetL1', 'deploy', '--tags', 'l1'], env={
'CHAIN_ID': '900',
'L1_RPC': 'http://localhost:8545',
'PRIVATE_KEY_DEPLOYER': 'ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/deploy/000-ProxyAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['ProxyAdmin', 'setup']
deployFn.tags = ['ProxyAdmin', 'setup', 'l1']

export default deployFn
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/deploy/001-AddressManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['AddressManager', 'setup']
deployFn.tags = ['AddressManager', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1StandardBridgeProxy', 'setup']
deployFn.tags = ['L1StandardBridgeProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L2OutputOracleProxy', 'setup']
deployFn.tags = ['L2OutputOracleProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1CrossDomainMessengerProxy', 'setup']
deployFn.tags = ['L1CrossDomainMessengerProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['OptimismPortalProxy', 'setup']
deployFn.tags = ['OptimismPortalProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['OptimismMintableERC20FactoryProxy', 'setup']
deployFn.tags = ['OptimismMintableERC20FactoryProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1ERC721BridgeProxy', 'setup']
deployFn.tags = ['L1ERC721BridgeProxy', 'setup', 'l1']

export default deployFn
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/deploy/008-SystemConfigProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['SystemConfigProxy', 'setup']
deployFn.tags = ['SystemConfigProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['SystemDictatorProxy', 'setup']
deployFn.tags = ['SystemDictatorProxy', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1CrossDomainMessengerImpl', 'setup']
deployFn.tags = ['L1CrossDomainMessengerImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1StandardBridgeImpl', 'setup']
deployFn.tags = ['L1StandardBridgeImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L2OutputOracleImpl', 'setup']
deployFn.tags = ['L2OutputOracleImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['OptimismPortalImpl', 'setup']
deployFn.tags = ['OptimismPortalImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['OptimismMintableERC20FactoryImpl', 'setup']
deployFn.tags = ['OptimismMintableERC20FactoryImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['L1ERC721BridgeImpl', 'setup']
deployFn.tags = ['L1ERC721BridgeImpl', 'setup', 'l1']

export default deployFn
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/deploy/016-PortalSenderImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['PortalSenderImpl', 'setup']
deployFn.tags = ['PortalSenderImpl', 'setup', 'l1']

export default deployFn
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/deploy/017-SystemConfigImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['SystemConfigImpl', 'setup']
deployFn.tags = ['SystemConfigImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ const deployFn: DeployFunction = async (hre) => {
})
}

deployFn.tags = ['SystemDictatorImpl', 'setup']
deployFn.tags = ['SystemDictatorImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ const deployFn: DeployFunction = async (hre) => {
}
}

deployFn.tags = ['SystemDictatorImpl', 'setup']
deployFn.tags = ['SystemDictatorImpl', 'setup', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -279,14 +279,14 @@ const deployFn: DeployFunction = async (hre) => {
need to restart the system, run exit1() followed by finalize().
`,
checks: async () => {
assert(
(await AddressManager.getAddress('OVM_L1CrossDomainMessenger')) ===
ethers.constants.AddressZero
const messenger = await AddressManager.getAddress(
'OVM_L1CrossDomainMessenger'
)
assert(messenger === ethers.constants.AddressZero)
},
})
}

deployFn.tags = ['SystemDictatorSteps', 'phase1']
deployFn.tags = ['SystemDictatorSteps', 'phase1', 'l1']

export default deployFn
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ const deployFn: DeployFunction = async (hre) => {
'BondManager',
]
for (const dead of deads) {
assert(
(await AddressManager.getAddress(dead)) ===
ethers.constants.AddressZero
)
const addr = await AddressManager.getAddress(dead)
assert(addr === ethers.constants.AddressZero)
}
},
})
Expand Down Expand Up @@ -372,6 +370,6 @@ const deployFn: DeployFunction = async (hre) => {
}
}

deployFn.tags = ['SystemDictatorSteps', 'phase2']
deployFn.tags = ['SystemDictatorSteps', 'phase2', 'l1']

export default deployFn

0 comments on commit b00425e

Please sign in to comment.