@hyperlane-xyz/core
Version:
Core solidity contracts for Hyperlane
31 lines (25 loc) • 752 B
text/typescript
/* Imports: External */
import { DeployFunction } from 'hardhat-deploy/dist/types'
/* Imports: Internal */
import {
deployAndVerifyAndThen,
getContractFromArtifact,
} from '../src/deploy-utils'
import { names } from '../src/address-names'
const deployFn: DeployFunction = async (hre) => {
const Lib_AddressManager = await getContractFromArtifact(
hre,
names.unmanaged.Lib_AddressManager
)
await deployAndVerifyAndThen({
hre,
name: names.managed.contracts.StateCommitmentChain,
args: [
Lib_AddressManager.address,
hre.deployConfig.sccFaultProofWindowSeconds,
hre.deployConfig.sccSequencerPublishWindowSeconds,
],
})
}
deployFn.tags = ['StateCommitmentChain', 'upgrade']
export default deployFn