008-Proxy__OVM_L1CrossDomainMessenger.deploy.ts 788 Bytes
Newer Older
1 2 3 4
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

/* Imports: Internal */
5
import {
6
  deployAndVerifyAndThen,
7
  getContractFromArtifact,
8
} from '../src/deploy-utils'
9
import { names } from '../src/address-names'
10 11

const deployFn: DeployFunction = async (hre) => {
12 13
  const Lib_AddressManager = await getContractFromArtifact(
    hre,
14
    names.unmanaged.Lib_AddressManager
15
  )
16

17
  await deployAndVerifyAndThen({
18
    hre,
19
    name: 'Proxy__OVM_L1CrossDomainMessenger',
20
    contract: 'Lib_ResolvedDelegateProxy',
21
    iface: 'L1CrossDomainMessenger',
22
    args: [Lib_AddressManager.address, 'OVM_L1CrossDomainMessenger'],
23 24 25
  })
}

26
// This is kept during an upgrade. So no upgrade tag.
27
deployFn.tags = ['Proxy__OVM_L1CrossDomainMessenger']
28 29

export default deployFn