mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
26 lines
744 B
TypeScript
26 lines
744 B
TypeScript
// 05_v2factory.ts
|
|
|
|
import { Deploy } from '@zoolabs/contracts/utils/deploy'
|
|
|
|
export default Deploy('UniswapV2Factory', {}, async({ getNamedAccounts, hre, deploy, deployments, deps }) => {
|
|
const { deployer, dao } = await getNamedAccounts()
|
|
await deploy([dao])
|
|
})
|
|
|
|
// // Defining bytecode and abi from original contract on mainnet to ensure bytecode matches and it produces the same pair code hash
|
|
// import {
|
|
// bytecode,
|
|
// abi,
|
|
// } from "../artifacts/src/uniswapv2/UniswapV2Factory.sol/UniswapV2Factory.json"
|
|
|
|
// await deploy("UniswapV2Factory", {
|
|
// // contract: {
|
|
// // abi,
|
|
// // bytecode,
|
|
// // },
|
|
// from: deployer,
|
|
// args: [dao],
|
|
// log: true,
|
|
// deterministicDeployment: false,
|
|
// });
|