003-OVM_ChainStorageContainer_scc_batches.deploy.ts 642 Bytes
Newer Older
1 2 3 4 5
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'

/* Imports: Internal */
import {
6
  deployAndPostDeploy,
7
  getContractFromArtifact,
8 9 10
} from '../src/hardhat-deploy-ethers'

const deployFn: DeployFunction = async (hre) => {
11 12 13 14
  const Lib_AddressManager = await getContractFromArtifact(
    hre,
    'Lib_AddressManager'
  )
15

16
  await deployAndPostDeploy({
17
    hre,
18 19 20
    name: 'ChainStorageContainer-SCC-batches',
    contract: 'ChainStorageContainer',
    args: [Lib_AddressManager.address, 'StateCommitmentChain'],
21 22 23
  })
}

24
deployFn.tags = ['ChainStorageContainer_scc_batches', 'upgrade']
25 26

export default deployFn