/* External Imports */
import { ethers } from 'hardhat'
import { Contract } from 'ethers'
import { getContractFactory as ctFactory } from 'old-contracts'
export const getContractFactory = async (contract: string) =>
ctFactory(contract, (await ethers.getSigners())[0])
export const setProxyTarget = async (
AddressManager: Contract,
name: string,
target: Contract
): Promise<void> => {
const SimpleProxy: Contract = await (
await getContractFactory('Helper_SimpleProxy')
).deploy()
await SimpleProxy.setTarget(target.address)
await AddressManager.setAddress(name, SimpleProxy.address)
}
export const makeAddressManager = async (): Promise<Contract> => {
return (await getContractFactory('Lib_AddressManager')).deploy()
}
-
Georgios Konstantopoulos authored
* chore: explicitly name old-contracts This was tech debt introduced in https://github.com/ethereum-optimism/batch-submitter/pull/31 * chore(batch-submitter): unpin contracts / smock * refactor: move L2 context provider to core-utils * refactor(batch-submitter): use injected context from L2 * chore: add changeset
6cbc54d8