002-OVM_ChainStorageContainer_ctc_queue.deploy.ts 667 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

/* Imports: Internal */
import {
  deployAndRegister,
  getDeployedContract,
} from '../src/hardhat-deploy-ethers'

const deployFn: DeployFunction = async (hre) => {
  const Lib_AddressManager = await getDeployedContract(
    hre,
    'Lib_AddressManager'
  )

  await deployAndRegister({
    hre,
18 19 20
    name: 'ChainStorageContainer-CTC-queue',
    contract: 'ChainStorageContainer',
    args: [Lib_AddressManager.address, 'CanonicalTransactionChain'],
21 22 23 24
  })
}

deployFn.dependencies = ['Lib_AddressManager']
25
deployFn.tags = ['ChainStorageContainer_ctc_queue']
26 27

export default deployFn