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
9d534997
Unverified
Commit
9d534997
authored
Jun 24, 2023
by
Mark Tyneway
Committed by
GitHub
Jun 24, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6131 from ethereum-optimism/cleanup/periphery-dead-code
contracts-periphery: delete dead code
parents
da9ddd77
609bf2a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
97 deletions
+0
-97
deploy-nft-bridge.sh
packages/contracts-periphery/scripts/deploy-nft-bridge.sh
+0
-24
nft-bridge-deploy-helpers.ts
...ages/contracts-periphery/src/nft-bridge-deploy-helpers.ts
+0
-73
No files found.
packages/contracts-periphery/scripts/deploy-nft-bridge.sh
deleted
100755 → 0
View file @
da9ddd77
#!/bin/bash
set
-e
L1_NETWORK
=
ops-l1
L2_NETWORK
=
ops-l2
# Step 1: deploy the Proxy to the predeploy address on L2
npx hardhat deploy
--tags
L2ERC721BridgeProxy
--network
$L2_NETWORK
# Step 2: deploy the Proxy for the L1ERC721Bridge to L1
npx hardhat deploy
--tags
L1ERC721BridgeProxy
--network
$L1_NETWORK
# Step 3: deploy the L2ERC721Bridge implementation
npx hardhat deploy
--tags
L2ERC721BridgeImplementation
--network
$L2_NETWORK
# Step 4: deploy the L1ERC721Bridge implementation to L1
npx hardhat deploy
--tags
L1ERC721BridgeImplementation
--network
$L1_NETWORK
# Step 5: deploy the Proxy for the OptimismMintableERC721Factory to L2
npx hardhat deploy
--tags
OptimismMintableERC721FactoryProxy
--network
$L2_NETWORK
# Step 6: deploy the OptimismMintableERC721Factory to L2
npx hardhat deploy
--tags
OptimismMintableERC721FactoryImplementation
--network
$L2_NETWORK
packages/contracts-periphery/src/nft-bridge-deploy-helpers.ts
deleted
100644 → 0
View file @
da9ddd77
import
{
utils
}
from
'
ethers
'
// https://optimistic.etherscan.io/address/0x2501c477d0a35545a387aa4a3eee4292a9a8b3f0
export
const
l2MainnetMultisig
=
'
0x2501c477D0A35545a387Aa4A3EEe4292A9a8B3F0
'
// https://etherscan.io/address/0x9BA6e03D8B90dE867373Db8cF1A58d2F7F006b3A
export
const
l1MainnetMultisig
=
'
0x9BA6e03D8B90dE867373Db8cF1A58d2F7F006b3A
'
// https://goerli.etherscan.io/address/0xf80267194936da1E98dB10bcE06F3147D580a62e
export
const
goerliAdmin
=
'
0xf80267194936da1E98dB10bcE06F3147D580a62e
'
export
const
predeploy
=
'
0x4200000000000000000000000000000000000014
'
export
const
predeployDeployer
=
'
0xdfc82d475833a50de90c642770f34a9db7deb725
'
export
const
isTargetL2Network
=
(
network
:
string
):
boolean
=>
{
switch
(
network
)
{
case
'
optimism
'
:
case
'
optimism-goerli
'
:
case
'
ops-l2
'
:
case
'
optimism-kovan
'
:
return
true
default
:
return
false
}
}
export
const
isTargetL1Network
=
(
network
:
string
):
boolean
=>
{
switch
(
network
)
{
case
'
mainnet
'
:
case
'
ethereum
'
:
case
'
goerli
'
:
case
'
ops-l1
'
:
case
'
kovan
'
:
return
true
default
:
return
false
}
}
export
const
getProxyAdmin
=
(
network
:
string
):
string
=>
{
switch
(
network
)
{
case
'
optimism
'
:
return
l2MainnetMultisig
case
'
mainnet
'
:
case
'
ethereum
'
:
return
l1MainnetMultisig
case
'
kovan
'
:
case
'
optimism-kovan
'
:
return
goerliAdmin
case
'
goerli
'
:
case
'
optimism-goerli
'
:
return
goerliAdmin
case
'
ops-l1
'
:
case
'
ops-l2
'
:
return
predeployDeployer
default
:
throw
new
Error
(
`unknown network
${
network
}
`
)
}
}
export
const
validateERC721Bridge
=
async
(
hre
,
address
:
string
,
expected
)
=>
{
const
L1ERC721Bridge
=
await
hre
.
ethers
.
getContractAt
(
'
ERC721Bridge
'
,
address
)
const
messenger
=
await
L1ERC721Bridge
.
messenger
()
const
otherBridge
=
await
L1ERC721Bridge
.
otherBridge
()
if
(
utils
.
getAddress
(
messenger
)
!==
utils
.
getAddress
(
expected
.
messenger
))
{
throw
new
Error
(
`messenger mismatch`
)
}
if
(
utils
.
getAddress
(
otherBridge
)
!==
utils
.
getAddress
(
expected
.
otherBridge
)
)
{
throw
new
Error
(
`otherBridge mismatch`
)
}
}
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