001-Lib_AddressManager.deploy.ts 695 Bytes
Newer Older
1
/* Imports: Internal */
2 3
import { DeployFunction } from 'hardhat-deploy/dist/types'

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

7 8 9 10 11
/* Imports: External */

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

14
  await deploy(names.unmanaged.Lib_AddressManager, {
15 16 17
    from: deployer,
    args: [],
    log: true,
18
    waitConfirmations: deployConfig.numDeployConfirmations,
19 20 21
  })
}

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

export default deployFn