• Kelvin Fichter's avatar
    feat(ct): overhaul deployment process · 4c486d70
    Kelvin Fichter authored
    Overhauls the contract deployment process to use a simpler typed
    deployment method. Removes the need for deployment bash scripts and
    makes review of deployment configurations much easier.
    4c486d70
001-Lib_AddressManager.deploy.ts 695 Bytes
/* Imports: Internal */
import { DeployFunction } from 'hardhat-deploy/dist/types'

import { names } from '../src/address-names'
import { getDeployConfig } from '../src/deploy-config'

/* Imports: External */

const deployFn: DeployFunction = async (hre) => {
  const { deploy } = hre.deployments
  const { deployer } = await hre.getNamedAccounts()
  const deployConfig = getDeployConfig(hre.network.name)

  await deploy(names.unmanaged.Lib_AddressManager, {
    from: deployer,
    args: [],
    log: true,
    waitConfirmations: deployConfig.numDeployConfirmations,
  })
}

// This is kept during an upgrade. So no upgrade tag.
deployFn.tags = ['Lib_AddressManager']

export default deployFn