000-OVM_L2StandardTokenFactory.deploy.ts 643 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

/* Imports: Internal */
import { getContractDefinition } from '../src'

const deployFn: DeployFunction = async (hre: any) => {
  const { deployments, getNamedAccounts } = hre
  const { deploy } = deployments
  const { deployer } = await getNamedAccounts()

12 13 14 15
  const l2TokenFactory = getContractDefinition(
    'OVM_L2StandardTokenFactory',
    true
  )
16 17 18

  await deploy('OVM_L2StandardTokenFactory', {
    contract: l2TokenFactory,
19
    args: [],
20 21
    from: deployer,
    log: true,
22
  })
23 24 25 26 27
}

deployFn.tags = ['OVM_L2StandardTokenFactory']

export default deployFn