Commit 67f05cad authored by Andreas Bigger's avatar Andreas Bigger Committed by Mark Tyneway

DisputeGameFactory devnet deploy scripts

parent d07c16ad
<<<<<<< HEAD <<<<<<< HEAD
<<<<<<< HEAD <<<<<<< HEAD
<<<<<<< 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'
...@@ -48,3 +49,32 @@ deployFn.tags = ['DisputeGameFactoryImpl', 'setup', 'l1'] ...@@ -48,3 +49,32 @@ deployFn.tags = ['DisputeGameFactoryImpl', 'setup', 'l1']
export default deployFn export default deployFn
>>>>>>> b998a6a67 (DisputeGameFactory devnet deploy scripts) >>>>>>> b998a6a67 (DisputeGameFactory devnet deploy scripts)
||||||| parent of f8dc1be47 (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
>>>>>>> f8dc1be47 (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