Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
780fc0f5
Commit
780fc0f5
authored
Jun 16, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deployments: fix merge conflict
parent
9469e611
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
61 deletions
+13
-61
016-DisputeGameFactoryImpl.ts
...es/contracts-bedrock/deploy/016-DisputeGameFactoryImpl.ts
+6
-60
019-DisputeGameFactoryInit.ts
...es/contracts-bedrock/deploy/019-DisputeGameFactoryInit.ts
+7
-1
No files found.
packages/contracts-bedrock/deploy/016-DisputeGameFactoryImpl.ts
View file @
780fc0f5
<<<<<<<
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
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
// We only want to deploy the dgf on devnet for now
// We only want to deploy the dgf on devnet for now
if
(
hre
.
deployConfig
.
l1ChainID
===
900
)
{
const
network
=
await
hre
.
ethers
.
provider
.
getNetwork
()
const
disputeGameFactory
=
await
deploy
({
const
chainId
=
network
.
chainId
hre
,
name
:
'
DisputeGameFactory
'
,
args
:
[],
})
console
.
log
(
'
DisputeGameFactory deployed at
'
+
disputeGameFactory
.
address
)
}
}
deployFn
.
tags
=
[
'
DisputeGameFactoryImpl
'
,
'
setup
'
,
'
l1
'
]
export
default
deployFn
if
(
chainId
===
900
)
{
|||||||
parent
of
b998a6a67
(
DisputeGameFactory
devnet
deploy
scripts
)
=======
import
assert
from
'
assert
'
|||||||
parent
of
4
c1b5e2ac
(
Remove
final
owner
from
dgf
impl
initialization
.)
import
assert
from
'
assert
'
=======
>>>>>>>
4
c1b5e2ac
(
Remove
final
owner
from
dgf
impl
initialization
.)
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
({
const
disputeGameFactory
=
await
deploy
({
hre
,
hre
,
name
:
'
DisputeGameFactory
'
,
name
:
'
DisputeGameFactory
'
,
args
:
[],
args
:
[],
})
})
console
.
log
(
'
DisputeGameFactory deployed at
'
+
disputeGameFactory
.
address
)
console
.
log
(
`DisputeGameFactory deployed at
${
disputeGameFactory
.
address
}
`
)
}
}
else
{
}
console
.
log
(
'
Skipping deployment of DisputeGameFactory implementation
'
)
deployFn
.
tags
=
[
'
DisputeGameFactoryImpl
'
,
'
setup
'
,
'
l1
'
]
export
default
deployFn
>>>>>>>
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
finalOwner
=
hre
.
deployConfig
.
finalSystemOwner
const
disputeGameFactory
=
await
deploy
({
hre
,
name
:
'
DisputeGameFactory
'
,
args
:
[
finalOwner
],
})
const
fetchedOwner
=
await
disputeGameFactory
.
owner
()
assert
(
fetchedOwner
===
finalOwner
)
console
.
log
(
'
DisputeGameFactory deployed at
'
+
disputeGameFactory
.
address
)
}
}
}
}
deployFn
.
tags
=
[
'
DisputeGameFactoryImpl
'
,
'
setup
'
,
'
l1
'
]
deployFn
.
tags
=
[
'
DisputeGameFactoryImpl
'
,
'
setup
'
,
'
l1
'
]
export
default
deployFn
export
default
deployFn
>>>>>>>
f8dc1be47
(
DisputeGameFactory
devnet
deploy
scripts
)
packages/contracts-bedrock/deploy/019-DisputeGameFactoryInit.ts
View file @
780fc0f5
...
@@ -7,8 +7,12 @@ import 'hardhat-deploy'
...
@@ -7,8 +7,12 @@ import 'hardhat-deploy'
import
{
getContractsFromArtifacts
}
from
'
../src/deploy-utils
'
import
{
getContractsFromArtifacts
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
// We only want to deploy the dgf on devnet for now
const
network
=
await
hre
.
ethers
.
provider
.
getNetwork
()
const
chainId
=
network
.
chainId
// The DisputeGameFactory is only deployed on devnet
// The DisputeGameFactory is only deployed on devnet
if
(
hre
.
deployConfig
.
l1ChainID
===
900
)
{
if
(
chainId
===
900
)
{
const
{
deployer
}
=
await
hre
.
getNamedAccounts
()
const
{
deployer
}
=
await
hre
.
getNamedAccounts
()
const
[
proxyAdmin
,
disputeGameFactoryProxy
,
disputeGameFactoryImpl
]
=
const
[
proxyAdmin
,
disputeGameFactoryProxy
,
disputeGameFactoryImpl
]
=
await
getContractsFromArtifacts
(
hre
,
[
await
getContractsFromArtifacts
(
hre
,
[
...
@@ -45,6 +49,8 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -45,6 +49,8 @@ const deployFn: DeployFunction = async (hre) => {
assert
(
fetchedOwner
===
finalOwner
)
assert
(
fetchedOwner
===
finalOwner
)
console
.
log
(
'
Updgraded and initialized DisputeGameFactory
'
)
console
.
log
(
'
Updgraded and initialized DisputeGameFactory
'
)
}
else
{
console
.
log
(
'
Skipping initialization of DisputeGameFactory
'
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment