• smartcontracts's avatar
    feat(ctb): deploy setup tag (#4552) · 4e07584d
    smartcontracts authored
    Adds a new "setup" tag to deploy steps that can be executed ahead of
    the Bedrock migration. Runs everything except the SystemDictator steps.
    4e07584d
008-SystemConfigProxy.ts 578 Bytes
import { DeployFunction } from 'hardhat-deploy/dist/types'

import {
  assertContractVariable,
  deploy,
  getDeploymentAddress,
} from '../src/deploy-utils'

const deployFn: DeployFunction = async (hre) => {
  const proxyAdmin = await getDeploymentAddress(hre, 'ProxyAdmin')

  await deploy({
    hre,
    name: 'SystemConfigProxy',
    contract: 'Proxy',
    args: [proxyAdmin],
    postDeployAction: async (contract) => {
      await assertContractVariable(contract, 'admin', proxyAdmin)
    },
  })
}

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

export default deployFn