Commit 94933f05 authored by Andreas Bigger's avatar Andreas Bigger Committed by Mark Tyneway

DisputeGameFactory devnet deploy scripts

parent 656a9b79
<<<<<<< HEAD
import { DeployFunction } from 'hardhat-deploy/dist/types' import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from '../src/deploy-utils' import { deploy } from '../src/deploy-utils'
...@@ -17,3 +18,32 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -17,3 +18,32 @@ const deployFn: DeployFunction = async (hre) => {
deployFn.tags = ['DisputeGameFactoryImpl', 'setup', 'l1'] deployFn.tags = ['DisputeGameFactoryImpl', 'setup', 'l1']
export default deployFn export default deployFn
||||||| parent of b998a6a67 (DisputeGameFactory devnet deploy scripts)
=======
import assert from 'assert'
import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from '../src/deploy-utils'
const deployFn: DeployFunction = async (hre) => {
// We only want to deploy the dgf on devnet for now
if (hre.deployConfig.l1ChainID === 900) {
const disputeGameFactory = await deploy({
hre,
name: 'DisputeGameFactory',
args: [],
})
console.log('DisputeGameFactory deployed at ' + disputeGameFactory.address)
const finalOwner = hre.deployConfig.finalSystemOwner
await disputeGameFactory.initialize(finalOwner)
const fetchedOwner = await disputeGameFactory.owner()
assert(fetchedOwner === finalOwner)
console.log('DisputeGameFactory implementation initialized')
}
}
deployFn.tags = ['DisputeGameFactoryImpl', 'setup', 'l1']
export default deployFn
>>>>>>> b998a6a67 (DisputeGameFactory devnet deploy scripts)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment