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
94933f05
Commit
94933f05
authored
Jun 15, 2023
by
Andreas Bigger
Committed by
Mark Tyneway
Jun 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DisputeGameFactory devnet deploy scripts
parent
656a9b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
020-DisputeGameFactoryImpl.ts
...es/contracts-bedrock/deploy/020-DisputeGameFactoryImpl.ts
+30
-0
No files found.
packages/contracts-bedrock/deploy/020-DisputeGameFactoryImpl.ts
View file @
94933f05
<<<<<<<
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
)
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