UNPKG

@hyperlane-xyz/core

Version:

Core solidity contracts for Hyperlane

32 lines (26 loc) 704 B
import { DeployFunction } from 'hardhat-deploy/dist/types' import { assertContractVariable, deploy, getContractFromArtifact, } from '../src/deploy-utils' const deployFn: DeployFunction = async (hre) => { const L1StandardBridgeProxy = await getContractFromArtifact( hre, 'Proxy__OVM_L1StandardBridge' ) await deploy({ hre, name: 'OptimismMintableERC20Factory', args: [L1StandardBridgeProxy.address], postDeployAction: async (contract) => { await assertContractVariable( contract, 'BRIDGE', L1StandardBridgeProxy.address ) }, }) } deployFn.tags = ['OptimismMintableERC20FactoryImpl', 'setup', 'l1'] export default deployFn